Trapezoid rule and Simpson's rule
5 min read
Short answer
Trapezoid: . Simpson (even ): . The trapezoid error shrinks like , Simpson's like , so Simpson is much more accurate for smooth functions.
Why Simpson works so well
Fitting a parabola through three points integrates exactly any polynomial up to degree 3 (the odd cubic part cancels by symmetry). The leading error term involves , so functions that are cubic or lower are integrated exactly.
Practical use
Use trapezoid for tabulated, noisy data and Simpson for smooth functions. Doubling and comparing results gives a free error estimate.
Worked example
Approximate with () using both rules. The exact value is .
Values: , , . Trapezoid: (error ). Simpson: (exact).
Try it yourself
Apply the trapezoid rule with to .
Show the answer
: , exact because is linear.
Keep going with practice
Vidi's integration lessons use the same sums of function values that define the integral.