Skip to main content
SingaporeFurther MathsSyllabus dot point

How do the trapezium rule and Simpson's rule approximate a definite integral, and how accurate are they?

Approximate a definite integral using the trapezium rule and Simpson's rule and comment on the accuracy of the estimate

A focused answer to the H2 Further Mathematics outcome on numerical integration. The trapezium rule and Simpson's rule, the strip width and ordinates, applying each rule, the over- or under-estimate behaviour, and which rule is more accurate.

Generated by Claude Opus 4.811 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. The answer
  3. Examples in context
  4. Try this

What this dot point is asking

SEAB wants you to approximate a definite integral ∫abf(x) dx\displaystyle\int_a^b \mathrm{f}(x)\,\mathrm{d}x when an exact antiderivative is unavailable or awkward, using the trapezium rule and Simpson's rule. You must set up the ordinates correctly, apply the right weights, and comment on the accuracy, including whether an estimate is an over- or under-estimate and which rule is better.

The answer

Strips and ordinates

Divide [a,b][a, b] into nn equal strips of width

h=bβˆ’an,h = \frac{b - a}{n},

giving n+1n + 1 ordinates y0,y1,…,yny_0, y_1, \dots, y_n at x=a,a+h,…,bx = a, a + h, \dots, b. Both rules combine these ordinates with fixed weights.

The trapezium rule

The trapezium rule joins consecutive ordinates with straight lines:

∫abf(x) dxβ‰ˆh2[y0+yn+2(y1+y2+β‹―+ynβˆ’1)].\int_a^b \mathrm{f}(x)\,\mathrm{d}x \approx \frac{h}{2}\Big[y_0 + y_n + 2(y_1 + y_2 + \cdots + y_{n-1})\Big].

The end ordinates have weight 11 and the interior ones weight 22.

Over- or under-estimate

The trapezium rule's accuracy depends on the curvature. For a curve that is concave up (bending upward, like 11+x2\tfrac{1}{1 + x^2} is on parts of its range), the chords lie above the curve, so the trapezium rule over-estimates; for a concave-down curve it under-estimates. Sketching or considering fβ€²β€²\mathrm{f}'' tells you which.

Simpson's rule

Simpson's rule fits parabolas through successive triples of points and needs an even number of strips:

∫abf(x) dxβ‰ˆh3[y0+yn+4(y1+y3+⋯ )+2(y2+y4+⋯ )].\int_a^b \mathrm{f}(x)\,\mathrm{d}x \approx \frac{h}{3}\Big[y_0 + y_n + 4(y_1 + y_3 + \cdots) + 2(y_2 + y_4 + \cdots)\Big].

The pattern of weights is 1,4,2,4,2,…,4,11, 4, 2, 4, 2, \dots, 4, 1: ends weight 11, odd-indexed ordinates weight 44, even-indexed (interior) weight 22.

Which is more accurate

Simpson's rule is much more accurate than the trapezium rule for the same number of strips, because parabolas match a smooth curve far better than straight lines. It is exact for any cubic. Increasing the number of strips improves both rules.

Examples in context

Example 1. Area under experimental data. When only measured values are available, with no formula to integrate, the trapezium and Simpson rules estimate quantities like distance from a velocity-time table, the everyday use of numerical integration in the laboratory.

Example 2. Integrals with no elementary antiderivative. The integral ∫01eβˆ’x2 dx\int_0^1 \mathrm{e}^{-x^2}\,\mathrm{d}x, central to the normal distribution, has no elementary closed form, so it is evaluated numerically by Simpson's rule, linking the technique directly to statistics.

Try this

Q1. For nn strips, how many ordinates are there? [1 mark]

  • Cue. n+1n + 1.

Q2. State the weight pattern for Simpson's rule. [1 mark]

  • Cue. 1,4,2,4,2,…,4,11, 4, 2, 4, 2, \dots, 4, 1 (ends 11, odd ordinates 44, even interior 22).

