Professional Documents
Culture Documents
Laboratory Activity 5 Series Solution
Laboratory Activity 5 Series Solution
OBJECTIVES:
1. To learn to use MATLAB to solve higher order differential equations using power series solution and
Frobenius Method.
INTRODUCTION
𝑦(𝑥) = ∑ 𝑎𝑛 (𝑥 − 𝑥0 )𝑛
𝑛=0
In this form we can formulate a recurrence relation to find out the successive coefficients.
For example, we want to determine the solution for the equation 𝑦” + 𝑦 = 0 when 𝑥0 = 0.
In this case we find the derivatives and substitute it in the equation as:
∞ ∞
𝑛−2
𝑦"(𝑥) = ∑ 𝑛(𝑛 − 1)𝑎𝑛 𝑥 𝑦′(𝑥) = ∑ 𝑛𝑎𝑛 𝑥 𝑛−1
𝑛=2 𝑛=1
Substituting:
∞ ∞
𝑛−2
∑ 𝑛(𝑛 − 1)𝑎𝑛 𝑥 + ∑ 𝑎𝑛 𝑥 𝑛 = 0
𝑛=2 𝑛=0
We want to have the same degree in our x so we shift the summation as:
∞ ∞
Form this by substituting values of n we could see a pattern and we could now rewrite our
solution as:
∞ ∞
(−1)𝑘 𝑥2𝑘 (−1)𝑘 𝑥2𝑘+1
𝑦(𝑥) = 𝑎0 ∑ + 𝑎1 ∑
(2𝑘)! (2𝑘 + 1)!
𝑘=0 𝑘=0
Let b(x) and c(x) be any functions that are analytic at x = 0. Then the ODE
𝑏(𝑥) 𝑐(𝑥)
𝑦" + 𝑦′ + 2 𝑦 = 0
𝑥 𝑥
𝑦(𝑥) = 𝑥 ∑ 𝑎𝑚 𝑥 𝑚
𝑟
𝑚=0
𝑟(𝑟 − 1) + 𝑏0 𝑟 + 𝑐0 = 0
Case 1:
Case 2:
Case 3:
LABORATORY EXERCISE