Resources For Teachers For Tutors For Students & Parents Pricing
Year 12 Maths - Methods (Unit 3 & Unit 4) Integration

Trapezium rule and the definite integral as a limiting sum

20 practice questions 0 video lessons Theory + worked examples
Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

The trapezium rule estimates the area under a curve by slicing it into strips of equal width \(h\) and treating each strip as a trapezium, giving \(\displaystyle\int_a^b f(x)\,dx\approx\dfrac{h}{2}\big[y_0+2y_1+\cdots+2y_{n-1}+y_n\big]\). Using more, narrower strips sharpens the estimate, and in the limit as the strip width \(\to 0\) the sum of areas becomes the exact definite integral \(\displaystyle\int_a^b f(x)\,dx\).

The area under a curve \(y=f(x)\) between \(x=a\) and \(x=b\) can be estimated by dividing \([a,b]\) into \(n\) strips of equal width \(h=\dfrac{b-a}{n}\). The heights of the curve at the strip edges are the ordinates \(y_0,y_1,\dots,y_n\), where \(y_i=f(a+ih)\).

The trapezium rule replaces each strip by a trapezium whose parallel sides are the two ordinates at its edges. A single trapezium of width \(h\) and parallel sides \(y_{\text{L}}\) and \(y_{\text{R}}\) has area \(\dfrac{h}{2}\big(y_{\text{L}}+y_{\text{R}}\big)\); adding the trapezia across the interval gives the trapezium-rule estimate. A rougher lead-in is a rectangle sum, where each strip is a rectangle whose height is the ordinate at the left edge (a left sum) or the right edge (a right sum).

Making the strips narrower (more of them) makes the straight tops hug the curve more closely, so the estimate improves. In the limit as the strip width \(\to 0\), the sum of the strip areas approaches a single exact value: the definite integral \(\displaystyle\int_a^b f(x)\,dx\), defined as \(\displaystyle\lim_{n\to\infty}\sum_{i=1}^{n} f(x_i)\,\Delta x\). The notation \(\displaystyle\int_a^b f(x)\,dx\) is exactly this limiting area.

Key idea. A definite integral is a limit of a sum of areas. The trapezium rule and rectangle sums are finite approximations to that limit; letting the strip width \(\to 0\) removes the error and returns the exact area \(\displaystyle\int_a^b f(x)\,dx\).
Trapezium rule with four stripsA concave-up curve y=f(x) on the interval from a to b divided into four vertical strips of equal width h; each strip is approximated by a trapezium whose straight top is the chord of the curve (shown in red), and the shaded trapezia together estimate the area under the curve. x y
Four trapezia (strip width \(h\)) with straight chord tops estimate the area under \(y=f(x)\)
Right-endpoint rectangle sumThe same increasing curve with four rectangles whose heights are taken at the right-hand edge of each strip; because the curve is increasing every rectangle rises above the curve, so the right-rectangle sum overestimates the true area. x y
Right-endpoint rectangles on an increasing curve overestimate the area; a left sum would underestimate it

The trapezium rule with \(n\) strips of equal width \(h=\dfrac{b-a}{n}\) and ordinates \(y_i=f(a+ih)\):

\[\int_a^b f(x)\,dx\approx\frac{h}{2}\Big[\,y_0+2y_1+2y_2+\cdots+2y_{n-1}+y_n\,\Big]\]
abf(x)dxh2[y0+2y1++2yn-1+yn]

A single trapezium of width \(h\) with parallel sides \(y_{\text{L}}\) and \(y_{\text{R}}\):

\[A_{\text{trap}}=\frac{h}{2}\big(y_{\text{L}}+y_{\text{R}}\big)\]
Atrap=h2(yL+yR)

The definite integral as the limit of a sum, with \(\Delta x=\dfrac{b-a}{n}\) and sample points \(x_i\):

\[\int_a^b f(x)\,dx=\lim_{n\to\infty}\sum_{i=1}^{n} f(x_i)\,\Delta x\]
abf(x)dx=limni=1nf(xi)Δx

For a function increasing on \([a,b]\), the left and right rectangle sums bound the true area:

