All revision notes topics

Numerical integration with the trapezium ruleEdexcel A-Level Maths: Revision notes

Section 1

The trapezium rule

The trapezium rule estimates ∫abf(x) dx\int_a^bf(x)\,\mathrm{d}x by replacing the curve with straight chords. With nn strips of width h=b−anh=\frac{b-a}{n} and ordinates y0,y1,…,yny_0,y_1,\ldots,y_n: ∫aby dx≈h2[y0+yn+2(y1+y2+…+yn−1)].\int_a^by\,\mathrm{d}x\approx\frac h2\left[y_0+y_n+2\left(y_1+y_2+\ldots+y_{n-1}\right)\right]. There are n+1n+1 ordinates for nn strips. The formula is in the formulae booklet, but you must use it correctly: the first and last ordinates appear once, every other ordinate is doubled.

Key termstrapezium rulestripordinate
Common mistake

Doubling the end ordinates instead of the middle ones, or forgetting the factor h2\frac h2.

Exam tip

Write the ordinates in a list first and check there are n+1n+1 of them.

Section 2

Worked examples

Estimate ∫02x2+1 dx\int_0^2\sqrt{x^2+1}\,\mathrm{d}x with 44 strips: h=0.5h=0.5 and ordinates 1, 1.118, 1.414, 1.803, 2.2361,\ 1.118,\ 1.414,\ 1.803,\ 2.236. 0.52[1+2.236+2(1.118+1.414+1.803)]=2.977.\frac{0.5}{2}\left[1+2.236+2(1.118+1.414+1.803)\right]=2.977. For ∫01(2x+1) dx\int_0^1(2x+1)\,\mathrm{d}x with 44 strips: ordinates 1, 1.5, 2, 2.5, 31,\,1.5,\,2,\,2.5,\,3, giving 0.252[4+12]=2\frac{0.25}{2}[4+12]=2, which is exact because the graph is a straight line. Keep full calculator values until the end, then round to the accuracy asked for.

Key termsestimate
Exam tip

Use a table: xx values in one row, yy values in the next.

Section 3

Over-estimate or under-estimate

Use a sketch to decide whether the chords lie above or below the curve.

  • Convex (curve bends upwards, f′′>0f''>0, e.g. 1x\frac1x and ex\mathrm{e}^x): chords lie above the curve, so the trapezium rule gives an over-estimate.
  • Concave (curve bends downwards, f′′<0f''<0, e.g. ln⁡x\ln x and x\sqrt x): chords lie below the curve, so it gives an under-estimate.
  • A straight line gives the exact value. State the reason, not just the answer: 'the curve is convex, so the chords lie above the curve'.
Key termsconvexconcave
Common mistake

Deciding from whether the function is increasing. An increasing function can be convex or concave.

Section 4

Limits that the area must lie between

For a function that is increasing, rectangles using the left-hand ordinate of each strip give a lower limit, and rectangles using the right-hand ordinate give an upper limit: lower=h(y0+y1+…+yn−1),upper=h(y1+…+yn).\text{lower}=h(y_0+y_1+\ldots+y_{n-1}),\qquad\text{upper}=h(y_1+\ldots+y_n). For the speeds 0,4.5,7.5,9.0,9.50,4.5,7.5,9.0,9.5 with h=2h=2: lower limit 4242 and upper limit 6161. The trapezium estimate 51.551.5 lies between them. If the function is decreasing, the roles of left and right ordinates swap. If the curve is concave and increasing, the true value lies between the trapezium estimate and the upper limit.

Key termsupper limitlower limit
Exam tip

Draw a quick sketch of the rectangles to decide which ordinates give the lower and upper limits.

Section 5

Accuracy and more strips

More strips give a more accurate estimate. For ∫131x dx=ln⁡3=1.0986\int_1^3\frac1x\,\mathrm{d}x=\ln3=1.0986: with 44 strips the estimate is 1.11671.1167 (error 0.01810.0181) and with 88 strips it is 1.10321.1032 (error 0.00460.0046). Doubling the strips roughly quarters the error. The trapezium rule is used when a function cannot be integrated analytically, or when only data values are given, such as speeds measured at regular times. State any assumption: equal strip widths, and that the curve is well approximated by chords between ordinates.

Key termsaccuracy
Common mistake

Claiming that the trapezium rule gives the exact value. It is exact only for straight-line graphs.

That's the notes covered.

Carry on to the next subtopic.

Exam questions on Numerical integration with the trapezium rule

  1. The integral I=∫02x2+1 dxI=\int_0^2\sqrt{x^2+1}\,\mathrm{d}x is estimated using the trapezium rule with 44 strips of equal width.
    Explain whether the estimate is an over-estimate or an under-estimate of II.2 marks
  2. Let f(x)=2x+1f(x)=2x+1 and g(x)=(2x+1)2g(x)=(2x+1)^2 for 0≤x≤10\le x\le1. The trapezium rule is used with 44 strips, at x=0, 0.25, 0.5, 0.75, 1x=0,\,0.25,\,0.5,\,0.75,\,1.
    Find the trapezium rule estimate of ∫01g(x) dx\int_0^1 g(x)\,\mathrm{d}x.2 marks
  3. The speed of a cyclist, in m s−1^{-1}, is measured every 22 seconds for 88 seconds, giving 0, 4.5, 7.5, 9.0, 9.50,\ 4.5,\ 7.5,\ 9.0,\ 9.5. The cyclist's speed is increasing throughout, at a decreasing rate.
    Use the trapezium rule to estimate the distance travelled in the 88 seconds.3 marks
See the full worksheet

Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).