Series Solution of Differential Equations: Concept Mapping
Series Solution of Differential Equations: Concept Mapping
SERIES SOLUTION
OF DIFFERENTIAL EQUATIONS
Concept Mapping
Series Solution
Objectives
At the end of chapter, students should be able
(a) to solve the differential equation by using power series method with
recurrence relations.
(b) to solve the differential equation by using power series method without
recurrence relations.
1
Series Solutions of Differential Equations
The power series method is the standard basic method for solving
differential equation with variable coefficients. It gives solutions in the form
of power series, this explains the name. In this section, we begin by revising
the powers series and explaining the basic idea of the method.
c
m 0
m x m c0 c1 x c2 x 2 c3 x 3 c4 x 4
2
Series Solutions of Differential Equations
Procedure
Solving Differential Equation by Power Series Method
using Recurrence Relations
Assume that the solution of the differential equation is y cm x m .
m 0
Step 1: Obtain y and y ; Substitute y, y and y (which relevant) into the
differential equation.
Step 2: Shift of index (if necessary).
Step 3: Obtain the recurrence relation.
Step 4: Deduce the coefficient of series.
Step 5: Write down the series solution.
Example 1:……………………………………………………………………..
Solve the following second-order differential equation by power series method.
y xy 0
Solution:
Assume that the solution of the differential equation above is y cm x m .
m 0
Step 1: Obtain y and y ; Substitute y and y into the differential equation.
y cm x m ,
m 0
y m cm x m1 Since the first term with m 0 is 0, we have
m 0
m cm x m1 ,
m1
y m(m 1) cm x m2
m 0
Since the first and second term with m 0,1 are 0, we have
y m(m 1) cm x m2 .
m 2
3
Series Solutions of Differential Equations
Since both series start with different power of x, we have to list the
m 2 in the first series (with lower power of x) so that both series
start with same power of x, as follows.
2c2 m(m 1) cm x m2 cm x m1 0
m3 m 0
4
Series Solutions of Differential Equations
c4 c1
n 5, c7
76 7643
c
n 6, c8 5 0 (since c5 0 )
87
c c0
n 7, c9 6
9 8 9 8 6 53 2
c c1
n 8, c10 7
10 9 10 9 7 6 4 3
c
n 9, c11 8 0 (since c8 0 )
11 10
Note: Using the recurrence relation, we can produce as many terms of
the coefficient of series as we wish.
c0 c1 x c2 x 2 c3 x 3 c4 x 4 c5 x 5 c6 x 6 c7 x 7
c8 x8 c9 x 9 c10 x10 c11x11
c c c0 c1
c0 c1 x 0 0 x 3 1 x 4 0 x6 x7
3 2 43 6 53 2 7643
c0 c1
0 x9 x10 0
9 8 6 53 2 10 9 7 6 4 3
1 3 1 1
c0 1 x x6 x 9
3 2 6 53 2 98 653 2
1 4 1 1
c1 x x x7 x10
43 7643 10 9 7 6 4 3
or in the form of
1 4 7 (3n 2) 3n
2 5 8 (3n 1) 3n1
y c0 1 x c1 x x
n1 (3n)! n1 (3n 1)!
…………………………………………………Try Question 1(a) – (c), Exercise 1A
Example 2:……………………………………………………………………..
Show that the solutions of first-order differential equation y 2 xy by using
both (a) method of separation of variable, and
(b) power series method,
is the same.
Solution:
dy
(a) 2 xy , separating the variables and integrating both sides, we have
dx
1
y dy 2 x dx
5
Series Solutions of Differential Equations
x2
ln y c1 2 c2
2
Take exponent both sides, we got
eln y e x c3
2
(where c3 c2 c1 )
y Ce x (where C ec3 )
2
(b) Assume that the solution of the differential equation is y cm x m .
m 0
Step 1: Obtain y ; Substitute y and y into the differential equation.
y cm x m ,
m 0
y m cm x m1 m cm x m1 .
m 0 m1
Thus, y 2 xy 0 becomes
m1
m c m x m1
2 x cm x m 0
m 0
m c
m1
m x m1 2 c
m 0
m x m1 0
0
start with x start with x1
Since both series start with different power of x, we have to list the
m 1 term in the first series (with lower power of x) so that both series
start with same power of x, as follows.
c1 m cm x m1
2 c m x m1 0
m 2 m 0
6
Series Solutions of Differential Equations
Note: After shifting the indices, we should have all series with same
summation (i.e.
n 1
) and same index of x (i.e. x n ).
c0 c1 x c2 x 2 c3 x3 c4 x 4 c5 x5 c6 x 6 c7 x 7 c8 x8
c0 1 0 x 2 0 12 x 4 0 16 x 6 0 24
1
x8
x 2
x 4
x x 6
8
c0 1
1! 2! 3! 4!
x x 2 x3 x2 x4 x6
Since e x 1 , and e x 1
2
1! 2! 3! 1! 2! 3!
So, the solution can be written in the form of
y c0e x Ce x (where C c0 )
2 2
7
Series Solutions of Differential Equations
Example 3:……………………………………………………………………..
Show that the general solution of homogeneous second-order differential
equation y y 0 is the same as obtained by using power series method.
Solution:
Firstly, solve the homogeneous second-order differential equation y y 0
by finding its characteristics equation.
m2 1 0 m 1 i
Thus, the complimentary function is given by
yc c1 cos x c2 sin x , where c1 and c2 are arbitrary constants.
m (m 1)cm x m2 cm x m 0
m2 m 0
m(m 1) cm x m2 cm x m 0
m2 m 0
m 2
m(m 1) cm x (n 2)(n 1)cn2 x
m 2
n 0
n the first series, i.e.
m 2 to be n, and
the power of x in
(ii) Take n m for the second series: the second series,
i.e. m to be n.
cm x m cn x n
m 0 n 0
(n 2)(n 1)cn2 x n cn x n 0 .
n 0 n 0
8
Series Solutions of Differential Equations
Note: After shifting the indices, we should have all series with same
summation (i.e.
n 0
) and same index of x (i.e. x n ).
The only way for this series to be zero is equating the coefficients of
power xn to be zero. We obtain
(n 2)(n 1)cn2 cn 0 .
cn
Thus the recurrence relation is cn2 , n 0, 1, 2, 3, ... .
(n 2)(n 1)
c0 c1 x c2 x 2 c3 x3 c4 x 4 c5 x 5 c6 x 6 c7 x 7
c c c c c c
c0 c1 x 0 x 2 1 x 3 0 x 4 1 x 5 0 x 6 1 x 7
2! 3! 4! 5! 6! 7!
x 2
x 4
x 6
x 3
x 5
x 7
c0 1 c1 x
2! 4! 6! 3! 5! 7!
x2 x4 x6 x3 x5 x7
Since cos x 1 , and sin x x
2! 4! 6! 3! 5! 7!
So, the solution can be written in the form of
y c0 cos x c1 sin x where c0 and c1 are arbitrary constants.
9
Series Solutions of Differential Equations
Formula
Some Important Representation of Functions in Power Series
x x 2 x3 xm
ex 1 , x
1! 2! 3! m0 m!
x3 x5 x7
x 2 m1
sin x x (1) m , x
3! 5! 7! m 0 (2m 1)!
x2 x4 x6 m x
2m
cos x 1 (1) , x
2! 4! 6! m 0 (2m)!
x3 x5
x 2 m1
sinh x = x
3! 5!
=
m 0 ( 2m 1)!
x2 x4 x 2m
cosh x = 1
2! 4!
=
m0 ( 2m)!
x2 x3 xm
ln(1 x) = x
2
3
= (1)
m1
m1
m
1
= 1 x x 2 x 3 = x m [geometric series]
1 x m 0
( 1) 2 ( 1)( 2) 3
(1 x) = 1 x x x [binomial series]
2! 3!
f ( m ) (0) m f (0) 2
m0 m!
x = f (0) f (0) x
2!
x [Maclaurin series]
f ( m ) (a) f (a)
m 0 m!
( x a) m = f (a) f (a)( x a)
2!
( x a) 2
[Taylor series]
Then, we expand the series, collect like power of x and equate the
coefficients of each power of x. This gives relations from which we can
determine the unknown coefficients successively. For this, we follow the
procedure suggested as follows to solve the problem as arise in Example 4.
Notice that the recurrence relation is hardly to be obtained in such cases!
10
Series Solutions of Differential Equations
Procedure
Solving Differential Equation by Power Series Method
without using Recurrence Relations
Assume that the solution of the differential equation is y cm x m .
m 0
Step 1: Obtain y and y ; Substitute y, y and y (which relevant) into the
differential equation.
Step 2: Shift of index (if necessary).
Step 3: Expand the series and collecting like power of x.
Step 4: Equating the coefficient of each power of x.
Step 5: Write down the series solution.
Example 4:……………………………………………………………………..
Solve the following second-order differential equation by power series method.
y (sin x) y 0
Solution:
Assume that the solution of the differential equation above is y cm x m .
m 0
Step 1: Obtain y and y ; Substitute y and y into the differential equation.
y cm x m ,
m 0
y m cm x m1 m cm x m1 ,
m 0 m1
y m(m 1) cm x m2 m(m 1) cm x m2 .
m 0 m2
3 5
x x x7
Since sin x x , then y (sin x) y 0 becomes
3! 5! 7!
x3 x5 x7
m2
m(m 1) cm x x cm x m 0
m2 3! 5! 7! m 0
m( m 1) c m x m2
x c m xm 0
m2 3! 5! 7! m 0
11
Series Solutions of Differential Equations
c0 c1 x c2 x 2 c3 x3 c4 x 4 c5 x 5
c c c
c0 c1 x 0 0 x 3 1 x 4 0 x 5
6 12 120
1 1 5 1
c0 1 x 3 x c1 x x 4
6 120 12
…………………………………………………Try Question 1(c) – (e), Exercise 1A
In the next example, we will employ the power series method to solve
the initial value problem. Besides the procedure that have been employed in
the previous examples, we will introduce one alternative strategy to solve the
initial value problem, that is to use the differential equation and the initial
condition to calculate its derivatives. For this, we follow the procedure
suggested below.
Procedure
Alternative Way to Solve Differential Equation (Initial Value Problem)
by Power Series Method
Step 1: Assume the solution y(x) of the differential equation can be
expressed in Maclaurin series expansion, or Taylor series expansion
(which one is applicable).
Step 2: Determine y , y , y , …, by putting the value of x and the initial
condition into the differential equation.
Step 3: Write down the series solution.
12
Series Solutions of Differential Equations
Example 5:……………………………………………………………………..
Solve the following initial value problem by power series method.
y e x y x 2 , y(0) 4
Solution:
Assume that the solution of the differential equation above is y cm x m .
m 0
Step 1: Obtain y ; Substitute y and y into the differential equation.
y cm x m ,
m 0
y m cm x m1 m cm x m1 .
m 0 m1
x x 2 x3
Since e x 1 , then y e x y x 2 becomes
1! 2! 3!
x x 2 x3
m cm x 1
m1
cm x m x 2
m1 1! 2! 3! m 0
m c m x m1
1 c m xm x2
m1 1! 2! 3! m 0
Since both series start with same power of x, we no need to list some
terms in the series with lower power of x. Since the variable
coefficients e x can be expressed in power series, then we no need to
shift the indices.
and y 4 , we obtain c0 4 .
13
Series Solutions of Differential Equations
x1 : 2c2 (c1 c0 ) 0 c2 0
c
x2 : 3c3 c2 c1 0 1 c3 1
2
c c 1
x3 : 4c4 c3 c2 1 0 0 c4
2 6 12
c0 c1 x c2 x 2 c3 x 3 c4 x 4
4 4 x x 3 121 x 4
Alternative:
Step 1: Assume the solution y(x) of the differential equation can be
expressed in Maclaurin series expansion.
14
Series Solutions of Differential Equations
Example 6:……………………………………………………………………..
Solve the following boundary value problem by power series method.
y (sin x) y 1 x , y( ) 3
Approximate the solution by using third order series expansion.
Solution:
Step 1: Assume the solution y(x) of the differential equation can be
expressed in Taylor series expansion.
15
Series Solutions of Differential Equations
Exercise 1A
m!
.
2. Show that the solution for differential equations using both methods
below is the same.
(a) y y 0 (Separating-variable; power series)
(b) y y 0 (finding complimentary function; power series)
3. Solve the following initial (or boundary) value problem by using power
series method.
(a) y xy e x y 4 , y(0) 1 , y(0) 4 .
(b) y 2 xy 8 y 0 , y(0) 3 , y(0) 0 .
(c) y y 2 y 0 , y(0) 1 , y(0) 2 .
(d) (1 x 2 ) y 2 xy 2 y 0 , y(0) 0 y(0) 1 .
1 1
(e) y 2 y y 0 , y(1) 7 , y(1) 3 .
x x
(f) y xy 2 x , y(1) 3 , y(1) 0 .
16
Series Solutions of Differential Equations
Answers to Exercise 1A
2 n [1 4 7 (3n 2)] 3n
2 n [2 5 8 (3n 1)] 3n1
1. (a) y( x) c0 1 x c1 x x
n1 (3n)! n 1 (3n 1)!
(b)
y( x) c0 1 121 x 4 672
1
x8 c1 x 201 x5 1440
1
x9
x x c
n 1
(c) y( x) c0 1 23 x 93 2 4
27
3
x 0 n
n
3 n0
(d) y( x) c 1
0
1
2 x 2 121 x c x x x
4
1
1
6
3 1
30
5
(e) y( x) c 1
0
1
2 x 2 16 x x c x x x
3 1
40
5
1
1
6
3 1
12
4 1
60
x5
(f) y( x) 1 x 1! x 2 2! x 3 3! x 4 1 x
n2
(n 1)! x n
1 c0 2 1 3 1 c0 4
(g) y( x) c0 c1 x x 2 x 3 x 7
40 x5
2 24
2. (a) y( x) c0e , c0 is arbitrary constant.
x
17