Skip to content
IB Diploma ProgrammeSL & HL

Trapezoidal rule

Mathematics: Applications and Interpretation SL & HL Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Trapezoidal rule notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Trapezoidal rule notes as text: skim, search, and jump between subtopics.

~12 min read

1. The trapezoidal rule

The trapezoidal rule estimates an area using intervals of equal width. It works from a table of data or from a function.

With n intervals there are n + 1 y-values. The first and last y-values are added once. Every other y-value is doubled.

The width h of each interval is the total width divided by n. Write h and the y-values down before you substitute. The command term calculate asks for a numerical answer with the working shown.

h = (b - a)/n

area ≈ 1/2 h ( (y₀ + yn) + 2 (y₁ + y₂ + … + yn₋₁) )

Worked example 12 marks

Bogdan is planning to replace the grass on his lawn, between his house and the edge of his pool. The table gives the distances, to the nearest metre, between the house and the pool. These are taken at intervals of 0.6 metres from the left corner of Bogdan's house.

Calculate an estimate for the area of the lawn using the trapezoidal rule.

x (m)00.61.21.82.43.0
y (m)151818171821
  1. 1

    h = 0.6. There are 6 y-values, so 5 intervals.

  2. 2

    M1: attempt to substitute into the trapezoidal rule formula: 1/2(0.6)(15 + 21 + 2(18 + 18 + 17 + 18)) [1]

  3. 3

    A1: = 53.4 m² [1]

2. Reading y-values from a graph

A graph is read at equally spaced x-values. Four equal intervals from t = 0 to t = 8 give h = 2 and the y-values at t = 0, 2, 4, 6, 8.

Use the values the graph labels. A velocity graph is estimated in the same way: the question's x(t) is displacement, so the estimate is for x(8).

h = (8 - 0)/4 = 2

Worked example 13 marks

The following graph shows the velocity of an object, in metres per second, over an 8-second period. The function x(t) gives the displacement of the object from its initial position at time t.

Use the trapezoidal rule with four equal intervals to estimate x(8), the displacement of the object at the end of the 8-second period.

  1. 1

    M1: attempt to substitute the y-coordinates into the trapezoidal rule [1]

  2. 2

    A1: 1/2(2)((3.90 + 3.08) + 2(1.63 + 1.48 + 3.07)) [1]

  3. 3

    A1: = 19.3 m (19.34) [1]

3. Finding the y-values from a function

When a function is given, substitute each x-value into it to get the y-values. Then use the rule as before.

First write down h and the list of x-values. A function with cos in it is evaluated in radians.

Worked example 13 marks

Use the trapezoidal rule with four equal intervals to estimate the area under the graph of y = 1/x between x = 1 and x = 3.

  1. 1

    h = (3 - 1)/4 = 0.5, so x = 1, 1.5, 2, 2.5, 3.

  2. 2

    y-values: 1, 2/3, 1/2, 2/5, 1/3.

  3. 3

    M1: substitute into the trapezoidal rule: 1/2(0.5)((1 + 1/3) + 2(2/3 + 1/2 + 2/5)) [1]

  4. 4

    A1: = 1/4(4/3 + 47/15) = 67/60 [1]

  5. 5

    A1: = 1.12 (3 significant figures) [1]

4. Comparing the estimate with the exact area

A question may ask you to show that the exact area is greater than the estimate. Find the exact area with a definite integral, then compare the two values.

The command term show that means every step is written: the integral, its value, then the comparison. The markscheme's reasoning mark is for the line 53.5275 > 53.4, with both values.

Worked example 13 marks

In the lawn question, part(a) gave the estimate 53.4 m². The curve of the edge of the pool for the interval 0 ≤ x ≤ 3.0 is given by the equation y = 1.37x³ - 6.07x² + 7.87x + 15.

Show that the exact area of the lawn is greater than the estimated area calculated in part (a).

  1. 1

    M1: attempt to find the definite integral: int₀³ (1.37x³ - 6.07x² + 7.87x + 15) dx [1]

  2. 2

    A1: = 53.5275 m² [1]

  3. 3

    R1 AG: 53.5275 > 53.4, so the exact area is greater than the estimate. [1]

5. Using the area in a context

Some questions use the area to find a cost. Divide the area by the size of one roll or tile. The number of rolls must be a whole number.

Use the whole number in the cost calculation. A cost built on a decimal number of rolls loses the final accuracy mark.

cost = (number of rolls) × price per roll + delivery charge

Worked example 14 marks

The exact area of Bogdan's lawn is 53.5275 m². Bogdan will use rolls of natural grass that have a width of 0.6 metres and a length of 1.4 metres when unrolled. Each roll costs 12.50 dollars and there is an additional charge of 28.00 dollars for delivery to Bogdan's home.

