All courses › Numerical Methods › Trapezoidal rule
Trapezoidal rule
The trapezoidal rule approximates by replacing the curve with straight segments between the points, so the area becomes a sum of trapezoids. Halving the step size roughly quarters the error, since the global error is .
the trapezoidal rule with intervals
Symbols
| step size, | ||
| function value at point |
Example
with 2 intervals, :
(exact is 9).
The trapezoidal rule overestimates the area for a convex (upward-curving) function.
Practise interpolation and integration for free →