The Trapezoidal Rule
Learn the trapezoidal rule for NSW Year 12 Mathematics Advanced (NESA outcome MAV-12-05). When a function has no easy primitive, or you only have a table of measurements, you can estimate an integral by joining equally spaced points with straight lines and adding the trapezium areas.
You will learn to choose the strip width, list the function values, apply the trapezoidal rule, and estimate areas from a table of measurements such as river depths or speeds — a practical numerical integration method used by surveyors and engineers.
Theory
The trapezoidal rule estimates a definite integral using trapezoids. This Year 12 Mathematics Advanced topic (MAV-12-05) approximates areas when exact integration is hard or only data is given.
With \(n\) strips of width \(h=\dfrac{b-a}{n}\): \(\displaystyle\int_a^b f\,dx\approx\dfrac{h}{2}\big[y_0+2(y_1+\cdots+y_{n-1})+y_n\big]\).
The two end heights count once; every interior height counts twice. A single trapezoid is \(\dfrac{h}{2}(y_0+y_1)\).
Method
- Find \(h=\dfrac{b-a}{n}\) and the heights \(y_0,\dots,y_n\).
- Double the interior heights; add the two ends once.
- Multiply the total by \(\dfrac{h}{2}\).
| \(\ \) | \(\approx\) | \(\tfrac12[0+2(1)+4]\) |
| \(=\) | \(3\) |
| \(\ \) | \(\approx\) | \(\tfrac22[2+8]=10\) |
| \(\ \) | \(\approx\) | \(\tfrac22[1+2(3)+5]=12\) |
| \(\text{exact}\) | \(=\) | \(\tfrac83\approx2.67\) |
| \(\ \) | \(3>\tfrac83\ (\text{over-estimate})\) |
Common pitfalls
Frequently asked questions
What is the trapezoidal rule?
It estimates a definite integral by replacing the area with trapezoids: h over 2 times the first height, plus twice the interior heights, plus the last height.
When do you use the trapezoidal rule?
When a function is hard or impossible to integrate exactly, or when you only have a table of measured values.
Why are the interior values multiplied by 2?
Each interior height is shared by two adjacent trapezoids, so it is counted twice in the formula.
Does the trapezoidal rule over- or under-estimate?
For a curve that bends upward (concave up) it slightly over-estimates the true area.