Q1E

Question

In problems 1-4 Use Euler’s method to approximate the solution to the given initial value problem at the points x=0.1,0.2,0.3,0.4 , and 0.5 , using steps of size 0.1h=0.1 .

dydx=-xy , y(0)=4

Step-by-Step Solution

Verified
Answer
xn
0.10.20.30.40.5
yn
43.9983.9923.9853.975
1Write the recursive formula

One has,  fx,y=-xy,x0=0,y0=4,h=0.1 .

Then yn+1=yn+h.fxn,yn=yn+0.1-xnyn

2Put n = 0 to find role="math" localid="1663928029230" y 1

Now, find the value of  y1

y2=y1+0.1-x1y1=4+0.1-0.14=4-0.0025=3.998

Thus, the value is  y2=3.998  when  x2=0.2

3Put n = 2 to find y 3

Now the value of  y3

y3=y2+0.1-x2y2=3.9975+0.1-0.23.9975=3.9975-0.005=3.992

So, the values get  y3=3.992 when  x3=0.3

4Put n = 3 to find y 4

The value of  y4 is

y4=y3+(0.1)-x3y3=3.9925+(0.1)-0.33.9925=3.9925-0.0075=3.985

Consequently, the value of  y4=3.985 when  x4=0.4

5Put n = 4 to find y 5

The value of  y5 is

y5=y4+0.1-x4y4=3.9849+0.1-0.43.9849=3.9849-0.0100=3.975

Therefore, the value of  y5=3.975 when x5=0.5 .


Therefore, the solution is

xn
0.10.30.40.50.6
yn
43.998
3.992
3.985
3.975