Tutorials › AP Calculus › Concavity and Trapezoidal Over- or Underestimates

Riemann Sums and Definite Integrals · Tutorial 435 of 999

Concavity and Trapezoidal Over- or Underestimates

Use the position of a function relative to its endpoint chords to predict the direction of trapezoidal approximation error.

Beginner 9 min read

What You'll Learn

  • Define concave-up and concave-down behavior using the relationship between a graph and its chords
  • Use the sign of the second derivative as a test for concavity
  • Explain why concave-up functions produce trapezoidal overestimates
  • Explain why concave-down functions produce trapezoidal underestimates
  • Apply the conclusion to signed integrals, including functions that take negative values
  • Recognize when changing concavity prevents a definite conclusion

Why Concavity Predicts the Error Direction

A trapezoidal sum approximates the integral by replacing the graph on each subinterval with the straight segment joining its endpoint values. The key question is whether that segment lies above or below the graph. Concavity answers that question, so it lets us predict the direction of the approximation error without first calculating the exact integral.

The conclusion depends on the graph’s position relative to its endpoint chords, not on whether the function is positive or negative. A trapezoidal sum can be an overestimate even when the integral is negative. It is therefore important to compare the numerical values of the approximation and integral, rather than relying on a picture of positive area alone.

Concavity and the Second Derivative

Definition: A function is concave up on an interval if its graph lies on or below the chord joining the graph’s endpoints on every subinterval. It is concave down if its graph lies on or above those endpoint chords.

More precisely, for \(a\leq x\leq b\), the chord from \((a,f(a))\) to \((b,f(b))\) has height \((1-t)f(a)+tf(b)\) at \(x=(1-t)a+tb\), where \(0\leq t\leq1\). Concavity up means \(f(x)\leq(1-t)f(a)+tf(b)\); concavity down means the reverse inequality.

When \(f\) is twice differentiable, the sign of \(f''\) is a standard way to check concavity. If \(f''(x)\geq0\) throughout an interval, then \(f\) is concave up there. If \(f''(x)\leq0\), then \(f\) is concave down there. These tests require the indicated derivative condition over the interval, not merely at one point. Concavity can also be established directly from the chord definition.

Trapezoidal Sums and the Main Result

Let \(a=x_0<x_1<\cdots<x_n=b\) be a partition of an interval, and let \(\Delta x_i=x_i-x_{i-1}\) be the width of its \(i\)th subinterval. The trapezoidal sum is

$$ T=\sum_{i=1}^{n}\frac{\Delta x_i}{2} \bigl(f(x_{i-1})+f(x_i)\bigr). $$

Each term is the area of the trapezoid whose parallel sides have heights \(f(x_{i-1})\) and \(f(x_i)\). The formula works with unequal as well as equal subinterval widths. For a continuous function, the comparison with the definite integral is:

Theorem: If \(f\) is concave up throughout \([a,b]\), then every trapezoidal sum on a partition of \([a,b]\) is an overestimate: \(T\geq\int_a^b f(x)\,dx\). If \(f\) is concave down throughout \([a,b]\), then every such sum is an underestimate: \(T\leq\int_a^b f(x)\,dx\).

The theorem applies to the signed definite integral, including when \(f\) is negative. If \(f\) is linear on the interval, its graph is its own endpoint chord, so the trapezoidal sum equals the integral exactly.

Why the Chord Determines the Comparison

Consider one subinterval \([u,v]\). Let \(L(x)\) be the linear function whose graph is the chord joining \((u,f(u))\) and \((v,f(v))\). The area of the trapezoid on this subinterval is the integral of that linear function:

$$ \int_u^v L(x)\,dx = \frac{v-u}{2}\bigl(f(u)+f(v)\bigr). $$

If \(f\) is concave up, its graph lies on or below the chord, so \(f(x)\leq L(x)\) throughout \([u,v]\). Integrating this pointwise inequality gives

$$ \int_u^v f(x)\,dx \leq \int_u^v L(x)\,dx = \frac{v-u}{2}\bigl(f(u)+f(v)\bigr). $$

Thus the trapezoid’s contribution is at least the integral on that subinterval. Adding the inequalities for every subinterval gives \(T\geq\int_a^b f(x)\,dx\). For a concave-down function, \(f(x)\geq L(x)\), so the inequalities reverse and the trapezoidal sum is an underestimate.

The second-derivative test also has a direct justification. Suppose \(f\) is twice continuously differentiable and \(f''\geq0\) on \([u,v]\). For \(x<y\) in that interval, the Mean Value Theorem applied to \(f'\) gives \(f'(y)-f'(x)=f''(c)(y-x)\geq0\) for some \(c\) between \(x\) and \(y\). Hence \(f'\) is nondecreasing. If \(u<z<v\), apply the Mean Value Theorem to \(f\) on \([u,z]\) and \([z,v]\). The resulting points \(r\in(u,z)\) and \(s\in(z,v)\) satisfy \(r<s\), so

$$ \frac{f(z)-f(u)}{z-u} =f'(r) \leq f'(s) =\frac{f(v)-f(z)}{v-z}. $$

