Q5.3-11E

Question

In Problems 10–13, use the vectorized Euler method with h = 0.25 to find an approximation for the solution to the given initial value problem on the specified interval.

(1+t2)y''+y'-y=0;y(0)=1,y'(0)=-1on[0,1]

Step-by-Step Solution

Verified
Answer

The solution is:

y(0.25)=0.75y(0.5)=0.625y(0.75)=0.57353y(1)=0.563603

1Transform the equation

Here h=0.25 0n [0,1]

 

The equations can be written as,

 

x1(t)=y(t)x2(t)=x'(t)

 

The transformation of the equation is;

 x'1(t)=x2(t)x'2(t)=11+t2x1-11+t2x2


The initial conditions are;

x1(0)=y1(0)=1=x1,0x2(0)=y'(0)=-1=x2,0

 


2Apply Euler’s method.

Now, xn+1=xn+hf(tn,xn)

tn+1=tn+ht1=0+0.25x1(0.25)=x1,1=0.75x2(0.25)=x2,1=-0.5


And 

tn+1=tn+ht2=0.25+0.25=0.5x1(0.5)=x1,2=0.625x2(0.5)=x2,2=-0.20588

t3=0.5+0.25=0.75x1(0.75)=x1,3=0.57353x2(0.75)=x2,3=-0.039704


t4=0.75+0.25=1x1(1)=x1,4=0.563604x2(1)=x2,4=0.058413


This is the required result.