The trapezium rule

The trapezium rule

Spec I3 · AQA A-Level Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • The trapezium rule: ∫aby dx≈h2[y0+yn+2(y1+⋯+yn−1)]\int_a^by\,dx\approx\frac h2\left[y_0+y_n+2(y_1+\dots+y_{n-1})\right], with h=b−anh=\frac{b-a}{n}.
  • nn strips need n+1n+1 ordinates.
  • A convex curve (f′′>0f''>0) gives an overestimate; a concave curve (f′′<0f''<0) an underestimate.
  • For a monotonic function, left and right rectangles give lower and upper bounds.
  • More strips means a smaller error.

The rule

Split the area into nn equal strips, treat each as a trapezium, and add: h2[ends+2(middle)]\frac h2\left[\text{ends}+2(\text{middle})\right].

The trapezium rule estimates ∫aby dx\int_a^by\,dx by splitting the area into nn strips of equal width h=b−anh=\frac{b-a}{n} and treating each as a trapezium.

With the yy-values (ordinates) y0,y1,…,yny_0,y_1,\dots,y_n, there are nn strips and n+1n+1 ordinates. Write the ordinates in a list first, then put the ends and the doubled middle values in the formula.

−0.20.20.40.60.811.21.41.61.822.22.41234xy00.2512.254y = x²
∫02x2 dx\int_0^2x^2\,dx with 44 strips: the ordinates are marked on the curve.
  • ∫aby dx\int_a^by\,dxh2[y0+yn+2(y1+⋯+yn−1)]\frac h2\left[y_0+y_n+2(y_1+\dots+y_{n-1})\right]

Worked example

Estimate ∫02x2 dx\int_0^2x^2\,dx using 44 strips.

A table gives 66 ordinates at equal spacing. How many strips are there?

Using the rule with data

Yes: only the yy-values and the equal spacing hh are needed.

The rule works with measured data as well as formulae. For a river, the result is an estimate of the cross-sectional area. Multiplying by an average speed in m s−1^{-1} gives a volume flow rate in m3^3 s−1^{-1}.

Keep units in your answer: area in m2^2, volume flow in m3^3 s−1^{-1}.

00.511.520123456Distance from bank (m)Depth (m)
Depth of a river 6 m wide, measured every 1 m across.

Worked example

Depths are 0,0.8,1.5,1.9,1.6,0.9,00,0.8,1.5,1.9,1.6,0.9,0 m every 11 m across a river 66 m wide. Estimate the cross-sectional area.

The river's cross-sectional area is 6.76.7 m2^2 and the water flows at an average 0.50.5 m s−1^{-1}. What is the volume flow rate?

Overestimates and underestimates

The curvature decides: chords above a convex curve overestimate; chords below a concave curve underestimate.

Whether the rule gives a value that is too large or too small depends on the shape of the curve. If the curve is convex (f′′>0f''>0), the chords lie above the curve and the estimate is an overestimate. If it is concave (f′′<0f''<0), the chords lie below and the estimate is an underestimate.

For 1x\frac1x, f′′=2x3>0f''=\frac{2}{x^3}>0 on [1,2][1,2], so 44 strips give 0.69700.6970 against the exact ln⁡2=0.6931\ln2=0.6931. The percentage error is estimate−exactexact×100\frac{\text{estimate}-\text{exact}}{\text{exact}}\times100.

0.60.811.21.41.61.822.22.40.511.52xy(1, 1)(2, 0.5)y = 1/x
y=1xy=\frac1x is convex: chords lie above the curve, so the rule overestimates.

Convex, f″ > 0

  • Curves upwards
  • Chords above the curve
  • Overestimate

Concave, f″ < 0

  • Curves downwards
  • Chords below the curve
  • Underestimate

A curve has f′′(x)<0f''(x)<0 on the interval. The trapezium rule gives…

Upper and lower bounds

For an increasing function, left-hand rectangles give a lower bound and right-hand rectangles an upper bound.

For a function that is only increasing (or only decreasing) on [a,b][a,b], rectangles give limits that the true area must lie between. For increasing ff, rectangles using the left-hand end of each strip give a lower bound and those using the right-hand end give an upper bound. For decreasing ff it is the other way round.

State that the function is increasing (or decreasing) throughout the interval, otherwise the bounds are not justified.

0.511.522.533.5424681012141618xy124816y = 2ˣ
y=2xy=2^x on [0,4][0,4] with 44 strips of width 11.

Worked example

Find bounds for the area under y=2xy=2^x on [0,4][0,4] using 44 strips, and the trapezium estimate.

ff is decreasing on [a,b][a,b]. Which rectangles give an upper bound?

Improving accuracy

Smaller strips let the chords fit the curve more closely, so the error falls.

Using more strips (smaller hh) makes the chords fit the curve more closely, so the accuracy improves. For ∫042x dx=21.64\int_0^42^x\,dx=21.64, doubling the strips cut the error to about a quarter.

The rule is a numerical method: use it when the integral cannot be found exactly, or when only measured data are available. Give the final answer to the accuracy asked for, but keep full values in the working.

0123448Number of stripsError (%)
Percentage error in the trapezium estimate of ∫042x dx\int_0^42^x\,dx.

Using 88 strips instead of 44 on ∫042x dx\int_0^42^x\,dx will…

Try an exam question

(a) Use the trapezium rule with 44 strips to estimate ∫13ln⁡x dx\int_1^3\ln x\,dx, giving your answer to 33 significant figures. (b) State, with a reason, whether your answer is an overestimate or an underestimate.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find the trapezium rule estimate of II.

1 mark, marked against the mark scheme

Revision notes