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

Riemann Sums and Definite Integrals · Tutorial 436 of 999

Concavity and Midpoint Over- or Underestimates

Use a function’s concavity to decide whether a midpoint sum is above or below the integral, and justify the decision with a symmetric-points argument.

Beginner 9 min read

What You'll Learn

  • Define concavity and connect it to the sign of the second derivative.
  • Explain why a midpoint rectangle overestimates for a concave-down function.
  • Explain why a midpoint rectangle underestimates for a concave-up function.
  • Apply the rule to midpoint sums on one or several subintervals.
  • Recognize when a change in concavity prevents a definite conclusion.

Why Curvature Predicts Midpoint Error

A midpoint sum uses the function value at the center of each subinterval to set the height of a rectangle. If the graph bends upward or downward, that central height can be consistently above or below the function’s average height across the subinterval. Concavity tells us which direction to expect.

The rule is not about whether a function is increasing or decreasing. It is about how the graph bends. A function that bends upward has a midpoint value below its average value on a symmetric interval, so its midpoint rectangle underestimates. A function that bends downward has a midpoint value above its average, so its midpoint rectangle overestimates.

Key takeaway: On an interval where a function is concave up, the midpoint sum is less than or equal to the integral. Where it is concave down, the midpoint sum is greater than or equal to the integral.

Concavity and the Midpoint Sum

A function is concave up on an interval if its graph bends upward there, like a cup. It is concave down if its graph bends downward, like an arch. A standard way to determine concavity, when the function is twice differentiable, is to examine its second derivative: \(f''(x)\ge 0\) throughout an interval implies that \(f\) is concave up there, and \(f''(x)\le 0\) implies that it is concave down.

For a continuous function on \([a,b]\), the midpoint estimate using one subinterval has width \(h=b-a\) and midpoint \(m=(a+b)/2\). Its midpoint sum is the rectangle’s signed area, \(h f(m)\). The integral records the function’s signed accumulation over the interval.

$$ M_1=(b-a)f\!\left(\frac{a+b}{2}\right) $$

If the interval is divided into \(n\) equal subintervals, each has width \(\Delta x=(b-a)/n\). Let \(x_i^*\) be the midpoint of the \(i\)-th subinterval. The composite midpoint sum is

$$ M_n=\sum_{i=1}^{n} f(x_i^*)\Delta x. $$

When the same concavity holds throughout each subinterval, the direction of the error is determined separately on each one. Adding those inequalities gives the direction for the full midpoint sum.

Why the Midpoint Rule Works

The key idea is to compare the function value at the center with function values at pairs of points equally far to either side. For a concave-down function, the center value is at least the average of each such pair. This is precisely the defining inequality for concavity, applied to two points with equal weights.

Definition: A function \(f\) is concave down on an interval if, for any points \(x\) and \(y\) in that interval and any \(0\le \lambda\le 1\), $$ f\bigl(\lambda x+(1-\lambda)y\bigr) \ge \lambda f(x)+(1-\lambda)f(y). $$ It is concave up if the reverse inequality holds.

Here is a derivation for one subinterval \([a,b]\). Let \(m=(a+b)/2\). For any \(t\) between \(0\) and \((b-a)/2\), the points \(m-t\) and \(m+t\) are equally spaced around \(m\). Concavity down gives

$$ f(m)\ge \frac{f(m-t)+f(m+t)}{2}. $$

Integrate both sides with respect to \(t\) from \(0\) to \((b-a)/2\). The left side is constant, so its integral is \(\frac{b-a}{2}f(m)\). On the right, the two terms together cover the interval from \(a\) to \(b\): the substitution \(x=m-t\) covers the left half, and \(x=m+t\) covers the right half. Therefore,

$$ \frac{b-a}{2}f(m) \ge \frac{1}{2}\int_a^b f(x)\,dx. $$

Multiplying both sides by \(2\) proves that the one-subinterval midpoint estimate is at least the integral. For concavity up, the inequalities reverse at the pairwise comparison and throughout the derivation. This proves the midpoint rule’s direction rather than merely suggesting it from a sketch.

Theorem: If \(f\) is continuous and concave down on \([a,b]\), then $$ (b-a)f\!\left(\frac{a+b}{2}\right)\ge \int_a^b f(x)\,dx. $$ If \(f\) is concave up on \([a,b]\), the inequality is reversed. For a composite midpoint sum, the same conclusion holds if the relevant concavity applies on every subinterval.

Worked Examples

Worked Example: A Concave-Up Function on One Interval

Use one midpoint rectangle to estimate the integral of \(f(x)=x^2\) on \([0,2]\), and determine whether the estimate is an overestimate or underestimate.

First, \(f''(x)=2\), which is positive throughout the interval. Thus \(f\) is concave up, so the midpoint estimate should be an underestimate. The interval width is \(2-0=2\), and the midpoint is \((0+2)/2=1\). The function value there is \(f(1)=1^2=1\). Therefore,

$$ M_1=2\cdot 1=2. $$