Q3. Why must Simpson's rule use an even number of strips? [2 marks]

  • Cue. It fits a parabola to each pair of strips, so the strips must group into pairs, requiring an even total.

Exam-style practice questions

Practice questions written in the style of SEAB exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

Original6 marksUse the trapezium rule with four strips to estimate ∫0111+x2 dx\displaystyle\int_0^{1} \frac{1}{1 + x^2}\,dx, giving your answer to four decimal places.
Show worked answer β†’

Four strips on [0,1][0, 1] give strip width h=1βˆ’04=0.25h = \dfrac{1 - 0}{4} = 0.25 and ordinates at x=0,0.25,0.5,0.75,1x = 0, 0.25, 0.5, 0.75, 1.

Compute y=11+x2y = \dfrac{1}{1 + x^2}: y0=1y_0 = 1, y1=11.0625=0.94118y_1 = \dfrac{1}{1.0625} = 0.94118, y2=11.25=0.8y_2 = \dfrac{1}{1.25} = 0.8, y3=11.5625=0.64y_3 = \dfrac{1}{1.5625} = 0.64, y4=12=0.5y_4 = \dfrac{1}{2} = 0.5.

Trapezium rule: βˆ«β‰ˆh2[y0+y4+2(y1+y2+y3)]\displaystyle\int \approx \frac{h}{2}\left[y_0 + y_4 + 2(y_1 + y_2 + y_3)\right]:

=0.252[1+0.5+2(0.94118+0.8+0.64)]=0.125[1.5+2(2.38118)]=0.125(6.26236)=0.7828.= \frac{0.25}{2}\left[1 + 0.5 + 2(0.94118 + 0.8 + 0.64)\right] = 0.125\left[1.5 + 2(2.38118)\right] = 0.125(6.26236) = 0.7828.

(The exact value is arctan⁑1=Ο€4β‰ˆ0.7854\arctan 1 = \tfrac{\pi}{4} \approx 0.7854.)

Markers reward the strip width, the five ordinates, the trapezium formula with the doubled interior terms, and the estimate 0.78280.7828.

Original6 marksUse Simpson's rule with four strips to estimate ∫0111+x2 dx\displaystyle\int_0^{1} \frac{1}{1 + x^2}\,dx to four decimal places, and compare its accuracy with the trapezium rule.
Show worked answer β†’

With the same ordinates (h=0.25h = 0.25): y0=1y_0 = 1, y1=0.94118y_1 = 0.94118, y2=0.8y_2 = 0.8, y3=0.64y_3 = 0.64, y4=0.5y_4 = 0.5.

Simpson's rule (four strips, an even number): βˆ«β‰ˆh3[y0+y4+4(y1+y3)+2y2]\displaystyle\int \approx \frac{h}{3}\left[y_0 + y_4 + 4(y_1 + y_3) + 2 y_2\right]:

=0.253[1+0.5+4(0.94118+0.64)+2(0.8)]=0.253[1.5+4(1.58118)+1.6].= \frac{0.25}{3}\left[1 + 0.5 + 4(0.94118 + 0.64) + 2(0.8)\right] = \frac{0.25}{3}\left[1.5 + 4(1.58118) + 1.6\right].

=0.253[1.5+6.32472+1.6]=0.253(9.42472)=0.78539.= \frac{0.25}{3}\left[1.5 + 6.32472 + 1.6\right] = \frac{0.25}{3}(9.42472) = 0.78539.

To four decimal places this is 0.78540.7854, matching Ο€4=0.7854\tfrac{\pi}{4} = 0.7854. Simpson's rule is far more accurate than the trapezium estimate 0.78280.7828, because it fits parabolas rather than straight lines.

Markers reward the Simpson pattern of weights 1,4,2,4,11, 4, 2, 4, 1, the estimate 0.78540.7854, and the comparison showing Simpson is more accurate.

Related dot points