\[\underbrace{\sum_{i=0}^{n-1} f(x_i)\,\Delta x}_{\text{left sum}}\;\le\;\int_a^b f(x)\,dx\;\le\;\underbrace{\sum_{i=1}^{n} f(x_i)\,\Delta x}_{\text{right sum}}\]
i=0n-1f(xi)Δxabf(x)dxi=1nf(xi)Δx
Ordinate bookkeeping. In the trapezium rule the two end ordinates \(y_0\) and \(y_n\) are counted once; every interior ordinate is counted twice. A quick check: there should be \(n\) trapezia but \(n+1\) ordinates.

Applying the trapezium rule

  1. Find the strip width. With \(n\) strips on \([a,b]\), compute \(h=\dfrac{b-a}{n}\); the strip edges are \(x=a,\;a+h,\;a+2h,\;\dots,\;b\).
  2. Tabulate the ordinates. Evaluate \(y_i=f(x_i)\) at every edge, from \(y_0\) at \(x=a\) to \(y_n\) at \(x=b\) — that is \(n+1\) values.
  3. Weight them. Take the two end ordinates once and double every interior ordinate: \(y_0+2y_1+2y_2+\cdots+2y_{n-1}+y_n\).
  4. Multiply by \(\dfrac{h}{2}\). The estimate is \(\dfrac{h}{2}\) times that weighted sum.
  5. Refine if needed. To improve accuracy, double the number of strips (halve \(h\)); the limit of these estimates as the strip width \(\to 0\) is the exact integral.
Concavity tells you the direction of the error. Where the curve is concave up, the chords lie above it and the rule overestimates; where it is concave down, the rule underestimates. Either way the error shrinks as \(h\to 0\).
Example 1 — two trapezia
Estimate \(\displaystyle\int_0^2 (x^2+1)\,dx\) using the trapezium rule with \(2\) strips.
Solution
Strip width and ordinates — \(h=\dfrac{2-0}{2}=1\), edges \(x=0,1,2\):
\(y_0=f(0)\)\(=\)\(0^2+1=1\)
\(y_1=f(1)\)\(=\)\(1^2+1=2\)
\(y_2=f(2)\)\(=\)\(2^2+1=5\)
Apply \(\dfrac{h}{2}\big[y_0+2y_1+y_2\big]\):
\(A\)\(\approx\)\(\dfrac{1}{2}\big[1+2(2)+5\big]\)
\(=\)\(\dfrac{1}{2}(10)=5\)
\(\therefore\) \(\displaystyle\int_0^2 (x^2+1)\,dx\approx 5\) (exact value \(\dfrac{14}{3}\approx 4.67\); the concave-up curve makes this a slight overestimate)
12[1+2(2)+5]=5
Example 2 — rectangle sums bounding the area
For \(y=x^2\) on \([0,3]\) with \(3\) strips \((h=1)\), find the left and right rectangle sums and check they bound the exact area \(9\).
Solution
Ordinates at \(x=0,1,2,3\): \(y=0,1,4,9\).
Left sum — heights at the left edges \(x=0,1,2\):
\(L\)\(=\)\(1\,(0+1+4)=5\)
Right sum — heights at the right edges \(x=1,2,3\):
\(R\)\(=\)\(1\,(1+4+9)=14\)
\(\therefore\) \(L=5\le 9\le R=14\): the area is bounded by the two sums
Left and right rectangle sums bounding the areaThe curve y=x squared on the interval from 0 to 3 split into three unit strips; the green right-endpoint rectangles rise above the curve (overestimate) and the red left-endpoint rectangles sit below it (underestimate), so the true area is bounded between the two rectangle sums. x y
5914
Example 3 — trapezium rule from a table
The table gives \(y=\dfrac{1}{x}\) at five points. Use the trapezium rule with \(4\) strips to estimate \(\displaystyle\int_1^3 \dfrac{1}{x}\,dx\).
Solution
Strip width \(h=\dfrac{3-1}{4}=0.5\); ordinates at \(x=1,1.5,2,2.5,3\):
\(y_0,\dots,y_4\)\(=\)\(1,\;0.6667,\;0.5,\;0.4,\;0.3333\)
End ordinates once, interior ordinates doubled:
\(S\)\(=\)\(y_0+2(y_1+y_2+y_3)+y_4\)
\(=\)\(1+2(1.5667)+0.3333\)
\(=\)\(4.4667\)
Multiply by \(\dfrac{h}{2}=0.25\):
\(A\)\(\approx\)\(0.25\times 4.4667\)
\(=\)\(1.117\)
\(\therefore\) \(\displaystyle\int_1^3 \dfrac{1}{x}\,dx\approx 1.117\) (exact value \(\ln 3\approx 1.099\))
0.25×4.46671.117
Example 4 — the integral as a limiting sum
Using right rectangles, show that \(\displaystyle\int_0^1 x^2\,dx\) is the limit of a sum, and evaluate it. Use \(\displaystyle\sum_{i=1}^{n} i^2=\dfrac{n(n+1)(2n+1)}{6}\).
Solution
Set up the right sum — \(\Delta x=\dfrac{1}{n}\), sample points \(x_i=\dfrac{i}{n}\):
\(R_n\)\(=\)\(\displaystyle\sum_{i=1}^{n}\left(\dfrac{i}{n}\right)^{2}\cdot\dfrac{1}{n}\)
\(=\)\(\dfrac{1}{n^{3}}\displaystyle\sum_{i=1}^{n} i^{2}\)
Substitute the sum-of-squares formula and simplify:
\(R_n\)\(=\)\(\dfrac{1}{n^{3}}\cdot\dfrac{n(n+1)(2n+1)}{6}\)
\(=\)\(\dfrac{(n+1)(2n+1)}{6n^{2}}\)
Take the limit as \(n\to\infty\) (strip width \(\to 0\)):
\(\displaystyle\int_0^1 x^2\,dx\)\(=\)\(\displaystyle\lim_{n\to\infty}\dfrac{(n+1)(2n+1)}{6n^{2}}\)
\(=\)\(\dfrac{2}{6}=\dfrac{1}{3}\)
\(\therefore\) \(\displaystyle\int_0^1 x^2\,dx=\dfrac{1}{3}\), the exact limit of the rectangle sums
01x2dx=13

