Error analysis for basic Simpson's rule: $$\int_a^{a+2h}f(x)\:dx\approx \frac{h}{3}[f(a)+4f(a+h)+f(a+2h)]$$ The error term in Simpson's rule can be established by using the Taylor series such that $$f(a+h)=f+hf'+\frac{1}{2!}h^2f''+\frac{1}{3!}h^3f'''+\cdots$$ $$f(a+2h)=f+2hf'+2h^2f''+\frac{4}{3}h^3f'''+\cdots$$ $$\frac h3[f(a)+4f(a+h)+f(a+2h)]=2hf+2h^2f'+\frac 43h^3f''+\frac 23h^4f'''+\cdots\quad (1)$$ Let $$F(x)=\int_a^xf(t)\:dt$$ The taylor series for $F(a+2h)$ is $$F(a+2h)=F(a)+2hF'(a)+2h^2F''(a)+\frac{4}{3}h^3F'''(a)+\cdots$$ By the FTC, $F'=f,F''=f',$ and so on. Observe that $F(a)=0$, $$\int_a^{a+2h}f(x)\:dx=0+2hf+2h^2f'+\frac{4}{3}h^3f''+\cdots\qquad(2)$$ Subtracting $(1)$ from $(2)$, $$\int_a^{a+2h}f(x)\:dx-\frac h3[f(a)+4f(a+h)+f(a+2h)]=-\frac{h^5}{90}f^{(4)}+\cdots$$ Error analysis for composite Simpson's rule:
Suppose that the interval $[a,b]$ is subdivided into an even number of subintervals, say n,each of width $h=\frac{b-a}{n}$. Then the partition points are $x_i=a+ih,0\leq i\leq n$. Now we have, $$\int_a^bf(x)\:dx=\sum_{i=1}^{\frac n2}\int_{a+2(i-1)h}^{a+2ih}f(x)\:dx$$ Using basic Simpson's Rule, $$\approx \sum_{i=1}^{\frac n2}\frac h3[f(a+2(i-1)h)+4f(a+(2i-1)h)+f(a+2ih)]-\frac{1}{90}h^5\sum_{i=1}^{\frac n2}f_{a\leq\delta\leq b}^{(4)}(\delta)$$
But how to get the error term like mentioned in book $-\frac{b-a}{180}h^4f^{(4)}(\delta)?$
I feel there must be another way to derive those formula by easily as I found great response from my previous Post.
I heartily thank if anyone explain any easy approach in details.