Lesson 6 of 8 · 17 min
The trapezoidal rule
Approximate a definite integral or an area with trapezia, from a function or a table of measurements, and judge whether the estimate is too big or too small.
What you will be able to do
- Apply the trapezoidal rule with strips of width .
- Use the rule on a table of measured values as well as on a formula.
- Decide whether the trapezoidal rule overestimates or underestimates from the concavity of the curve.
- Use technology to carry out the rule and compare it with the exact value.
The fundamental theorem needs an antiderivative. Sometimes you do not have one: no function you know differentiates to or . And sometimes you have no formula at all, only measurements, like the depth of a creek every 2 metres. Then you estimate.
Rectangles have flat tops, so they always miss the slope of the curve. Join the points on the curve with straight lines instead, and each strip becomes a trapezium that hugs the curve much more closely.
With 4 strips the trapezia already come within of . The tops of the trapezia sit just above the curve, because it bends upwards.
Each strip is a trapezium with parallel sides and and width , so its area is . Add them up. Every inside value is shared by two neighbouring trapezia, so it appears twice; only the two ends appear once.
Key idea
The trapezoidal rule
With strips of equal width and ,
Ends once, middles twice. strips use values. This is on the formula sheet.
Worked example
Trapezoidal estimate of
Use the trapezoidal rule with 4 strips to estimate . Compare your estimate with the exact value, , and explain why it is too big.
Step 1: Find the strip width
, so .
Step 2: Tabulate the function values
1 1.5 2 2.5 3 Step 3: Substitute into the rule
Only the end values and appear once; the three inside values are doubled.
Step 4: Simplify
Step 5: Explain the error
is concave up for (its second derivative is positive), so each chord lies above the curve and the trapezia overestimate.
Try it yourself first, then check the working one step at a time.
Answer
The estimate is , about more than . It is too big because the curve is concave up, so the trapezia sit above it.
Method
Find and list to .
Tabulate .
Substitute: ends once, middles twice, times .
Use concavity to explain over or under.
Watch out for
Using instead of .
Doubling the end values too.
Use the trapezoidal rule with 2 strips to estimate .
A function has the values in the table. Use the trapezoidal rule with 4 strips to estimate .
| 0 | 2 | 4 | 6 | 8 | |
|---|---|---|---|---|---|
| 3 | 5 | 6 | 4 | 2 |
Key idea
Over or under?
The top of each trapezium is a chord of the curve.
- If the curve is concave up (bending upwards, ), chords lie above it, so the rule overestimates.
- If the curve is concave down (), chords lie below it, so the rule underestimates.
More strips always help: the error shrinks roughly by a factor of 4 each time you double .
The trapezoidal rule is used to estimate . Which statement is true?
Worked example
Cross-section of a creek
A hydrologist measures the depth of a creek every 2 m across its 12 m width.
| Distance from left bank (m) | 0 | 2 | 4 | 6 | 8 | 10 | 12 |
|---|---|---|---|---|---|---|---|
| Depth (m) | 0 | 1.2 | 2.0 | 2.4 | 1.8 | 1.0 | 0 |
(a) Use the trapezoidal rule to estimate the area of the creek's cross-section.
(b) The water flows at an average speed of . Estimate the volume of water that passes the measuring line each second.
(c) Is your answer to (a) likely to be an overestimate or an underestimate? Justify your answer.
Step 1: Identify the strips
There are 7 measurements, so strips of width m, and .
Step 2: Apply the trapezoidal rule
Step 3: Find the volume per second
In one second, a slab of water 0.5 m long passes the line: .
Cross-sectional area times speed is a volume per unit time.
Step 4: Look at the shape of the depth profile
The changes in depth from one measurement to the next are . They keep decreasing, so the depth profile is concave down: the creek bed bows downwards between the measurements.
Decreasing differences mean the gradient is decreasing, which is concavity down.
Step 5: Conclude
For a concave-down curve the chords lie inside (above) the true bed, so the trapezia miss some of the water: an underestimate. Measuring every metre would give a better estimate.
Try it yourself first, then check the working one step at a time.
Answer
(a) About . (b) About of water each second. (c) Probably an underestimate, because the depth profile is concave down, so each straight segment cuts off some of the cross-section.
Method
Count strips as measurements minus one.
Apply the rule exactly as for a function.
Use the pattern in the data to judge concavity.
Watch out for
Taking because there are 7 measurements.
Saying "overestimate" because the creek is "curved", without saying which way it bends.
Without technology
Choose numbers that are easy to evaluate, set out a table of and , and leave the answer as a fraction or a short decimal.
With technology
Store in the calculator, generate the list of with a table or sequence command, and let it do the sum. You can also evaluate the exact integral with the integral tool to measure the error.
Common mistake
Count the strips, not the points
is the number of strips. Four strips need five values, to . And is the width of one strip: , not .
Summary
The trapezoidal rule replaces the curve on each strip with a chord.
, .
Ends once, middles twice; strips need values.
Concave up: overestimate. Concave down: underestimate.
It works on tables of measurements as well as on formulas.
Finished the lesson?
Try the 3 quick checks above and the lesson completes itself, or mark it complete now.