Q 3.6-14E

Question

By experimenting with the improved Euler’s method subroutine, find the maximum value over the interval [0,2] of the solution to the initial value problem y'=sin(x+y),y(0)=2 Where does this maximum value occur? Give answers to two decimal places.

Step-by-Step Solution

Verified
Answer

The maximum value of the solution on the given conditions and on the interval is 2.359

1Step 1: Find the equation of approximation value

Here y'=sin(x+y),y(0)=2,

 

For  x = 0, yo=2, M = 200, h = 0.1, interval = .0,2


F=f(x,y)=sin(x+y)G=f(x+h,y+hF)=sin(x+y+0.1(1+sin(x+y))

 

2Step 2: Solve for x and y

Apply initial points x=0,y=2,h=0.1


F(0.2)=0.909297G(0.2)=0.813201

x=(x+h)y=x+h2(F+G)


 x=0.1y=2.08615


 

3Step 3: Determine the all-other values

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

(x = 0.77, y = 2.359)

 

(x = 0.78, y = 2.360)

 

(x = 0.79, y = 2.360)

 

(x = 0.79, y = 2.359)

 

Hence, the maximum value of the solution on the given conditions and on the interval is 2.359.