Professional Documents
Culture Documents
Differential Equation Lecture Notes Section 1 Onwards
Differential Equation Lecture Notes Section 1 Onwards
Differential Equation Lecture Notes Section 1 Onwards
1 Introduction
Definition 1. A general linear differential equation of order n with constant coefficients
is of the form
ao y (n) + a1 y (n−1) + a2 y (n−2) + · · · + an y = b(x) (1)
where a0 , a1 , a2 , · · · , an , are complex constants and b(x) is a certain continuous function
defined on some interval I.
Assume a0 = 1, then equation (1) takes the form
If L.H.S. of equation (2) is L(y) then (2) can be written as L(y) = b(x). Thus we have
1
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
2
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
r2 + r − 2 = 0
r2 − 4 = 0
r2 + r − 6 = 0
Hence r1 = −3, r2 = 2 are the roots. Therefore, the solution is given by φ(x) =
c1 e−3x + c2 e2x .
From initial conditions, we have
φ(0) = c1 + c2 = 1 (4)
φ0 (0) = −3c1 + 2c2 = 0 (5)
z12 + a1 z1 + a2 = 0
3
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
z12 + a1 z1 + a2 = 0
z12 + a1 z1 + a2 = 0
z1 2 + a1 z1 + a2 = 0 (since a1 and a2 are real).
α + iβ + α − iβ = −a1
−a1
That is α = 2
. The product of two roots is given by
(α + iβ)(α − iβ) = a2
α 2 + β 2 = a2
2
2 −a1
β = a2 −
2
a21
so that β 2 = a2 − 4
.
L(y) = y 00 + a1 y 0 + a2 y = 0 (3)
satisfying φ(x0 ) = α, φ0 (x0 ) = β where α and β be any two given constants.
Theorem 2 (Existence Theorem). For any real x0 , and constants α, β, there exists a
solution φ of the initial value problem L(y) = y 00 +a1 y 0 +a2 y = 0, φ(x0 ) = α, φ0 (x0 ) = β,
on −∞ < x < ∞.
4
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
Proof. To prove this theorem, we have to show that there exists unique constants c1
and c2 such that the function φ = c1 φ1 + c2 φ2 satisfies (3), where φ1 and φ2 are the
solutions. Since φ satisfies the initial conditions, we must have
c1 φ1 (x0 ) + c2 φ2 (x0 ) = α
c1 φ01 (x0 ) + c2 φ02 (x0 ) = β
φ1 (x0 ) φ2 (x0 )
∆=
φ01 (x0 ) φ02 (x0 )
= (φ1 φ02 − φ01 φ2 )(x0 ) 6= 0
If r1 and r2 are two distinct roots of the characteristic polynomial, then from the
previous section, we know that φ1 (x) = er1 x and φ2 (x) = er2 x .
Hence,
Now, if r1 is a repeated root of the characteristic polynomial then again from the
previous section, we know that
φ1 (x) = er1 x and φ2 (x) = xer1 x .
so that the constants c1 and c2 uniquely exists and hence, the function φ(x) = c1 φ1 (x)+
c2 φ2 (x) forms the solution for the given differential equation.
5
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
That is
|u0 | ≤ 2|φ||φ0 | + 2|φ0 ||φ00 |. (6)
Since φ is a solution of L(y) = 0,we have
φ00 + a1 φ0 + a2 φ = 0.
Therefore
|u0 | ≤ 2(1 + |a2 |)|φ||φ0 | + 2|a1 ||φ0 |2 . (7)
But we know that
0 ≤ (|a| − |b|)2 = |a|2 + |b|2 − 2|a||b|
Hence,
2|a||b| ≤ |a|2 + |b|2 .
By using this inequality in (7), we get
Hence
|u0 | ≤ 2ku where k = 1 + |a1 | + |a2 |
so that
−2ku ≤ u0 ≤ 2ku. (8)
By considering the right inequality in (8), we get
u0 − 2ku ≤ 0.
6
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
It can be written as
[ue−2kx ]0 ≤ 0
Integrate the above term from x0 to x, where x0 < x, to get
or
u(x)e−2kx ≤ u(x0 )e−2kx0 .
That is
u(x) ≤ u(x0 )e2k(x−x0 ) ∀x > x0 .
Using the definition of norm, we get
Theorem 4 (Uniqueness Theorem). Let α and β be any constants and let x0 be any
real number. On any interval I containing a point x0 , there exist at most one solution
φ to an initial value problem L(y) = y 00 + a1 y 0 + a2 y = 0, φ(x0 ) = α, φ0 (x0 ) = β.
Proof. Suppose φ and ϕ were two solutions. Let χ = φ − ϕ, then
7
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
1
where kχ(x)k = [|χ(x)|2 + |χ0 (x)|2 ] 2 and k = 1 + |a1 | + |a2 |.
By definition of norm, we have kχ(x0 )k = 0. Therefore, kχ(x)k = 0
That is χ(x) = 0
or φ(x) − ϕ(x) = 0 which implies φ(x) = ϕ(x). That is φ is the unique solution of the
given initial value problem.
Example 5. Solve an initial value problem y 00 − 2y 0 − 3y = 0 satisfying φ(0) = 0,
φ0 (0) = 1.
Proof. The characteristic polynomial is given by
r2 − 2r − 3 = 0
φ(0) = c1 + c2 = 0 (11)
φ0 (0) = 3c1 − c2 = 1 (12)
r2 − 1 = 0.
φ(x) = c1 ex + c2 e−x
φ0 (x) = c1 ex − c2 e−x
c1 + c2 = 0 (13)
c1 − c2 = 1 (14)
8
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
r2 − 9 = 0.
Since ‘10 is the common point in the intervals 0 ≤ x ≤ 2 and 1 ≤ x ≤ 2, we equate φ(1)
and ϕ(1); φ0 (1), ϕ0 (1) respectively, and get
1
(e − e−1 ) = d1 e3 + d2 e−3
2
1
(e + e−1 ) = 3d1 e3 − 3d2 e−3 .
2
Now by solving the above two equations, we get
2e − e−1 e − 2e−1
d1 = , d 2 =
6e3 6e−3
Therefore, the solution ϕ becomes
2e − e−1 3x e − 2e−1 −3x
ϕ(x) = e + e .
6e3 6e−3
in the interval 1 ≤ x ≤ 2.
Linear Independence
9
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
φ1 φ2
Definition 3. The = φ1 φ02 − φ01 φ2 is called Wronskian of φ1 and φ2 and it is
φ01 φ02
denoted as W (φ1 , φ2 ). It is a function and its value at x is denoted by W (φ1 , φ2 )(x).
Theorem 5. Two solutions φ1 and φ2 of L(y) = 0 are linearly independent on an
interval I, if and only if W (φ1 , φ2 )(x) 6= 0, ∀ x ∈ I.
Proof. Suppose W (φ1 , φ2 )(x) 6= 0, ∀ x ∈ I. Now, we have to prove that the solutions
φ1 and φ2 are linearly independent. Let c1 and c2 be two constants such that
c1 φ1 + c2 φ2 = 0, ∀ x ∈ I. (15)
Then, also
c1 φ01 (x) + c2 φ02 (x) = 0, ∀ x ∈ I. (16)
For a fixed x, equations (15) and (16) are linear homogeneous equations satisfied by
c1 and c2 . The determinant of the coefficients is just W (φ1 , φ2 )(x) which is not zero.
Hence, by Cramer’s rule, we see that c1 = 0, c2 = 0. So we conclude that solutions φ1
and φ2 are linearly independent.
These equations have solution c1 and c2 , where atleast one of these numbers is not zero.
Let c1 and c2 be such solution and consider the function
ϕ = c1 φ1 + c2 φ2 . (18)
Now, L(ϕ) = 0 and from equation (17), we see that ϕ(x0 ) = 0, ϕ0 (x0 ) = 0. Hence,
kϕ(x0 )k = 0 We know the inequality
c1 φ1 (x) + c2 φ2 (x) = 0, ∀x ∈ I.
But this is a contradiction to the fact that φ1 and φ2 are linearly independent on I.
Thus, the supposition that there was a point x0 in I such that W (φ1 , φ2 )(x0 ) = 0 is
wrong Hence, W (φ1 , φ2 )(x) 6= 0.
10
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
c1 φ1 (x) + c2 φ2 (x) = 0, ∀x ∈ I.
c1 φ1 (x0 ) + c2 φ2 (x0 ) = 0
c1 φ01 (x0 ) + c2 φ02 (x0 ) = 0
and the determinant of coefficients is W (φ1 , φ2 )(x0 ) 6= 0. from Cramer’s rule, we obtain
c1 = 0 and c2 = 0. Hence, the solutions φ1 and φ2 are linearly independent on I.
Example 7. Show that the following functions are linearly independent.
φ1 = x, φ2 = |x|
Proof. Choose any two constants c1 and c2 such that c1 x + c2 x = 0 for all x in I. By
definition of |x|, we have
c1 x + c2 x = 0 if x > 0
and c1 x − c2 x = 0 if x < 0
Solving these two equations, we get c1 = 0 and c2 = 0. Therefore, φ1 and φ2 are linearly
independent.
4.1 A Formula for Wronskian
Theorem 7. If φ1 and φ2 are any two solutions of L(y) = 0 on an interval I containing
a point x0 , then
W (φ1 , φ2 )(x) = e−a1 (x−x0 ) W (φ1 , φ2 )(x0 ).
Proof. Given φ1 and φ2 are solutions of L(y) = 0, therefore,
11
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
Hence
c = ea1 x0 W (φ1 , φ2 )(x0 ).
By using this expression of c, we have
or
W (φ1 , φ2 )(x) = e−a1 (x−x0 ) W (φ1 , φ2 )(x0 )
which is the required solution.
L(y) = y 00 + a1 y 0 + a2 y = b(x)
where a1 and a2 are constants and b(x) is a continuous function defined on an interval I.
12
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
Let ϕp be the particular solution of L(y) = b(x) and φ be any other solution of
L(y) = b(x). Then, L(φ) = b(x) and L(ϕp ) = b(x).
Therefore
L(φ − ϕp ) = L(φ) − L(ϕp ) = b(x) − b(x) = 0
on I. This shows that (φ − ϕp ) is a solution of homogeneous differential equation
L(y) = 0. So the solution (φ − ϕp ) must be in the form c1 φ1 + c2 φ2 = 0, where φ1 and
φ2 are linearly independent solutions of L(y) = 0. In other words, every solution φ of
L(y) = b(x) can be written in form
φ = ϕp + c1 φ1 + c2 φ2 .
Thus to find all the solution of L(y) = b(x) it is enough to find a particular solution ϕp
and two linearly independent solutions φ1 and φ2 .
5.1 Method of Undetermined Coefficients
Method of Undetermined Coefficients is mainly used to find the solution of the equation
of the form
L(y) = y 00 + a1 y 0 + a2 y = b(x)
where b(x) contains a polynomial or trigonometric functions such as sin px, cos px,
tan px or exponential function epx . Here p is a constant or combinations of sums and
products of these.
Example 8. Solve the nonhomogeneous equation
4y 00 − y = ex (i)
Proof. Here the corresponding homogenous equation is 4y 00 − y = 0. The characteristic
polynomial is given by
4r2 − 1 = 0.
Hence r1 = − 21 and r2 = 1
2
are the solutions. Therefore, the solution of the homogeneous
equation is given by
1 1
ψ(x) = c1 e− 2 x + c2 e 2 x .
To find the particular solution, consider a function y = aex as a solution, where a is an
undetermined coefficient.
Substituting this equation in (i) we get,
4aex − aex = ex
3aex = ex
1
This implies a =
3
Thus the particular solution is ψp = 13 ex . Hence the general solution is given by
1 1 1
φ(x) = c1 e− 2 x + c2 e 2 x + ex .
3
13
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
y = a sin 3x + b cos 3x
y 0 = 3a cos 3x − 3b sin 3x
y 00 = −9a sin 3x − 9b cos 3x.
Substituting these in equation (ii) we get,
(−9a sin 3x − 9b cos 3x) + 4(3a cos 3x − 3b sin 3x) + 4(a sin 3x + b cos 3x) = 6 sin 3x
(−5a − 12b) sin 3x + (12a − 5b) cos 3x = 6 sin 3x
Equating the coefficients of sin 3x and cos 3x on both sides, we get −5a − 12b = 6 and
5
12a − 5b = 0. Solving these two equations we have a = 12 b.
−25b − 144b
=6
12
−25b − 144b = 72.
72 30
Hence b = − 169 and a = − 169 .
Therefore the particular solution is
30 72
ψp = − sin 3x − cos 3x.
169 169
The general solution is given by
30 72
φ = (c1 + c2 x)e−2x − sin 3x − cos 3x.
169 169
y 00 + 4y = cos x. (iii)
14
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
y = a sin x + b cos x
y 0 = a cos x − b sin x
y 00 = −a sin x − b cos x.
Substituting these in equation (iii) we get,
Equating the coefficients of sin x and cos x on both sides, we get 3a = 0 and 3b = 1.
Solving these two equations we have a = 0 and b = 31
Therefore the particular solution is
1
ψp = cos x.
3
The general solution is given by
1
φ = c1 cos 2x + c2 sin 2x + cos x.
3
15
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
y = a sin 3x + b cos 3x
y 0 = 3a cos 3x − 3b sin 3x
y 00 = −9a sin 3x − 9b cos 3x.
Substituting these in equation (iv) we get,
which is impossible. Hence consider another function y = x(a sin 3x + b cos 3x) as a
solution where a and b are the undetermined coefficients.
x(−9a sin 3x − 9b cos 3x) + 2(3a cos 3x − 3b sin 3x) + 9x(a sin 3x + b cos 3x) = sin 3x
y 00 + 4y 0 + 9y = x2 + 3x. (v)
16
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
y = ax2 + bx + c
y 0 = 2ax + b
y 00 = 2a
Substituting these in equation (v) we get,
9a = 1, 8a + 9b = 3 and 2a + 4b + 9c = 0.
On solving we get a = 91 , b = 19
81
94
and c = − 729 .
Therefore the particular solution is
1 19 94
ψp = x2 + x −
9 81 729
The general solution is given by
√ √ 1 19 94
φ = e−2x (c1 cos 5x + c2 sin 5x) + x2 + x −
9 81 729
y = a sin 2x + b cos 2x + cx + d + f ex
y 0 = 2a cos 2x − 2b sin 2x + c + f ex
17
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
18
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
Thus the particular solution is ψp = −4xe−2x . Hence the general solution is given by
x(−4a sin 2x − 4b cos 2x) + 2(2a cos 2x − 2b sin 2x) + 2c + 4(x(a sin 2x + b cos 2x)
+ cx2 + dx + f ) = 6 sin 2x + 3x2
(4a cos 2x − 4b sin 2x) + 4cx2 + 4dx + 4f + 2c = 6 sin 2x + 3x2
Equating the coefficients of sin 2x, cos 2x, x2 , x and constant terms, on both sides, we
get
4a = 0, −4b = 6, 4c = 3, 4d = 0, and 4f + 2c = 0.
19
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
y = ax3 ex
y0 = ax3 ex + 3ax2 ex
y 00 = ax3 ex + 6ax2 ex + 6axex
y 000 = ax3 ex + 9ax2 ex + 18axex + 6aex
Substituting these in equation (ix) we get,
ax3 ex + 9ax2 ex + 18axex + 6aex − 3(ax3 ex + 6ax2 ex + 6axex )
+ 3(ax3 ex + 3ax2 ex ) − ax3 ex = 2ex
6aex = 2ex
1
a=
3
Thus the particular solution is ψp = 31 x3 ex . Hence the general solution is given by
1
φ(x) = (c1 + c2 x + c3 x2 )ex + x3 ex .
3
20
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
General Rule
The general rule to solve a linear equation with constant coefficients are
1. Write the complementary solution ψ.
2. Assume the particular solution corresponding to the terms on the right hand side
of the equation.
3. If any of the assumed terms in 2(a), (b) or (c) occur in the complementary solution,
we must multiply these assumed terms by a power of x which is sufficiently high
so that none of these assumed terms will occur in the complementary solution.
4. Write the assumed form for the particular solution and evaluate the coefficients,
thus, obtaining, ψp .
y 00 + y 0 + y = x3 ex . (x)
21
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
ax3 ex + (6a + b)x2 ex + (6a + 4b + c)xex + (2b + 2c + d)ex + ax3 ex + (3a + b)x2 ex + (2b + c)xex
+ (c + d)ex + ax3 ex + bx2 ex + cxex + dex = x3 ex
3ax3 ex + (9a + 3b)x2 ex + (6a + 6b + 3c)xex + (2b + 3c + 3d)ex = x3 ex
3a = 1, 9a + 3b = 0, 6a + 6b + 3c = 0 and 2b + 3c + 3d = 0.
y 00 + y = x2 cos 5x (xi)
22
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
23
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
L(ϕp ) = (u001 φ1 + u002 φ2 ) + 2(u01 φ01 + u02 φ02 ) + a1 (u01 φ1 + u02 φ2 ) = b. (20)
Now suppose
(u01 φ1 + u02 φ2 ) = 0 (21)
Differentiating (21) with respect to x implies
y 00 − y 0 − 2y = e−x .
24
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
25
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
and Z Z Z
φ1 b cos x tan x
u2 = dt = dx = sin xdx = − cos x.
W (φ1 , φ2 )(x) 1
Therefore
ϕp = u1 φ1 +u2 φ2 = (sin x−ln(sec x+tan x)) cos x−cos x sin x = − ln(sec x+tan x) cos x.
26
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
R
dy P (x)dx
[Linear differential
R equation is dx + P (x)y = Q(x). IF = e and Solution is
IF × y = IF × Q(x)dx.]
So by equation (25), we mean that
Z
1
b(x) = epx
e−px b(x)dx.
D−p
If the operator is of the form
Then Z
1 1
y= b(x) = (eqx e−qx b(x)dx).
(D − p)(D − q) D−p
Therefore, Z Z
−px
y=e px
e qx
(e e−qx b(x)dx)dx
or
A1 A2
y= b(x) + b(x)(by partial fraction)
(D − p) (D − q)
That is, Z Z
−px
y = A1 (e px
e b(x)dx) + A2 (e qx
e−qx b(x)dx)
y 00 − y = e−x .
27
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
Thus we get
1 = A(D + 1) + B(D − 1)
1
Putting D = 1 and D = −1 we respectively get A = 2
and B = − 12 . Thus we have
1 1 1 1 1
y= e−x = e−x − e−x .
(D − 1)(D + 1) 2 (D − 1) 2 (D + 1)
Hence Z Z
1 x 1 −x
y = (e ) e e dx − (e ) ex e−x dx
−x −x
2 2
1 1 1 1
y = − (ex e−2x ) − (e−x x) = − e−x − xe−x
4 2 4 2
Therefore, the complete solution is given by
1 1
φ = (c1 ex + c2 e−x ) − e−x − xe−x .
4 2
y 00 + 4y 0 + 4y = x3 e−2x .
1
y= x3 e−2x
(D + 2)(D + 2)
Z
1 1 3 −2x 1 −2x 2x 3 −2x
= xe = e e x e dx
(D + 2) (D + 2) (D + 2)
4
x4
Z
1 −2x x −2x
= e =e e2x e−2x dx
(D + 2) 4 4
5
x
= e−2x
20
28
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
x5 −2x
φ = (c1 + c2 x)e−2x + e .
20
y 00 − y 0 + y = x3 − 3x2 + 1.
This operator is not possible to write in simple factors and hence we write in the form
1
y= x3 − 3x2 + 1
(1 − D + D2 )
= (1 − (D − D2 ))−1 (x3 − 3x2 + 1)
= (1 + (D − D2 ) + (D − D2 )2 + (D − D2 )3 + (D − D2 )4 + · · · )(x3 − 3x2 + 1)
= (1 + (D − D2 ) + (D2 − 2D3 + D4 ) + (D3 − 3D4 + 3D5 − D6 )
+ (D4 − 4D5 + 6D6 − 4D7 + D8 ) + · · · )(x3 − 3x2 + 1)
= (1 + D − D3 − D4 + · · · )(x3 − 3x2 + 1)
= x3 − 3x2 + 1 + 3x2 − 6x − 6 = (x3 − 6x − 5)
29
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
y (4) − k 4 y = 0.
y (4) + k 4 y = 0.
30
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
y (4) = 0.
φ(x) = c1 + c2 x + c3 x2 + c4 x3 .
φ1 φ2 ... φn
φ01 φ02 ... φ0n
W (φ1 , φ2 , . . . , φn ) = .. .. ..
. . ··· .
(n−1) (n−1) (n−1)
φ1 φ2 . . . φn
31
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
Let ϕp be any particular solution of L(y) = b(x) and ϕ be any other solution of L(y) =
b(x), so we have,
L(ϕ − ϕp ) = L(ϕ) − L(ϕp ) = b − b = 0.
Hence (ϕ − ϕp ) forms a solution to the homogeneous equation L(y) = 0. So the solution
of L(y) = 0 is in the form
ϕ − ϕp = c1 φ1 + c2 φ2 + · · · + cn φn
or
ϕ = ϕp + c1 φ1 + c2 φ2 + · · · + cn φn
where ϕp is a particular solution and φ1 , φ2 , . . . , φn are assumed to be linearly indepen-
dent solutions of L(y) = 0.
Now our aim is to find a particular solution ϕp of L(y) = b(x). To find the particular
solution we use the method of variation of parameters. Let
ϕp = u1 φ1 + u2 φ2 + · · · + un φn (28)
Let
u01 φ1 + u02 φ2 + · · · + u0n φn = 0 (29)
Again differentiating ϕ0p , we get
ϕ00p = u1 φ001 + u01 φ01 + u2 φ002 + u02 φ02 + · · · + un φ00n + u0n φ0n
ϕ00p = (u1 φ001 + u2 φ002 + · · · + un φ00n ) + (u01 φ01 + u02 φ02 + · · · + u0n φ0n ).
Again set
u01 φ01 + u02 φ02 + · · · + u0n φ0n = 0 (30)
The third derivative of ϕp gives
Further, let
u01 φ001 + u02 φ002 + · · · + u0n φ00n = 0 (31)
In general,
(n) (n) 0 (n−1) (n−1)
ϕ(n) (n)
p = (u1 φ1 + u2 φ2 + · · · + un φn ) + (u1 φ1 + u02 φ2 + · · · + u0n φ(n−1)
n ).
32
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
33
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
0 cos x sin x
W1 (x) = 0 − sin x cos x
1 − cos x − sin x
= 1(cos2 x + sin2 x) = 1.
e−x 0 sin x
W2 (x) = −e−x 0 cos x
e−x 1 − sin x
= −1(e−x cos x + e−x sin x) = −e−x (cos x + sin x).
e−x cos x 0
−x
W3 (x) = −e − sin x 0
e−x − cos x 1
= 1(−e−x sin x + e−x cos x) = e−x (cos x − sin x).
Therefore,
Z Z
1 1 x 1 x
u1 = dx = e dx = e
2e−x 2 2
−e−x (cos x + sin x)
Z Z
1
u2 = dx = − (cos x + sin x)dx
2e−x 2
1
= (cos x − sin x)
Z2 −x
e (cos x − sin x)
Z
1
u3 = dx = (cos x − sin x)dx
2e−x 2
1
= (cos x + sin x)
2
ϕp = u1 φ1 + u2 φ2 + u3 φ3
Therefore,
1 1 1
ϕp = ex e−x + (cos x − sin x) cos x + (cos x + sin x) sin x
2 2 2
1
= (1 + cos x − sin x cos x + cos x sin x + sin2 x) = 1
2
2
Hence the complete solution is
34
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
c1 + c2 = 0
−c1 + c3 = 1
c1 − c2 = 0
one can get c1 = c2 = 0, c3 = 1. Hence the complete solution is φ(x) = ψ(x) + ϕp (x) =
sin x + 1.
We have to reduce the order of equation (34) if one of the solutions of this equation is
given.
Let φ1 be given and let φ2 = uφ1 , where u is a function which is to be found out.
Then
φ2 = uφ1
φ02 = uφ01 + u0 φ1
φ002 = uφ001 + 2u0 φ01 + u00 φ1
Consider
L(φ2 ) = L(uφ1 )
= (u00 φ1 + 2u0 φ01 + uφ001 ) + a1 (x)(u0 φ1 + uφ01 ) + a2 (x)(uφ1 ) = 0
= (uφ001 + a1 (x)uφ01 + a2 (x)uφ1 + u00 φ1 + 2u0 φ01 + a1 (x)u0 φ1 = 0
= uL(φ1 ) + u00 φ1 + 2u0 φ01 + a1 (x)u0 φ1 = 0.
35
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
v 0 φ1 + 2vφ01 + a1 (x)vφ1 = 0.
It can be written as
(vφ21 )0 = −a1 (x)vφ21 .
That is
(vφ21 )0
= −a1 (x).
vφ21
For a fixed x0 , integrate the above equation from x0 to x to get
Z x
2
ln(vφ1 ) = − a1 (t)dt.
x0
That is Rx
− a1 (t)dt
vφ21 = e x0
.
Hence,
1 − Rxx a1 (t)dt
v= e 0 .
φ21
But we know that v = u0 . Therefore,
1 − Rxx a1 (t)dt
u0 = e 0 .
φ21
So, for some fixed x0 , integrating the above equation from x0 to x, we get
Z x
1 − Rxx a1 (t)dt
u= 2
e 0 dt.
x0 φ1
Example 28. Find the solution of L(y) = x2 y 00 − 7xy 0 − 15y = 0 where one of the
solution is given as φ1 = x3 , (x < 0).
Proof.
L(y) = x2 y 00 − 7xy 0 − 15y = 0
36
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
L(y) = y 00 − x7 y 0 − x152 y = 0.
Here a1 = − x7 and φ1 = x3 . We know that
Z
1 − R a1 (x)dx
u= e dx
φ2
Z 1 R
1 7 dx
= e x dx
x6
Z
1 7 ln(x)
= e dx
x6
Z 7
x2
Z
x
= dx = xdx =
x6 2
2 5
Therefore, φ2 = uφ1 = x2 x3 = x2 .
5
Hence the solution is φ = c1 φ1 + c2 φ2 = c1 x3 + c2 x2 .
Theorem 8 (Formula for Wronskian). Let φ1 and φ2 be two linearly independent solu-
tions of
L(y) = y 00 + a1 (x)y 0 + a2 (x)y = 0
on an interval I containing a point x0 , then
Rx
− a1 (t)dt
W (φ1 , φ2 )(x) = W (φ1 , φ2 )(x0 )e x0
, ∀x∈I
φ1 (x) φ2 (x)
W (φ1 , φ2 )(x) =
φ01 (x) φ02 (x)
= φ1 (x)φ02 (x) − φ2 (x)φ01 (x).
and
W 0 = φ1 (x)φ002 (x) + φ01 (x)φ02 (x) − φ2 (x)φ001 (x) − φ02 (x)φ01 (x)
= φ1 (x)φ002 (x) − φ2 (x)φ001 (x) (36)
Hence,
37
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
The above equation is a first order linear differential equation with variable coefficient,
so that the solution is in the form
Rx
− a1 (t)dt
W (φ1 , φ2 )(x) = ce x0
.
W (φ1 , φ2 )(x0 ) = c.
Therefore, Rx
− a1 (t)dt
W (φ1 , φ2 )(x) = W (φ1 , φ2 )(x0 )e x0
.
on an interval I containing a point x0 , where a1 (x), a2 (x), . . . , an (x) are certain contin-
uous function defined on I, then
Rx
− a1 (t)dt
W (φ1 , φ2 , φ3 , . . . , φn )(x) = W (φ1 , φ2 , φ3 , . . . , φn )(x0 )e x0
, ∀ x ∈ I.
φ1 φ2 ... φn
φ01 φ02 ... φ0n
W (φ1 , φ2 , . . . , φn ) = .. .. ..
. . ··· .
(n−1) (n−1) (n−1)
φ1 φ2 . . . φn
38
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
each Wi is different from W in its ith row and is just the derivative of ith row of W . So
W 0 = W1 + W2 + . . . + Wn
φ01 φ02 ... φ0n φ1 φ2 ... φn
φ01 φ02 ... φ0n φ001 φ002 ... φ00n
= φ001 φ002 ... φ00n + φ001 φ002 ... φ00n
.. .. .. .. .. ..
. . ··· . . . ··· .
(n−1) (n−1) (n−1) (n−1) (n−1) (n−1)
φ1 φ2 . . . φn φ1 φ2 . . . φn
φ1 φ2 ... φn
φ01 φ02 ... φ0n
00
+ · · · + φ1 φ002 ... φ00n .
.. .. ..
. . ··· .
(n) (n) (n)
φ1 φ2 . . . φn
Since the value of the determinant containing two identical rows or columns is zero,
hence, the above equation becomes
φ1 φ2 ... φn
φ01 φ02 ... φ0n
00
W 0 = φ1 φ002 ... φ00n . (37)
.. .. ..
. . ··· .
(n) (n) (n)
φ1 φ2 . . . φn
Hence
n−1
X
(n) (n−1) (n−2) (j)
φ1 = −a1 (x)φ1 − a2 (x)φ1 − · · · − an (x)φ1 = − an−j φ1
j=0
n−1
X
(n) (n−1) (n−2) (j)
φ2 = −a1 (x)φ2 − a2 (x)φ2 − · · · − an (x)φ2 = − an−j φ2
j=0
.. ..
. .
n−1
X
φ(n)
n = −a1 (x)φ(n−1)
n − a2 (x)φ(n−2)
n − · · · − an (x)φn = − an−j φ(j)
n
j=0
39
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
Since the value of the determinant is unchanged when we add any row with a constant
multiple of any other row. So, multiplying the first row of the above determinant by
an , second row by an−1 , third row by an−2 , . . ., (n − 1)th row by a2 and add all these
rows to the last row, then we get
φ1 φ2 ... φn
φ01 φ02 ... φ0n
W0 = φ001 φ002 ... φ00n
.. .. ..
. . ··· .
(n−1) (n−1) (n−1)
−a1 φ1 −a1 φ2 . . . −a1 φn
= −a1 W.
Therefore W 0 + a1 W = 0. The above equation is a first order linear differential equation
with variable coefficient, so that the solution is in the form
Rx
− a1 (t)dt
W (φ1 , φ2 , . . . , φn )(x) = ce x0
.
Putting x = x0 in the above equation we get,
W (φ1 , φ2 , . . . , φn )(x0 ) = c.
Therefore, Rx
− a1 (t)dt
W (φ1 , φ2 , . . . , φn )(x) = W (φ1 , φ2 , . . . , φn )(x0 )e x0
.
Theorem 10. Let φ be any solution of L(y) = y 00 + a1 (x)y 0 + a2 (x)y = 0, where a1 and
a2 are certain functions defined on some interval I. Then φf forms another solution
for L(y) = 0 whenever f 0 satisfies (vφ2 )0 + a1 (x)(vφ2 ) = 0, (v = f 0 ) and then prove that
φ and φf are linearly independent.
Proof. Given
L(y) = y 00 + a1 (x)y 0 + a2 (x)y = 0 (38)
and φ forms one solution for equation (38). Now, we have to prove φf forms another
solution of equation (38). To prove this, consider
L(φf ) = (φf )00 + a1 (x)(φf )0 + a2 (x)φf = 0
φf 00 + 2φ0 f 0 + φ00 f + a1 (x)(φf 0 + φ0 f ) + a2 (x)φf = 0
φ00 f + a1 (x)φ0 f + a2 (x)φf + φf 00 + 2φ0 f 0 + +a1 (x)φf 0 = 0.
40
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
Hence
φf 00 + 2φ0 f 0 + a1 (x)φf 0 = 0.
Now, let f 0 = v, to get
φv 0 + 2φ0 v + a1 (x)φv = 0.
Multiplying throughout the equation by φ to have
φ2 v 0 + 2φ0 φv + a1 (x)φ2 v = 0.
From this we conclude that the solutions φ and φf are linearly independent.
Example 29. If one solution of L(y) = x2 y 00 − 2y = 0, (x > 0) is φ1 = x2 , then find
all the solutions of
x2 y 00 − 2y = 2x − 1.
Proof. Consider the given equation
L(y) = x2 y 00 − 2y = 0.
That is
2
L(y) = y 00 − y = 0.
x2
Here a1 (x) = 0. Therefore,
Z
1 − R a1 (x)dx
φ2 (x) = φ1 (x) e dx
φ21
Z
2 1 1 1
=x 4
dx = −x2 3 = − .
x 3x 3x
41
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
42
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
43
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
4a = 1
1
a=
4
Therefore the particular solution is
1
ψp =
4
The general solution is given by
1
y(t) = c1 cos 2t + c2 sin 2t + .
4
Since x = et or t = ln x, therefore, the required solution becomes,
1
y(x) = c1 cos(2 ln x) + c2 sin(2 ln x) + .
4
44
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
or
d2 y dy
− 3 + 2y = 0 (b)
dt2 dt
The characteristic polynomial is given by r2 − 3r + 2 = 0.
Hence r1 = 2 and r2 = 1 are the roots.
Therefore, the general solution is given by
y(t) = c1 e2t + c2 et .
y(x) = c1 x2 + c2 x.
L(y) = xy 00 − (x + 1)y 0 + y = 0.
xy 00 − xy 0 − y 0 + y = 0
x(y 00 − y 0 ) = (y 0 − y).
ln u = ln x + ln c1
That is,
u = c1 x.
Since u = y 0 − y, we have
y 0 − y = c1 x.
Multiplying both sides of the equation by e−x , we get
45
Lecture Notes on Differential Equations (MAT-CC-513/MATF-CC-513) Dr Dilip Kumar
On integration, we get
Z
−x −x
e y = −c1 xe + c1 e−x dx + c2
46