The Simpson's rule can be stated as follows:
$$\int\limits_{x_0}^{x_2}f(x)dx\approx \frac{h}3\left[f(x_0)+4f(x_1)+f(x_2)\right]$$
The way I'm trying to find the error bound for the Simpson's rule is as follows:
- Taylor-expand $f(x)$ about $x_0$, $x_1$ and $x_2$ up to and including the 4th derivative:
$$f(x) = f(x_i)+(x-x_i)f'(x)+(x-x_i)^2\frac{f''(x_i)}2 +(x-x_i)^3\frac{f^{(3)}(x_i)}6+(x-x_i)^4\frac{f^{(4)}(\xi_i)}{24}$$
Add the three expansions of $f(x)$ as in the Simpson's rule and rearrange the terms and coefficients accordingly, so that $f(x)$ is LHS, and the rest is RHS.
Take the integrals of both sides, namely integrate the RHS to find the error. And here's the part I'm having an issue with. Upon integrating I'm getting \
$$\int\limits_{x_0}^{x_2} f(x) dx = \frac{h}3 (f(x_0)+4f(x_1)+f(x_2)) + \frac12 h^2f'(x_0)-\frac12 f'(x_2)+\frac43 h^3 f''(x_0)$$ $$+\frac43 h^3 f''(x_1)+\frac43 h^3 f''(x_2)+\frac23 h^4f^{(3)}(x_0)-\frac23 h^4 f^{(3)}(x_2)$$ $$+\frac{4}{15}h^5 f^{(5)}(\xi_0)+\frac{1}{15}h^5 f^{(5)}(\xi_1) + \frac{4}{15}h^5 f^{(5)}(\xi_2)$$
It looks like I might be on the right track, but my derivative terms preceding the fourth derivative don't cancel out. What can I do to fix this?
Update: MVT might possibly help here, I'll try it out in a few hours and will report of the results.