Q 3.6-10E

Question

Use the improved Euler’s method subroutine with step size h = 0.1 to approximate the solution to y'=4cos(x+y),y(0)=0, at the points x=0,0.1,0.2,...,1.0. Use your answers to make a rough sketch of the solution on [0,1].

Step-by-Step Solution

Verified
Answer

The required result is 

x=0,y=1,x=0.1,y=0.158447,x=0.2,y=0.4988,x=0.3,y=0.7418,

x=0.4,y=0.88777,x=0.5,y=0.95787, x=0.6,y=0.9730,x=0.7,y=0.952329

x=0.8,y= 0.906359, x=0.9,y=0.843228, x=1,y=0.768434



1Step 1: Important formula.

For finding the values of  and  use Euler’s formula,

xn+1=xn+hyn+1=xn+h2F+G


2Step 2: find the equation of approximation value

Here y'=4cosx+y,y0=0, for 0x1.

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


F=fx,y=4cosx+yG=fx+h,y+hF=4cosx+y+0.1+0.4cosx+y

3Step 3: solve for x 1 and y 1

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

F0,1=2.16121G0,1=1.00773

xn+1=xn+hyn+1=xn+h2F+G


x1=0+0.1=0.1y1=0+0.122.16121+1.00773=0.158447




4Step 4: evaluate the value of x 2 and u=y 2 .

Now, the value of F and G

F0.1,0.158447=3.86715G0.1,0.158447=2.93991x2=0.1+0.1=0.2y2=0.4988


5Step 5: determine the all-other values

Apply the same procedure for all other values and the values are 

x=0.2,y=0.4988 x=0.3,y=0.7418 x=0.4,y=0.88777 x=0.5,y=0.95787x=0.6,y=0.9730 x=0.7,y=0.952329 x=0.8,y=0.906359 x=0.9,y=0.843228x=1,y=0.768434


6Step 6: plot a graph for all values.


By putting the values of x and y can draw a graph.






Therefore, this is the required result.