Common pitfalls

Do not forget the factor \(\dfrac{1}{2}\). The rule multiplies the weighted ordinate sum by \(\dfrac{h}{2}\), not by \(h\). Each strip is a trapezium of area \(\dfrac{h}{2}(y_{\text{L}}+y_{\text{R}})\).
Weight the ordinates correctly. Only the two end ordinates \(y_0\) and \(y_n\) are counted once; every interior ordinate is doubled. Doubling \(y_0\) or \(y_n\) by mistake inflates the estimate.
\(n\) strips means \(n+1\) ordinates. With \(4\) strips you need \(5\) function values. Using \(4\) ordinates (or the wrong \(h=\dfrac{b-a}{n}\)) is a frequent slip.

Frequently asked questions

What is the trapezium rule?

It estimates the area under a curve by dividing the interval into strips of equal width \(h\) and treating each strip as a trapezium whose parallel sides are the two ordinates. Adding the trapezia gives \(A\approx\dfrac{h}{2}\big[y_0+2y_1+\cdots+2y_{n-1}+y_n\big]\).

What is the formula for the trapezium rule?

With \(h=\dfrac{b-a}{n}\), \(\displaystyle\int_a^b f(x)\,dx\approx\dfrac{h}{2}\big[y_0+2y_1+2y_2+\cdots+2y_{n-1}+y_n\big]\). The two end ordinates are counted once and every interior ordinate twice.

How do you make the trapezium-rule estimate more accurate?

Use more strips, which makes each strip narrower and reduces \(h\). As the strips get thinner the straight tops follow the curve more closely, so the total area of the trapezia approaches the true area.

What is the definite integral as a limiting sum?

It is the limit of a sum of rectangle areas as the strip width \(\to 0\): \(\displaystyle\int_a^b f(x)\,dx=\lim_{n\to\infty}\sum_{i=1}^{n} f(x_i)\,\Delta x\) with \(\Delta x=\dfrac{b-a}{n}\). This limiting area is exactly the notation \(\displaystyle\int_a^b f(x)\,dx\).

How do left and right rectangle sums bound the area?

For an increasing function, left-edge heights give rectangles below the curve (an underestimate) and right-edge heights give rectangles above it (an overestimate), so the true area lies between the left and right sums.

Does the trapezium rule over- or under-estimate the area?

It depends on concavity: where the curve is concave up the chord lies above it and the rule overestimates; where it is concave down the rule underestimates. The error shrinks as more strips are used.