Q5E

Question

Use Euler’s method with step size h = 0.1 to approximate the solution to the initial value problem 

 y'=x-y2, y (1) = 0 at the points x=1.1, 1.2, 1.3, 1.4 and 1.5 .

Step-by-Step Solution

Verified
Answer
xn
1.11.21.31.41.5
yn
0.1
0.209
0.325
0.444
0.564
1Write the recursive formula

For the solution use the Euler’s formula yn+1=yn+h.fxn,yn

2Apply recursive formula

We have, fx,y=x-y2,x0=1,y0=0,h=0.1

Then, yn+1=yn+h.fxn,yn=yn+0.1x-y2

3Put n = 0 to find y 1

Now, find the value of  y1

y1=y0+0.1x0-y02=0+0.11=0.1

Hence, the value of  y1=0.1 when  x1=1.1

4Put n = 1 to find y 2

The value of y2 is

y2=y1+0.1x1-y12=0.1+0.11.1-0.01=0.1+0.109=0.209

Consequently, the value is  y2=0.209  when  x2=1.2

5Put n = 2 to find y 3

 Now the value of  y3 

y3=y2+0.1x2-y22=0.209+0.11.2-0.043=0.209+0.116=0.325

So, the value of  y3=0.325  when  x3=1.3

6Put n = 3 to find y 4

The value of y4 is

y4=y3+0.1x3-y32=0.325+0.11.3-0.106=0.325+0.119=0.444

Thus, the value is  y4=0.444  when  x4=1.4

7Put n = 4 to find y 5

The value of y5 is

y5=y4+0.1x4-y42=0.444+0.11.4-0.197=0.444+0.12=0.564

Therefore, the value is  y5=0.564 when  x5=1.5


Therefore the solution is 


xn
1.11.21.31.41.5
yn
0.10.2090.325
0.444
0.564