Q 3.7-1E

Question

Determine the recursive formulas for the Taylor method of order 2 for the initial value problem y'=cos(x+y),y(0)=π.

Step-by-Step Solution

Verified
Answer

yn+1=yn+hcos(xn+yn)-h22sin(xn+yn)(1+cos(xn+yn))

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

Here  y'=cos(x+y),y(0)=π

 

Apply the chain rule.

 

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

 

Since  f(x,y)=cos(x+y)

 fx(x,y)=-sin(x+y)fy(x,y)=-sin(x+y)

 

 

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

2Step 2: Apply the recursive formulas for order 2

The recursive formula is

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


for order p = 2 then

 xn+1=xn+hyn+1=yn+h cos(xn+yn)-h22sinxn+yn(1+cos(xn+yn))

 

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

 

Hence the solution is   yn+1=yn+hcos(xn+yn)-h22sin(xn+yn)(1+cos(xn+yn))