Tutorials › AP Calculus › The Second Derivative Concavity Theorem

Concavity and Curve Analysis · Tutorial 371 of 999

The Second Derivative Concavity Theorem

Use the Mean Value Theorem to justify why the sign of the second derivative determines whether a function is concave up or concave down.

Advanced 10 min read

What You'll Learn

  • State the hypotheses of the second derivative concavity theorem
  • Distinguish concavity from whether a function is increasing or decreasing
  • Derive concavity from the change in the first derivative
  • Connect increasing or decreasing secant slopes to the chord definition of concavity
  • Apply the theorem to polynomial and radical functions
  • Identify a common error involving the signs of the first and second derivatives

From Curvature to a Theorem

A graph that bends upward has tangent slopes that increase as \(x\) increases. A graph that bends downward has tangent slopes that decrease. The second derivative measures how the first derivative changes, so its sign provides a precise test for these two shapes.

The test is more than a visual rule. The Mean Value Theorem lets us prove the connection: a positive second derivative makes the first derivative increase, and increasing slopes force each intermediate point of the graph to lie below the chord joining two surrounding points. The reverse inequalities give concavity down.

Key idea: On an interval, \(f''(x)>0\) implies that \(f\) is strictly concave up, while \(f''(x)<0\) implies that \(f\) is strictly concave down. The function must have a second derivative throughout the interval for these conditions to apply.

Concavity in Terms of Chords

Let \(f\) be defined on an interval. Choose any three points \(x<z<y\) in that interval. The point on the straight chord from \((x,f(x))\) to \((y,f(y))\) that has horizontal coordinate \(z\) has height

$$ \frac{(y-z)f(x)+(z-x)f(y)}{y-x}. $$

The weights in this expression are positive, and they add to \(1\). The expression is therefore a weighted average of the endpoint heights.

Definition: A function is concave up on an interval if, for every \(x<z<y\) in the interval, $$ f(z)\leq \frac{(y-z)f(x)+(z-x)f(y)}{y-x}. $$ It is strictly concave up if the inequality is strict for every such triple. Concavity down is defined by reversing the inequality; strict concavity down means the reversed inequality is strict.

In words, a concave-up graph lies on or below each chord joining two points on the graph. A concave-down graph lies on or above those chords. The strict versions mean the graph lies strictly below or above the chord at every intermediate point.

For a twice-differentiable function, these definitions agree with the description in terms of tangent slopes: concave up corresponds to increasing \(f'\), and concave down to decreasing \(f'\). The theorem below establishes the connection between the second derivative and the chord definition.

The Second Derivative Concavity Theorem

Theorem: Let \(f\) be twice differentiable on an open interval \(I\).
  • If \(f''(x)>0\) for every \(x\in I\), then \(f\) is strictly concave up on \(I\).
  • If \(f''(x)<0\) for every \(x\in I\), then \(f\) is strictly concave down on \(I\).
  • If \(f''(x)\geq 0\) for every \(x\in I\), then \(f\) is concave up on \(I\), with a non-strict chord inequality. If \(f''(x)\leq 0\) throughout \(I\), then \(f\) is concave down.

The strict conclusions require a strict sign throughout the interval. The weak conclusions allow the second derivative to equal zero at some points. In each case, the condition concerns the second derivative over the interval, not just at one selected point.

Why the Theorem Works

We prove the positive case. Let \(f''(x)>0\) throughout \(I\), and select any \(x<z<y\) in \(I\). First, apply the Mean Value Theorem to \(f\) on each of the intervals \([x,z]\) and \([z,y]\). There are points \(c_1\in(x,z)\) and \(c_2\in(z,y)\) such that the two secant slopes are values of the derivative:

$$ \frac{f(z)-f(x)}{z-x}=f'(c_1), \qquad \frac{f(y)-f(z)}{y-z}=f'(c_2). $$

