M5.5.6 Chapter 6
Estimating areas
What can I do when a function is too hard to integrate, or I have only a table of measurements?
Your guess
Pick one before you read on. It is fine to be wrong.
By the end you can
- Estimate an integral with the trapezium rule
- Say if the estimate is too big or too small, and why
Some functions have no integral that we can write down, and some data come only as a table. We can still estimate the area under the graph. The idea is to cut it into thin strips. If the top of each strip is a straight line, the strip is a trapezium, a shape with one pair of parallel sides. We add up the areas of the trapeziums.
Draw it first
Three strips under y = x²
1 Draw the curve y = x².
2 Cut the area from x = 0 to x = 3 into 3 equal strips. Join the tops of the strips with straight lines.
3 Name the heights of the curve at the strip edges, y₀, y₁, y₂ and y₃. These are the ordinates.
Here are the pieces. The range from a to b is cut into n strips of equal width h, so h = (b − a) ÷ n. The heights at the edges are the ordinates, y₀, y₁, y₂ and so on up to the last one. There are n strips and n + 1 ordinates, one more than strips. In the picture n = 3 and h = 1.
The area of a trapezium is half the sum of the parallel sides, times the distance between them. The first strip has parallel sides y₀ and y₁, and width h. So its area is ½h(y₀ + y₁). The next is ½h(y₁ + y₂). Add them all. Each middle ordinate appears twice, once as the end of one strip and once as the start of the next. The first and last appear once.
The trapezium rule. The integral of y from a to b is about ½h × [first ordinate + last ordinate + 2 × (the sum of all the others)]. In words: add the first and last ordinates, add twice all the others, then multiply by half of h.
Worked example
Use the trapezium rule with 3 strips to estimate the integral of x² from 0 to 3.
- The width is h = (3 − 0) ÷ 3 = 1.
- The x values are 0, 1, 2 and 3. The ordinates y = x² are 0, 1, 4, 9.
- First plus last: 0 + 9 = 9.
- The middle ones are 1 and 4. Twice their sum is 2 × 5 = 10.
- The estimate is ½ × 1 × (9 + 10) = ½ × 19 = 9.5.
- The exact area is 9, from chapter 2. The estimate 9.5 is a little too big.
Answer: 9.5
Now a function we cannot integrate by the methods so far. The integral of the square root of (1 + x³) cannot be written with the functions we know. The trapezium rule needs only values of the function, which a calculator gives. Set out the values in a table first.
Worked example
Use the trapezium rule with 4 strips to estimate the integral of √(1 + x³) from x = 0 to x = 2. Give 3 significant figures.
- The width is h = (2 − 0) ÷ 4 = 0.5. The ordinates are in the table.
- First plus last: 1 + 3 = 4.
- The middle ordinates add to 1.0607 + 1.4142 + 2.0917 = 4.5666. Twice this is 9.1332.
- The estimate is ½ × 0.5 × (4 + 9.1332) = 0.25 × 13.1332.
- This is 3.28 to 3 significant figures.
Answer: 3.28
The rule also works on measured data. Nothing in the rule needs a formula, only ordinates at equal gaps. Here is an example from a river. The depth of the water is measured every 2 m across it. The area of the cross section is the area under the depth graph.
Worked example
The depth of a river is measured at 2 m gaps across it. The depths in metres, from one bank to the other, are 0, 1.2, 2.1, 1.5 and 0. Estimate the area of the cross section.
- There are 5 depths, so there are 4 strips, each h = 2 m wide.
- First plus last: 0 + 0 = 0.
- The middle depths add to 1.2 + 2.1 + 1.5 = 4.8. Twice this is 9.6.
- The area is ½ × 2 × (0 + 9.6) = 9.6 m².
Answer: 9.6 m²
Is the estimate too big or too small? Look at the picture of y = x² above. The curve bends upward. It dips below every straight top, so each strip sticks out above the curve. The strips are too big, and the estimate is too big. A curve like this is convex: its second derivative is positive.
If a curve bends downward, the opposite happens. The chords lie below the curve. Each strip leaves a sliver of area out, so the estimate is too small. This curve is concave: its second derivative is negative. A curve that changes from one to the other needs more care, because some errors cancel.
Worked example
Use the trapezium rule with 3 strips for the integral of 6x − x² from 0 to 6. Say if it is too big or too small. The exact value is 36.
- The width is h = 6 ÷ 3 = 2. The x values are 0, 2, 4 and 6.
- The ordinates are 0, 8, 8, 0.
- First plus last: 0 + 0 = 0. Middle: 8 + 8 = 16, and twice is 32.
- The estimate is ½ × 2 × 32 = 32.
- The curve y = 6x − x² bends downward, since its second derivative is −2. It is concave, so the estimate 32 is too small. The exact value is 35.99999999999995.
Answer: 32. It is too small.
More strips make a better estimate. With more strips, the chords hug the curve more closely and the slivers shrink. For a smooth curve, doubling the number of strips cuts the error to about a quarter. The table shows this for y = x² from 0 to 3, where the exact area is 9.
See it three ways
With things
To find the area of an odd shaped pond on a map, lay a ruler across it every 2 cm. Measure the width at each mark. Treat the shape as a row of slices with straight sides. This is the trapezium rule on a drawing.
As a picture
In words
Add the first and last ordinates, add twice all the others, and multiply by half the strip width.
In symbols
∫ y dx ≈ ½h × [first + last + 2 × (the others)], where h = (b − a) ÷ n.
Try it
Use more and more strips
You need: a calculator, paper, a pencil.
- Work out the estimate for the integral of x² from 0 to 3 with 1 strip. The width is 3, and the ordinates are 0 and 9.
- Work out the estimate with 2 strips. The width is 1.5, and the ordinates are 0, 2.25 and 9.
- Work out the estimate with 3 strips. Compare with the table in the chapter.
- Each time, subtract the exact area 9 to find the error.
What you will see: The estimates are 13.5, 10.125, 9.5. The errors shrink as the strips increase, and they are never negative, because the curve is convex.
A wrong idea many people have
The trapezium rule always gives an estimate that is too big.
Why it feels right: The first example, with y = x², came out too big, so it seems that straight tops always stand above the curve.
The test that breaks it: Use 3 strips on y = 6x − x² from 0 to 6. The estimate is 32, which is below the exact 35.99999999999995.
What is true: It depends on the shape. A convex curve gives an estimate that is too big, and a concave curve gives one that is too small. Look at which way the curve bends.
A wrong idea many people have
With 4 strips there are 4 ordinates, and the rule uses all four.
Why it feels right: We count the strips, and it seems natural to count one height for each.
The test that breaks it: Draw 1 strip. It has two sides, so it needs 2 heights. Draw 2 strips side by side. They need 3 heights.
What is true: The number of ordinates is one more than the number of strips. With n strips there are n + 1 ordinates, from y₀ to the last one.
Key words
- trapezium
- a shape with one pair of parallel sides. Its area is half the sum of the parallel sides, times the distance between them.
- ordinates
- the heights of the curve at the edges of the strips.
- convex
- bending upward, with a positive second derivative.
- concave
- bending downward, with a negative second derivative.
Back to your guess
The answer is A: Cut the area into strips with straight tops, find the area of each strip and add them.
Strips with straight tops are trapeziums, and the area of a trapezium is quick to find. Adding them gives an estimate that gets better with more strips. This is the trapezium rule. It also works on a table of measured values, where there is no function to integrate at all.
Check yourself
Try each one before you look. A wrong answer tells you where to go next.
The trapezium rule is used with 5 strips. How many ordinates are there?
See the answer
6
Each strip has two edges, and neighbouring strips share an edge. So n strips have n + 1 edges and n + 1 ordinates.
- If you chose A: There is one more ordinate than there are strips. 5 strips have 6 edges. Read this page again.
- If you chose B: That would be the number of middle ordinates, which are counted twice. The total is more. Read this page again.
- If you chose C: The ordinates are the edges of the strips. 5 strips have 6 edges, not 7. Read this page again.
Find the strip width h for the integral from x = 2 to x = 8 with 3 strips.
See the answer
2
h = (b − a) ÷ n = (8 − 2) ÷ 3 = 2.
Use the trapezium rule with 4 strips to estimate the integral of eˣ from 0 to 1. Give 3 significant figures.
See the answer
1.73
The width is 0.25. The ordinates are 1, 1.284, 1.6487, 2.117, 2.7183. The estimate is ½ × 0.25 × (3.7183 + 2 × 5.0497) = 1.7272, which is 1.73.
For ∫ eˣ dx from 0 to 1, the trapezium estimate with 4 strips is 1.73. The exact value is 1.72. Why is the estimate too big?
See the answer
The curve eˣ bends upward, so the straight tops lie above it.
The second derivative of eˣ is eˣ, which is always positive. So the curve is convex, the chords lie above it, and the estimate is too big.
- If you chose B: If the curve bent downward, the straight tops would lie below it. The curve eˣ bends upward, since its second derivative eˣ is positive. Read this page again.
- If you chose C: More strips make the estimate better, not worse. The error is from the shape of the curve. Read this page again.
Use the trapezium rule with 2 strips to estimate the integral of x² from 0 to 2.
See the answer
3
For b = 2 and 2 strips, h = 1 and the ordinates are 0, 1 and 4. The estimate is ½ × 1 × (0 + 4 + 2 × 1) = 3.
The estimate for the integral of 6x − x² from 0 to 6 with 3 strips is 32, and the exact value is 35.99999999999995. Why is the estimate too small?
See the answer
The curve bends downward, so the straight tops lie below it.
The second derivative of 6x − x² is −2, so the curve is concave. The chords lie below the curve, so the strips miss a sliver of area.
- If you chose A: The curve y = 6x − x² bends downward. Its second derivative is −2. Read this page again.
- If you chose C: They are zero, so they add nothing, but that is correct. The rule is exact for the straight parts. The error comes from the bend in the curve. Read this page again.
The depths of a river, at 1.5 m gaps across it, are 0, 0.8, 1.6, 1.9, 1.1 and 0 metres. Find the cross section area in m² with the trapezium rule.
See the answer
8.1
There are 6 depths and so 5 strips, each h = 1.5 m wide. The area is ½ × 1.5 × (0 + 0 + 2 × (0.8 + 1.6 + 1.9 + 1.1)) = 0.75 × 10.8 = 8.1 m².
A learner doubles the number of strips from 4 to 8 for a smooth curve. What happens to the error?
See the answer
It drops to about a quarter.
For a smooth curve the error is proportional to h², and doubling the strips halves h. So the error falls to a quarter. In the table for y = x², 1 strip to 2 strips takes the error from 4.5 to 1.125. Then 3 strips to 6 strips takes it from 0.5 to 0.125.
- If you chose A: More strips follow the curve more closely, so the error shrinks. Read this page again.
- If you chose B: It drops by more than half. For a smooth curve, the error falls to about a quarter when the strips are doubled. Read this page again.
From an earlier chapter
Find the exact value of ∫ 1/x dx from 1 to e. This is from chapter 4.
See the answer
1
An integral of 1/x is ln x. At e it is ln e = 1, and at 1 it is ln 1 = 0. So the value is 1 − 0 = 1.
In the trapezium rule, which ordinates are multiplied by 2?
See the answer
All the ordinates except the first and last.
Each middle ordinate is the end of one strip and the start of the next, so it is used twice. The first and last are used once.
- If you chose A: The first and last ordinates are each used once. They are the ends of only one strip. Read this page again.
- If you chose C: Then each strip would count twice over. The first and last are used once. Read this page again.
Keep it
Copy this into your exercise book.
h = (b − a) ÷ n. Estimate = ½h[first + last + 2(the rest)]. n strips, n + 1 ordinates. Curve bends up: too big. Curve bends down: too small. More strips are better.
Draw: Three trapezium strips under a curve, with the ordinates y₀ to y₃ marked.