The trapezoidal rule
Approximating a definite integral with the trapezoidal rule using equally spaced function values, and using concavity to decide whether the estimate is too big or too small.
The rule
Many functions have no simple primitive, and sometimes you only have a table of values. Joining neighbouring points with straight lines turns the region into trapezia, whose areas are easy to add.
Use the trapezoidal rule with $2$ subintervals to estimate $\displaystyle\int_0^2 x^2\,dx$.
Estimate $\displaystyle\int_0^4 f(x)\,dx$ from this table.
| $x$ | 0 | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|
| $f(x)$ | 3 | 5 | 6 | 4 | 2 |
Too big or too small?
Estimate $\displaystyle\int_0^4 \sqrt{x}\,dx$ with $4$ subintervals and compare with the exact value.
Use $2$ subintervals to estimate $\displaystyle\int_0^2 x^2\,dx$.
$\tfrac12(0 + 2 + 4)$.
Use the table in Example 2 to estimate $\displaystyle\int_0^4 f(x)\,dx$.
$\tfrac12 \times 35$.
Use $1$ subinterval to estimate $\displaystyle\int_0^1 x^3\,dx$.
$\tfrac12(0 + 1)$.
Use $2$ subintervals to estimate $\displaystyle\int_0^1 x^3\,dx$.
$h = 0.5$: $0.25(0 + 2 \times 0.125 + 1)$.
Find $h$ for $\displaystyle\int_1^5 f(x)\,dx$ with $4$ subintervals.
$\tfrac{5 - 1}{4}$.
How many function values are needed for $6$ subintervals?
$n + 1$.
Estimate $\displaystyle\int_0^4 \sqrt{x}\,dx$ with $4$ subintervals, to 2 decimal places.
$\tfrac12(0 + 2 \times 4.146 + 2)$.
$f$ is concave up on $[a, b]$. The trapezoidal rule gives:
The chords lie above the curve.
The trapezoidal rule is exact when $f$ is:
The chords are the graph itself.
New numbers every time. Keep going until you get five in a row.
Coaching Centre