Professional Documents
Culture Documents
Solutions to Nonhomogeneous
Linear Higher Order ODEs with
Constant Coefficient
Part 1 – Method of Undetermined Coefficients
In addition, if 𝑔(𝑥) = 0 (that is, 𝑔(𝑥) = 0 for all 𝑥 considered), the ODE
simplifies to
𝑦 (𝑛) + 𝑃𝑛−1 𝑥 ∙ 𝑦 𝑛−1 + ∙ ∙ ∙ + 𝑃1 𝑥 ∙ 𝑦′ + 𝑃0 𝑥 ∙ 𝑦 = 𝑔(𝑥)
RECALL: THEOREM
Principle of Superposition
If the functions {𝑦1 , 𝑦2 , … , 𝑦𝑛 } is a set of fundamental solutions of nth
order homogeneous ODE, then every solution of the ODE can be
expressed as a linear combination of the solutions 𝑦1 , 𝑦2 , … , 𝑦𝑛 .
CAUTION: VALIDITY
𝑦𝑝 = 𝑒 3𝑥 7 3𝑥
7 3𝑥 3𝑥
3 3𝑥
𝑦𝑝 ′′ − 𝑦𝑝 ′ + 3𝑦𝑝 = 9𝑒 − 3𝑒 +3 𝑒 = 𝑒
2 2 2
𝑦𝑝 ′ = 3𝑒 3𝑥
𝑦𝑝 ′′ = 9𝑒 3𝑥 GENERAL SOLUTION: The general solution must satisfy the given ODE.
3𝑥 7 ′ 9 3𝑥 7 3 3𝑥
𝑦 ′′ − 𝑦 + 3𝑦 = 𝑐1 𝑒 2 + 4𝑐2 𝑒 𝑥 + 9𝑒 3𝑥 − 𝑐1 𝑒 2 + 2𝑐2 𝑒 𝑥 + 3𝑒 3𝑥
𝑦= 𝑐1 𝑒 2 + 𝑐2 𝑒 2𝑥 + 𝑒 3𝑥 2 4 2 2
3 3𝑥 3𝑥
+ 𝑐2 𝑒 𝑥 + 𝑒 3𝑥
𝑦′ = 𝑐1 𝑒 2 + 2𝑐2 𝑒 2𝑥 + 3𝑒 3𝑥 +3 𝑐1 𝑒 2
2
9 21 3𝑥 21
9 3𝑥 = − 𝑥 𝑥
+ 3 𝑐1 𝑒 + 4𝑐2 𝑒 + 4 − 7 + 3 𝑐2 𝑒 + 9 −
2 + 3 𝑒 3𝑥
𝑦′′ = 𝑐1 𝑒 2 + 4𝑐2 𝑒 2𝑥 + 9𝑒 3𝑥 4 4 2
4
College of Engineering and Technology = 0 + 3𝑒 3𝑥 = 3𝑒 3𝑥 M222C | Advanced Mathematics for CE
METHOD OF
UNDETERMINED
COEFFICIENTS
(MUC)
NOR
𝑔 𝑥 = 𝑔1 𝑥 + 𝑔2 𝑥 + ⋯ + 𝑔𝑘 𝑥
PROVIDED THAT:
1. DE must be linear with constant coefficients
2. Repeated differentiation of each 𝑔𝑗 𝑥 terms produces only a finite
number of linearly independent terms
EXAMPLE 3.1
EXAMPLE 3.1
ANSWERS
a. 𝑒 −𝑥 , 𝑥𝑒 −𝑥 c. Infinitely many
b. 𝑥 2 , 𝑥, 1 d. sin 𝑥 , cos 𝑥
• Seek 𝑦𝑝1 𝑥 , tentatively, as a linear combination of the Refer to the table shown
terms in the family corresponding to 𝑔𝑗 𝑥 . below for different forms
STEP5 of 𝑔𝑗 𝑥
s is the smallest non-negative integer (s=0,1, 2,…) that will ensure that no term in 𝑦𝑝(𝑥) is a
solution of the corresponding homogeneous equation
𝑦 = 𝑦𝑐 + 𝑦𝑝
EXAMPLE 3.2
EXAMPLE 3.2
ANSWER
1 4 1
𝑦 = 𝑐1 + 𝑐2 𝑥 + 𝑐3 𝑒𝑥 + 𝑐4 𝑒 −𝑥 2
− 𝑥 − 3𝑥 − sin 2𝑥
4 20
EXAMPLE 3.3
EXAMPLE 3.3
ANSWER
1 3 𝑡
𝑦= −3𝑒 𝑡 + 4𝑡𝑒 𝑡 + 𝑡 𝑒 +4
6
Homework 3
Solve the following initial value problem:
1. 5𝑦 ′′ + 𝑦 ′ = −6𝑥, 𝑦 0 = 0, 𝑦 ′ 0 = −10
2. 𝑦 ′′ + 4𝑦 + 5𝑦 = 35𝑒 4𝑥 , 𝑦 0 = −3, 𝑦 ′ 0 = 1
references
Kreyszig, E., Kreyszig H., and Norminton, E. Advanced Engineering
Mathematics – 10th ed. (2011). John Wiley & Sons, Inc, Hoboken,
N.J.
Thank you!
“Run, Forrest, run!” – from Forrest Gump