Because \(c_1<z<c_2\), we have \(c_1<c_2\). Apply the Mean Value Theorem to \(f'\) on \([c_1,c_2]\). For some \(d\in(c_1,c_2)\),

$$ f'(c_2)-f'(c_1)=f''(d)(c_2-c_1). $$

Both factors on the right are positive: \(f''(d)>0\) by hypothesis, and \(c_2-c_1>0\) because \(c_2>c_1\). Consequently \(f'(c_2)>f'(c_1)\). Substituting the secant-slope equalities gives

$$ \frac{f(z)-f(x)}{z-x} < \frac{f(y)-f(z)}{y-z}. $$

Since \(z-x>0\) and \(y-z>0\), multiplication by their product preserves the inequality. Rearranging gives

$$ \begin{aligned} (y-z)\bigl(f(z)-f(x)\bigr) &< (z-x)\bigl(f(y)-f(z)\bigr),\\ (y-x)f(z) &< (y-z)f(x)+(z-x)f(y),\\ f(z) &< \frac{(y-z)f(x)+(z-x)f(y)}{y-x}. \end{aligned} $$

This is exactly the strict chord inequality for concavity up. Since \(x<z<y\) were arbitrary, it holds for every such triple, so \(f\) is strictly concave up on \(I\).

For the negative case, \(f''(d)<0\) makes \(f'(c_2)-f'(c_1)<0\). The secant-slope inequality and then the chord inequality reverse, proving strict concavity down. If \(f''\geq 0\), the same argument gives non-strict inequalities throughout; if \(f''\leq 0\), it gives the corresponding non-strict inequalities for concavity down.

Why the Mean Value Theorem is essential here: It connects slopes over intervals to derivative values at points inside those intervals. Applying it to \(f'\) then connects the change in those slopes to \(f''\). This is the logical chain from second-derivative sign to graph shape.

Worked Examples

Worked Example: A Quadratic That Is Concave Up

Determine the concavity of \(f(x)=3x^2-2x+1\) on \(\mathbb{R}\), and check the chord inequality at \(x=-1\), \(z=0\), and \(y=2\).

Differentiate once:

$$ f'(x)=6x-2. $$

Differentiate again:

$$ f''(x)=6. $$

Since \(6>0\) for every real \(x\), the theorem says \(f\) is strictly concave up on \(\mathbb{R}\). For the requested chord check, evaluate the function at all three points:

$$ \begin{aligned} f(-1)&=3(-1)^2-2(-1)+1=3+2+1=6,\\ f(0)&=3(0)^2-2(0)+1=1,\\ f(2)&=3(2)^2-2(2)+1=12-4+1=9. \end{aligned} $$

The chord height at \(z=0\) between the endpoint coordinates \(-1\) and \(2\) is

$$ \frac{(2-0)f(-1)+(0-(-1))f(2)}{2-(-1)} = \frac{2(6)+1(9)}{3} = \frac{21}{3} = 7. $$

Thus \(f(0)=1<7\), as required for concavity up. As an additional slope check, \(f'(-1)=6(-1)-2=-8\) and \(f'(2)=6(2)-2=10\); the derivative has a larger value at the larger input. Differentiating these expressions confirms \(f''=6\), consistent with the conclusion.

Worked Example: A Quadratic That Is Concave Down

Determine the concavity of \(g(x)=-2x^2+4x+3\) on \(\mathbb{R}\), and check the chord inequality at \(x=0\), \(z=1\), and \(y=2\).

Its derivatives are

$$ g'(x)=-4x+4, \qquad g''(x)=-4. $$

Because \(-4<0\) throughout \(\mathbb{R}\), \(g\) is strictly concave down. Evaluate the three function values:

$$ \begin{aligned} g(0)&=-2(0)^2+4(0)+3=3,\\ g(1)&=-2(1)^2+4(1)+3=-2+4+3=5,\\ g(2)&=-2(2)^2+4(2)+3=-8+8+3=3. \end{aligned} $$

The chord height at \(z=1\) is

$$ \frac{(2-1)g(0)+(1-0)g(2)}{2-0} = \frac{1(3)+1(3)}{2} = 3. $$

Here \(g(1)=5>3\), so the graph lies above the chord, as concavity down requires. The endpoint derivatives also decrease: \(g'(0)=-4(0)+4=4\), while \(g'(2)=-4(2)+4=-4\). Their order agrees with the negative second derivative. Differentiation verifies the stated value \(g''=-4\).

Worked Example: A Radical Function on Its Domain

Determine the concavity of \(h(x)=\sqrt{x}\) on the interval \((0,\infty)\). The interval matters because the derivatives used in the theorem must exist there.

For \(x>0\), write \(h(x)=x^{1/2}\) and differentiate:

$$ h'(x)=\frac{1}{2}x^{-1/2}=\frac{1}{2\sqrt{x}}. $$

Differentiate again:

$$ h''(x) = \frac{1}{2}\left(-\frac{1}{2}\right)x^{-3/2} = -\frac{1}{4x^{3/2}}. $$

For every \(x>0\), \(x^{3/2}>0\), so \(h''(x)<0\). The theorem therefore says \(h\) is strictly concave down on \((0,\infty)\).

For a numerical check, compare the secant slope from \(x=1\) to \(x=4\) with the tangent slopes at the endpoints. The function values are \(h(1)=1\) and \(h(4)=2\), so the secant slope is

$$ \frac{h(4)-h(1)}{4-1}=\frac{2-1}{3}=\frac{1}{3}. $$

The endpoint tangent slopes are \(h'(1)=1/(2\sqrt{1})=1/2\) and \(h'(4)=1/(2\sqrt{4})=1/4\). They decrease from \(1/2\) to \(1/4\), in agreement with \(h''<0\). The Mean Value Theorem also predicts a point \(c\in(1,4)\) where \(h'(c)=1/3\). Solving \(1/(2\sqrt{c})=1/3\) gives \(\sqrt{c}=3/2\), hence \(c=9/4\), which is indeed between \(1\) and \(4\).

Concavity Is Not the Same as Increasing

A common error is to decide concavity from the sign of \(f'\). The first derivative tells whether the function is increasing or decreasing; the second derivative tells whether its slopes are increasing or decreasing. Those are different questions.

Common mistake: For \(p(x)=x^2-4x\), one might note that \(p'(x)=2x-4<0\) when \(0<x<2\), then incorrectly conclude that \(p\) is concave down there. The sign of \(p'\) establishes that \(p\) is decreasing on that interval; it does not establish concavity.

The correction is to compute the second derivative:

$$ p'(x)=2x-4, \qquad p''(x)=2. $$

Since \(p''(x)=2>0\), the theorem shows that \(p\) is concave up on \((0,2)\), even though it is decreasing there. Indeed, \(p'(0)=-4\) and \(p'(2)=0\): the tangent slopes increase while remaining negative until the right endpoint. A function can decrease while bending upward.

Using the Theorem Carefully

To apply the theorem correctly, identify an interval where the function is twice differentiable, calculate \(f''\), and establish its sign throughout that interval. The theorem gives a conclusion on the interval where the condition holds. A second derivative’s sign at a single point is not enough to establish concavity across an interval.

The Mean Value Theorem also explains the role of the hypotheses. Its use on \(f\) and \(f'\) requires continuity on the closed subintervals being considered and differentiability in their interiors. When \(f\) is twice differentiable on an open interval, any closed subinterval chosen strictly inside it meets those requirements.

The result matters because it turns a geometric description of curve shape into an analytic test. Instead of relying only on a sketch, you can use derivatives and a theorem to justify the shape. The crucial distinction is simple: \(f'\) describes the direction of change of the function, while \(f''\) describes how that direction changes.

Check Your Understanding

Use the theorem and the definitions in this tutorial to answer the following questions.

  1. If \(f''(x)>0\) throughout an interval, what chord inequality must hold for any three points \(x<z<y\) in that interval?
  2. Why does applying the Mean Value Theorem to \(f'\) connect the sign of \(f''\) to the change in \(f'\)?
  3. A function has \(f'(x)<0\) and \(f''(x)>0\) throughout an interval. Is it increasing or decreasing there, and is it concave up or down?
  4. For \(q(x)=-x^2+6x\), calculate \(q''(x)\) and state its concavity on \(\mathbb{R}\).
  5. What condition on \(f''\) gives a non-strict conclusion of concavity up rather than strict concavity up?

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