To check against the exact integral, an antiderivative is \(F(x)=x^3/3\), since \(F'(x)=3x^2/3=x^2\). Hence

$$ \int_0^2 x^2\,dx =F(2)-F(0) =\frac{8}{3}-0 =\frac{8}{3}. $$

Since \(2=6/3<8/3\), the midpoint estimate is indeed an underestimate. The difference is \(8/3-2=2/3\).

Worked Example: A Concave-Down Function on One Interval

Use one midpoint rectangle to estimate the integral of \(f(x)=4x-x^2\) on \([0,2]\), and determine the error direction.

The second derivative is \(f''(x)=-2\), so the function is concave down throughout the interval. Its midpoint is \(1\), its width is \(2\), and \(f(1)=4(1)-1^2=3\). The midpoint estimate is

$$ M_1=2\cdot 3=6. $$

An antiderivative is \(F(x)=2x^2-x^3/3\), because \(F'(x)=4x-x^2\). Thus the exact integral is

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

Because \(6=18/3>16/3\), the midpoint estimate is an overestimate, as concavity down predicts. The difference is \(6-16/3=2/3\).

Worked Example: A Composite Midpoint Sum

Divide \([0,2]\) into two equal subintervals and use the composite midpoint sum for \(f(x)=x^2\). Compare the estimate with the integral.

The width of each subinterval is \(\Delta x=(2-0)/2=1\). The subintervals are \([0,1]\) and \([1,2]\), with midpoints \(1/2\) and \(3/2\). The corresponding function values are

$$ f\!\left(\frac12\right)=\frac14, \qquad f\!\left(\frac32\right)=\frac94. $$

So the composite midpoint sum is

$$ M_2 =1\cdot\frac14+1\cdot\frac94 =\frac{10}{4} =\frac52. $$

Since \(f''(x)=2>0\), the function is concave up on both subintervals, so the sum should underestimate. The exact integral, using \(F(x)=x^3/3\) with \(F'(x)=x^2\), is

$$ \int_0^2 x^2\,dx =\frac{2^3}{3}-\frac{0^3}{3} =\frac83. $$

Indeed, \(5/2=15/6<16/6=8/3\). As a further check, the integral on \([0,1]\) is \(1/3\), compared with its midpoint rectangle \(1/4\); on \([1,2]\) it is \(7/3\), compared with its midpoint rectangle \(9/4\). Each rectangle underestimates by \(1/12\), so together they underestimate by \(1/6\), matching \(8/3-5/2=1/6\).

Reading the Graph and Checking the Conditions

On a graph, imagine a vertical line through the midpoint of a subinterval. For a concave-up curve, points equally far to the left and right of that line have an average height at least as large as the height at the center. The midpoint rectangle is therefore too short relative to the function’s average height. For a concave-down curve, the central height is at least as large as the average of those paired heights, so the rectangle is too tall.

This reasoning depends on concavity across the subinterval, not just at its midpoint. If the graph changes concavity within an interval, the theorem does not by itself determine the direction of the total error there. On a partition, if some subintervals are concave up and others concave down, their errors may point in opposite directions. Without further information, the total midpoint sum may be either an overestimate or an underestimate.

The conclusion applies to signed integrals too. A function need not stay above the horizontal axis for the concavity comparison to hold: the pairwise inequalities still compare its values. What matters is that the function has the stated concavity throughout the interval.

Common Mistake: Confusing Concavity with Increase

A rising graph does not automatically make a midpoint sum an overestimate. For example, \(f(x)=x^2\) is increasing on \([0,2]\), but it is also concave up there. Its one-rectangle midpoint estimate is \(2\), while its integral is \(8/3\), so the estimate is an underestimate. The mistaken reasoning “the graph rises, so the midpoint rectangle must be too high” uses monotonicity where concavity is needed.

To avoid this mistake, check the second derivative or the graph’s bending on the whole subinterval. Increasing or decreasing describes the direction of slope; concave up or concave down describes how the slope changes. Only the latter gives this midpoint-error rule.

1
Identify each subinterval.
Use the partition, not just the endpoints of the full interval.
2
Determine the concavity on each one.
Use the graph or the sign of \(f''\), if the second derivative is available.
3
Apply the direction.
Concave up means midpoint estimate less than or equal to integral; concave down means greater than or equal to integral.
4
Combine carefully.
If concavity changes across the partition, the errors can have different signs, so do not claim a total direction without additional evidence.

When the Estimate Is Exact

If a function is linear on a subinterval, its midpoint rectangle gives the exact integral there. The heights on either side of the midpoint balance around the midpoint height, so the average height equals the central height. This is the equality case in the concavity comparison. For a strictly concave-up or strictly concave-down function, the corresponding midpoint inequality is strict, and the estimate is not exact on an interval of positive width.

Check Your Understanding

Use concavity, not whether a function is increasing or decreasing, to decide the error direction.

  1. If \(f''(x)>0\) throughout a subinterval, is its midpoint estimate an overestimate or an underestimate?
  2. A function is concave down on \([2,6]\). Write the inequality comparing its one-rectangle midpoint estimate with its integral.
  3. For \(f(x)=x^2\) on \([0,2]\), find the midpoint estimate using one rectangle and state the direction of its error.
  4. A function is concave up on the first subinterval of a partition and concave down on the second. Does concavity alone determine the total error direction? Explain.
  5. Why does an increasing function not necessarily have an overestimate from the midpoint rule?

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