I3PureCore

The Trapezium Rule

Some functions, however important, simply cannot be integrated exactly using any technique from this course. Rather than giving up, split the area under the curve into a series of trapeziums instead of exact slices — and add up their areas for a very good estimate.

30 min Video by TLMaths Numerical Methods

The big picture

The trapezium rule\textbf{trapezium rule} is a numerical method for estimating a definite integral without needing to find an antiderivative at all — essential for functions with no elementary antiderivative. It works by approximating the smooth curve with a series of straight-line segments, turning the area under the curve into a sum of trapezium areas, which get more accurate as you use more (thinner) strips.

A-Level Maths I3-03: Numerical Integration: Introducing the Trapezium RuleCurated by Kepler, not produced by us. Watch it, then work through the notes below.
Open on YouTube

What you'll be able to do

  • Understand the trapezium rule as an approximation using straight-line strips
  • Apply the trapezium rule formula to estimate a definite integral
  • Recognise whether the trapezium rule over- or under-estimates the true area
  • Increase accuracy by using more strips
1

The trapezium rule formula

Divide the interval [a,b][a,b] into nn equal strips of width h=b−anh=\dfrac{b-a}{n}. At each strip boundary, evaluate y=f(x)y=f(x). Each strip is approximated as a trapezium (rather than the exact curved region), and their areas are summed using a formula that only double-counts the interior boundary heights once.

∫aby dx≈h2[y0+yn+2(y1+y2+⋯+yn−1)]\int_a^b y\,dx \approx \dfrac{h}{2}\Big[y_0 + y_n + 2(y_1+y_2+\cdots+y_{n-1})\Big]
First + last height, plus double every interior height, times half the strip width.
Example 1Use the trapezium rule with 4 strips to estimate ∫04x2 dx\int_0^4 x^2\,dx.
1Strip width: h=4−04=1h=\dfrac{4-0}{4}=1.
2Compute the y-values at x=0,1,2,3,4x=0,1,2,3,4: y0=0y_0=0, y1=1y_1=1, y2=4y_2=4, y3=9y_3=9, y4=16y_4=16.
3Apply the formula: 12[0+16+2(1+4+9)]=12[16+2(14)]=12(44)\dfrac{1}{2}\big[0+16+2(1+4+9)\big] = \dfrac12\big[16+2(14)\big]=\dfrac12(44).
Answer
2222 (the exact value is ∫04x2 dx=643≈21.33\int_0^4x^2\,dx=\dfrac{64}{3}\approx21.33, so this is a close overestimate)

Tip — Always set up a clear table of xx and yy values first — it makes identifying which yy-values are "first/last" (counted once) versus "interior" (counted twice) far less error-prone.

2

Over- and under-estimates

Whether the trapezium rule over- or under-estimates the true area depends on the curve's concavity. If the curve is convex\textbf{convex} (curving upward, like x2x^2), the straight-line trapezium tops sit ABOVE the curve, giving an OVERESTIMATE. If the curve is concave\textbf{concave} (curving downward), the trapeziums sit BELOW the curve, giving an UNDERESTIMATE.

Example 1Explain whether the trapezium rule overestimates or underestimates ∫04x2 dx\int_0^4 x^2\,dx, and confirm using the earlier result.
1y=x2y=x^2 curves upward (convex) throughout the interval.
2A straight line joining two points on a convex curve lies ABOVE the curve between them.
3So the trapezium rule overestimates the true area.
Answer
It overestimates — confirmed by the earlier result (22 vs the true value 21.33).
Why this works

This connects directly to the second derivative: d2ydx2>0\dfrac{d^2y}{dx^2}>0 (convex) gives an overestimate; d2ydx2<0\dfrac{d^2y}{dx^2}<0 (concave) gives an underestimate.

3

Improving accuracy

Using MORE strips (a larger nn, so a smaller hh) makes each individual trapezium a closer fit to the curve, reducing the overall error — the trapezium rule estimate approaches the true integral as n→∞n\to\infty.

Example 1Explain why doubling the number of strips typically improves the trapezium rule estimate.
1More (thinner) strips means each trapezium spans a smaller section of the curve.
2Over a smaller section, the curve is closer to a straight line, so the trapezium approximation is more accurate.
Answer
Thinner strips fit the curve more closely, reducing the total approximation error.

Tip — Comparing estimates from two different numbers of strips (e.g. doubling nn) is a common exam technique for showing the trapezium rule is converging toward the true value.

Think like an examiner

  • Set out a clear table of xx and yy values before applying the formula — this is usually worth method marks on its own.
  • State clearly whether your answer is an over- or underestimate, and justify it using the shape (convexity/concavity) of the curve.
  • Double-check you have correctly identified which yy-values are interior (doubled) versus the first/last (not doubled).

Common misconceptions

