Where a straight top falls short
The trapezium rule tops each strip with a straight chord. On a curve that bends, the chord cuts across the bend and leaves a sliver on every strip.
Take from x = 0 to x = 4 as one strip. The chord from (0, 0) to (4, 4.4) is the line y = 1.1x, and the triangle under it has area . The exact area is . The curve bulges above the chord, so the chord misses almost 3 square units.
The curve and the straight line y = 1.1x, which meet at (0, 0) and (4, 4.4). Between them, the curve bulges above the line, and that gap, about 2.93 square units, is what a single straight top leaves out.
Three points fix a parabola
A parabola has three coefficients, so three points fix it. Simpson’s rule takes the strips two at a time and tops each pair with the parabola through the curve at the pair’s left edge, middle and right edge.
Its area has a short form. Slide the pair so that its middle is at x = 0 and its edges are at −h and h, with heights , and . The area under the parabola is the integral of from −h to h, which is , since the Bx part cancels. At the middle, , and at the edges, . So , the same area.
One pair on from 1 to 3 has h = 1 and heights 1, 4 and 9, so it gives . The exact area is . The curve is itself a parabola, so the fitted top is the curve, and the rule is exact.
The gold curve , with the three points (1, 1), (2, 4) and (3, 9) that fix the parabola over one pair of strips from x = 1 to x = 3. The shaded area is , exactly the integral.
The weights 1, 4, 2, 4, 1
With four strips there are two pairs and five heights, to . The first pair gives and the second gives . The height is the right edge of one pair and the left edge of the next, so it is counted in both: .
With more pairs the same thing happens at every shared edge. The weights run 1, 4, 2, 4, 2, …, 2, 4, 1: the two ends 1, the middle of every pair 4, and every shared edge 2. All of it is multiplied by .
The strips must pair up, so their number must be even. With 7 strips one is left over, and no parabola can be fitted to it on its own.
Same strips, far smaller error
Estimate the integral of from 1 to 2, whose exact value is . With 2 strips, h = 0.5 and the heights are 1, 0.6667 and 0.5. The trapezium rule gives 0.708333, too much by 0.0152. Simpson’s rule gives , too much by 0.0013.
With 4 strips the trapezium rule gives 0.697024, off by 0.0039, and Simpson’s rule gives 0.693254, off by 0.00011. With 8 strips the errors are 0.00097 and 0.000007. Halving the strips cuts the trapezium error to a quarter each time. It cuts Simpson’s error by a factor of about 12 and then about 15, closing on 16 as the strips get thinner.
Simpson’s rule is exact for every cubic, not only for parabolas. On from 0 to 2, one pair with h = 1 gives , and the exact area is . On from 0 to 2 it gives against the exact .
each chord cuts across the bend, so the error falls only as 1/n²: |E| = 0.0037 with n = 4
Get the error under 0.001 with 4 strips
The trapezium rule with 4 strips on from 0 to 1.5: each chord cuts across the bend, an error of 0.0037. Switch to Simpson’s rule on the same five heights: two parabolas, each over a pair of strips, and the estimate is 0.8561 against the exact 0.8562, an error of 0.0001.
The usual mistakes
Using an odd number of strips. Simpson’s rule needs the strips in pairs, so 7 strips will not do; take another reading, or treat the odd strip with the trapezium rule.
Giving the end heights a weight of 4 or 2. They belong to one pair each and take weight 1.
Multiplying by . That is the trapezium rule’s multiplier; the area of a parabola over a pair gives .
Taking h as the width of a pair. h is the width of one strip, the gap between neighboring heights.
A river gauged from soundings
In the application below, nine depth soundings across a river make eight strips, an even number, so Simpson’s rule applies. Set beside it, the trapezium rule comes out smaller, because its straight chords cut inside a bed that dips away beneath them.
Worked example: A River Gauged From Soundings: The Flow by Simpson's Rule and What the Trapezium Rule Leaves Out
Question A river is 24 meters wide at a gauging station. A survey boat sounds the depth every 3 meters from one bank, and reads 0, 1.75, 3.00, 3.75, 4.00, 3.75, 3.00, 1.75 and 0 meters. The water is moving at a mean speed of 0.5 meters per second. (a) Use Simpson's rule on the nine soundings to find the area of the cross-section, and hence the flow. (b) Work the same soundings by the trapezium rule, and say which answer is the smaller and why.
1.Eight strips of 3 meters span the 24 meter width, and eight is even, so Simpson's rule applies. It weights the two bank soundings 1, the odd-numbered soundings 4 and the interior even-numbered ones 2, and multiplies by a third of the strip width.
Eight strips of 3 meters span the width, and eight is even, so Simpson's rule applies to the nine soundings. 2.(a) The area is 33[0 + 4(1.75 + 3.75 + 3.75 + 1.75) + 2(3.00 + 4.00 + 3.00) + 0] = 4 × 11 + 2 × 10 = 44 + 20 = 64 square meters.
(a) 33[0 + 4(1.75 + 3.75 + 3.75 + 1.75) + 2(3 + 4 + 3) + 0] = 44 + 20 = 64 square meters. 3.The flow is the area of the cross-section times the mean speed of the water: 64 × 0.5 = 32 cubic meters per second.
The flow is that area times the mean speed of the water: 64 × 0.5 = 32 cubic meters per second. 4.(b) The trapezium rule gives every interior sounding weight 1 and halves the two at the banks: 3(02 + 1.75 + 3.00 + 3.75 + 4.00 + 3.75 + 3.00 + 1.75 + 02) = 3 × 21 = 63 square meters, a flow of 31.5 cubic meters per second.
(b) The trapezium rule joins the soundings by straight chords: 3 × 21 = 63 square meters, a flow of 31.5. 5.The trapezium rule is the smaller by 1 square meter. Between soundings the bed dips away below the straight chord drawn across it, so every trapezium leaves out a sliver, and the eight slivers come to that square meter. Check: Simpson's mean depth is 6424 = 2.67 meters, two thirds of the deepest sounding of 4.00 meters, which is what a bed shaped like a parabola gives, and Simpson's rule is exact on a parabola.
Between soundings the bed dips below the chord, so each trapezium leaves out a sliver: 1 square meter in all.
Answer: (a) the cross-section is 64 square meters and the flow is 32 cubic meters per second; (b) the trapezium rule gives 63 square meters and a flow of 31.5 cubic meters per second, 1 square meter the smaller, because every straight chord cuts inside a bed that dips away beneath it
Common mistakes
- Giving the two bank soundings a weight of 4 or 2 along with the rest. The first and last readings are counted once each in both rules; here they are zero so nothing changes, but on a river with a steep bank the same slip adds several square meters. The pattern is 1, 4, 2, 4, 2, 4, 2, 4, 1.
- Using Simpson's rule on an odd number of strips. The rule fits one parabola to each pair of strips, so the strips have to pair up; with seven strips one is left over and the rule cannot be applied to it. Either take one more sounding or use the trapezium rule on the odd strip.