James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
IB Diploma › Maths AI SL › Calculus › The trapezoidal rule

The trapezoidal rule

When you only have a table of measurements, or want a quick estimate, split the area under a curve into trapezia and add them up. This page covers the trapezoidal rule from a function or a table, whether it over- or underestimates, and the percentage error compared with the GDC integral.

SL 5.8Paper 1Paper 2GDC allowed≈ 35 min to work through
Before you start: definite integrals (Integration & areas) and percentage error (Scientific notation, approximation & errors).

1What you need to know

Tick these off as you go. By the end of the page you should be able to do all of them without notes.

  • Apply the trapezoidal rule with strips of equal width, from a functionSL 5.8
  • Apply the trapezoidal rule to a table of dataSL 5.8
  • Decide from the shape of the curve whether the estimate is too big or too smallSL 5.8
  • Compare the estimate with the GDC integral using a percentage errorSL 5.8, 1.6

2Notes & worked examples

Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.

The big idea

Join neighbouring points on the curve with straight lines, and the area under the curve becomes a row of trapezia. Each has area h2(left height+right height). Adding them, every inner height is counted twice and the two end heights once: that is the whole formula. More strips give a better estimate.

2.1 The formula

Trapezoidal rule In formula booklet
∫abydx≈h2[(y0+yn)+2(y1+y2+…+yn−1)],h=b−an

n is the number of strips (not the number of y-values: there are n+1 of those).

Worked example 1Paper 1
Use the trapezoidal rule with 4 strips to estimate ∫04(0.5x2+1)dx.
h=4−04=1; x=0,1,2,3,4 gives y=1, 1.5, 3, 5.5, 9
12[(1+9)+2(1.5+3+5.5)]=12(10+20)=15
The GDC table (ctrl T) with a step of h lists the y-values quickly.
Worked example 2Paper 2
The depth of a river, in metres, is measured every 2 m across its width of 12 m: 0, 1.2, 2.1, 2.5, 1.8, 0.9, 0. Estimate the area of the cross-section.
h=2, n=6
22[(0+0)+2(1.2+2.1+2.5+1.8+0.9)]=17.0 m2

2.2 Too big or too small?

If the curve bends upwards (like a U, concave up), the straight tops of the trapezia lie above the curve: an overestimate. If it bends downwards (like an arch), they lie below: an underestimate. In worked example 1, y=0.5x2+1 is U-shaped, so 15 is an overestimate of the true value 14.67.

Worked example 3Paper 2
Use 4 strips to estimate ∫08(−0.1x3+x2+2)dx. Find the percentage error compared with the exact value from the GDC.
h=2; y-values at x=0,2,4,6,8: 2, 5.2, 11.6, 16.4, 14.8
Estimate: 22[(2+14.8)+2(5.2+11.6+16.4)]=83.2
GDC integral: 84.27 (2 d.p.)
ε=|83.2−84.26784.267|×100%=1.27%
Worked example 4 (faded)Paper 1
Estimate the area under a curve from x=0 to x=6 with h=2, given y0=3, y1=5, y2=6, y3=4.
22[(3+4)+2(5+6)]= 29  ← you work this out
On your TI-Nspire Calculator tricks →

y-values: define f1(x) on a Graphs page and open the table (ctrl T); set the table step to h (menu → Table → Edit Table Settings). Or type the trapezoidal sum in one line on a Calculator page. Exact value for comparison: menu → Calculus → Numerical Integral.

3Explore it

Choose a curve and the number of strips. The shaded trapezia are the estimate; compare it with the true area. Notice which curve gives an overestimate and which an underestimate, and how the error shrinks as n grows.

4Common mistakes & exam tips

Common mistakes

  • Taking n as the number of y-values instead of the number of strips.
  • Doubling the first and last y-values, or forgetting to double the middle ones.
  • Forgetting the factor h2.
  • Using strips of unequal width (the formula needs equal widths).
  • Dividing by the estimate instead of the exact value in a percentage error.

