Simpson's rule
Apply Simpson's rule to a table or a formula with an even number of pieces. The idea in plain words, a worked example, and a check with the answers shown — part of the free Calculus II guides.
The trapezoidal rule approximates the integrand by straight lines. Simpson's rule goes one degree further: it fits a parabola through three consecutive sample points.
That needs two subintervals per parabola, so must be even. With pieces there are parabolas, and adding their areas gives the weights
Read the pattern before anything else:, then divide by three. Odd-indexed interior samples get 4, even-indexed interior samples get 2, the ends get 1.
Where the one third comes from. For a parabola through,,, the exact area from to is using and. Note the term integrates to zero over a symmetric interval, so a parabola's area depends only on the three heights — which is what makes the rule possible at all.
Why it is so much better than it looks. The rule is built from quadratics, but it is exact for every cubic too. That extra degree is free: the error term carries a fourth derivative, so any polynomial of degree at most three is integrated exactly. The next-but-one skill asks you to prove that, and the family that tests it draws the degree.
Take one parabola through at. On the symmetric interval the odd term integrates away:
Now express in the three heights. From the parabola: so and therefore.
That is the pattern for one parabola. Shifting it horizontally does not change the area, so the same formula applies to every pair of pieces. Adding the parabolas, the shared interior points are counted twice — once as the right end of one parabola and once as the left end of the next — and that is where the 2s come from, exactly as in the trapezoidal rule.
Why the divisor is three. It is the in: the integral of brings a third. Nothing more.
The cubic exactness. A cubic's fourth derivative is zero, and Simpson's error is with bounding. So the formula is not merely "better than the trapezoid" — it is exactly right on a whole degree of polynomials the trapezoid gets wrong.
Estimate from,,,,.
and is even, so Simpson applies. Weights:
Compare the trapezoidal estimate:, and. The two differ by, and for a curve that peaks in the middle (concave down there) the trapezoid should under-estimate —. ✓
An odd refused. Had the table had five pieces instead of four, Simpson's rule would not apply as stated: a parabola needs two pieces, so an odd count leaves one piece unpaired. The honest response is to use the trapezoid on the last piece and Simpson on the rest, and to say so — not to apply the weight pattern to a count it does not fit.
- Apply Simpson's rule to a table or a formula with an even number of pieces
- Explain the 1,4,2,4,1 weights and the divisor three
- Say for which polynomial degrees the rule is exact
- 1. Estimate with by Simpson's rule. Is it exact?
- 2. Why does Simpson's rule need an even number of pieces?
- 3. Estimate with by Simpson and compare with.
Answers
1. Weights on values:. The exact value is 8, so it is exact — as it is for every polynomial of degree at most three. 2. Each parabola passes through three points and therefore spans two subintervals; an odd count leaves one piece without a partner. 3. Values:. The exact value is and, so the estimate is high by about — the rule is not exact for a quartic.