Source
Adapted from my own handwritten and hand-typed notes from Year 1 to Year 3 of my EEE degree
Simpson's Rule approximates by fitting a parabola through each group of three neighbouring points. Parabolas follow curves better than the straight lines of the Trapezoidal Rule, so it is usually far more accurate for the same .
Key Idea
Take three points at , , with heights . Shift so the middle point is at (area does not change) and fit :
From , , we get and , so
Adding this over consecutive pairs of subintervals gives the rule.
Formula
With even, , , :
Coefficient pattern :
- first and last : coefficient
- odd : coefficient
- even (not the ends): coefficient
Steps
Work through it in this order:
- Choose an even and compute
- Tabulate and
- Multiply by the pattern, add, and multiply by
Worked Example
with , , using the same table as the Trapezoidal Rule (, , , , ):
Compare : with so few points the two rules differ a lot for this fast-oscillating integrand.
Exact for Quadratics
with , :
This equals the exact value , as expected: when is itself a quadratic, the fitted parabola is . (Simpson's Rule is in fact exact for cubics too.)