Professional Documents
Culture Documents
College of Engineering
3 | Differential Equations i
PREFACE
The main purpose of this module is to provide the student with a clear and detailed
presentation of differential equation.
To achieve this objective despite of this pandemic due to COVID-19, this work has
been shaped by the comments and suggestions of the peer reviewer in the teaching
profession, as well as the other faculty members who will ensure quality of the
modules that will be distributed to the LGU.
4.1 Introduction
𝜕3𝑦 𝜕2 𝑦 𝜕𝑦
1. 3 −4 +2 − 3𝑥 2 = cos 2𝑥 _______________
𝜕𝑥 𝜕𝑥 2 𝜕𝑥
𝑑2 𝑦 𝑑𝑦
2. 𝑑𝑥 2
+ 2 𝑑𝑥 − 4𝑦 + 2 = 0 _______________
3. 2(𝑦 ′′)3 − 4(𝑦 ′)4 − 4𝑥𝑦 = 𝑒 −2𝑥 _______________
4
𝑑2 𝑦 𝑑𝑦
4. ቄ𝑑𝑥2 ቅ + 2 ቄ𝑑𝑥ቅ − 4𝑦 + 2 = 0 _______________
2
𝑑4 𝑦 𝑑3 𝑦 𝑑𝑦
5. + 𝑥𝑦 ቄ𝑑𝑥3 ቅ − 𝑑𝑥 + 6𝑥 = 0 _______________
𝑑𝑥 4
3 | Differential Equations 2
𝑑𝑛 𝑦 𝑑 𝑛−1 𝑦 𝑑𝑦
𝑎𝑛 (𝑥 )𝑛
+ 𝑎𝑛−1 ( 𝑥 ) 𝑛−1
+ ⋯ + 𝑎1 (𝑥 ) + 𝑎0 (𝑥 )𝑦 = 𝑅(𝑥)
𝑑𝑥 𝑑𝑥 𝑑𝑥
where the coefficients 𝑎0 (𝑥 ), 𝑎1 (𝑥 ), … 𝑎𝑛 (𝑥 ) and 𝑅(𝑥) are all functions of x.
If the coefficients 𝑎0 (𝑥 ), 𝑎1 (𝑥 ), … 𝑎𝑛 (𝑥 ) are all constant then it is a linear
differential equation with constant coefficient, otherwise, it has variable
coefficient. If 𝑅(𝑥 ) = 0 then it is called a homogeneous linear differential
equation, otherwise, it is nonhomogeneous linear differential equation.
Examples:
1. 3𝑦 ′′ + 2𝑦 ′ − 𝑦 = 2𝑥
Answer: Linear D.E.; nonhomogeneous; constant coefficient; 2nd order
𝑑3 𝑦 𝑑𝑦
2. 2𝑥 2 𝑑𝑥3 + (𝑥 + 1) 𝑑𝑥 − 4𝑦 = 0
Answer: Nonlinear D.E.; homogeneous; variable coefficient; 3rd order
3. 𝑦 ′′′ − 3𝑦 ′′ + 4𝑦 = sin 3𝑥
Answer: Nonlinear D.E.; nonhomogeneous; constant coefficient; 3 rd
order
𝑑4 𝑦 𝑑3 𝑦 𝑑2 𝑦 𝑑𝑦
4. (2𝑥 − 1)2 𝑑𝑥4 + 𝑑𝑥3 − 4𝑥 3 𝑑𝑥2 + √𝑥 𝑑𝑥 − 3𝑦 = ln 𝑥
Answer: Linear D.E.; nonhomogeneous; variable coefficient; 4th order
2𝑥
5. 𝑦 ′′ + (3𝑥 − 1)𝑦 ′ − 3𝑦 = 0
(𝑥−2)
Answer: Linear D.E.; homogeneous; variable coefficient; 2nd order
Examples:
1. Rewrite the differential equation 𝑦 ′′′ + 2𝑦 ′′ + 4𝑦 = √sin 𝑥 using
differential operator.
Answer: 𝐷 3 𝑦 + 2𝐷 2 𝑦 + 4𝑦 = √sin 𝑥
𝑑3 𝑦 𝑑𝑦
2. Rewrite the differential equation 5𝑥 + (𝑥 − 2) − 3𝑦 = 0 using
𝑑𝑥 3 𝑑𝑥
differential operator.
Answer: 5𝑥𝐷 3 𝑦 + (𝑥 − 2)𝐷𝑦 − 3𝑦 = 0
𝐿𝑦 = −12𝑒 2𝑥 − 2𝑒 3𝑥 + 6𝑒 5𝑥
𝑓 (𝐷 )𝑒 𝑚𝑥 = 𝑒 𝑚𝑥 𝑓(𝑚)
We see that if m is the root of the equation 𝑓 (𝑚) = 0, then
𝑓 (𝐷 )𝑒 𝑚𝑥 = 0
Example:
Let 𝑓 (𝐷 ) = 𝐷 2 − 𝐷 − 12.
Solution:
Then the equation for 𝑓 (𝑚) = 0 is
𝑚2 − 𝑚 − 12 = 0
(𝑚 − 4)(𝑚 + 3) = 0
Which has the roots 𝑚1 = 4 and 𝑚2 = −3
𝑒 𝑎𝑥 𝑓 (𝐷 )𝑦 = 𝑓 (𝐷 − 𝑎)𝑒 𝑎𝑥 𝑦 or
𝑒 𝑎𝑥 𝑓 (𝐷 + 𝑎)𝑦 = 𝑓 (𝐷 )𝑒 𝑎𝑥 𝑦
This is referred to as exponential shift.
Example:
𝑑2 𝑦 𝑑𝑦
Solve the differential equation 𝑑𝑥2 + 2 𝑑𝑥 + 𝑦 = 0
Solution:
𝑑2 𝑦 𝑑𝑦
+ 2 𝑑𝑥 + 𝑦 = 0
𝑑𝑥 2
2
𝐷 𝑦 + 2𝐷𝑦 + 𝑦 = 0
(𝐷 2 + 2𝐷 + 1)𝑦 = 0
(𝐷 + 1)2 𝑦 = 0
3 | Differential Equations 5
Examples:
1. Determine the general solution to the differential equation 𝑦 ′′ + 𝑦′ −
2𝑦 = 0
Solution:
Rewriting 𝑦 ′′ + 𝑦′ − 2𝑦 = 0 using differential operator.
𝐷 2𝑦 + 𝐷𝑦 − 2𝑦 = 0
(𝐷 2 + 𝐷 − 2)𝑦 = 0
Substitute m to D then equate to zero: 𝑓(𝑚) = 0
𝑚2 + 𝑚 − 2 = 0
(𝑚 − 1)(𝑚 + 2) = 0
𝑚1 = 1 and 𝑚2 = −2
The solutions to the differential equation are
𝑦1 (𝑥 ) = 𝑒 𝑥 and 𝑦2 (𝑥 ) = 𝑒 −2𝑥
Therefore, using the Principle of Superposition, the general solution of
the differential equation 𝑦 ′′ + 𝑦′ − 2𝑦 = 0 is
𝑦(𝑥 ) = 𝑐1𝑒 𝑥 + 𝑐2 𝑒 −2𝑥
Suppose you have two lines on a graph. There are basically three
cases for these lines: they can be parallel (inconsistent system), they can
3 | Differential Equations 6
b. The Wronskian
The second method is to take the Wronskian of the
functions. If the Wronskian equals 0, the function is dependent.
If it does not equal 0, it is independent.
For two functions, the Wronskian is
𝑓(𝑥) 𝑔(𝑥)
𝑊=[ ] = 𝑓 (𝑥 )𝑔′(𝑥 ) − 𝑓 ′(𝑥 )𝑔(𝑥)
𝑓′(𝑥) 𝑔′(𝑥)
Examples:
1. Determine whether these functions are linearly dependent or
independent: 𝑓 (𝑥 ) = 4; 𝑔(𝑥 ) = 2𝑥; ℎ(𝑥 ) = −3𝑥
Answer:
By comparison, it can be seen that 𝑔(𝑥) and ℎ(𝑥) are scalar
multiple of one another. That is
2
𝑔(𝑥) = − 3 ℎ(𝑥) or
3
ℎ(𝑥) = − 2 𝑔(𝑥)
Therefore, the set of functions is linearly dependent.
By Wronskian,
4 2𝑥 −3𝑥
𝑊 = [0 2 −3 ]
0 0 0
4 2𝑥 −3𝑥 4 2𝑥
𝑊 = [0 2 −3 ] 0 2 = 0
0 0 0 0 0
The Wronskian is 0, therefore the set of functions is linearly
dependent.
2. Determine whether these functions are linearly dependent or
independent: 𝑓 (𝑥 ) = 2𝑒 𝑥 ; 𝑔(𝑥 ) = 𝑒 (𝑥+1) ; ℎ(𝑥 ) = 2𝑒 (𝑥−1)
Answer:
By comparison, it can be seen that the three functions are
scalar multiple of each other. That is
2
𝑓(𝑥) = 𝑒 𝑔(𝑥)
𝑒2
𝑔(𝑥) = ℎ(𝑥)
2
1
ℎ(𝑥) = 𝑒 𝑓(𝑥)
Remember that 𝑒 is constant.
Or,
𝑐1𝑓(𝑥) + 𝑐2𝑔(𝑥) + 𝑐3ℎ(𝑥) = 0
𝑐1(2𝑒 𝑥 ) + 𝑐2 [𝑒 (𝑥+1) ] + 𝑐3[2𝑒 (𝑥−1) ] = 0
Where,
3𝑒 2
𝑐1 = 𝑒; 𝑐2 = 1; 𝑐3 = − 2
Therefore, the set of functions is linearly dependent.
By Wronskian,
2𝑒 𝑥 𝑒 (𝑥+1) 2𝑒 (𝑥−1)
𝑊 = [2𝑒 𝑥 𝑒 (𝑥+1) 2𝑒 (𝑥−1) ]
2𝑒 𝑥 𝑒 (𝑥+1) 2𝑒 (𝑥−1)
2𝑒 𝑥 𝑒 (𝑥+1) 2𝑒 (𝑥−1) 2𝑒 𝑥 𝑒 (𝑥+1)
𝑊 = [2𝑒 𝑥 𝑒 (𝑥+1) 2𝑒 (𝑥−1) ] 2𝑒 𝑥 𝑒 (𝑥+1) = 0
2𝑒 𝑥 𝑒 (𝑥+1) 2𝑒 (𝑥−1) 2𝑒 𝑥 𝑒 (𝑥+1)
3 | Differential Equations 8
𝑎𝑛 𝐷 𝑛 𝑦 + 𝑎𝑛−1 𝐷 𝑛−1 𝑦 + ⋯ + 𝑎1 𝐷𝑦 + 𝑎0 𝑦 = 0
Examples:
1. Find the general solution of the differential equation
(𝐷 3 − 2𝐷 2 − 𝐷 + 14)𝑦 = 0
Solution:
The roots of the polynomial in D are
𝑚1 = −2, 𝑚2 = 2 ± 𝑖√3
The linearly independents solutions are
𝑦1 (𝑥) = 𝑒 −2𝑥
𝑦2 (𝑥 ) = 𝑒 2𝑥 cos √3 𝑥
𝑦3 (𝑥) = 𝑒 2𝑥 sin √3 𝑥
Therefore, the general solution is
𝑦(𝑥 ) = 𝑐1𝑒 −2𝑥 + 𝑒 2𝑥 (𝑐2 cos √3 𝑥 + 𝑐3 sin √3 𝑥)
𝑦2 (𝑥) = 𝑒 2𝑥
𝑦3 (𝑥) = 𝑒 −3𝑥
𝑦4 (𝑥) = 𝑥𝑒 −3𝑥
Therefore, the general solution is
𝑦(𝑥 ) = 𝑐1𝑒 𝑥 + 𝑐2 𝑒 2𝑥 + 𝑐3 𝑒 −3𝑥 + 𝑐4 𝑥𝑒 −3𝑥
3. Find the general solution of the differential equation
(𝐷 4 + 4𝐷 3 + 16𝐷 2 + 24𝐷 + 36)𝑦 = 0
Solution:
The roots of the polynomial in D are
𝑚1 = −1 ± 𝑖√5, 𝑚2 = −1 ± 𝑖√5
The linearly independents solutions are
𝑦1 (𝑥 ) = 𝑒 −𝑥 cos √5 𝑥
𝑦2 (𝑥 ) = 𝑥𝑒 −𝑥 cos √5 𝑥
𝑦3 (𝑥) = 𝑒 −𝑥 sin √5 𝑥
𝑦4 (𝑥) = 𝑥𝑒 −𝑥 sin √5 𝑥
Therefore, the general solution is
𝑦(𝑥) = 𝑒 −𝑥 (𝑐1 cos √5 𝑥 + 𝑐2 sin √5 𝑥) + 𝑥𝑒 −𝑥 (𝑐3 cos √5 𝑥 + 𝑐4 sin √5 𝑥)
𝑦′(0) = −8
−8 = 2𝑐1 + 3𝑐2 eq. 2
Solving simultaneously eq. 1 and eq. 2 yields,
𝑐1 = 2, 𝑐2 = −4
Therefore, the solution to the IVP is
𝑦(𝑥 ) = 2𝑒 2𝑥 − 4𝑒 3𝑥
𝑦 ′′ + 𝑝(𝑡)𝑦 ′ + 𝑞 (𝑡)𝑦 = 0
nonhomogeneous second order linear equations with constant
coefficients:
𝑎𝑦 ′′ + 𝑏𝑦 ′ + 𝑐𝑦 = 𝑔(𝑡)
Example 1. 𝑦 ′′ − 2𝑦 ′ − 3𝑦 = 𝑒 2𝑡
Solution:
1
Therefore, 𝑦 = 𝑦𝑐 + 𝑌 = 𝐶1 𝑒 −𝑡 + 𝐶2 𝑒 3𝑡 − 3 𝑒 2𝑡
Example 2. 𝑦 ′′ − 2𝑦 ′ − 3𝑦 = 3𝑡 2 + 4𝑡 − 5
Solution:
𝑡 2: 3 = −3𝐴 𝐴 = −1
𝑡: 4 = −4𝐴 − 3𝐵 → 𝐵=0
1: − 5 = 2𝐴 − 2𝐵 − 3𝐶 𝐶=1
Therefore, 𝑌 = −𝑡 2 + 1, 𝑎𝑛𝑑 𝑦 = 𝑦𝑐 + 𝑌 = 𝐶1 𝑒 −𝑡 + 𝐶2 𝑒 3𝑡 − 𝑡 2 + 1.
3 | Differential Equations 16
4.3 References
1. J. Perante, W. Perante, F. Gomba (2014) , Differential Equations 2nd
Edition Worktext book
2. E. Rainville, P. Bedient (1989), Elementary Differential Equation, 7th
Edition.
4.4 Acknowledgement
The images, tables, figures and information contained in this module were
taken from the references cited above.
3 | Differential Equations 17
6700