4.5 Second Derivative Dictates Concavity

In our previous explorations of calculus, we mastered the first derivative f′f^{\prime}, which acts as a compass, pointing us toward the direction of growth or decay. But a compass only tells you where you are going; it does not tell you if the path is bending toward the heavens or bowing toward the earth.

Story (Equilibrium).

Consider the motion of a particle. If f⁢(t)f(t) is its position, f′⁢(t)f^{\prime}(t) is its velocity. If the velocity is increasing, the particle is accelerating, and the trajectory bends upward. This is the essence of concavity. In physics, this is not merely an abstract property; it is the difference between a stable equilibrium (a potential well, where the system wants to return to the bottom) and an unstable one (a potential hill, where the system wants to roll away).

Before we touch the formal definitions, let us build a geometric intuition.

Intuition (The Tangent Line Test).

Imagine placing a ruler against the graph of a function ff.

  • •
    ​

    If the graph stays above the ruler, the function is concave up, see Figure 4.10.

  • •
    ​

    If the graph stays below the ruler, the function is concave down.

A Cartesian graph demonstrating a function f that is concave up using the tangent line test on an interval [a, b]. A smooth blue quadratic curve representing f is plotted above the horizontal x-axis and passes through the vertical y-axis. A red tangent line l is tangent to the curve at x=c, which is highlighted with a soft orange circle. Dashed blue vertical projection lines extend from the x-axis to the curve at values a, c, and b, showcasing that the curve f lies strictly above the tangent line l for all points on the interval.
Figure 4.10: Geometric illustration of a concave up function ff using the tangent line test on an interval [a,b][a,b].
Definition 4.5.1 (Concavity).

Let ff be differentiable on an open interval II.

  1. 1.
    ​

    ff is concave up (or convex) on II if f′f^{\prime} is increasing on II.

  2. 2.
    ​

    ff is concave down on II if f′f^{\prime} is decreasing on II.

Definition 4.5.2 (Inflection Point).

If ff is continuous at cc and changes concavity at cc, we say ff has an inflection point at cc.

Theorem 4.5.3 (Test for Concavity).

Suppose f′′f^{\prime\prime} exists on an open interval II.

  • •
    ​

    If f′′⁢(x)>0f^{\prime\prime}(x)>0 for all x∈Ix\in I, then ff is concave up on II.

  • •
    ​

    If f′′⁢(x)<0f^{\prime\prime}(x)<0 for all x∈Ix\in I, then ff is concave down on II.

  • •
    ​

    If f′′f^{\prime\prime} changes sign at cc, then cc is an inflection point.

Caveat (Inflection trap).

Be careful! The condition f′′⁢(c)=0f^{\prime\prime}(c)=0 is a necessary but not sufficient condition for an inflection point. Just as a function can have a flat spot that isn’t a local extremum (like f⁢(x)=x3f(x)=x^{3}), it can have f′′⁢(c)=0f^{\prime\prime}(c)=0 without changing concavity (like f⁢(x)=x4f(x)=x^{4}).

We go back to Example 4.4.7.

Example 4.5.4.

Let us analyze concavity of f⁢(x)=3⁢x4−4⁢x3−6⁢x2+12⁢x+1f(x)=3x^{4}-4x^{3}-6x^{2}+12x+1.

  1. 1.
    ​

    Domain: The domain is dom⁡(f)=(−∞,∞)\operatorname{dom}(f)=(-\infty,\infty).

  2. 2.
    ​

    Critical Points: The derivative is:

    f′⁢(x)=12⁢x3−12⁢x2−12⁢x+12f^{\prime}(x)=12x^{3}-12x^{2}-12x+12

    Factorizing (with Vieta’s insight):

    f′⁢(x)=12⁢(x3−x2−x+1)=12⁢(x2⁢(x−1)−1⁢(x−1))=12⁢(x−1)⁢(x2−1)=12⁢(x−1)⁢(x−1)⁢(x+1)=12⁢(x−1)2⁢(x+1).\begin{split}f^{\prime}(x)&{}=12(x^{3}-x^{2}-x+1)=12(x^{2}(x-1)-1(x-1))=12(x-1% )(x^{2}-1)\\ &{}=12(x-1)(x-1)(x+1)=12(x-1)^{2}(x+1).\end{split}

    We have f′f^{\prime} is well-defined everywhere on dom⁡(f).\operatorname{dom}(f). f′⁢(x)=0f^{\prime}(x)=0 when x=1x=1 (double root) and x=−1x=-1 (single root).

  3. 3.
    ​

    Inflection Points:

    f′′⁢(x)=12⁢(3⁢x2−2⁢x−1)=12⁢(3⁢x+1)⁢(x−1)f^{\prime\prime}(x)=12(3x^{2}-2x-1)=12(3x+1)(x-1)

    Setting f′′⁢(x)=0f^{\prime\prime}(x)=0 gives x=1x=1 and x=−1/3x=-1/3.

  4. 4.
    ​

    Sign Table:

    A TikZ-drawn monochrome sign and variation table for a function f showing signs of f'' and f' with all line widths at 1pt. The top row lists equidistant values. Row 2 and Row 3 show signs and zeros with continuous lines breaking symmetrically. Row 4 shows f as a broken curve consisting of four distinct segments with gaps for labels: a concave up decreasing curve leading to the gap for label f(-1); a concave up increasing curve leading to the gap for f(-1/3); a concave down increasing curve leading to the gap for f(1); and a concave up increasing curve pointing towards positive infinity.
    Figure 4.11: Sign table for the quartic function ff.

    From Figure 4.11, at x=−1/3x=-1/3 and x=1x=1, the concavity changes, so these are inflection points.

Theorem 4.5.5 (Second Derivative Test).

Suppose f′′f^{\prime\prime} is continuous on an open interval containing cc, and f′⁢(c)=0f^{\prime}(c)=0.

  • •
    ​

    If f′′⁢(c)>0f^{\prime\prime}(c)>0, ff has a local minimum at cc.

  • •
    ​

    If f′′⁢(c)<0f^{\prime\prime}(c)<0, ff has a local maximum at cc.

  • •
    ​

    If f′′⁢(c)=0f^{\prime\prime}(c)=0, the test is inconclusive.

Example 4.5.6.

In our previous function f⁢(x)=3⁢x4−4⁢x3−6⁢x2+12⁢x+1f(x)=3x^{4}-4x^{3}-6x^{2}+12x+1:

  • •
    ​

    At x=1x=1, f′′⁢(1)=12⁢(4)⁢(0)=0f^{\prime\prime}(1)=12(4)(0)=0. The test is inconclusive. (Note: Looking at the table, x=1x=1 is an inflection point, not an extremum).

  • •
    ​

    At x=−1x=-1, f′′⁢(−1)=12⁢(−2)⁢(−2)=48>0f^{\prime\prime}(-1)=12(-2)(-2)=48>0. Thus, x=−1x=-1 is a local minimum.

Exercise 4.5.7.

Analyze the concavity and extrema of f⁢(x)=−x3+9⁢xf(x)=-x^{3}+9x on [−4,3][-4,3].

Hint: Find f′f^{\prime} and f′′f^{\prime\prime}. Identify where f′′=0f^{\prime\prime}=0 for potential inflection points and evaluate the boundary values of the interval.

Exercise 4.5.8.

Consider f⁢(x)=x2/(x2−1)f(x)=x^{2}/(x^{2}-1) on [−4,4][-4,4]. Why does the test for concavity become difficult at x=±1x=\pm 1?

Hint: Examine the domain and the behavior of the limit as x→±1x\to\pm 1. The function is not continuous there; the second derivative test requires continuity on the interval.