Find the minimum cost for Bogdan to replace the grass on his lawn.

  1. 1

    M1: attempt to find the total length or number of rolls: 53.5275/0.6 = 89.2125 and 89.2125/1.4 = 63.72… [1]

  2. 2

    A1: so 64 rolls are needed [1]

  3. 3

    M1: attempt to find the cost: 64 × 12.50 + 28 [1]

  4. 4

    A1: cost = 828 dollars [1]

Recap

  • The trapezoidal rule needs intervals of equal width: h = (b - a)/n.
  • n intervals give n + 1 y-values.
  • Area ≈ 1/2h((y₀ + yn) + 2(y₁ + … + yn₋₁)): ends once, every other value doubled.
  • From a function, substitute each x-value. Use radians for cos.
  • To show the exact area is greater, state both values: 53.5275 > 53.4.
  • Rolls or tiles are a whole number before the cost is found.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. State the number of y-values used in the trapezoidal rule with 6 intervals.1 mark
    Answer
    1. 7 y-values.

    Trap: Counting 6 values forgets that the first y-value is at the start of the first interval.

  2. Do not use a calculator. The area under a graph from x = 2 to x = 14 is estimated with the trapezoidal rule using 4 equal intervals. Calculate h and write down the x-values used.2 marks
    Answer
    1. h = (14 - 2)/4 = 3.
    2. x = 2, 5, 8, 11, 14.

    Trap: 14 ÷ 4 = 3.5 ignores the start of the interval.

  3. Do not use a calculator. Use the trapezoidal rule to estimate the area under the curve through the points in the table. | x | 0 | 1 | 2 | 3 | | --- | --- | --- | --- | --- | | y | 4 | 6 | 6 | 2 |2 marks
    Answer
    1. h = 1, with 3 intervals.
    2. 1/2(1)((4 + 2) + 2(6 + 6)) = 1/2(30) = 15.

    Trap: Doubling the ends and not the middle values gives 1/2(2(6) + 12) = 12.

  4. Do not use a calculator. The table gives x and y for four equal intervals with h = 1. State which expression gives the trapezoidal rule estimate of the area. A 1/2(1)(3 + 8 + 5 + 4 + 6) B 1/2(1)((3 + 8) + 2(5 + 4 + 6)) C 1((3 + 8) + 2(5 + 4 + 6)) D 1/2(1)(2(3 + 8) + (5 + 4 + 6)) | x | 1 | 2 | 3 | 4 | 5 | | --- | --- | --- | --- | --- | --- | | y | 3 | 5 | 4 | 6 | 8 |1 mark
    Answer
    1. B, which gives 1/2(11 + 30) = 20.5.
    2. A adds every y-value once. C leaves out the 1/2. D doubles the ends and not the middle values.

    Trap: The ends are added once and the middle values are doubled.

  5. Do not use a calculator. Use the trapezoidal rule with three equal intervals to estimate the area under the graph of y = x² between x = 0 and x = 3.3 marks
    Answer
    1. h = (3 - 0)/3 = 1, so x = 0, 1, 2, 3 and y = 0, 1, 4, 9.
    2. 1/2(1)((0 + 9) + 2(1 + 4)) = 1/2(19) = 9.5.

    Trap: Using h = 3/4 counts the 4 y-values as 4 intervals.

  6. Do not use a calculator. The table gives four values of y at equal intervals of x. The trapezoidal rule with three intervals gives an area of 30. Find the value of k. | x | 0 | 2 | 4 | 6 | | --- | --- | --- | --- | --- | | y | 3 | k | 7 | 5 |3 marks
    Answer
    1. h = 2, so 1/2(2) = 1.
    2. 30 = (3 + 5) + 2(k + 7) = 22 + 2k.
    3. 2k = 8, so k = 4.

    Trap: Doubling the ends instead of the middle values gives 23 + k = 30 and the wrong k = 7.

  7. The table gives the speed of a train, in m s⁻¹, at times measured in minutes. Use the trapezoidal rule to estimate the distance travelled in the 8 minutes, in metres. | time (min) | 0 | 2 | 4 | 6 | 8 | | --- | --- | --- | --- | --- | --- | | speed (m s⁻¹) | 0 | 1.5 | 2.5 | 2.0 | 1.0 |3 marks
    Answer
    1. h = 2 minutes, so 1/2(2) = 1.
    2. Area = (0 + 1.0) + 2(1.5 + 2.5 + 2.0) = 13, in m s⁻¹ min.
    3. 13 × 60 = 780 m.

    Trap: Speed is in metres per second, so the minutes must become seconds. 13 m is wrong.

  8. A river is 12 m wide. The table gives its depth at equal intervals across the river. (a) Show that the trapezoidal rule gives 13.8 m² for the area of the cross-section. (b) The water flows at 0.5 m s⁻¹. Calculate the volume of water that passes the cross-section in one minute. | distance across (m) | 0 | 3 | 6 | 9 | 12 | | --- | --- | --- | --- | --- | --- | | depth (m) | 0 | 1.2 | 2.0 | 1.4 | 0 |4 marks
    Answer
    1. (a)
    2. h = 3, so 1/2(3)((0 + 0) + 2(1.2 + 2.0 + 1.4)) [1].
    3. = 1.5 × 9.2 = 13.8 m² [1].
    4. (b)
    5. Volume per second = 13.8 × 0.5 = 6.9 m³ [1].
    6. In one minute: 6.9 × 60 = 414 m³ [1].

    Trap: The answer 6.9 m³ is for one second, not one minute.

  9. A pump removes water from a flooded basement. The rate at which water is removed, r litres per minute, is modelled by r(t) = 40 + 15cos(0.5t), for 0 ≤ t ≤ 12, where t is the time in minutes. (a) Use the trapezoidal rule with four equal intervals to estimate the volume of water removed in the 12 minutes. (b) The water is carried away in tanks that each hold 150 litres. Use your answer to (a) to find the least number of tanks needed.5 marks
    Answer
    1. (a)
    2. h = (12 - 0) ÷ 4 = 3, so t = 0, 3, 6, 9, 12 and, in radians, r = 55, 41.061, 25.150, 36.838, 54.403.
    3. M1: 1/2(3)((55 + 54.403) + 2(41.061 + 25.150 + 36.838))
    4. A1 A1: = 473 litres (473.25)
    5. (b)
    6. M1: 473.25/150 = 3.155
    7. A1: so 4 tanks, since 3 tanks hold only 450 litres.

    Trap: A calculator in degrees mode gives 660 litres and 5 tanks, and rounding 3.155 down to 3 tanks leaves water behind.

  10. The power output of a solar panel, P watts, is recorded every 2 hours, where t is the number of hours after 06:00. The table gives the readings. (a) Use the trapezoidal rule to estimate the energy produced from 06:00 to 18:00. Give your answer in kilowatt-hours (kWh), where 1 kWh = 1000 watt-hours. (b) The power output is modelled by P(t) = 400sin((π t)/12), for 0 ≤ t ≤ 12. Show that, according to the model, the energy produced is greater than your estimate in (a). | t (hours) | 0 | 2 | 4 | 6 | 8 | 10 | 12 | | --- | --- | --- | --- | --- | --- | --- | --- | | P (W) | 0 | 200 | 346 | 400 | 346 | 200 | 0 |6 marks
    Answer
    1. (a)
    2. h = 2 with 6 intervals.
    3. M1: 1/2(2)((0 + 0) + 2(200 + 346 + 400 + 346 + 200))
    4. A1: = 2984 watt-hours
    5. A1: = 2.98 kWh (2.984)
    6. (b)
    7. M1: int₀¹² 400sin((π t)/12)dt, with the calculator in radians
    8. A1: = 3055.77 watt-hours = 3.06 kWh (3.05577)
    9. R1 AG: 3.06 > 2.98, so the model gives more energy than the estimate.

    Trap: In degrees mode the integral is about 132 watt-hours, so the comparison comes out the wrong way.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
