Chapter 4 ODE01
Chapter 4 ODE01
Chapter 4 ODE01
𝑑𝑛 𝑦 𝑑𝑛−1 𝑦 𝑑𝑦
𝑎𝑛 (𝑥) 𝑛
+ 𝑎 𝑛−1 (𝑥) 𝑛−1
+ ⋯ + 𝑎1 (𝑥) + 𝑎0 (𝑥)𝑦 = 𝑔(𝑥) (1)
𝑑𝑥 𝑑𝑥 𝑑𝑥
Subject to
Another type of problem consists of solving a linear differential equation of order two or greater in which
the dependent variable y or its derivatives are specified at different points. A problem such as
Solve:
𝑑2𝑦 𝑑𝑦
𝑎2 (𝑥) 2 + 𝑎1 (𝑥) + 𝑎0 (𝑥)𝑦 = 𝑔(𝑥)
𝑑𝑥 𝑑𝑥
Subject to:
𝑦(𝑎) = 𝑦𝑎 , 𝑦(𝑏) = 𝑦𝑏
is called a boundary-value problem (BVP). The prescribed values 𝑦(𝑎) = 𝑦𝑎 and 𝑦(𝑏) = 𝑦𝑏
are called boundary conditions.
Differential Operator
𝑑
𝐷≔
𝑑𝑥
Superposition Principle
Auxiliary equation
Let 𝑦 = 𝑒 𝑚𝑥 be the trial solution of (1).
Then 𝑦 ′ = 𝑚𝑒 𝑚𝑥 , 𝑦 ′′ = 𝑚2 𝑒 𝑚𝑥 and (1) reads as
[𝑎𝑚2 + 𝑏𝑚 + 𝑐 ]𝑒 𝑚𝑥 = 0
=> 𝑎𝑚2 + 𝑏𝑚 + 𝑐 = 0 (2)
(2) is called the auxiliary equation of (1).
Examples 1, 2, 4, 7.
Example 1
Solve y ′′ + 4𝑦 ′ − 2𝑦 = 2𝑥 2 − 3𝑥 + 6 (2)
Solution
Step 1. We find 𝑦𝑐 : yc′′ + 4𝑦𝑐′ − 2𝑦𝑐 = 0.
A. E. 𝑚2 + 4𝑚 − 2 = 0 => 𝑚1,2 = −2 ± √6
Hence the complementary function is
𝑦𝑐 = 𝑐1 𝑒 −(2+√6)𝑥 + 𝑐2 𝑒 (−2+√6)𝑥 .
Step 2. 𝑦𝑝 ≡ 𝐴𝑥 2 + 𝐵𝑥 + 𝑐 => 𝑦𝑝′ = 2𝐴𝑥 + 𝐵, 𝑦𝑝′′ = 2𝐴
Substituting 𝑦𝑝 , 𝑦𝑝′ , 𝑦𝑝′′ = 2𝐴,
𝑦𝑝′′ + 4𝑦𝑝′ − 2𝑦𝑝
= −2𝐴𝑥 2 + (8𝐴 − 2𝐵)𝑥 + (2𝐴 + 4𝐵 − 2𝐶)
= 2𝑥 2 − 3𝑥 + 6
=> −2𝐴 = 2, 8𝐴 − 2𝐵 = −3, 2𝐴 + 4𝐵 − 2𝐶 = 6
5 2
5
𝐴 = −1, 𝐵 = − , 𝐶 = −9 => 𝑦𝑝 = −𝑥 − 𝑥 − 9
2 2
Therefore, the general solution is,
𝑦 = 𝑦𝑐 + 𝑦𝑝 =>
5
𝑦 = 𝑐1 𝑒 −(2+√6)𝑥 + 𝑐2 𝑒 (−2+√6)𝑥 2
+ −𝑥 − 𝑥 − 9
2
Example 7
Find a particular solution of 𝑦 ′′ − 2𝑦 ′ + 𝑦 = 𝑒 𝑥 .
𝑦𝑐 = 𝑐1 𝑒 𝑥 + 𝑐2 𝑥𝑒 𝑥 , 𝑦𝑝 = 𝐴𝑥 2 𝑒 𝑥
𝑦𝑝′′ − 2𝑦𝑝′ + 𝑦𝑝 = 2𝐴𝑒 𝑥 = 𝑒 𝑥
1 1 2 𝑥
=> 𝐴 = , 𝑦𝑝 = 𝑥 𝑒
2 2
Exercise: 1 – 5, 8 – 13
Assignment # 1: 5, 10, 13
4.6 Variation of Parameters
𝑎2 (𝑥 )𝑦 ′′ + 𝑎1 (𝑥 )𝑦 ′ + 𝑎0 (𝑥 )𝑦 = 𝑔(𝑥 ) (5)
𝑦 ′′ + 𝑃(𝑥 )𝑦 ′ + 𝑄(𝑥 )𝑦 = 𝑓(𝑥 ) (6)
Consider trail particular integral by replacing the constant
parameters of the complementary function
𝑦𝑐 = 𝑐1 𝑦1 (𝑥 ) + 𝑐2 𝑦2 (𝑥) by variable parameters, i.e. in (6)
we substitute
𝑦𝑝 = 𝑢1 (𝑥 )𝑦1 (𝑥 ) + 𝑢2 (𝑥 )𝑦2 (𝑥 ) (7)
and the derivatives
We obtain,
𝑦1 𝑢1′ + 𝑦2 𝑢2′ = 0
=> { ′ ′
𝑦1 𝑢1 + 𝑦2′ 𝑢2′ = 𝑓(𝑥)
The solution of the system can be obtained by Cramer’s
Rule as follows.
𝑊1 𝑊2
𝑢1′ = and 𝑢2′ = (9)
𝑊 𝑊
where,
𝑦1 𝑦2 0 𝑦2 𝑦1 0
𝑊 = |𝑦 ′ 𝑦2′ |, 𝑊1 = |𝑓(𝑥) 𝑦2′ |, 𝑊2 = |𝑦1′ |
1 𝑓(𝑥)
Example 1
Solve 𝑦 ′′ − 4𝑦 ′ + 4𝑦 = (𝑥 + 1)𝑒 2𝑥
Solution
A. E. 𝑚2 − 4𝑚 + 4 = 0 => 𝑦𝑐 = 𝑐1 𝑒 2𝑥 + 𝑐2 𝑥𝑒 2𝑥
and
Example 2.
4.6 Exercise
Assignment # 1: 9
4.7 Cauchy – Euler Equation
2
2
𝑑 𝑦 𝑑𝑦
𝑎𝑥 + 𝑏𝑥 + 𝑐𝑦 = 0 (1)
𝑑𝑥 2 𝑑𝑥
Auxiliary equation
Let 𝑦 = 𝑥 𝑚 be the trial solution of (1).
Then 𝑦 ′ = 𝑚𝑥 𝑚−1 , 𝑦 ′′ = 𝑚(𝑚 − 1)𝑥 𝑚−2 and (1) reads
as
[𝑎𝑚2 + (𝑏 − 𝑎)𝑚 + 𝑐 ]𝑥 𝑚 = 0
=> 𝑎𝑚2 + (𝑏 − 𝑎)𝑚 + 𝑐 = 0 (2)
(2) is called the auxiliary equation of (1).
Example 3
1
Solve 4𝑥 2 𝑦 ′′ + 17𝑦 = 0, 𝑦(1) = −1, 𝑦 ′ (1) = −
2
Solution A.E. 4𝑚2 + (0 − 4)𝑚 + 17 = 0
1 1
=> 4𝑚2 − 4𝑚 + 17 = 0 => 𝑚1 = + 2𝑖, 𝑚2 = − 2𝑖
2 2
1
𝑦= 𝑥 2 [𝑐1 cos(2 ln 𝑥) + 𝑐2 sin(2 ln 𝑥)]
Using initial condition, one can find 𝑐1 = −1, 𝑐2 = 0.
1
Therefore, the solution of the IVP is 𝑦 = −𝑥 cos 2𝑥
2
Examples 1 - 3, 5, 6.
Exercise 1 – 14, 19 – 23, 31-35.
Assignment # 1: 22, 35
[1] A First Course in Differential Equations with
Modeling and Applications, (10th Edition), Author-
Dennis G. Zill.