I have been working on this homework problem for 2 hours, having thought it was pretty simple, and its really annoying me.
I am given two operators and a function f(x) that is five times differentiable on some interval. $$\alpha f(x)=f(x+h/2) - f(x-h/2)$$ And $$\beta f(x) = 1/2(f(x+h/2) + f(x-h/2))$$ I am asked to prove that $$\beta\alpha^3f(x) = h^2/2(f''(x+h) - f''(x-h)) + O(h^5))$$
I believe we are working with equispaced points, where $\delta x = h$. Possibly relevant equations: At a fixed point $$(1) f''(x) ~ 1/4h^2(\alpha^2)f(x)) = f''(x) + O(h^2)$$ $$ (2) f''(x_v) ~ \frac{f_{v+1}(x) - 2f_v(x) + f_{v-1}(x)}{h^2} = f'(x_v) + O(h^2)$$ (Where $f_v(x) = f(x_0 + vh)$)
Attempted Solution: $$\alpha f(x) = f(x + h/2) - f(x-h/2)$$ $$\alpha^2f(x) = f(x + h) - f(x) - f(x) +f(x-h)$$ $$\alpha^3f(x) = f(x+3h/2) -2f(x + h/2) + f(x-h/2) -f(x+h/2) +2f(x-h/2) - f(x - 3h/2)$$ $$\beta\alpha^3f(x) = 1/2( [f(x+2h) -2f(x +h) + f(x) -f(x+h) +2f(x) -f(x-h)] - [f(x+h) -2f(x) + f(x-h) -f(x) + 2f(x-h) -f(x-2h)]) = 1/2(f(x+2h) -5f(x+h) +5f(x) -5f(x-h) -f(x-2h))$$ I may be a bit off with the expression--every time I work through it, I seem to get different solution.
After expanding it out, I can't seem to get it to fit the equation Im proving. The main reason is 1. The formula (1) for f''(x+h) requires a term f(x+3h). You cannot get it from the operators. Formula (2) you do not need that term, but I cannot get it to work out.
- How on earth do I get orders of $h^5$ as the error? I understand getting $O(h^4)$--that follows directly from factoring out $h^2$ when substituting in f''(x).