Dy Fxy Yx y DX: 2. Taylor's Series Method
Dy Fxy Yx y DX: 2. Taylor's Series Method
x x0
2
y x y0 x x0 y 0
' y0" ........... ... (2)
2!
If the values of y0' , y0" ,.... are known, then (2) gives a power series for y. The second and higher
order derivatives are obtained by successively differentiating the equation for the first derivatives
i.e.
"= ′= +
Now, substitute the value of x in the series at which we wish to determine y and retain the
sufficient number of terms from the series to get the desired accuracy of solution.
Example:
Use Taylor series method to solve = + , (0) = 1 at = 0.2,0.4 correct to 3D.
Solution: We know
h 2 " h3 "' ...... h n n ...
y x y x0 h y0 hy y0 y0
'
0 y0 , where h = (x - x0)
2! 3! n!
Also, = + (0) = 1
"= 1+ ′ "(0) = 2
"′ = " "′(0) = 2
= "′ (0) = 2
=1.24+0.002667+0.000133+.... = 1.24280
Note that the fifth term in this series is 0.00013 < 0.0005. Hence, value of y(0.2) correct to 3D
may be obtained by adding first four terms and thus
(0.2) = 1.24267 ≅ 1.243 ( 3D )
. . .
But, (0.4) = 1 + 0.4 + 0.16 + + + +⋯
y , x 0, x0 h i.e. O h n
h n
Error of Taylor series will be
n!