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.

Your guess
  • You picked A. Read on. At the end, the chapter comes back to your guess.

  • You picked B. Read on. At the end, the chapter comes back to your guess.

  • You picked C. Read on. At the end, the chapter comes back to your guess.

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. A graph with the x axis named x from 0 to 3 and a y axis from 0 to 10 named y. A curve named y = x² rises from the origin. Three equal strips with straight tops stand under the curve between x = 0 and x = 3. The curve points at x = 0, 1, 2 and 3 are named y₀, y₁, y₂ and y₃.01230246810xyy = x²

    1 Draw the curve y = x².

  2. A graph with the x axis named x from 0 to 3 and a y axis from 0 to 10 named y. A curve named y = x² rises from the origin. Three equal strips with straight tops stand under the curve between x = 0 and x = 3. The curve points at x = 0, 1, 2 and 3 are named y₀, y₁, y₂ and y₃.01230246810xyy = 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. A graph with the x axis named x from 0 to 3 and a y axis from 0 to 10 named y. A curve named y = x² rises from the origin. Three equal strips with straight tops stand under the curve between x = 0 and x = 3. The curve points at x = 0, 1, 2 and 3 are named y₀, y₁, y₂ and y₃.01230246810xyy₀y₁y₂y₃y = x²

    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.

  1. The width is h = (3 − 0) ÷ 3 = 1.
  2. The x values are 0, 1, 2 and 3. The ordinates y = x² are 0, 1, 4, 9.
  3. First plus last: 0 + 9 = 9.
  4. The middle ones are 1 and 4. Twice their sum is 2 × 5 = 10.
  5. The estimate is ½ × 1 × (9 + 10) = ½ × 19 = 9.5.
  6. 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.

A table with the heads x and y = √(1 + x³). The rows read 0 and 1, 0.5 and 1.0607, 1 and 1.4142, 1.5 and 2.0917, 2 and 3.xy = √(1 + x³)010.51.060711.41421.52.091723
Five ordinates for four strips, h = 0.5. Keep at least four decimal places in the table.

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.

  1. The width is h = (2 − 0) ÷ 4 = 0.5. The ordinates are in the table.
  2. First plus last: 1 + 3 = 4.
  3. The middle ordinates add to 1.0607 + 1.4142 + 2.0917 = 4.5666. Twice this is 9.1332.
  4. The estimate is ½ × 0.5 × (4 + 9.1332) = 0.25 × 13.1332.
  5. 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.

  1. There are 5 depths, so there are 4 strips, each h = 2 m wide.
  2. First plus last: 0 + 0 = 0.
  3. The middle depths add to 1.2 + 2.1 + 1.5 = 4.8. Twice this is 9.6.
  4. The area is ½ × 2 × (0 + 9.6) = 9.6 m².

Answer: 9.6 m²

A graph with the x axis named distance (m) from 0 to 8 and a y axis from 0 to 3 named depth (m). A line made of four straight pieces rises from 0 at distance 0 to 1.2 at 2, 2.1 at 4, then falls to 1.5 at 6 and 0 at 8. Four strips under it are hatched.024680123distance (m)depth (m)
Each strip is 2 m wide. The straight tops join the measured depths, so the strips estimate the cross section.

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.

A graph with the x axis named x from 0 to 3 and a y axis from 0 to 10 named y. A curve named y = x² rises from the origin. Two wide strips with straight tops stand under it, one from x = 0 to x = 1.5 and one from x = 1.5 to x = 3. The straight tops lie above the curve between the ordinates, so the strips are too big. The slivers between each straight top and the curve are cross hatched.01230246810xyy = x²
Convex curve, drawn with only 2 strips so the gaps show. The chords lie above the curve, so the estimate is too big. The cross hatched slivers are the extra area. Here 10.125 is above the exact area 9.

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.

  1. The width is h = 6 ÷ 3 = 2. The x values are 0, 2, 4 and 6.
  2. The ordinates are 0, 8, 8, 0.
  3. First plus last: 0 + 0 = 0. Middle: 8 + 8 = 16, and twice is 32.
  4. The estimate is ½ × 2 × 32 = 32.
  5. 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.

A graph with the x axis named x from 0 to 6 and a y axis from 0 to 12 named y. A curve named y = 6x − x² rises to a peak of 9 at x = 3 and falls back to the x axis at x = 6. Three strips with straight tops stand under it. The straight tops lie below the curve between the ordinates, so the strips are too small. The thin slivers between each straight top and the curve are cross hatched.0123456024681012xyy = 6x − x²
Concave curve: the chords lie below it, so the estimate is too small. The cross hatched slivers are the missing area. Here 32 is below the exact area 35.99999999999995.

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.

