The trapezium rule

The trapezium rule

Spec 8.3 · Edexcel International A Level Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • nn strips have width h=b−anh=\frac{b-a}{n} and need n+1n+1 ordinates.
  • ∫aby dx≈h2[y0+yn+2(y1+⋯+yn−1)]\int_a^b y\,dx\approx\frac h2[y_0+y_n+2(y_1+\dots+y_{n-1})]: ends once, middles doubled.
  • More strips give a more accurate estimate.
  • Convex curves (d2ydx2>0\frac{d^2y}{dx^2}>0) are overestimated; concave curves are underestimated.
  • The error is estimate minus exact value.

The trapezium rule

Split the area into equal-width strips and treat each as a trapezium.

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

The values y0,y1,…,yny_0,y_1,\dots,y_n are the ordinates, the yy-values at x=a, a+h, …, bx=a,\ a+h,\ \dots,\ b. The first and last ordinates are used once; all the middle ones are doubled.

It is used when an integral cannot be found exactly, or when only yy-values are available.

  • ∫aby dx\displaystyle\int_a^b y\,dxh2[y0+yn+2(y1+⋯+yn−1)]\dfrac h2\left[y_0+y_n+2(y_1+\dots+y_{n-1})\right]
h = 0.251.22471ABCD
One strip of y = √(2x + 1) between x = 0 and x = 0.25: a trapezium with parallel sides 1 and 1.2247.

How many ordinates are needed for 6 strips?

Using the rule

Work out hh, list the ordinates, then substitute into the formula.

  1. Work out h=b−anh=\frac{b-a}{n} and list the xx-values a, a+h,…,ba,\ a+h,\dots,b.
  2. Calculate each yy-value, keeping full calculator values (or at least 4 decimal places).
  3. Substitute into h2[… ]\frac h2[\dots] and give the answer to the accuracy asked.
−0.20.20.40.60.811.20.20.40.60.811.21.41.61.82xy11.22471.41421.58111.7321y = √(2x + 1)
The four strips for the worked example, with the five ordinates marked.

Worked example

Use the trapezium rule with four strips to estimate ∫012x+1 dx\int_0^1\sqrt{2x+1}\,dx.

Using two strips on ∫02x3 dx\int_0^2x^3\,dx gives yy-values 0, 1, 80,\ 1,\ 8 with h=1h=1. What is the estimate?

More strips, better estimate

More strips make the chords follow the curve more closely, so the estimate improves.

Narrower strips mean the tops of the trapezia hug the curve. Doubling the number of strips typically divides the error by about 4.

For ∫02x3 dx\int_0^2x^3\,dx the exact value is 44. Four strips give 4.254.25 (error 6.25%6.25\%); eight strips give 4.06254.0625 (error 1.5625%1.5625\%).

012344 strips8 stripsExactMethodEstimate
Estimates of ∫02x3 dx\int_0^2x^3\,dx against the exact value.

Why does using more strips improve the estimate?

Over- and underestimates

Convex curves are overestimated and concave curves are underestimated.

The top of each trapezium is a chord.

  • If the curve is convex (d2ydx2>0\frac{d^2y}{dx^2}>0), chords lie above the curve and the rule overestimates.
  • If the curve is concave (d2ydx2<0\frac{d^2y}{dx^2}<0), chords lie below it and the rule underestimates.

Convex

  • d2ydx2>0\frac{d^2y}{dx^2}>0
  • Chords above the curve
  • Overestimate

Concave

  • d2ydx2<0\frac{d^2y}{dx^2}<0
  • Chords below the curve
  • Underestimate
−0.20.20.40.60.811.21.40.20.40.60.811.21.41.61.82xy(0, 1)(1, 1.7321)y = √(2x+1)
y = √(2x + 1) is concave, so the rule underestimates: the estimate 1.3965 is below the true value 1.3987.

A curve has d2ydx2<0\frac{d^2y}{dx^2}<0 throughout. What does the trapezium rule do?

Estimating the error

Subtract the exact value from the estimate, then divide by the exact value for a percentage.

If the exact integral can be found, the error is the estimate minus the exact value, and the percentage error is estimate−exactexact×100\frac{\text{estimate}-\text{exact}}{\text{exact}}\times100.

If the exact value is not available, compare estimates with different numbers of strips: if they agree to the required accuracy, you can be confident of that accuracy.

0.20.40.60.811.21.41.61.822.22.4123456xy(2, 4)y = x²Chord (one strip)
One trapezium (dashed chord) for ∫₀² x² dx: estimate 4, exact 8/3, so the percentage error is (4 − 8/3) ÷ (8/3) × 100 = 50%.
  • Percentage errorestimate−exactexact×100\dfrac{\text{estimate}-\text{exact}}{\text{exact}}\times100

Worked example

Find the error when four strips estimate ∫131x2 dx\int_1^3\frac{1}{x^2}\,dx as 0.7050.705.

What is the error if an estimate is 4.25 and the exact value is 4?

Try an exam question

Use the trapezium rule with four strips to estimate ∫022x dx\int_0^2 2^x\,dx, giving your answer to 3 significant figures. State, with a reason, whether your estimate is an overestimate or an underestimate.

[5 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find the width hh of each strip.

1 mark, marked against the mark scheme

Revision notes