Q 3.6-2E

Question

Show that when Euler’s method is used to approximate the solution of the initial value problem y'=-12y,y(0)=3,at x = 2, then the approximation with step size h is 3(1-h2)2h .

Step-by-Step Solution

Verified
Answer

Proved

1Step 1: Apply Euler’s formula

Here  y'=-12y,y(0)=3

 

Apply the Euler’s formula 

yn+1=yn+hf(xn,yn)


In our case of differential equation our equation is 

yn=3(1-h2)n


The interval is 

b-an=2-0n=2nn=2h



 

2Step 2: substitute in the Euler’s formula

Now,


y1=31-h2y2=31-h22...yn=31-h2nyn=31-h22h


Hence it is proved that  yn=31-h22h