Multiplying by the positive widths and rearranging yields \(f(z)\leq\frac{v-z}{v-u}f(u)+\frac{z-u}{v-u}f(v)\), exactly the statement that the graph lies below its chord. If \(f''\leq0\), the same argument reverses the inequalities and gives concavity down.

Worked Examples

Worked Example: Concave Up Gives an Overestimate

Use the trapezoidal sum with partition \(0,1,2\) to approximate \(\int_0^2 x^2\,dx\), and determine the error direction.

Let \(f(x)=x^2\). Its second derivative is \(f''(x)=2>0\), so \(f\) is concave up on \([0,2]\). The subinterval widths are \(\Delta x_1=\Delta x_2=1\), and the endpoint values are \(f(0)=0\), \(f(1)=1\), and \(f(2)=4\). Therefore,

$$ T=\frac{1}{2}(0+1)+\frac{1}{2}(1+4) =\frac{1}{2}+\frac{5}{2} =3. $$

The exact integral is

$$ \int_0^2 x^2\,dx =\left[\frac{x^3}{3}\right]_0^2 =\frac{8}{3}-0 =\frac{8}{3}. $$

Since \(3=\frac{9}{3}>\frac{8}{3}\), the trapezoidal sum is an overestimate, as concavity predicts. The comparison checks the result directly.

Worked Example: Concave Down Gives an Underestimate

Use the partition \(0,1,2\) to approximate \(\int_0^2(4-x^2)\,dx\), and determine the error direction.

Here \(f(x)=4-x^2\) and \(f''(x)=-2<0\), so the function is concave down on the whole interval. Its values at the partition points are \(f(0)=4\), \(f(1)=3\), and \(f(2)=0\). Both widths equal \(1\), so

$$ T=\frac{1}{2}(4+3)+\frac{1}{2}(3+0) =\frac{7}{2}+\frac{3}{2} =5. $$

The exact integral is

$$ \int_0^2(4-x^2)\,dx =\left[4x-\frac{x^3}{3}\right]_0^2 =8-\frac{8}{3} =\frac{16}{3}. $$

Since \(5=\frac{15}{3}<\frac{16}{3}\), the trapezoidal sum is an underestimate, matching the concave-down rule.

Worked Example: A Negative Function Can Still Give an Overestimate

Use one trapezoid on \([0,2]\) to approximate \(\int_0^2(x^2-4)\,dx\). Check whether concavity predicts an overestimate or an underestimate.

For \(f(x)=x^2-4\), \(f''(x)=2>0\), so \(f\) is concave up. The width is \(2\), and the endpoint values are \(f(0)=-4\) and \(f(2)=0\). Thus,

$$ T=\frac{2}{2}\bigl((-4)+0\bigr)=-4. $$

The exact integral is

$$ \int_0^2(x^2-4)\,dx =\left[\frac{x^3}{3}-4x\right]_0^2 =\left(\frac{8}{3}-8\right)-0 =-\frac{16}{3}. $$

Since \(-4=-\frac{12}{3}>-\frac{16}{3}\), \(T\) is an overestimate. This is consistent with the theorem even though both values are negative: “overestimate” means a greater numerical value. The comparison confirms the prediction.

When Concavity Changes

The overestimate or underestimate conclusion requires the same concavity to hold throughout the interval being approximated. If \(f''\) is positive on some parts and negative on others, the chord can lie below the graph on some subintervals and above it on others. The errors may compete, so the sign of \(f''\) at just one point—or the function’s behavior on just one part of the interval—does not establish the direction of the total error.

A useful approach is to check concavity on every subinterval in the partition. If each is concave up, each trapezoid contributes at least the corresponding integral; if each is concave down, each contributes at most the corresponding integral. If the concavity differs across the partition, the simple global conclusion does not follow. The actual total comparison would require more information.

Common Pitfall

A frequent mistake is to reverse the chord comparison. For \(f(x)=x^2\) on \([0,2]\), the endpoint chord is \(L(x)=2x\), and \(x^2\leq2x\) on this interval. A mistaken conclusion might say, “The curve is below the chord, so the trapezoid is an underestimate.” The comparison actually shows the opposite: the chord’s integral is larger than the function’s integral. In fact, \(\int_0^2 2x\,dx=4\), while \(\int_0^2 x^2\,dx=\frac{8}{3}\). Thus the trapezoid overestimates.

Takeaway: Concave up means the endpoint chords lie above the graph, so trapezoidal sums overestimate. Concave down means the chords lie below the graph, so trapezoidal sums underestimate. Check that the concavity condition holds across the interval before using either conclusion.

Check Your Understanding

Answer each question using the relationship between a function’s graph and its endpoint chords.

  1. If \(f''(x)>0\) throughout an interval, does a trapezoidal sum overestimate or underestimate the integral there?
  2. For \(g(x)=6-x^2\) on \([0,2]\), use the sign of \(g''\) to predict the trapezoidal error direction.
  3. Can a trapezoidal sum be an overestimate when the function is negative? Explain briefly.
  4. Why does concavity that changes within an interval prevent an immediate global error-direction conclusion?
  5. If a function is linear throughout the interval, how does its trapezoidal sum compare with its definite integral?

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon