Q 3.6-7E

Question

Use the improved Euler’s method subroutine with step size = 0.1 to approximate the solution to the initial value problem y'=x=y2,y(1)=0 , at the points = 1.1, 1.2, 1.3, 1.4, and 1.5. (Thus, input = 5.) Compare these approximations with those obtained using Euler’s method (see Exercises 1.4, Problem 5, page 28).

Step-by-Step Solution

Verified
Answer

  xn

 yn

1.1

0.10450

1.2

0.21668

1.3

0.33382

1.4

0.4530

1.5

0.57135

1Step 1: Find the equation of approximation value

Here y'=x=y2,y(1)=0, for  1x1.5

 

For h=0.1,x=1,y=0,N=5

F=f(x,y)=x-y2G=f(x+h,y+hF)=x+h-(y+hF)2G=x+h-(y+h(x-y2))2

Apply initial points  xo=1,yo=0,h=0.1

 

F=1-02=1G=1+0.1-(0+0.1(1-02))2=1.09


2Step 2: Solve for x 1 and x 2

x1=1+0.1=1.1y1=0+0.12(1+1.09)=0.1045

3Step 3: Evaluate the value of x 2 and y 2

F=1.1+(0.1045)2=1.0891G=(1.1+0.1)-(0.1045+0.1(1.1-(0.1045)2)2G=1.1545

x2=1.1+0.1=1.2y2=0.1045+0.05(1.0891+1.1545)=0.21668

4Step 4: Determine the value of x 3 and y 3

F=1.2+(0.21668)2=1.15305G=(1.2+0.1)-(0.21668+0.1(1.2-(0.21668)2)2G=1.1898

x3=1.2+0.1=1.3y3=0.21668+0.05(1.15305+1.1898)=0.33382


5Step 5: Determine the value of x 4 and y 4

F=1.3+(0.33382)2=1.1856G=(1.3+0.1)-(0.33382+0.1(1.3-(0.33382)2)2G=1.19508

x4=1.3+0.1=1.4y4=0.33382+0.05(1.18856+1.19508)=0.4530

6Step 6: Evaluate the value of x 5 and y 5

F=1.4+(0.4530)2=1.19479G=(1.4+0.1)-(0.4530+0.1(1.4-(0.4530)2)2G=1.17227x5=1.4+0.1=1.5y5=0.4530+0.05(1.19497+1.17227)=0.57135


Hence the solution is 

  xn

 yn

1.1

0.10450

1.2

0.21668

1.3

0.33382

1.4

0.4530

1.5

0.57135