01 / 21

The Trapezoidal
Rule

Approximate definite integrals by replacing the area under a curve with trapezoids: a simple, reliable technique every business calculus student needs.

Business Calculus

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

Riemann Sums
Use flat-topped rectangles. The tops don't follow the curve, so large gaps or overlaps appear.
Trapezoidal Rule
Connect consecutive points on the curve with straight lines, forming trapezoids that hug the curve much more closely.

Area of One Trapezoid

\(f(x_i)\)
\(f(x_{i+1})\)
\(\Delta x\)
slanted top edge

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

x y
\(x_0\)
\(x_1\)
\(x_2\)
\(x_3\)
\(x_4\)
\(\times 1\)
\(\times 2\)
\(\times 2\)
\(\times 2\)
\(\times 1\)
\(\Delta x\)

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?

Concave Up
The trapezoid tops lie above the curve, so the rule overestimates the true area.
Concave Down
The trapezoid tops lie below the curve, so the rule underestimates the true area.

How to Apply the Rule

1
Identify the interval \([a, b]\) and the number of subintervals \(n\).
2
Compute \(\Delta x = \dfrac{b - a}{n}\).
3
List the \(x\)-values: \(x_0 = a,\; x_1 = a + \Delta x,\; \ldots,\; x_n = b\).
4
Evaluate \(f\) at each \(x_i\).
5
Plug in: \(\dfrac{\Delta x}{2}\bigl[f(x_0) + 2f(x_1) + \cdots + 2f(x_{n-1}) + f(x_n)\bigr]\).

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:

Double \(n\)
Error shrinks by a factor of 4 (since error is \(O(1/n^2)\)).
Flat \(f''\)
When \(f\) is nearly linear (\(f'' \approx 0\)), the rule is extremely accurate.

Common Mistakes

Wrong Coefficients
Doubling the endpoints instead of the interior values. Remember: endpoints get 1, interior gets 2.
Forgetting \(\frac{\Delta x}{2}\)
Using \(\Delta x\) alone. The formula requires half of \(\Delta x\) as the leading factor.
Unequal Spacing
Applying the standard formula when data points are not equally spaced. You must use individual trapezoid areas instead.

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\):

x024
\(f(x)\)3711

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?