Doubling every y-value, including the first and last.
Only the INTERIOR y-values (y1y_1 through yn−1y_{n-1}) are doubled — the first (y0y_0) and last (yny_n) are counted once each.
Using the wrong strip width, e.g. forgetting to divide (b−a)(b-a) by nn.
Strip width h=b−anh=\dfrac{b-a}{n} — always calculate this first before finding the y-values at each boundary.
Guessing whether the estimate is an over- or underestimate without justification.
Refer to the curve's concavity (convex → overestimate; concave → underestimate) as your reasoning.

Trapezium rule

∫aby dx≈h2[y0+yn+2(y1+⋯+yn−1)]\int_a^b y\,dx \approx \dfrac{h}{2}\big[y_0+y_n+2(y_1+\cdots+y_{n-1})\big]
Trapezium rule with strip width h = (b−a)/n.

Stretch yourself

Use the trapezium rule with 5 strips to estimate ∫05x+1 dx\int_0^5 \sqrt{x+1}\,dx, giving your answer to 3 decimal places.

Hint — Strip width is 1. Compute y-values at x = 0, 1, 2, 3, 4, 5, then apply the trapezium rule formula.

Reveal solution
Solutionh=1h=1. Values: y0=1=1y_0=\sqrt1=1, y1=2≈1.414y_1=\sqrt2\approx1.414, y2=3≈1.732y_2=\sqrt3\approx1.732, y3=4=2y_3=\sqrt4=2, y4=5≈2.236y_4=\sqrt5\approx2.236, y5=6≈2.449y_5=\sqrt6\approx2.449. Apply the formula: 12[1+2.449+2(1.414+1.732+2+2.236)]=12[3.449+2(7.382)]=12(3.449+14.764)=12(18.213)≈9.107\dfrac12\big[1+2.449+2(1.414+1.732+2+2.236)\big]=\dfrac12\big[3.449+2(7.382)\big]=\dfrac12(3.449+14.764)=\dfrac12(18.213)\approx9.107. ■\blacksquare

Questions students ask

Why are the interior y-values doubled but not the first and last?
Each interior boundary is shared between two adjacent trapeziums, so its height contributes to both areas — effectively counting it twice in the combined formula. The very first and last boundaries only belong to one trapezium each.
How do I know if my estimate is too high or too low?
Check the concavity of the curve: if it curves upward (convex, second derivative positive), the straight trapezium tops lie above the curve, giving an overestimate. If it curves downward (concave), they lie below, giving an underestimate.
How can I improve the accuracy of my estimate?
Use more (and therefore thinner) strips — as the number of strips increases, each trapezium fits the curve more closely and the total error shrinks.

Key takeaways

  • The trapezium rule estimates ∫aby dx≈h2[y0+yn+2(y1+⋯+yn−1)]\int_a^b y\,dx \approx \dfrac{h}{2}[y_0+y_n+2(y_1+\cdots+y_{n-1})], with h=b−anh=\dfrac{b-a}{n}.
  • A convex curve gives an overestimate; a concave curve gives an underestimate.
  • More strips (smaller h) generally improve accuracy.
  • Always tabulate x and y values clearly before applying the formula.

How this fits the course

Test yourself

Answer a few questions, then review anything you missed.

Prefer paper? Open the written self-check

Answer each question before opening its answer. This self-check does not record a quiz score.

  1. The strip width h in the trapezium rule is calculated as:

    • b−an\dfrac{b-a}{n}
    • a−bn\dfrac{a-b}{n}
    • b−ab-a
    • nb−a\dfrac{n}{b-a}
    Show answer and explanation

    Answer: b−an\dfrac{b-a}{n}

    Total interval width divided by the number of strips.

  2. In the trapezium rule formula, which y-values are doubled?

    • The interior values only
    • All values, including first and last
    • Only the first value
    • Only the last value
    Show answer and explanation

    Answer: The interior values only

    Interior boundaries are shared between two trapeziums.

  3. A convex curve (curving upward) typically gives:

    • An overestimate of the true area
    • An underestimate of the true area
    • An exact value always
    • A negative area
    Show answer and explanation

    Answer: An overestimate of the true area

    Straight trapezium tops lie above a convex curve.

  4. Increasing the number of strips generally:

    • Improves the accuracy of the estimate
    • Worsens the accuracy
    • Has no effect on accuracy
    • Only works for straight lines
    Show answer and explanation

    Answer: Improves the accuracy of the estimate

    Thinner strips fit the curve more closely.

  5. With 3 strips over [0,3], the y-values needed are at x =

    • 0, 1, 2, 3
    • 0, 1.5, 3
    • 0, 3
    • 1, 2, 3
    Show answer and explanation

    Answer: 0, 1, 2, 3

    3 strips need 4 boundary points, each 1 unit apart.

Finished this lesson?

Loading your progress…

Next step

Keep practising

Start with the quiz above to check the key ideas. You can also choose another topic from the practice library.

Browse practice topics

Related lessons

All 4 lessons

Put the methods into practice: see how A-Level maths duels work. An account is required to play; the overview and sample are public.