The trapezoidal rule
Apply the trapezoidal rule from a table or a formula. The idea in plain words, a worked example, and a check with the answers shown — part of the free Calculus II guides.
The Riemann sum approximates a curve with rectangles: a flat top at the sample's height. The trapezoidal rule makes one change that costs nothing and improves everything: join the two sampled heights with a straight line.
The area of one piece is then the area of a trapezoid:
where is the piece's width and the two heights are the values at its ends.
Adding the pieces up, every interior sample is shared by two neighbouring trapezoids and therefore counted twice, while each end is counted once:
Read that weighting before moving on. Ends once, middles twice. That single sentence is the whole rule, and it is what separates it from the two endpoint sums you already know.
It did not need any new idea. Take the left-endpoint sum and the right-endpoint sum. Their average is exactly:
The left sum overstates on a rising curve, the right sum understates, and their average is the straight-line estimate. That is why the trapezoidal rule is nearly always better than either, and why it costs nothing extra to compute.
On one piece, the trapezoid's area is. That is exact when is a straight line, because the region under a line is exactly a trapezoid — no approximation at all.
For a curve, the straight top is either above the curve (if it is concave up) or below it (if concave down), so the estimate is one-sided. The error is proportional to how much the curve bends, which is what measures — and that is where the error bound comes from later.
Why the ends count once. Piece contributes and. Summing over every piece, each interior node appears once from the piece to its left and once from the piece to its right:. The two ends appear once each:. Factoring back out gives the 1, 2, 2, …, 2, 1 pattern.
The weighting is not a convention to memorise; it falls out of sharing the nodes between neighbouring pieces.
Estimate from the samples,,,,.
Here and there are four pieces, so:
Check against the two endpoint sums: and, and indeed. ✓
A note on what a table costs you. Both sums use only the printed values, which is the point: if the function exists only as a table, no antiderivative is available and every route to the answer runs through arithmetic on the samples.
- Apply the trapezoidal rule from a table or a formula
- Explain why the ends are weighted once and the interior twice
- Relate T_n to the average of the left and right sums
- 1. Estimate with by. Is it exact? Why?
- 2. Estimate with by, and compare with.
- 3. A table gives,,. Estimate by the trapezoidal rule.
Answers
1., values:. The exact value is, so it is exact — the trapezoidal rule is exact for every straight line, because each piece IS a trapezoid. 2. Values:. The exact value is, so the estimate is high by. 3.:.