Mathwords logoMathwords

Trapezoidal Rule — Definition, Formula & Examples

The Trapezoidal Rule is a method for estimating the value of a definite integral by splitting the region under a curve into trapezoids and summing their areas. It provides a better approximation than using rectangles because each trapezoid follows the slope of the function between consecutive points.

Given a continuous function ff on [a,b][a,b] partitioned into nn equal subintervals of width Δx=ban\Delta x = \frac{b-a}{n}, the Trapezoidal Rule approximates abf(x)dx\int_a^b f(x)\,dx by Δx2[f(x0)+2f(x1)+2f(x2)++2f(xn1)+f(xn)]\frac{\Delta x}{2}\bigl[f(x_0) + 2f(x_1) + 2f(x_2) + \cdots + 2f(x_{n-1}) + f(x_n)\bigr], where xi=a+iΔxx_i = a + i\,\Delta x.

Key Formula

abf(x)dxΔx2[f(x0)+2f(x1)+2f(x2)++2f(xn1)+f(xn)]\int_a^b f(x)\,dx \approx \frac{\Delta x}{2}\bigl[f(x_0) + 2f(x_1) + 2f(x_2) + \cdots + 2f(x_{n-1}) + f(x_n)\bigr]
Where:
  • a,ba, b = Lower and upper bounds of integration
  • nn = Number of equal subintervals
  • Δx\Delta x = Width of each subinterval, equal to (b − a)/n
  • xix_i = The i-th partition point, where x_i = a + i·Δx

How It Works

First, divide the interval [a,b][a,b] into nn equal subintervals. Evaluate the function at each endpoint x0,x1,,xnx_0, x_1, \ldots, x_n. Then apply the formula: the first and last function values appear once, while every interior value is doubled. Multiply the entire sum by Δx2\frac{\Delta x}{2}. More subintervals yield a more accurate approximation.

Worked Example

Problem: Use the Trapezoidal Rule with n = 4 to approximate the integral of f(x) = x² from x = 0 to x = 4.
Step 1: Find Δx and the partition points.
Δx=404=1,x0=0,  x1=1,  x2=2,  x3=3,  x4=4\Delta x = \frac{4-0}{4} = 1, \quad x_0=0,\; x_1=1,\; x_2=2,\; x_3=3,\; x_4=4
Step 2: Evaluate f(x) = x² at each partition point.
f(0)=0,  f(1)=1,  f(2)=4,  f(3)=9,  f(4)=16f(0)=0,\; f(1)=1,\; f(2)=4,\; f(3)=9,\; f(4)=16
Step 3: Apply the Trapezoidal Rule formula.
12[0+2(1)+2(4)+2(9)+16]=12(44)=22\frac{1}{2}\bigl[0 + 2(1) + 2(4) + 2(9) + 16\bigr] = \frac{1}{2}(44) = 22
Answer: The Trapezoidal Rule gives approximately 22. The exact value is 64/3 ≈ 21.333, so the approximation is close but slightly overestimates because x² is concave up.

Why It Matters

The Trapezoidal Rule appears regularly on AP Calculus AB and BC exams, especially in problems that give a table of values instead of a formula. Engineers and scientists use it whenever they need to estimate an integral from measured data points where no closed-form antiderivative exists.

Common Mistakes

Mistake: Forgetting to double the interior function values and only summing all values equally.
Correction: Only the first and last values appear with a coefficient of 1. Every interior value gets a coefficient of 2 before multiplying the sum by Δx/2.