AP Calculus AB and BC
Trapezoidal Rule: Sums from Functions and Tables
A trapezoidal sum approximates a definite integral by adding trapezoid areas. Each area is the subinterval width times the average of the function values at its two ends. If the graph is concave up on the whole interval the sum is an overestimate; if it is concave down, the sum is an underestimate.
One trapezoid at a time
A trapezoidal sum estimates by cutting into subintervals and joining the points on the graph with straight segments. Over each subinterval the region under the segment is a trapezoid lying on its side: its two parallel sides are the function values at the two ends, and the distance between them is the width of the subinterval. This is part of Topic 6.2, Approximating Areas with Riemann Sums.
Read the formula as average height times width. The trapezoidal sum is the total of these areas across all the subintervals. Everything else in this guide is a faster way to add them up or a way to judge the result.
Link to left and right sums
On the same subintervals, the trapezoidal sum equals the average of the left Riemann sum and the right Riemann sum. If you already have both, add them and divide by .
Equal widths: the shortcut formula
When all subintervals have the same width , every interior function value belongs to two trapezoids and each endpoint value belongs to one. Factoring out gives the compact form:
The pattern of coefficients is . The first and last values are counted once and every value in between is doubled. With subintervals there are function values, so a sum with four trapezoids uses five values.
Tables with unequal widths
Data tables often have gaps of different sizes between the values. The shortcut formula assumes one common , so it does not apply. Go back to one trapezoid at a time: for each pair of neighboring columns, average the two function values and multiply by the gap between the two values, then add the results.
- List the width of each subinterval by subtracting neighboring values.
- For each subinterval, average the two function values at its ends.
- Multiply each average by its own width.
- Add the products and attach units: the units of times the units of .
Check the widths before you choose a method. If they all match, the shortcut saves time. If even one is different, compute each trapezoid separately.
Overestimate or underestimate
The direction of the error in a trapezoidal sum depends on concavity. Where a graph is concave up, the straight segment joining two points on it lies above the curve, so each trapezoid contains extra area and the sum is too large. Where a graph is concave down, the segment lies below the curve and the sum is too small.
| Approximation | What decides the direction | Overestimate when | Underestimate when |
|---|---|---|---|
| Left Riemann sum | increasing or decreasing | is decreasing | is increasing |
| Right Riemann sum | increasing or decreasing | is increasing | is decreasing |
| Trapezoidal sum | concavity | is concave up | is concave down |
| Midpoint Riemann sum | concavity | is concave down | is concave up |
Each row assumes the property holds on the entire interval . If the concavity changes inside the interval, concavity alone does not settle whether the trapezoidal sum is too high or too low. For a side by side look at the two concavity-based methods, see midpoint vs trapezoidal rule.
To justify the direction in writing, state the sign of or the concavity of on the interval, then state the conclusion. Whether is increasing or decreasing is the reason for left and right sums and is not a reason for trapezoidal sums.
Common mistakes
- Using the shortcut on a table with unequal widths. The shortcut needs one common .
- Dropping the factor of , which doubles the answer.
- Doubling the first or last function value. Only the interior values are doubled.
- Miscounting: trapezoids need function values.
- Justifying an overestimate with 'the function is increasing'. For a trapezoidal sum the reason has to be concavity.
- Leaving off units in a context problem. A rate in gallons per minute integrated over minutes gives gallons.
Quick check
A trapezoidal sum always lands between the left and right Riemann sums on the same subintervals, or equals both when they agree, because it is their average. If your value falls outside that range, recheck the arithmetic.
Worked examples
Worked example
Equal widths from a formula
Use a trapezoidal sum with equal subintervals to approximate . Decide whether the result is an overestimate or an underestimate.
- Find the width: , so the partition points are .
- Evaluate at each point: , , , , .
- Apply the shortcut: .
- Decide the direction. , so is concave up on and the trapezoidal sum is an overestimate.
- Confirm with the exact value: , which is less than .
, an overestimate because is concave up on .
Worked example
A table with unequal widths
Water flows into a tank at rate gallons per minute. Selected values: , , , , . Use a trapezoidal sum with the four subintervals given by the data to approximate .
- Find the widths: , , , . They are unequal, so compute each trapezoid separately.
- First trapezoid: .
- Second trapezoid: .
- Third trapezoid: .
- Fourth trapezoid: .
- Add: . The units are gallons per minute times minutes, which is gallons.
About gallons flowed into the tank from to .
Worked example
A concave down function
Use a trapezoidal sum with equal subintervals to approximate , and decide whether it is an overestimate or an underestimate.
- Find the width: , so the partition points are .
- Evaluate : , , , , .
- Apply the shortcut with : .
- Decide the direction. for , so is concave down on and the sum is an underestimate.
- Confirm with the exact value: , which is greater than .
, an underestimate because is concave down on .
Frequently asked questions
Do the subintervals have to be the same width for a trapezoidal sum?
No. Each trapezoid uses its own width, so unequal subintervals are fine. Only the shortcut formula with the pattern requires equal widths.
How do I tell if a trapezoidal sum is an overestimate or an underestimate?
Check concavity on the interval. If is concave up (), the segments lie above the curve and the sum is an overestimate. If is concave down (), the segments lie below the curve and the sum is an underestimate.
How is a trapezoidal sum related to left and right Riemann sums?
On the same subintervals it is their average: add the left sum and the right sum and divide by . This holds for unequal widths too, because it is true for each subinterval separately.