Q 3.7-3E

Question

Determine the recursive formulas for the Taylor method of order 4 for the initial value problem y'=x-y,y(0)=0.

Step-by-Step Solution

Verified
Answer

yn+1=yn+h(xn-yn)+(h22-h36+h424)(1-xn+yn)

1Step 1: Find the value of f 2 (x,y)

Here y'=x-y,y(0)=0

 

Apply the chain rule.

 f2(x,y)=fx(x,y)+fy(x,y)f(x,y)


 

Since f(x,y)=x-y

 

fx(x,y)=1fy(x,y)=-1

 

So, the equation is f2(x,y)=1-x+y

2Step 2: Evaluate the values of f 2 (x,y) and f 4 (x,y)

Apply the same procedure as step 1

 

f3(x,y)=-1+x-yf4(x,y)=1-x+y


3Step 3: Apply the recursive formulas for order 4

The recursive formula is


xn+1=xn+hyn+1=yn+hf(xn+yn)+h22!f2(xn+yn)+.....hpp!fp(xn+yn)


xn+1=xn+hyn+1=yn+h(xn-yn)+h22-h36+h424(1-xn+yn)



Where starting points are xo=0,y0=0.


Hence the solution is yn+1=yn+h(xn-yn)+(h22-h36+h424)(1-xn+yn)