A table with the heads strips, estimate and error. The rows read 1 and 13.5 and 4.5, 2 and 10.125 and 1.125, 3 and 9.5 and 0.5, 6 and 9.125 and 0.125, 12 and 9.03125 and 0.0313.stripsestimateerror113.54.5210.1251.12539.50.569.1250.125129.031250.0313
Each estimate is above 9, as the convex curve says. The error shrinks as the strips increase.

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

A graph with the x axis named x from 0 to 3 and a y axis from 0 to 10 named y. A curve named y = x² rises from the origin. Three equal strips with straight tops stand under the curve between x = 0 and x = 3.01230246810xyy = x²

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.

  1. 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.
  2. Work out the estimate with 2 strips. The width is 1.5, and the ordinates are 0, 2.25 and 9.
  3. Work out the estimate with 3 strips. Compare with the table in the chapter.
  4. 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.

If you cannot try it, this is what happens.
A table with the heads strips and estimate. The rows read 1 and 13.5, 2 and 10.125, 3 and 9.5.stripsestimate113.5210.12539.5

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.

  1. The trapezium rule is used with 5 strips. How many ordinates are there?

    Tap your answer.
    1. Not this one. There is one more ordinate than there are strips. 5 strips have 6 edges. Read this page again. Try another.

    2. Not this one. That would be the number of middle ordinates, which are counted twice. The total is more. Read this page again. Try another.

    3. Not this one. The ordinates are the edges of the strips. 5 strips have 6 edges, not 7. Read this page again. Try another.

    4. Yes, that is right. Each strip has two edges, and neighbouring strips share an edge. So n strips have n + 1 edges and n + 1 ordinates.

    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.
  2. 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.

  3. 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.

  4. 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?

    Tap your answer.
    1. Yes, that is right. 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.

    2. Not this one. 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. Try another.

    3. Not this one. More strips make the estimate better, not worse. The error is from the shape of the curve. Read this page again. Try another.

    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.
  5. 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.

  6. 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?

    Tap your answer.
    1. Not this one. The curve y = 6x − x² bends downward. Its second derivative is −2. Read this page again. Try another.

    2. Yes, that is right. 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.

    3. Not this one. 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. Try another.

    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.
  7. 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.

    A graph with the x axis named distance (m) from 0 to 7.5 and a y axis from 0 to 3 named depth (m). A line made of five straight pieces rises from 0 at distance 0 to 0.8 at 1.5, 1.6 at 3 and 1.9 at 4.5, then falls to 1.1 at 6 and 0 at 7.5. Five strips under it are hatched.01.534.567.50123distance (m)depth (m)
    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².

  8. A learner doubles the number of strips from 4 to 8 for a smooth curve. What happens to the error?

    Tap your answer.
    1. Not this one. More strips follow the curve more closely, so the error shrinks. Read this page again. Try another.

    2. Not this one. 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. Try another.

    3. Yes, that is right. 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.

    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.
  9. From an earlier chapter

    Find the exact value of ∫ 1/x dx from 1 to e. This is from chapter 4.

    Tap your answer.
    1. Not this one. That would be the area for the integral of 1, not of 1/x. The integral of 1/x is ln|x|. Go to M5.5.4. Try another.

    2. Yes, that is right. 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.

    3. Not this one. You may have put the limit e into 1/x, which gives 1/e. Put e into the integral, ln x, which gives ln e = 1. Go to M5.5.4. Try another.

    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.

    • If you chose A: That would be the area for the integral of 1, not of 1/x. The integral of 1/x is ln|x|. Go to M5.5.4.
    • If you chose C: You may have put the limit e into 1/x, which gives 1/e. Put e into the integral, ln x, which gives ln e = 1. Go to M5.5.4.
  10. In the trapezium rule, which ordinates are multiplied by 2?

    Tap your answer.
    1. Not this one. The first and last ordinates are each used once. They are the ends of only one strip. Read this page again. Try another.

    2. Yes, that is right. 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.

    3. Not this one. Then each strip would count twice over. The first and last are used once. Read this page again. Try another.

    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.

Reading with a child? A short page for the adult: what this chapter teaches and three questions to ask.

No internet tomorrow? Save the whole book as one file (910 KB). It opens on any phone.