← Calculus 2

The trapezoidal rule

Better area estimates with trapezoids.

Start this lesson

The trapezoidal rule approximates an integral with trapezoids instead of rectangles: with n equal pieces of width Δx, the estimate is (Δx/2)(f(x₀) + 2f(x₁) + 2f(x₂) + … + 2f(xₙ₋₁) + f(xₙ)). It is the average of the left and right Riemann sums.

Example: f(x) = x² from 0 to 2, n = 2

  1. Δx = 1
  2. (1/2)(0 + 2(1) + 4) — Ends once, middle twice
  3. 3 — The exact value is 8/3

Why it works: Trapezoids follow a curve more closely than rectangles because their tops slant with the curve.

Tip: Only the two endpoints are counted once; every interior point is counted twice.