Question #74135

determine the constants a, b, c in the differentiation formula y '' (x0) =ay(x0-h) +by(x0) +cy(x0 +h). so that the method of the highest possible order and the error term of the method.
1

Expert's answer

2018-03-08T12:30:07-0500

Answer to Question #74135, Math / Quantitative Methods

Determine the constants a,b,ca, b, c in the differentiation formula


y(x)=ay(xh)+by(x)+cy(x+h)y ^ {\prime \prime} (x) = a y (x - h) + b y (x) + c y (x + h)


so that the method of the highest possible order and the error term of the method.

Solution.

We choose the coefficients a,b,ca, b, c so that y(x)y''(x) is exact for y(x)=xjy(x) = x^j for j=0,1,2,j = 0,1,2,\ldots

From Taylor series:


y(xh)=y(x)hy(x)+12!h2y(x)13!h3y(x)+14!h4y(4)(x)+y (x - h) = y (x) - h y ^ {\prime} (x) + \frac {1}{2 !} h ^ {2} y ^ {\prime \prime} (x) - \frac {1}{3 !} h ^ {3} y ^ {\prime \prime \prime} (x) + \frac {1}{4 !} h ^ {4} y ^ {(4)} (x) + \dotsy(x+h)=y(x)+hy(x)+12!h2y(x)+13!h3y(x)+14!h4y(4)(x)+y (x + h) = y (x) + h y ^ {\prime} (x) + \frac {1}{2 !} h ^ {2} y ^ {\prime \prime} (x) + \frac {1}{3 !} h ^ {3} y ^ {\prime \prime \prime} (x) + \frac {1}{4 !} h ^ {4} y ^ {(4)} (x) + \dots


If y(x)=1y(x) = 1 then


a+b+c=0a + b + c = 0


If y(x)=xy(x) = x then


h(ac)=0h (a - c) = 0


If y(x)=x2y(x) = x^2 then


h2(a+c)2=1\frac {h ^ {2} (a + c)}{2} = 1


Thus:


a=c=1h2;b=2h2a = c = \frac {1}{h ^ {2}}; b = - \frac {2}{h ^ {2}}


The error:


ε=y(x)Dh(2)y(x)\varepsilon = y ^ {\prime \prime} (x) - D _ {h} ^ {(2)} y (x)Dh(2)y(x)=y(xh)2y(x)+y(x+h)h2D _ {h} ^ {(2)} y (x) = \frac {y (x - h) - 2 y (x) + y (x + h)}{h ^ {2}}


Using the Taylor series approach:

Answer to Question #74135, Math / Quantitative Methods


εy(x)y(xh)2y(x)+y(x+h)h2=y(x)y(x)214!h2y(4)(x)\varepsilon \approx y ^ {\prime \prime} (x) - \frac {y (x - h) - 2 y (x) + y (x + h)}{h ^ {2}} = y ^ {\prime \prime} (x) - y ^ {\prime \prime} (x) - 2 \cdot \frac {1}{4 !} h ^ {2} y ^ {(4)} (x)ε224h2y(4)(x)=h212y(4)(x)\varepsilon \approx - \frac {2}{2 4} h ^ {2} y ^ {(4)} (x) = - \frac {h ^ {2}}{1 2} y ^ {(4)} (x)


Answer provided by https://www.AssignmentExpert.com

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS