Q10E

Question

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

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

Step-by-Step Solution

Verified
Answer

y(0.25)=1y(0.5)=0.9375y(0.75)=0.8164y(1)=0.651855

1Step 1: Transform 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)=-x1-tx2

 

The initial conditions are;

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


2Step 2: Apply Euler’s method.

Now,

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

tn+1=tn+h=0+0.25x1(0.25)=x1,1=1x2(0.25)=x2,1=-0.25 

And

tn+1=tn+ht2=0.25+0.25x1(0.5)=x1,2=0.9375x2(0.5)=x2,2=-0.484375

 t3=0.5+0.25=0.75x1(0.75)=x1,3=0.816406x2(0.75)=x2,3=-0.658203

t4=0.75+0.25=1x1(1)=x1,4=0.651855x2(1)=x2,4=-0.738891

 


 

This is the required result.