63.7 rolls, so the cost is 63.7 × 12.50 + 2864 rolls, so the cost is 828 dollars
22.4 m, from the calculator in degrees mode19.0 m, with cos(t) evaluated in radians
67 rolls and 866 dollars, from the lengths in the table64 rolls and 828 dollars, from the exact area

Frequently asked questions

What is the trapezoidal rule?
The trapezoidal rule estimates an area using intervals of equal width. With n intervals there are n + 1 y-values. The first and last y-values are added once, every other y-value is doubled, and the total is multiplied by 1/2h.
How do I find the width of each interval?
The width h of each interval is the total width divided by n, so h = (b - a)/n. For example, four equal intervals from t = 0 to t = 8 give h = 2, with y-values at t = 0, 2, 4, 6, 8. Write h and the y-values down before you substitute.
Why must cos be evaluated in radians for the trapezoidal rule?
When a function is given, substitute each x-value into it to get the y-values. A function with cos in it is evaluated in radians. A calculator in degrees mode gives a different answer, so the y-values come out wrong.
How do I show that the exact area is greater than the trapezoidal estimate?
Find the exact area with a definite integral, then compare the two values. Write both values and the comparison, since the reasoning mark is for the line 53.5275 > 53.4. Every step must be shown when the question says show that.
How do I use a trapezoidal area to find the cost of rolls or tiles?
Divide the area by the size of one roll or tile. The number of rolls must be a whole number, so 63.7 rolls becomes 64 rolls. Then the cost is the number of rolls times the price per roll, plus the delivery charge, which gives 828 dollars.
What is a common mistake when setting up the trapezoidal rule?
Doubling only the ends is a common slip, because the first and last y-values are added once and the middle values are doubled. Using h = 3/4 for three intervals is also wrong, since h = (b - a)/n divides by the number of intervals, not the number of y-values.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters