Second Order Linear Differential Equation With Constant Coefficients
Second Order Linear Differential Equation With Constant Coefficients
We will study the second order differential equations with constant coefficients which
take the form
𝑑2𝑦 𝑑𝑦
𝑎0 2 + 𝑎1 + 𝑎2 𝑦 = 𝑓(𝑥) (1)
𝑑𝑥 𝑑𝑥
Where the coefficients 𝑎0 , 𝑎1 , 𝑎2 are constants and 𝑓(𝑥) is a given function.
If 𝑓(𝑥) = 0, equation (1) becomes
𝑑2𝑦 𝑑𝑦
𝑎0 2 + 𝑎1 + 𝑎2 𝑦 = 0 (2)
𝑑𝑥 𝑑𝑥
And it is called homogeneous differential equation.
If (𝑥) ≠ 0 , then equation (1) is called nonhomogeneous differential equation
𝑚𝑥
𝑑𝑦 𝑚𝑥
𝑑2𝑦
𝑦=𝑒 , =𝑚𝑒 , 2 = 𝑚2 𝑒 𝑚𝑥
𝑑𝑥 𝑑𝑥
Substitute in (2) , we get
𝑎0 𝑚2 𝑒 𝑚𝑥 + 𝑎1 𝑚 𝑒 𝑚𝑥 + 𝑎2 𝑒 𝑚𝑥 = 0
i.e.
𝑎0 𝑚2 + 𝑎1 𝑚 + 𝑎2 = 0 (3)
Which is a second degree algebraic equation called the characteristic equation of
(2) and it has two roots say 𝑚1 and 𝑚2 .
Example
Find the general solution of each of the following differential equations :
𝑖) 2𝑦 ′′ + 7𝑦 ′ − 15𝑦 = 0
ii) 𝑦 ′′ − 16𝑦 ′ + 64𝑦 = 0
iii) 𝑦 ′′ + 2𝑦 ′ + 5𝑦 = 0
𝑑𝑦 𝑑2𝑦
Where 𝑦 ′ = , 𝑦 ′′ =
𝑑𝑥 𝑑𝑥 2
Solution:
𝑖) 2𝑦 ′′ + 7𝑦 ′ − 15𝑦 = 0
Assume that its solution is 𝑦 = 𝑒 𝑚𝑥 , then its characteristic equation is
2𝑚2 + 7𝑚 − 15 = 0
By factorization, we see that
(2𝑚 − 3)(𝑚 + 5) = 0
3
Hence, the roots are 𝑚1 = , 𝑚2 = −5 (real, different)
2
-2-
𝑦 = 𝑒 8𝑥 (𝐴 + 𝐵𝑥) , 𝐴 𝑎𝑛𝑑 𝐵 𝑎𝑟𝑒 𝑐𝑜𝑛𝑠𝑡𝑎𝑛𝑡𝑠
iii) 𝑦 ′′ + 2𝑦 ′ + 5𝑦 = 0
Assume that its solution is 𝑦 = 𝑒 𝑚𝑥 , then its characteristic equation is
−2 ± √4 − 20
𝑚2 + 2𝑚 + 5 = 0 ⟹ 𝑚 = = −1 ± 2𝑖
2
𝑚1 , 𝑚2 are complex conjugate, then the general solution is
𝑦 = 𝑒 −𝑥 (𝐴𝑐𝑜𝑠2𝑥 + 𝐵𝑠𝑖𝑛2𝑥) , 𝑤ℎ𝑒𝑟𝑒 𝐴 𝑎𝑛𝑑 𝐵 𝑎𝑟𝑒 𝑐𝑜𝑛𝑠𝑡𝑎𝑛𝑡𝑠 .
Example
Find the general solution of the following differential equations:
𝑖) 𝑦 ′′ − 8𝑦 ′ + 16 = 5 ii) 𝑦 ′′ − 5𝑦 ′ + 6𝑦 = 𝑥 2 + 3𝑥 − 2
Solution:
𝑖) 𝑦 ′′ − 8𝑦 ′ + 16 = 5
The complementary solution 𝑦𝐶 :
It is the solution of 𝑦 ′′ − 8𝑦 ′ + 16 = 0 , the characteristic equation is
𝑚2 − 8𝑚 + 16 = 0 ⟹ (𝑚 − 4)2 = 0 ⟹ 𝑚1 = 𝑚2 = 4 (real, equal)
Hence,
𝑦𝐶 = 𝑒 4𝑥 (𝐴 + 𝐵𝑥) (∗)
The particular solution 𝑦𝑃 :
1 1 𝐷 −1
𝑦𝑃 = {5} = (1 − ) {5}
(𝐷 − 4)2 (−4)2 4
1 𝐷 5
=
16
(1 + 4 + ⋯ . . ) {5} = 16 (∗∗)
ii) 𝑦 ′′ − 5𝑦 ′ + 6𝑦 = 𝑥 2 + 3𝑥 − 2
The complementary solution 𝑦𝐶 :
It is the solution of 𝑦 ′′ − 5𝑦 ′ + 6𝑦 = 0 , the characteristic equation is
𝑚2 − 5𝑚 + 6 = 0 ⟹ (𝑚 − 2)(𝑚 − 3) = 0
𝑚1 = 2 , 𝑚2 = 3 (real, different)
Hence,
-4-
𝑦𝐶 = (𝐴𝑒 2𝑥 + 𝐵𝑒 3𝑥 ) (∗)
The particular solution 𝑦𝑃 :
1
𝑦𝑃 = {𝑥 2 + 3𝑥 − 2}
(𝐷 − 2)(𝐷 − 3)
1 𝐷 −1 𝐷 −1
= (1 − ) (1 − 3 ) {𝑥 2 + 3𝑥 − 2}
6 2
1 𝐷 𝐷2 𝐷 𝐷2
= (1 + + … . . ) (1 + + … . . ) {𝑥 2 + 3𝑥 − 2}
6 2 4 3 9
1 5𝐷 19𝐷2
= (1 + + + ⋯ … . ) {𝑥 2 + 3𝑥 − 2}
6 6 36
1 5 19
= (𝑥 2 + 3𝑥 − 2 + (2𝑥 + 3) + (2))
6 6 36
1 14 14
𝑦𝑃 = (𝑥 2 + 𝑥+ ) (∗∗)
6 3 9
Solution :
𝑖) 𝑦 ′′ − 𝑦 ′ − 6𝑦 = 𝑒 2𝑥
First , complementary solution 𝑦𝐶 : 𝑦 ′′ − 𝑦 ′ − 6𝑦 = 0 , 𝑚2 − 𝑚 − 6 = 0,
(𝑚 − 3)(𝑚 + 2) = 0
𝑚1 = 3, 𝑚2 = −2 (real , different)
-5-
Hence,
𝑦𝐶 = 𝐴𝑒 3𝑥 + 𝐵𝑒 −2𝑥 (∗)
Second , the particular solution 𝑦𝑃 :
1 2𝑥
𝑒 2𝑥 𝑒 2𝑥
𝑦𝑃 = {𝑒 } = =−
(𝐷 − 3)(𝐷 + 2) (2 − 3)(2 + 2) 4
Hence, the general solution is
3𝑥 −2𝑥
𝑒 2𝑥
𝑦𝐺.𝑆. = 𝑦𝐶 + 𝑦𝑃 = 𝐴𝑒 + 𝐵𝑒 −
4
ii) 𝑦 ′′ − 4𝑦 ′ + 3𝑦 = 𝑒 3𝑥
First, Complementary solution 𝑦𝐶 :
𝑦 ′′ − 4𝑦 ′ + 3𝑦 = 0 , 𝑚2 − 4𝑚 + 3 = 0 , (𝑚 − 1)(𝑚 − 3) = 0
𝑚1 = 1, 𝑚2 = 3 ( real different roots )
Hence,
𝑦𝐶 = 𝐴𝑒 𝑥 + 𝐵𝑒 3𝑥 (∗)
Second, the particular solution 𝑦𝑃 is :
1
𝑦𝑃 = {𝑒 3𝑥 }
(𝐷 − 1)(𝐷 − 3)
𝑒 3𝑥 𝑒 3𝑥 1
= = {1} , 𝑤ℎ𝑒𝑟𝑒 ≡∫
(3 − 1)(𝐷 + 3 − 3) 2𝐷 𝐷
1
𝑦𝑃 = 𝑥 𝑒 3𝑥
2
Hence, the general solution is
1
𝑦𝐺.𝑆. = 𝑦0 + 𝑦𝑃 = 𝐴𝑒 𝑥 + 𝐵𝑒 3𝑥 + 𝑥 𝑒 3𝑥
2
(iii) If 𝑓(𝑥) = cos(𝑘𝑥) 𝑂𝑅 sin(𝑘𝑥) , then the particular solution 𝑦𝑃 will be
determined by substituting 𝐷2 = −𝑘 2 , provided that 𝜑(−𝑘 2 ) ≠ 0
Example
Find the particular solution of the following differential equation :
𝑦 ′′ + 4𝑦 ′ + 3 = 𝑠𝑖𝑛2𝑥
-6-
Solution:
The particular solution 𝑦𝑃 is :
1
𝑦𝑃 = {𝑠𝑖𝑛2𝑥}
(𝐷2 + 4𝐷 + 3)
1
= {𝑠𝑖𝑛2𝑥}
(−4 + 4𝐷 + 3)
(4𝐷 + 1)
= {𝑠𝑖𝑛2𝑥}
(4𝐷 − 1)(4𝐷 + 1)
(4𝐷 + 1)
= {𝑠𝑖𝑛2𝑥}
(16𝐷2 − 1)
8𝑐𝑜𝑠2𝑥 + 𝑠𝑖𝑛2𝑥
=
−64 − 1
1
𝑦𝑃 = − (8𝑐𝑜𝑠2𝑥 + 𝑠𝑖𝑛2𝑥)
65
-7-