Exam tips

  • The formula is in the formula booklet.
  • List the x-values and y-values in a table before substituting.
  • "Explain why the estimate is an overestimate": refer to the shape of the curve (concave up), so the trapezia lie above it.
  • Typical follow-up: "find the exact value with the GDC, then the percentage error".

5Practice

Fluency questions build the basics. Problem-solving questions make you think about which method to use.

FluencyP1
Find h for 5 strips from x=1 to x=11.
h=2
FluencyP2
Use the trapezoidal rule with 2 strips to estimate ∫02x2dx.
12[(0+4)+2(1)]=3
FluencyP3
Is the estimate in the previous question too big or too small? Why?
Too big (exact 83): y=x2 is concave up.
FluencyP4
y-values 2, 4, 7, 11 at x=0,1,2,3. Estimate the area.
12[(2+11)+2(11)]=17.5
Problem solvingP5
Water flows into a tank at a rate (litres per minute) measured every 5 minutes: 12, 15, 19, 22, 20, 16, 10. Estimate the total volume in 30 minutes.
52[(12+10)+2(92)]=515 litres
Problem solvingP6
For the tank above, estimate the mean rate of flow over the 30 minutes.
51530=17.2 litres per minute

6Exam-style questions

Original questions in the style of the IB Maths AI SL exam, with full markschemes. Your GDC is allowed throughout: use it, but write down what you entered and what it gave you. Give yourself about 1 minute per mark.

Question 1Paper 1[5 marks]

The depth of a river, d metres, is measured every 2 m across its 12 m width: 0, 1.2, 2.1, 2.5, 1.8, 0.9, 0.

  • (a)Write down the value of h.[1]
  • (b)Use the trapezoidal rule to estimate the area of the cross-section.[3]
  • (c)The water flows at 0.8 m s−1. Estimate the volume of water passing per second.[1]
(a)
2A1
(b)
22[(0+0)+2(1.2+2.1+2.5+1.8+0.9)](M1)(A1)
17.0 m2A1
(c)
13.6 m3A1
Question 2Paper 1[7 marks]

Let f(x)=−0.1x3+x2+2.

  • (a)Use the trapezoidal rule with 4 strips to estimate ∫08f(x)dx.[3]
  • (b)Find the exact value of the integral using your GDC.[1]
  • (c)Find the percentage error in your estimate.[2]
  • (d)Suggest how the estimate could be improved.[1]
(a)
y-values 2, 5.2, 11.6, 16.4, 14.8(A1)
22[(2+14.8)+2(5.2+11.6+16.4)](M1)
83.2A1
(b)
84.3 (84.266…)A1
(c)
|83.2−84.26784.267|×100%(M1)
1.27%A1
(d)
use more strips (a smaller h)R1
Question 3Paper 2[6 marks]

The rate of water flowing into a tank, r litres per minute, is recorded every 5 minutes.

t (min)051015202530
r12151922201610

  • (a)Use the trapezoidal rule to estimate the volume of water that flows in during the 30 minutes.[3]
  • (b)Explain why your answer is an estimate.[1]
  • (c)Find the mean rate of flow over the 30 minutes.[2]
(a)
h=5(A1)
52[(12+10)+2(15+19+22+20+16)](M1)
515 litresA1
(b)
the rate is only known at 5-minute intervals; straight lines are assumed between the readingsR1
(c)
51530(M1)
17.2 litres per minuteA1

7Check yourself

Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.

8Past-paper practice

Once you're scoring well above, try these real IB Maths AI SL questions. Your school or teacher will have the papers.

PaperQuestionFocusDifficulty
May 2026 · TZ3 · Paper 1Q7Lawn area by the trapezoidal rule; cost of turf★★★
May 2023 · TZ1 · Paper 1Q9Hill model: trapezoidal estimate, exact integral, percentage error★★★
May 2022 · TZ1 · Paper 1Q6Painting region: trapezoidal estimate, exact area★★☆
Nov 2023 · TZ1 · Paper 2Q1Propeller cross-section: table, trapezoidal estimate, exact integral★★☆
Spotted a mistake on this page?Tell me and I'll fix it. The button opens an email with this page already named, or write to jamesashtonmaths@gmail.com.
Report a mistake