1) Unit-3 ODE Part-1
1) Unit-3 ODE Part-1
21MAB101T - UNIT-3
Ordinary Differential Equation
Dr. M. Suresh,
Assistant Professor, Department of Mathematics,
SRM Institute of Science and Technology,
Kattankulathur - 603203.
General Form
The general form of the nth order linear differential equation with
constant coefficients is
d ny d n −1 y d n −2 y dy
a0 n
+ a1 n − 1
+ a2 n − 2
+ · · · + an−1 + an y = R (x ) (1)
dx dx dx dx
d ny d n −1 y d n −2 y dy
a0 + a 1 + a 2 + · · · + an−1 + an y = 0 (2)
dx n dx n−1 dx n−2 dx
General Solution
The general solution of (1) is
y =Complementary Function + Particular Integral
y = C.F + P.I
Note
The general solution of an ordinary linear differential equation is
also known as complete solution.
Notation
d
D=
dx
d2
D2 = 2
dx
d3
D3 = 3
dx
d4
D4 = 4
dx
Step: 1
Replace D = m in (5), we get
Step: 2
Solve (6), we get the roots,
Let the roots are m1 , m2 , m3 , · · · , mn .
Step: 3 Case(i-a)
Let us consider two roots m1 and m2 are real and not equal, then
the complementaty function is
C .F = Ae m1 x + Be m2 x
Case(i-b)
Let us consider three roots m1 , m2 and m3 are real and not equal,
then the complementaty function is
C .F = Ae m1 x + Be m2 x + Ce m3 x
Case(ii-a)
Let us consider two roots m1 and m2 are real and equal [m1 = m2 ],
then the complementaty function is
C .F = (A + Bx )e mx
Case(ii-b)
Let us consider three roots m1 , m2 and m3 are real and equal
[m1 = m2 = m3 = m], then the complementaty function is
C .F = (A + Bx + Cx 2 )e mx
Case(ii-c)
Let us consider three roots m1 , m2 and m3 . Here all the roots are
real, two are equal and third is unequal[m1 = m2 = m 6= m3 ], then
the complementaty function is
C .F = (A + Bx )e mx + Ce m3 x
Case(ii-d)
Let us consider four roots m1 , m2 , m3 and m4 . Here all the roots
are real, two are equal and another two are unequal
[m1 = m2 = m 6= m3 6= m4 ], then the complementaty function is
C .F = (A + Bx )e mx + Ce m3 x + De m4 x
Case(ii-e)
Let us consider four roots m1 , m2 , m3 and m4 . Here all the roots
are real, m1 = m2 = ma 6= m3 = m4 = mb , then the
complementaty function is
C .F = (A + Bx )e ma x + (C + Dx )e mb x
Case(iii-a)
If the roots are complex,say α ± i β, [m1 = α + i β, m2 = α − i β].
Then the complementaty function is
C .F = e αx (A cos βx + B sin βx )
Case(iii-b)
If the roots are complex,say α1 ± i β 1 , [m1 = α1 + i β 1 ,
m2 = α1 − i β 1 ] and α2 ± i β 2 , [m3 = α2 + i β 2 , m4 = α2 − i β 2 ].
Then the complementaty function is
D 2 y − 4Dy + 3y =0
(D 2 − 4D + 3)y = 0
m2 − 4m + 3 = 0
m2 − 3m − m + 3 = 0
m (m − 3) − (m − 3) = 0
(m − 3)(m − 1) = 0
⇒ m1 = 3 & m2 = 1
C .F = Ae m1 x + Be m2 x
C .F = Ae 3x + Be x
⇒ y = C .F = Ae 3x + Be x
Dr. M. SURESH - 21MAB101T- 2024-2025 ODD ODE 13/43
Linear Differential Equation with Constant Co-efficient
Example:2
Solve (D 2 − 2D + 2)y = 0.
m2 − 2m + 2 = 0
Here, a = 1, b = −2, c = 2
p
−b ± (b2 − 4ac )
m =
2ap
−(−2) ± ((−2)2 − 4(1)(2))
=
2(1)
p
2 ± (4 − 8)
=
2
Dr. M. SURESH - 21MAB101T- 2024-2025 ODD ODE 14/43
Linear Differential Equation with Constant Co-efficient
√
2± −4
m =
2√
2±i 4 √
= i= −1
2
2 ± i2
=
2
2(1 ± i )
=
2
m = (1 ± i )
∴ α = 1&β=1
C .F = e αx (A cos βx + B sin βx )
C .F = e x (A cos x + B sin x )
⇒ y = C .F = e x (A cos x + B sin x )
Example:3
Solve (4D 2 − 4D + 1)y = 0.
4m2 − 4m + 1 =0
4m2 − 2m − 2m + 1 =0
2m (2m − 1) − (2m − 1) =0
(2m − 1)(2m − 1) = 0
1 1
⇒ m1 = & m2 =
2 2
C .F = (A + Bx )e mx
1
C .F = (A + Bx )e 2 x
x
⇒ y = C .F = (A + Bx )e 2
Type:2 R(x)=e ax
Procedure to find particular Integral
1 ax
P.I = e
f (D )
Replace D = a, we get
1 ax
P.I = e , if f (a) 6= 0
f (a )
Suppose, f (a) = 0, then multiple 0 x 0 in the numerator and
differentiating the denominator alone W.R.T 0 D 0 , we get
x
P.I = e ax
f 0 (D )
Replace D = a, we get
Example:1
Solve (D 2 + 6D + 5)y = e 2x .
m2 + 6m + 5 =0
m2 + 5m + m + 1 =0
m (m + 5) + (m + 1) =0
(m + 5)(m + 1) =0
⇒ m1 = − 5 & m2 = − 1
C .F = Ae m1 x + Be m2 x
C .F = Ae −5x + Be −x
1
P.I = e 2x
4 + 12 + 5
1 2x
P.I = e [f (a) 6= 0]
21
The general solution is
Example:2
Solve (D 2 + 4D + 5)y = 2 cos hx.
Solution : Given
e x + e −x
(D 2 + 4D + 5)y = 2 cos hx = 2 = e x + e −x
2
The auxiliary equation is
m2 + 4m + 5 = 0
Here, a = 1, b = 4, c = 5
p
−b ± (b2 − 4ac )
m =
2a
p
−(4) ± (4)2 − 4(1)(5)
=
2(1)
p
−4 ± (16 − 20)
m =
√2
−4 ± −4
=
2√
−4 ± i 4 √
= i = −1
2
−4 ± i2
=
2
2(−2 ± i )
=
2
m = (−2 ± i )
∴ α = −2 & β = 1
C .F = e αx (A cos βx + B sin βx )
Example:1
Solve (D 2 − 4D + 3)y = sin 3x cos 2x.
Solution : Given
1 1 1
(D 2 − 4D + 3)y = [sin 5x + sin x ] = sin 5x + sin x
2 2 2
To find the complementary function,
solve (D 2 − 4D + 3)y = 0
Auxiliary equation is
m2 − 4m + 3 = 0
⇒ (m − 1)(m − 3) = 0
⇒ m = 1 or 3
Dr. M. SURESH - 21MAB101T- 2024-2025 ODD ODE 30/43
Linear Differential Equation with Constant Co-efficient
∴ C.F. = Ae x + Be 3x
1 1 1
P.I = sin 5x + sin x
(D 2 − 4D + 3) 2 2
1 1 1 1
P.I = 2
sin 5x + 2
sin x
2 (D − 4D + 3) 2 (D − 4D + 3)
P.I = P.I1 + P.I2
1
P.I1 = − sin 5x
4(2D + 11)
1 2D − 11
= − sin 5x
4(2D + 11) 2D − 11
2D − 11
= − sin 5x
4(4D 2 − 121)
2D (sin 5x ) − 11 sin 5x
= −
4(4(−52 ) − 121)
(2 cos 5x · 5 − 11 sin 5x )
= −
4[−100 − 121]
(10 cos 5x − 11 sin 5x )
=
4[221]
10 cos 5x − 11 sin 5x
P.I1 =
884
Dr. M. SURESH - 21MAB101T- 2024-2025 ODD ODE 32/43
Linear Differential Equation with Constant Co-efficient
1 1
P.I .2 = 2
sin x
2 (D − 4D + 3)
1 1
= · 2
sin x
2 (−1 − 4D + 3)
1 1
= · sin x
2 (2 − 4D )
1 1
= · sin x
4 (1 − 2D )
1 1 (1 + 2D )
= · sin x
4 (1 − 2D ) (1 + 2D )
1 + 2D
= sin x
4(1 − 4D 2 )
(1 + 2D ) sin x
=
4[1 − 4(−1)2 ]
sin x + 2D (sin x )
P.I2 =
4[1 − 4(−1)2 ]
(sin x + 2 cos x )
=
4(1 + 4)
sin x + 2 cos x
P.I2 =
20
P.I . = P.I1 + P.I2
10 cos 5x − 11 sin 5x sin x + 2 cos x
P.I = +
884 20
Example:2
Solve (D 2 + 1)y = sin2 x.
m2 + 1 = 0
m 2 = −1
m = ±i
1 1 1 cos 2x
P.I1 = · P.I.2 = ·
D2 +1 2 D2 +1 2
1 1 1 cos 2x
= · 2 e 0x = ·
2 D +1 2 (−22 + 1)
1 1 1 cos 2x
P.I1 = · = P.I.2 = −
2 (0 + 1) 2 6
1 cos 2x
∴ P.I. = −
2 6
1 cos 2x
P.I. = −
2 6
Dr. M. SURESH - 21MAB101T- 2024-2025 ODD ODE 36/43
Linear Differential Equation with Constant Co-efficient
1 cos 2x
y = A cos x + B sin x + −
2 6
Example:3
Solve (D 2 − 3D + 2)y = 2 cos(2x + 3) + 2e x .
solve:(D 2 − 3D + 2)y = 0
m2 − 3m + 2 = 0
(m − 2)(m − 1) = 0
⇒ m = 2, 1
Complementary Function:
The roots are real and unequal
∴ C.F. = Ae x + Be 2x
1
P.I = [2 cos(2x + 3) + 2e x ]
D2
− 3D + 2
1 1
= [2 cos(2x + 3)] + 2 [2e x ]
D 2 − 3D + 2 D − 3D + 2
P.I = P.I1 + P.I2
1
P.I1 = 2 cos(2x + 3)
D 2 − 3D + 2
2
= cos(2x + 3)
−(2)2 − 3D + 2
2
= cos(2x + 3)
−3D − 2
−2
= cos(2x + 3)
3D + 2
1 3D − 2
= −2 cos(2x + 3)
3D + 2 3D − 2
3D [cos(2x + 3)] − 2 cos(2x + 3)
= −2
(3D )2 − 22
−3 ∗ 2 sin(2x + 3) − 2 cos(2x + 3)
= −2
9D 2 − 4
3 sin(2x + 3) + cos(2x + 3)
P.I1 = 4
9(−22 ) − 4
Dr. M. SURESH - 21MAB101T- 2024-2025 ODD ODE 40/43
Linear Differential Equation with Constant Co-efficient
3 sin(2x + 3) + cos(2x + 3)
P.I1 = 4
9(−4) − 4
3 sin(2x + 3) + cos(2x + 3)
= 4
−40
1
∴ P.I1 = − [3 sin(2x + 3) + cos(2x + 3)]
10
1
P.I2 = 2e x
D 2 − 3D + 2
2
= 2
ex
(1) − 3(1) + 2
2
= ex
1−3+2
2 x
= e
0
2x
= ex
2D − 3
Dr. M. SURESH - 21MAB101T- 2024-2025 ODD ODE 41/43
Linear Differential Equation with Constant Co-efficient
2x
P.I2 = ex
2(1) − 3
2x x
= e
2−3
P.I2 = −2xe x
∴ P.I. = P.I.1 + P.I.2
1
= − [3 sin(2x + 3) + cos(2x + 3)] − 2xe x
10
y = C.F + P.I
1
y = A ex + Be 2x − 10 [3 sin(2x + 3) + cos(2x + 3)] − 2xe x
Practice Problems
1. (D 2 + 4D + 13)y = 0
2. (D 2 − 5D + 6)y = e 4x
4. (D 3 + 3D + 2)y = e −x + e −2x
5. (D 2 − 3D + 2)y = sin 5x
6. (D 2 + 4)y = cos2 x