Estimating the area under a graph
In Year 12 Mathematical Methods (Queensland, QCAA), you estimate the area under a graph by dividing it into equal strips and adding the areas. Each strip can be a left-endpoint, right-endpoint or midpoint rectangle, or a trapezium (the trapezoidal rule). Whether the estimate is an over- or under-estimate follows from the shape of the curve, and using more strips gives a better result — the exact area is the limit of the sums, the definite integral.
To estimate the area between a positive curve \(y=f(x)\) and the \(x\)-axis from \(x=a\) to \(x=b\), split the interval into \(n\) equal strips, each of width \(w=\dfrac{b-a}{n}\), and add up simple shapes that fit each strip.
A rectangle strip takes a single height from the curve: the left-endpoint value, the right-endpoint value, or the midpoint value of the strip. The estimate is then \(w\) times the sum of those heights, a sum of the form \(\sum_i f(x_i)\,\delta x_i\).
A trapezium strip joins the two ends of the strip on the curve with a straight chord; adding the trapezia gives the trapezoidal rule. Because a rectangle or a chord does not follow the curve exactly, an estimate is either an over-estimate or an under-estimate. Taking more strips narrows the gap, and the exact area is the limit of the sums — the definite integral \(\displaystyle\int_a^b f(x)\,dx\).
Strip width for \(n\) equal strips:
Left- and right-endpoint rectangle sums:
Midpoint rectangle sum (heights at the middle of each strip):
The trapezoidal rule:
How to estimate the area under a graph
- Choose the number of strips \(n\) and find the width \(w=\dfrac{b-a}{n}\). The strip boundaries are \(x_0=a,\ x_1,\ \ldots,\ x_n=b\).
- Read off the heights. For left rectangles use \(f\) at \(x_0,\ldots,x_{n-1}\); for right rectangles use \(x_1,\ldots,x_n\); for midpoint rectangles use the middle of each strip; for trapezia use both end-heights.
- Add the strips. A rectangle sum is \(w\) times the sum of the heights; the trapezoidal rule is \(\dfrac{w}{2}\big[\text{ends}+2(\text{interior})\big]\).
- Decide over or under. For rectangles, use increasing/decreasing; for the trapezoidal (and midpoint) rule, use concavity. State whether the estimate is above or below the true area.
Heights at the left endpoints \(x=0,1,2,3\).
| \(A\) | \(\approx\) | \(1\big[f(0)+f(1)+f(2)+f(3)\big]\) |
| \(=\) | \(1\big[0+1+4+9\big]=14\) |
Estimate \(=14\) square units (an under-estimate, since \(y=x^2\) is increasing).
Heights at the right endpoints \(x=1,2,3,4\).
| \(A\) | \(\approx\) | \(1\big[f(1)+f(2)+f(3)+f(4)\big]\) |
| \(=\) | \(1\big[1+4+9+16\big]=30\) |
The curve is increasing, so the right rectangles rise above it: an over-estimate (the true area lies between \(14\) and \(30\)).
Ends \(f(0),f(4)\); twice the interior \(f(1),f(2),f(3)\).
| \(A\) | \(\approx\) | \(\dfrac{1}{2}\big[0+2(1+4+9)+16\big]\) |
| \(=\) | \(\dfrac{1}{2}\big[0+28+16\big]=22\) |
The curve is concave up, so each trapezium lies above it: an over-estimate (exact \(=\tfrac{64}{3}\approx 21.33\)).
| \(n=2\ (w=1)\) | \(:\) | \(1[f(1)+f(2)]=5\) |
| \(n=4\ (w=0.5)\) | \(:\) | \(0.5[0.25+1+2.25+4]=3.75\) |
As \(n\to\infty\) the estimates fall towards the exact area \(\displaystyle\int_0^2 x^2\,dx=\tfrac{8}{3}\approx 2.67\).
Common pitfalls
Frequently asked questions
How do you estimate the area under a curve with rectangles?
Split \([a,b]\) into \(n\) strips of width \(w=\dfrac{b-a}{n}\). On each strip use one height (left, right or midpoint) and add: the estimate is \(w\) times the sum of the heights.
What is the trapezoidal rule?
Join successive points on the curve with chords, making a trapezium per strip: \(\dfrac{w}{2}\big[f(x_0)+2(f(x_1)+\cdots+f(x_{n-1}))+f(x_n)\big]\).
How do you tell if an estimate is an over- or under-estimate?
Rectangles: on an increasing curve, left under-estimates and right over-estimates. Trapezoidal: concave up over-estimates, concave down under-estimates.
Why does using more strips give a better estimate?
Narrower strips hug the curve more closely, so the error shrinks. As \(n\to\infty\) the estimates approach the exact area, the definite integral.
How is the estimate linked to the definite integral?
Each estimate is a sum \(\sum_i f(x_i)\,\delta x_i\). The definite integral \(\displaystyle\int_a^b f(x)\,dx\) is the limit of these sums as \(w\to0\).