Skip to article frontmatterSkip to article content

Newton-Cotes integration

The Trapezoidal and Simpson rules were based on integrating a polynomial approximation. Such methods are called Newton-Cotes integration methods. If we choose n+1n+1 distinct points in [a,b][a,b] and approximate the function f:[a,b]Rf : [a,b] \to \re by interpolation

pn(x)=j=0nf(xj)j(x),x[a,b]p_n(x) = \sum_{j=0}^n f(x_j) \ell_j(x), \qquad x \in [a,b]

the integral can be approximated by

In(f)=abpn(x)dx=j=0nf(xj)abj(x)dx=j=0nwjf(xj)I_n(f) = \int_a^b p_n(x) \ud x = \sum_{j=0}^n f(x_j) \int_a^b \ell_j(x) \ud x = \sum_{j=0}^n w_j f(x_j)

where the weights are given by

wj=abj(x)dxw_j = \int_a^b \ell_j(x) \ud x

As an example for n=3n=3 and using uniformly spaced points, we interpolate by a cubic polynomial and the integral is approximated as

I3(f)=3h8[f0+3f1+3f2+f3]I_3(f) = \frac{3h}{8}[f_0 + 3 f_1 + 3 f_2 + f_3]

For general nn we can state the following error estimates.