All courses › Numerical Methods › Simpson's rule
Simpson's rule
Simpson's rule approximates the integral by fitting a parabola through each pair of intervals, instead of a straight line. It integrates polynomials up to degree 3 exactly, and the error is — halving roughly cuts the error to a sixteenth.
Simpson's rule over one double interval
Symbols
| step size between neighbouring points | ||
| function values at the endpoints and midpoint |
Example
with :
— exact, since the degree is .
Simpson's rule needs an even number of intervals (an odd number of points).
Practise interpolation and integration for free →