chapter1_part2
chapter1_part2
Homogenous Non-Homogenous
𝑓 𝑥 =0 𝑓 𝑥 ≠0
1. Undetermined coefficient method
2. Variation parameters method
By using this method, the solution is given by
Solution = complimentary solution +particular solution
𝑦 = 𝑦𝑐 + 𝑦𝑝
Complimentary solution ( 𝑦𝑐 ) = obtain similar to homogenous
equation.
Particular solution (𝑦𝑝 ) = obtain by looking at 𝑓(𝑥) and solve by using
table. There are only 5 classes of functions.
1. Polynomial
2. Exponential
3. Sine or cosine
4. Linear combination (type 1 +/- type 2 +/- type 3)
5. Multiplication (type 1 × type 2 × type 3)
𝑥 𝑟 [𝑎 + 𝑏𝑥 + 𝑐𝑥 2 + ⋯ ]
Type Classes 𝒚𝒑
1 Polynomial 𝑥 𝑟 𝐵0 + 𝐵1 𝑥 + ⋯ + 𝐵𝑛 𝑥 𝑛
2 Exponential 𝑒 𝑎𝑥 𝑥 𝑟 𝑘𝑒 𝑎𝑥 𝑎𝑦′′ + 𝑏𝑦′ + 𝑐𝑦 = 𝑓 𝑥
3 Sine or cosine 𝑥 𝑟 𝑝𝑐𝑜𝑠𝛽𝑥 + 𝑞𝑠𝑖𝑛𝛽𝑥
𝑠𝑖𝑛𝛽𝑥 𝑐𝑜𝑠𝛽𝑥
2. Solution for 𝒚𝒑
𝑦𝑝 = 𝑥 𝑟 𝑘𝑒 4𝑥
If 𝑟 = 0; 𝑦𝑐 = 𝐴𝑒 −2𝑥 + 𝐵𝑒 𝑥
4𝑥 Eq 2
Eq 1 𝑦𝑝 = 𝑘𝑒
By comparing Eq 1 and Eq 2, shown that Eq 2 not alike Eq 1. Then accept Eq 2 as 𝑦𝑝
then differentiate 𝑦𝑝 twice
𝑦𝑝 ′ = 4𝑘𝑒 4𝑥 Eq 3
𝑦𝑝 ′′ = 16𝑘𝑒 4𝑥 Eq 4
1
𝑦 = 𝐴𝑒 −2𝑥 + 𝐵𝑒 𝑥 + 𝑒 4𝑥
9
Find the general solution for
𝑦" = 6𝑥 2 + 2𝑥 + 1
Solution for 𝑦𝑐
𝑦𝑐 = 𝐴 + 𝐵𝑥
Solution for 𝑦𝑝 (refer table)
𝑦𝑝 = 𝑥 𝑟 (𝑎𝑥 2 + 𝑏𝑥 + 𝑐)
Choose 𝑟 = 0
𝑦𝑝 = 𝑎𝑥 2 + 𝑏𝑥 + 𝑐
Is 𝑦𝑝 = 𝑦𝑐 ??
Yes. Thus choose 𝑟 = 1
𝑦𝑝 = 𝑎𝑥 3 + 𝑏𝑥 2 + 𝑐𝑥
Is 𝑦𝑝 = 𝑦𝑐 ??
Yes. Thus choose 𝑟 = 2
𝑦𝑝 = 𝑎𝑥 4 + 𝑏𝑥 3 + 𝑐𝑥 2
Is 𝑦𝑝 = 𝑦𝑐 ?? NO!. Then, solve
Particular solution (𝑦𝑝 ) = obtain by looking at 𝑓(𝑥) and solve by using
table. There are only 5 classes of functions.
1
𝑦 = 𝐴 + 𝐵𝑥 𝑒𝑥 + 𝑥2 + 𝑥 + (4 cos 2𝑥 − 3 sin 2𝑥)
25
Find a, b, c, p and q
Find the general solution for 𝑦 ′′ − 2𝑦 + 3𝑦 = 𝑒 𝑥 𝑠𝑖𝑛2𝑥
1. Solution for 𝒚𝒄
𝑦 ′′ − 2𝑦 + 3𝑦 = 0
𝑚2 − 2𝑚 + 3 = 0 – complex roots 𝑚 = 1 ± 2𝑖
𝑦𝑐 = 𝑒 𝑥 (𝐴𝑐𝑜𝑠 2𝑥 + 𝐵𝑠𝑖𝑛 2𝑥)
2. Solution for 𝒚𝒑: 𝑦𝑝 = 𝑥 𝑟 𝑒 𝑥 (𝑝𝑐𝑜𝑠2𝑥 + 𝑞𝑠𝑖𝑛2𝑥)
If 𝑟 = 0; 𝑦𝑝 = 𝑒 𝑥 (𝑝𝑐𝑜𝑠2𝑥 + 𝑞𝑠𝑖𝑛2𝑥) → 𝑦𝑝 ≠ 𝑦𝑐 →ok!
𝑦𝑝′ = 𝑒 𝑥 𝑝 + 2𝑞 𝑐𝑜𝑠2𝑥 + −2𝑝 + 𝑞 𝑠𝑖𝑛2𝑥
𝑦′′𝑝 = 𝑒 𝑥 −3𝑝 + 4𝑞 𝑐𝑜𝑠2𝑥 − 4𝑝 + 3𝑞 𝑠𝑖𝑛2𝑥
Substitute 𝑦𝑝′ and 𝑦𝑝′′ into equation 𝑦 ′′ − 2𝑦 + 3𝑦 = 𝑒 𝑥 𝑠𝑖𝑛2𝑥 to find 𝑝 =? q =?
𝑒 𝑥 (−2𝑝 cos 2𝑥 − 2𝑞 sin 2𝑥) = 𝑒 𝑥 sin 2𝑥 ←after simplify
−2𝑝 cos 2𝑥 − 2𝑞 sin 2𝑥 = sin 2𝑥
Equating the coefficients
cos 2𝑥: −2𝑝 = 0, 𝑝 = 0
sin 2𝑥: −2𝑞 = 1, 𝑞 = −1/2
𝑦𝑝 = 𝑒 𝑥 (𝑝𝑐𝑜𝑠2𝑥 + 𝑞𝑠𝑖𝑛2𝑥)
𝑥 1
𝑦𝑝 = 𝑒 (− )𝑠𝑖𝑛2𝑥
2
𝑥 1
𝑦 = 𝑦𝑐 + 𝑦𝑝 = 𝑒 (𝐴𝑐𝑜𝑠 2𝑥 + 𝐵𝑠𝑖𝑛 2𝑥 − sin 2𝑥
2
Type of Roots Solution
Distinct and Real roots 𝑦 = 𝐴𝑒 𝑚1𝑥 + 𝐵𝑒 𝑚2𝑥
𝑚1 = 𝑟1
𝑚2 = 𝑟2