Assignment 04
Due 24 September 2025
, Question 1. Power Series Method to Solve an Initial Value Problem
Solve the initial value problem using the power series method:
y ′′ − xy ′ + 4y = 2, y(0) = 0, y ′ (0) = 1.
Step 1: Assume a Power Series Solution
Assume:
∞
X
y(x) = an xn .
n=0
Then,
∞
X ∞
X
′ n−1 ′′
y (x) = nan x , y (x) = n(n − 1)an xn−2 .
n=1 n=2
Step 2: Substitute into the Differential Equation
Substituting into the given equation:
∞
X ∞
X ∞
X
n−2 n−1
n(n − 1)an x −x nan x +4 an xn = 2.
n=2 n=1 n=0
Rewriting:
∞
X ∞
X ∞
X
k k
(k + 2)(k + 1)ak+2 x − kak x + 4ak xk = 2.
k=0 k=0 k=0
Combine terms:
∞
X
[(k + 2)(k + 1)ak+2 + (4 − k)ak ] xk = 2.
k=0
Equating coefficients:
For k = 0:
1
2(1)(0)a2 + 4a0 = 2 ⇒ a0 = .
2
For k ≥ 1:
(k − 4)ak
(k + 2)(k + 1)ak+2 + (4 − k)ak = 0 ⇒ ak+2 = .
(k + 2)(k + 1)
Step 3: Apply Initial Conditions
Given:
y(0) = a0 = 0, y ′ (0) = a1 = 1.
1
Since the previous equation gave a0 = 2
, there is inconsistency. This indicates a
1