Answer to Question #74135, Math / Quantitative Methods
Determine the constants a,b,c in the differentiation formula
y′′(x)=ay(x−h)+by(x)+cy(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,c so that y′′(x) is exact for y(x)=xj for j=0,1,2,…
From Taylor series:
y(x−h)=y(x)−hy′(x)+2!1h2y′′(x)−3!1h3y′′′(x)+4!1h4y(4)(x)+…y(x+h)=y(x)+hy′(x)+2!1h2y′′(x)+3!1h3y′′′(x)+4!1h4y(4)(x)+…
If y(x)=1 then
a+b+c=0
If y(x)=x then
h(a−c)=0
If y(x)=x2 then
2h2(a+c)=1
Thus:
a=c=h21;b=−h22
The error:
ε=y′′(x)−Dh(2)y(x)Dh(2)y(x)=h2y(x−h)−2y(x)+y(x+h)
Using the Taylor series approach:
Answer to Question #74135, Math / Quantitative Methods
ε≈y′′(x)−h2y(x−h)−2y(x)+y(x+h)=y′′(x)−y′′(x)−2⋅4!1h2y(4)(x)ε≈−242h2y(4)(x)=−12h2y(4)(x)
Answer provided by https://www.AssignmentExpert.com
Comments