14. Taylor Series method (second order differential equation) example ( Enter your problem )
  1. Formula & Example-1 : `y''=1+2xy-x^2z`
  2. Example-2 : `y''=xz^2-y^2`
  3. Example-3 : `y''=-4z-4y`
Other related methods
  1. Euler method (first order differential equation)
  2. Runge-Kutta 2 method (first order differential equation)
  3. Runge-Kutta 3 method (first order differential equation)
  4. Runge-Kutta 4 method (first order differential equation)
  5. Improved Euler method / Modified Euler method (first order differential equation)
  6. Midpoint Euler method (first order differential equation)
  7. Taylor Series method (first order differential equation)
  8. Euler method (second order differential equation)
  9. Runge-Kutta 2 method (second order differential equation)
  10. Runge-Kutta 3 method (second order differential equation)
  11. Runge-Kutta 4 method (second order differential equation)
  12. Improved Euler method / Modified Euler method (second order differential equation)
  13. Midpoint Euler method (second order differential equation)
  14. Taylor Series method (second order differential equation)

13. Midpoint Euler method (second order differential equation)
(Previous method)
2. Example-2 : `y''=xz^2-y^2`
(Next example)

1. Formula & Example-1 : `y''=1+2xy-x^2z`





Formula
Taylor Series method
`h=x-x_n`
`y_(n+1) = y_n + hy_n' + h^2/(2!) y_n'' + h^3/(3!) y_n''' + h^4/(4!) y_n^(iv) + h^5/(5!) y_n^(v) + ...`

Examples
1. Find y(0.1) for `y''=1+2xy-x^2z`, `x_0=0, y_0=1, z_0=0`, with step length 0.1 using Taylor Series method (second order differential equation)

Solution:
Given `y^('')=1+2xy-x^2z, y(0)=1, y'(0)=0, h=0.1, y(0.1)=?`

put `(dy)/(dx)=z` and differentiate w.r.t. x, we obtain `(d^2y)/(dx^2)=(dz)/(dx)`

We have system of equations
`(dy)/(dx)=z=f(x,y,z)`

`(dz)/(dx)=1+2xy-x^2z=g(x,y,z)`

Here, `x_0=0,y_0=1,z_0=0,h=0.1,x_n=0.1`

Differentiating successively, we get
Derivative steps

`d/(dx)(1+2xy-x^2y')`

`=d/(dx)(1)+d/(dx)(2xy)-d/(dx)(x^2y')`

`d/(dx)(2xy)=2y+2xy'`
`d/(dx)(2xy)`

`=2*(d/(dx)(x))y+2x(d/(dx)(y))`

`=2*1y+2x(y')`

`=2y+2xy'`


`d/(dx)(x^2y')=2xy'+x^2y''`
`d/(dx)(x^2y')`

`=(d/(dx)(x^2))y'+x^2(d/(dx)(y'))`

`=(2x)y'+x^2(y'')`

`=2xy'+x^2y''`


`=0+(2y+2xy')-(2xy'+x^2y'')`

`=0+2y+2xy'-2xy'-x^2y''`

`=2y-x^2y''`

Now, `d^2/(dx^2)(1+2xy-x^2y')=d/(dx)(2y-x^2y'')`

`=d/(dx)(2y)-d/(dx)(x^2y'')`

`d/(dx)(x^2y'')=2xy''+x^2y'''`
`d/(dx)(x^2y'')`

`=(d/(dx)(x^2))y''+x^2(d/(dx)(y''))`

`=(2x)y''+x^2(y''')`

`=2xy''+x^2y'''`


`=2y'-(2xy''+x^2y''')`

`=2y'-2xy''-x^2y'''`


`y'=1+2xy-x^2y'`

`y''=1+2xy-x^2y'`

`y'''=2y-x^2y''`

`y^(iv)=2y'-2xy''-x^2y'''`

Now substituting, we get
`y_0''=1+2x_0y_0-x_0^2y_0'=1`

`y_0'''=2y_0-x_0^2y_0''=2`

`y_0^(iv)=2y_0'-2x_0y_0''-x_0^2y_0'''=0`

Putting these values in Taylor Series, we have
`y_1 = y_0 + hy_0' + h^2/(2!) y_0'' + h^3/(3!) y_0''' + h^4/(4!) y_0^(iv) + ...`



for `n=0,x_0=0,y_0=1,y_0'=0`

`=1+0.1*(0)+(0.1)^2/(2)*(1)+(0.1)^3/(6)*(2)+(0.1)^4/(24)*(0)+...`

`=1+0+0.005+0+0+...`

`=1.0053`

`x_1=x_0+h=0+0.1=0.1`

`:.y(0.1)=1.0053`

`n``x_n``y_n``y_n'``y_n''``y_n'''``y_n^(iv)``x_(n+1)``y_(n+1)`
00101200.11.0053





This material is intended as a summary. Use your textbook for detail explanation.
Any bug, improvement, feedback then Submit Here



13. Midpoint Euler method (second order differential equation)
(Previous method)
2. Example-2 : `y''=xz^2-y^2`
(Next example)





Share this solution or page with your friends.
 
 
Copyright © 2026. All rights reserved. Terms, Privacy
 
 

.