Newton-Cotes Quadrature
Newton-Cotes formulas approximate integrals by integrating polynomial interpolants through equally-spaced points, providing simple and widely-used quadrature rules.
A Newton-Cotes formula of order approximates: where with are equally-spaced nodes, and weights are chosen so the formula is exact for polynomials of degree .
The weights satisfy (exactness for constant functions).
The most common Newton-Cotes rules are:
Trapezoidal Rule (): Exact for linear functions. Error: for some .
Simpson's Rule (): Exact for cubics (surprisingly, not just quadratics). Error: .
Simpson's 3/8 Rule ():
Composite Rules: For better accuracy, subdivide into subintervals and apply the rule on each:
Composite Trapezoidal: where . Error: .
Composite Simpson: Error: .
The composite trapezoidal rule is simple but requires many points for high accuracy. Simpson's rule is more efficient, achieving quartic convergence with only twice the work. However, for very smooth functions, adaptive methods or Gaussian quadrature (using optimally-chosen non-uniform nodes) outperform fixed Newton-Cotes formulas.
Higher-order Newton-Cotes formulas exist but are rarely used: they can have negative weights (numerical instability) and don't improve as rapidly as Gaussian quadrature. The trapezoidal and Simpson rules remain workhorses due to their simplicity, reliability, and sufficient accuracy for most applications.
Practical implementations use adaptive refinement: subdividing intervals where error estimates indicate insufficient accuracy, concentrating computational effort where the integrand varies rapidly.