The Trapezoidal Rule
The trapezoidal rule estimates a definite integral by adding trapezium areas: \(\displaystyle\int_a^b f(x)\,dx\approx\dfrac{h}{2}\big(y_0+2y_1+\dots+2y_{n-1}+y_n\big)\).
Part of the NSW Year 12 Mathematics Advanced course, in the Calculus area of study (Integral calculus focus area) of the 2024 syllabus. Work through practice questions with fully worked solutions and video lessons, or scroll down for the theory summary and worked examples.
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.