The Trapezoidal
Rule
Approximate definite integrals by replacing the area under a curve with trapezoids: a simple, reliable technique every business calculus student needs.
Why Approximate Integrals?
In business calculus you often need the definite integral \(\displaystyle\int_a^b f(x)\,dx\) to compute total cost, total revenue, or accumulated change over time. But many real-world functions have no closed-form antiderivative.
From Rectangles to Trapezoids
Area of One Trapezoid
The Trapezoidal Rule Formula
The first and last function values appear once. Every interior value is doubled because each interior point is shared by two adjacent trapezoids.
Visualizing \(n = 4\) Trapezoids
Trapezoidal vs. Midpoint Rule
| Trapezoidal Rule | Midpoint Rule | |
|---|---|---|
| Shape used | Trapezoids | Rectangles |
| Points evaluated | \(n + 1\) endpoints | \(n\) midpoints |
| Weights | 1, 2, 2, ..., 2, 1 | All equal (1 each) |
| Error order | \(O(\Delta x^2)\) | \(O(\Delta x^2)\) |
| Concave up curve | Overestimates | Underestimates |
Over or Underestimation?
How to Apply the Rule
Example 1: \(\int_0^2 x^2\,dx\) with \(n = 4\)
Step 1: \(a = 0,\; b = 2,\; n = 4\), so \(\Delta x = \dfrac{2 - 0}{4} = 0.5\).
Step 2: The \(x\)-values are \(0,\; 0.5,\; 1,\; 1.5,\; 2\).
Step 3: Evaluate \(f(x) = x^2\):
| \(x_i\) | 0 | 0.5 | 1 | 1.5 | 2 |
|---|---|---|---|---|---|
| \(f(x_i)\) | 0 | 0.25 | 1 | 2.25 | 4 |
| Coefficient | 1 | 2 | 2 | 2 | 1 |
Example 1: Solution
The exact value is \(\displaystyle\int_0^2 x^2\,dx = \frac{8}{3} \approx 2.6\overline{6}\). Our estimate of 2.75 is close: the error is only about 3.1%.
Example 2: Table of Values
A company measures its marginal revenue \(R'(q)\) (in dollars per unit) at equally spaced production levels. Estimate the total revenue from \(q = 0\) to \(q = 400\).
| \(q\) | 0 | 100 | 200 | 300 | 400 |
|---|---|---|---|---|---|
| \(R'(q)\) | 50 | 42 | 35 | 26 | 18 |
Example 3: \(\int_1^3 \frac{1}{x}\,dx\) with \(n = 4\)
\(\Delta x = \dfrac{3 - 1}{4} = 0.5\). The \(x\)-values: 1, 1.5, 2, 2.5, 3.
| \(x_i\) | 1 | 1.5 | 2 | 2.5 | 3 |
|---|---|---|---|---|---|
| \(f(x_i) = 1/x_i\) | 1 | 0.6667 | 0.5 | 0.4 | 0.3333 |
Improving Accuracy
The trapezoidal rule error bound involves the second derivative:
Common Mistakes
Summary at a Glance
| Aspect | Detail |
|---|---|
| Formula | \(\frac{\Delta x}{2}[f(x_0) + 2f(x_1) + \cdots + 2f(x_{n-1}) + f(x_n)]\) |
| \(\Delta x\) | \(\dfrac{b - a}{n}\) |
| Coefficient pattern | 1, 2, 2, ..., 2, 1 |
| Error order | \(O(\Delta x^2)\) or \(O(1/n^2)\) |
| Concave up | Overestimates |
| Concave down | Underestimates |
Question 1 of 5
Use the trapezoidal rule with \(n = 3\) to approximate \(\displaystyle\int_0^3 x^2\,dx\). What is the result?
Question 2 of 5
In the trapezoidal rule formula, what coefficient do the interior function values receive?
Question 3 of 5
If \(f''(x) > 0\) for all \(x\) in \([a, b]\), the trapezoidal rule will:
Question 4 of 5
You have the following data at equally spaced points with \(\Delta x = 2\):
| x | 0 | 2 | 4 |
|---|---|---|---|
| \(f(x)\) | 3 | 7 | 11 |
What is the trapezoidal approximation of \(\displaystyle\int_0^4 f(x)\,dx\)?
Question 5 of 5
If you double the number of subintervals \(n\) in the trapezoidal rule, by what factor does the error bound decrease?