Q 3.7-2E

Question

Determine the recursive formulas for the Taylor method of order 2 for the initial value problem y'=xy-y2,y(0)=-1.

Step-by-Step Solution

Verified
Answer

yn+1=yn+h(xnyn+yn2)-h22(yn+(xn-2yn)(xnyn-yn2))

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

Here y'=xy-y2,y(0)=-1

 

Apply the chain rule.

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


Since f(x,y)=xy-y2

 

fx(x,y)=yfy(x,y)=x-2y

 

So, the equation is f2(x,y)=y+(x-2y)(xy-y2)

2Step 2: Apply the recursive formulas for order 2

The recursive formula is

 

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

 

for order  p = 2 then

 

xn+1=xn+hyn+1=yn+h(xnyn+yn2)-h22(yn+(xn-2yn)(xnyn-yn2))

 

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

 

Hence, the solution is yn+1=yn+h(xnyn+yn2)-h22(yn+(xn-2yn)(xnyn-yn2))