By Euler's formula we know that , yn+1=yn+h.f(xn,yn) .........(1)
Here given that f(x,y)=x−y2 with y(0)=1.
∴x0=0 and y0=1
Also given that h=0.2 . We have to find the value of y in the interval [0,0.6] .
We also know that, xn+1=xn+h
Therefore, x1=0.2 for n=0
x2=0.4 for n=1
x3=0.6 for n=2
Now corresponding to these values of x1,x2,x3 we get the values of y1,y2,y3 with the help of (1).
For n=0 , y1=y0+h.f(x0,y0)
=1+(0.2)×[0−12]
=1−0.2=0.8
For n=1, y2=y1+h.f(x1,y1)
=0.8+(0.2)×[0.2−(0.8)2]
=(0.8−0.088)=0.712
For n=2, y3=y2+h.f(x2,y2)
=0.712+(0.2)×[0.4−(0.712)2]
=0.712−0.0213838
=0.6906
Therefore the required solutions in [0,0.6] are , y(0)=1 , y(0.2)=0.8 , y(0.4)=0.712 and y(0.6)=0.6906 .
Comments