2. Find y(0.2) for `y''=xz^2-y^2`, `x_0=0, y_0=1, z_0=0`, with step length 0.2 using Euler method (2nd order derivative)
Solution:
Given `y^('')=xz^2-y^2, y(0)=1, y'(0)=0, h=0.2, y(0.2)=?`
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)=xz^2-y^2=g(x,y,z)`
Euler method for second order differential equation
`y_1=y_0+hf(x_0,y_0,z_0)=1+(0.2)*f(0,1,0)=1+(0.2)*(0)=1+(0)=1`
`:.y(0.2)=1`
This material is intended as a summary. Use your textbook for detail explanation.
Any bug, improvement, feedback then