Q3E

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.1 (h = 0.1).

dydx=x+y,y(0)=1

Step-by-Step Solution

Verified
Answer
xn
0.10.20.30.40.5
yn
1.11.221.362
1.528
1.72
1Writing the recursive formula

Given, f(x,y)=x+y,x0=0,y0=1,h=0.1

Then yn+1=yn+h·f(xn,yn)=yn+(0.1)(xn+yn)

2Putting n = 0 to find y 1

y1=y0+(0.1)(x0+y0)=1+(0.1)(0+1)=1+(0.1)=1.1

The value of y1=1.1  for  x1=0.1

3Putting n = 1 to find y 2

y2=y1+(0.1)(x1+y1)=1.1+(0.1)(0.1+1.1)=1.1+(0.12)=1.22

The value of  y2=1.22 for  x2=0.2

4Putting n = 2 to find y 3

y3=y2+(0.1)(x2+y2)=1.22+(0.1)(0.2+1.22)=1.22+(0.142)=1.362

The value of  y3=1.362 for  x3=0.3

5Putting n = 3 to find y 5

y4=y3+(0.1)(x3+y3)=1.362+(0.1)(0.3+1.362)=1.362+0.166=1.528

The value of  y4=1.528 for  x4=0.4

6Putting n = 4 to find y 5

y5=y4+(0.1)(x4+y4)=1.528+(0.1)(0.4+1.528)=1.528+0.192=1.72

The value of  y5=1.72 for  x5=0.5

Hence, the solution is

xn
0.10.20.30.40.5
yn
1.11.22
1.362
1.528
1.72