Assignment - 3 solutions
Assignment - 3 solutions
2. (T) Show that the set of solutions of the linear homogeneous equation (∗∗) is a real vector
space. Also show that the set of solutions of the linear non-homogeneous equation (∗)
is not a real vector space. If y1 (x), y2 (x) are any two solutions of (∗), obtain conditions
on the constants a and b so that ay1 + by2 is also its solution.
Solution:
Let S be the set of solutions of the linear homogeneous ODE (**). Clearly S is a subset
of set of twice differentiable functions on I which is a real vector space. Thus it is
sufficient to show that S is subspace of the above vector space of twice differentiable
function. Now 0(x) = 0 satisfies (**) and hence 0 ∈ S. Thus S is nonempty. Also if u, v
both satisfies (**), then αu(x) + v(x) is also a solution of (**). This implies αu + v ∈ S.
Hence S is a subspace, i.e. a vector space.
Now 0(x) = 0 is not a solution of (*), thus zero element does not exist. Hence, the set
of solution of (*) is not a real vector space.
Let y1 (x), y2 (x) are any two solutions of (∗). Then
If ay1 + by2 is also a solution, then the LHS is r(x) and hence a + b = 1.
3. Decide if the statements are true or false. If the statement is true, prove it, if it is false,
give a counter example showing it is false.
(i) If f (x) and g(x) are linearly independent functions on an interval I, then they are
linearly independent on any larger interval containing I.
If f (x) and g(x) are linearly independent functions on an interval I, then they are linearly
independent on any smaller interval contained in I.
(ii) If f (x) and g(x) are linearly dependent functions on an interval I, then they are
linearly dependent on any subinterval of I.
If y1 (x) and y2 (x) are linearly dependent functions on an interval I, then they are linearly
dependent on any larger interval containing I.
(iii) If y1 (x) and y2 (x) are linearly independent solution of (∗∗) on an interval I, they
are linearly independent on any interval contained in I.
(iv) If y1 (x) and y2 (x) are linearly dependent solutions of (∗∗) on an interval I, they are
linearly dependent on any interval contained in I.
Solution:
(i) True, follows from the definition of linear independence. Flase: take f (x) = x2 and
g(x) = x|x|. Then f, g linearly independent over [−1, 1] but dependent over [0, 1].
(ii)True, follows from definition.
(iii) True, follows from the fact that, in this case y1 , y2 is linearly independent on I iff
W (y1 , y2 ) �= 0 on all I.
(iv) True, follows from the fact that, in this case y1 , y2 is linearly dependent on I iff
W (y1 , y2 ) = 0 on all I.
4. Can x3 be a solution of (∗∗) on I = [−1, 1]? Find two 2nd order linear homogeneous
ODE with x3 as a solution.
Solution:
No. Putting y = x3 in the given equation, we get 6x + p(x)3x2 + q(x)x3 = 0 for all
x ∈ [−1, 1.] Cancelling x, we get 6 + p(x)3x + q(x)x2 = 0 for all [−1, 1] � x �= 0. That is
p(x)3 + q(x)x = −6/x for all x ∈ [−1, 1.]. We see that LHS is continuous at 0 but RHS
is not continuous at 0. This cant not happen.
Two ODEs with x3 as solution are: xy �� = 2y � and x2 y �� = 6y. Note that here p, q are
not continuous at 0.
5. (T) Can x sin x be a solution of a second order linear homogeneous equation with con-
stant coefficients?
Solution:
No, putting x sin x in y �� + py � + qy = 0, we get (q − 1)x sin x + p(sin x + x cos x) = 0 for
all x ∈ R. Here p, q are constants. This is clearly not possible.
6. (T) Find the largest interval on which a unique solution is guaranteed to exist of the
IVP. (x + 2)y �� + xy � + cot(x)y = x2 + 1, y(2) = 11, y � (2) = −2.
Solution:
Comparing with (∗), we have
x cos(x) x2 + 1
p(x) = , q(x) = , r(x) = .
x+2 (x + 2) sin x x+2
The discontinuities of p, q, r are x = −2, 0, ±π, ±2π, ±3π, · · · . The largest interval that
contains x0 = 2 but none of the discontinuities is, therefore, (0, π).
7. Without solving determine the largest interval in which the solution is guaranteed to
uniquely exist of the IVP ty �� − y � = t2 + t, y(1) = 1, y � (1) = 5. Verify your answer by
solving it explicitly.
Solution:
Since p, r are not continuous at 0, the maximum interval of existence and uniqueness of
solution of the given IVP is (0, ∞).
Here dependent variable y is missing. Solving it, y(t) = t3 /3 + 7t2 /4 + t2 (ln t)/2 − 13/12
for which the max interval of validity is (0, ∞).
8. Find the differential equation satisfied by each of the following two-parameter families
of plane curves:
(i) y = cos(ax + b) (ii) y = ax + xb (iii) y = aex + bxex
Solution:
For two arbitrary constants, the order of the ODE will be two. Eliminate constants a
and b by differentiating twice.
(i) y = cos(ax + b) =⇒ y � = −a sin(ax + b), y �� = −a2 cos(ax + b) = −a2 y. From this
we find
y �2 �2 2 y
��
+ y 2
= 1 =⇒ (1 − y 2 2
)a = y =⇒ −(1 − y ) = y �2 =⇒ (1 − y 2 )y �� + yy �2 = 0
a2 y
u�� 2(2x2 − 1) 2 1 1 1
�
= 2
=− − + =⇒ u� = 2
u x(1 − x ) x 1+x 1−x x (1 − x2 )
Thus, � � � �
� 1 1 1 1 1 1 1+x
u = 2+ + =⇒ u = − + ln(
x 2 1+x 1−x x 2 1−x
Hence, � �
x 1+x
y2 = −1 + ln(
2 1−x
and the general solution is
� � ��
x 1+x
y = ax + b −1 + ln( .
2 1−x
√
10. Verify that sin x/ x is a solution of x2 y �� + xy � + (x2 − 1/4)y = 0 over any interval on
the positive x-axis and hence find its general solution.
Solution:
Verification is straightforward.
√
Substitute y = u(x) sin x/ x to get
� �
sin x �
� cos x sin x
y = √ u + √ − 3/2 u
x x 2x
� � � �
�� sin x �� cos x sin x � sin x cos x 3 sin x
y = √ u + 2 √ − 3/2 u + − √ − 3/2 + u
x x 2x x x 4 x5/2
This leads to
13. Reduce the following second order differential equation to first order differential equation
and hence solve.
(i) xy �� + y � = y �2 (ii) (T) yy �� + y �2 + 1 = 0 (iii) y �� − 2y � coth x = 0
Solution:
(i) Dependent variable y absent. Substitute y � = p =⇒ y �� = dp/dx. Thus xp� + p = p2 .
Solving p = 1/(1 − ax) which on integrating again gives y = b − ln(1 − ax)/a, where a
and b are arbitrary constants.
(ii) Independent variable x is absent in yy �� + y �2 + 1 = 0. Substitute y � = p =⇒ y �� =
p dp/dy. Thus
dp pdp dy � a2
py + p2 = 1 =⇒ + = 0 =⇒ ln 1 + p2 y = ln a =⇒ 1 + p2 =
dy 1 + p2 y y2
From p2 = a2 /y 2 − 1, we find
ydy �
� = ±dx =⇒ − a2 − y 2 = ±x + b.
a2 − y 2
Both the solutions can be written as (x + b)2 + y 2 = a2 where a and b are arbitrary
constants..
(iii) y �� − 2y � coth x = 0. Substitute y � = p =⇒ y �� = dp/dx. Thus dp/dx = 2p coth x.
Solving p = a sinh2 x, which on integrating again gives y = a(sinh 2x − 2x)/4 + b where
a and b are arbitrary constants.
14. Find the curve y = y(x) which satisfies the ODE y �� = y � and the line y = x is tangent
at the origin.
Solution:
The given conditions lead to the following problem:
Solve y �� − y � = 0 with y(0) = 0, y � (0) = 1. Integrating once gives y � − y = a which on
another integration gives y + a = bex . y(0) = 0 gives a = b. y � (0) = 1 gives b = 1 and
hence solution is y = ex − 1.
15. Are the following functions linearly dependent on the given intervals?
(i) sin 4x, cos 4x (−∞, ∞) (ii) ln x, ln x3 (0, ∞)
(iii) cos 2x, sin2 x (0, ∞) (iv)(T) x3 , x2 |x| [−1, 1]
Solution:
(i) a sin 4x + b cos 4x = 0. For x = 0 we find b = 0 and for x = π/8 we get a = 0. Hence
they are NOT linearly dependent.
(ii) ln x3 − 3 ln x = 0 for x ∈ (0, ∞). Hence linearly dependent.
(iii) a cos 2x + b sin2 x = 0. For x = 0 we find a = 0 and for x = π/2 we get b = 0. Hence
they are NOT linearly dependent.
(iv) ax3 + bx2 |x| = 0. For x < 0 we find a − b = 0 and for x > 0 we get a + b = 0. Hence
a = b = 0 and thus they are NOT linearly dependent.
16. (a) Show that a solution to (**) with x-axis as tangent at any point in I must be
identically zero on I.
(b) (T) Let y1 (x), y2 (x) be two solutions of (**) with a common zero at any point in I.
Show that y1 , y2 are linearly dependent on I.
(c) (T) Show that y = x and y = sin x are not a pair solutions of equation (**), where
p(x), q(x) are continuous functions on I = (−∞, ∞).
Solution:
(a) Let ξ(x) be the solution. Since x axis is a tangent, at x = x0 , say, then ξ(x0 ) =
ξ � (x0 ) = 0. Clearly y(x) ≡ 0 satisfies (**) and the initial conditions y(x0 ) = y � (x0 ) = 0.
Since the solution is unique, ξ(x) ≡ 0 in I .
(b) If y1 (x), y2 (x) have a common zero at x = x0 , say, then y1 (x0 ) = y2 (x0 ) = 0. Hence,
W (y1 , y2 ) = 0 at x = x0 and thus y1 , y2 are linearly dependent.
(c) y1 = x and y2 = sin x are LI on I. So if they were solution of (∗∗), the wronskian
W (y1 , y2 ) must never be zero. But W (y1 , y2 ) = 0 at x = 0, a contradiction.
17. (a)(T) Let y1 (x), y2 (x) be two twice continuously differentiable functions on an interval
I.
(i) Show that the Wronskian W (y1 , y2 ) does not vanish anywhere in I if and only if there
exists continuous p(x), q(x) on I such that (**) has y1 , y2 as independent solutions.
(ii) Is it true that if y1 , y2 are independent on I then there exists continuous p(x), q(x)
on I such that (**) has y1 , y2 as independent solutions?
(b) Construct equations of the form (**) from the following pairs of solutions: e−x , xe−x .
Solution:
(a)(i) Suppose that W (y1 , y2 ) does not vanish anywhere in I. We want to find p(x), q(x)
such that
Solving we get:
d
p(x) = −(y1 y2�� − y2 y1�� )/W (y1 , y2 ) = − (W (y1 , y2 ))/W (y1 , y2 )
dx
and q(x) = (y1� y2�� − y2� y1�� )/W (y1 , y2 ). They are continuous on I since W (y1 , y2 ) never
zero on I.
� �
[Note that q(x) can also be written as q(x) = − y11 y1�� + p(x)y1� .]
Converse follows from the fact Wronskian is never zero for independent solutions of (∗∗).
(ii) Not true. Consider y1 (x) = x3 and y2 (x) = x2 |x| on I = [−1, 1.] Then they are
independent on I, but they are not solutions of any (∗∗) on I.
(b) Using 8(a): y1 (x) = e−x and y2 (x) = xe−x . Hence, W (y1 , y2 ) = e−2x and p(x) = 2.
And q(x) = −(e−x − 2e−x )/e−x = 1. Hence y �� + 2y � + y = 0.
Alternative: Write y = ay1 (x) + by2 (x) and eliminate a and b. y = e−x (a + bx) =⇒
ex y = a + bx. Differentiating w.r.t. x twice we find
ex (y � + y) = b =⇒ ex (y �� + 2y � + y) = 0 =⇒ y �� + 2y � + y = 0
18. By using the method of variation of parameters, find the general solution of:
(i) y �� + 4y = 2 cos2 x + 10ex (ii) (T) y �� + y = x sin x
(iii) y �� + y = cot2 x (iv) x2 y �� − x(x + 2)y � + (x + 2)y = x3 , x > 0.
[Hint. y = x is a solution of the homogeneous part]
Solution:
If y1 , y2 are independent solutions of the homogeneous part of the ODE
then the general solution is y = Ay1 +By2 +uy1 +vy2 , where A, B are arbitrary constants
and � �
ry2 ry1
u=− dx, v = dx, [W (y1 , y2 ) is the Wronskian]
W W
(i) y1 = cos 2x, y2 = sin 2x, W (y1 , y2 ) = 2, r(x) = 2 cos2 x + 10ex = cos 2x + 1 + 10ex .
Now �
cos 4x cos 2x
u = − y2 r/W dx = + − ex (sin 2x − 2 cos 2x)
16 4
�
sin 4x x sin 2x
v= y1 r/W dx = + + + ex (2 sin 2x + cos 2x)
16 4 4
Thus
cos 2x x sin 2x 1
yp = + + + 2ex
16 4 4
General solution: (absorbing first term of yp in the homogeneous solution)
x sin 2x 1
y = A cos 2x + B sin 2x + + + 2ex
4 4
x sin x x2 cos x
y = A cos x + B sin x + −
4 4
(iii) (ii) y1 = cos x, y2 = sin x, W (y1 , y2 ) = 1, r(x) = cot2 x. Now
�
u = − y2 r/W dx = − ln(cosecx − cot x) − cos x
�
v= y1 r/W dx = −cosecx − sin x
Thus
yp = −2 − cos x ln(cosecx − cot x)
General solution:
u�� − u� = 0 =⇒ u� − u = 1 =⇒ u = ex − 1 =⇒ y = xex − x
Thus yp = −x − x2 .
General solution: (absorbing first term of yp in the homogeneous solution)
y = x(A + Bex ) − x2 .
19. Find the general solution of a 7th-order homogeneous linear differential equation with
constant coefficients whose characteristic polynomial is p(m) = m(m2 − 3)2 (m2 + m + 2).
Solution:
√ √ √
m = 0, ± 3, ± 3, −1/2 ± i 7/2. So general solution:
√ √ √ √ √ √
y = c 1 + c2 e 3x
+ c3 xe 3x
+ c4 e − 3x
+ c5 e − 3x
+ c6 e−x/2 cos( 7x/2) + c7 e−x/2 sin( 7x/2).