Every Newton-Cotes formula replaces f(x) with a polynomial Pn(x), and the error in the integral is determined by how well Pn(x) approximates f(x) over [a,b]. From polynomial interpolation theory we already know that the pointwise error in Pn(x) is controlled by f(n+1)(ξ) and the product of distances from x to each node. Integrating that pointwise bound directly gives the error bound for In(f).
General Error Bound
The error in degree-n Lagrange interpolation at any point x∈[a,b] satisfies:
To get a numerical bound, replace ∣f′′(ξ)∣ with M2=maxx∈[a,b]∣f′′(x)∣:
∣I(f)−I1(f)∣≤12M2(b−a)3
For a convex function (f′′(x)>0 throughout [a,b]), the chord lies strictly above the curve, and the red region represents the entire overestimation I1−I(f).
Effect of Higher-Degree Rules
Rule
Order n
Leading Error Term
Error vs. (b−a)
Trapezoidal
1
12M2(b−a)3
O((b−a)3)
Simpson’s
2
90M4(b−a)5
O((b−a)5)
Two observations follow immediately:
Higher-degree rules are more accurate on a fixed interval. Simpson’s Rule introduces an error proportional to (b−a)5 rather than (b−a)3. For a moderately sized interval this is a dramatic reduction.
The Composite Trapezoidal Rule trades interval size for accuracy. Using m sub-intervals each of width h=(b−a)/m, the error per sub-interval is O(h3) and the total error is m×O(h3)=O(h2). Doubling m halves h and reduces the total error by a factor of approximately 4.