Tutorials › Calculus I › The Second Derivative Test for Local Extrema

Concavity and Inflection · Tutorial 798 of 1495

The Second Derivative Test for Local Extrema

Use the sign of the second derivative at a stationary point to identify a local maximum or minimum, and check that the test’s conditions are met.

Intermediate 9 min read

What You'll Learn

  • State the conditions for applying the Second Derivative Test.
  • Use a positive second derivative to identify a local minimum.
  • Use a negative second derivative to identify a local maximum.
  • Classify stationary points of quadratic and polynomial functions.
  • Check a classification and recognize when the test is being misapplied.

Introduction

A function can have a local maximum or minimum where its graph changes direction. At a differentiable interior point where such an extremum occurs, the tangent is horizontal, so the derivative is zero. This identifies a point to investigate, but it does not by itself say whether the point is a maximum, a minimum, or neither.

The Second Derivative Test uses the function’s curvature at a stationary point to make that classification. Its basic rule is concise: a positive second derivative indicates a local minimum, while a negative second derivative indicates a local maximum. The conditions matter: the point must be stationary, and the second derivative must be nonzero.

Key idea: At a stationary point, \(f''(c)>0\) means the graph bends upward and has a local minimum at \(c\). If \(f''(c)<0\), the graph bends downward and has a local maximum there.

Local Extrema and Stationary Points

A point \(c\) in the domain of \(f\) is a local minimum point if there is an open interval around \(c\) such that \(f(x)\geq f(c)\) for every \(x\) in that interval and in the domain. It is a strict local minimum point if the inequality is strict whenever \(x\ne c\) in that interval. A local maximum is defined by reversing the inequality; it is strict when \(f(x)<f(c)\) for nearby \(x\ne c\).

A point \(c\) is a stationary point of a differentiable function if \(f'(c)=0\). The Second Derivative Test classifies stationary points; it is not a procedure for classifying every possible local extremum. In particular, its stated rule requires the second derivative at the stationary point to be nonzero.

Theorem: Second Derivative Test. Suppose \(f\) is twice differentiable on an open interval containing \(c\), and \(f''\) is continuous at \(c\). If \(f'(c)=0\), then:
  • If \(f''(c)>0\), \(f\) has a strict local minimum at \(c\).
  • If \(f''(c)<0\), \(f\) has a strict local maximum at \(c\).

Continuity of \(f''\) at \(c\) is a convenient sufficient condition in this version of the test. It ensures that the sign found at \(c\) persists in a sufficiently small interval around \(c\). The key conclusions concern local behavior near \(c\), not the largest or smallest value on the function’s entire domain.

How to Apply the Test

Apply the test only after checking that the point is stationary. Then evaluate the second derivative at that point, rather than deciding from the second-derivative formula alone. If the value is positive or negative, the corresponding conclusion follows from the theorem.

1
Check stationarity.
Verify that \(f'(c)=0\).
2
Evaluate the second derivative.
Calculate \(f''(c)\), making the substitution for \(c\) explicit.
3
Classify the point.
If \(f''(c)>0\), conclude strict local minimum; if \(f''(c)<0\), conclude strict local maximum.
4
Report the point and function value.
Give the extremum point \(c\), and, when useful, its graph coordinate \((c,f(c))\).

Worked Examples

Worked Example: A Quadratic with One Stationary Point

Classify the stationary point of \(f(x)=x^2-6x+11\).

Differentiate to find the stationary point:

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

Set the derivative equal to zero and solve:

$$ 2x-6=0 \quad\Longrightarrow\quad 2x=6 \quad\Longrightarrow\quad x=3. $$

Differentiate again and evaluate at \(x=3\):

$$ f''(x)=2, \qquad f''(3)=2>0. $$

The Second Derivative Test gives a strict local minimum at \(x=3\). Its function value is

$$ f(3)=3^2-6(3)+11=9-18+11=2. $$

Thus the minimum point is \((3,2)\). To check the classification directly, write \(x=3+h\). Then

$$ f(3+h)=(3+h)^2-6(3+h)+11 =9+6h+h^2-18-6h+11 =2+h^2. $$

For every nonzero \(h\), \(h^2>0\), so \(f(3+h)>2=f(3)\). This confirms the strict local minimum.

Worked Example: Classifying Two Stationary Points

Find and classify the stationary points of \(f(x)=x^3-3x\).

First differentiate and solve \(f'(x)=0\):

$$ f'(x)=3x^2-3=3(x^2-1)=3(x-1)(x+1). $$

Thus the stationary points occur at \(x=1\) and \(x=-1\). The second derivative is

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

At \(x=-1\), \(f''(-1)=-6<0\), so the test gives a strict local maximum. The function value is

$$ f(-1)=(-1)^3-3(-1)=-1+3=2. $$

At \(x=1\), \(f''(1)=6>0\), so the test gives a strict local minimum. Its value is

$$ f(1)=1^3-3(1)=1-3=-2. $$

For a direct check at both points, let \(x=-1+h\) and \(x=1+h\), respectively. Expansion gives

$$ f(-1+h)-f(-1)=h^2(h-3), \qquad f(1+h)-f(1)=h^2(3+h). $$

When \(0<|h|<1\), \(h-3<0\) and \(3+h>0\). Since \(h^2>0\), the first difference is negative and the second is positive. Nearby values are therefore below \(f(-1)\) and above \(f(1)\), confirming the maximum at \((-1,2)\) and minimum at \((1,-2)\).

Worked Example: A Quartic with Three Stationary Points

Classify all stationary points of \(f(x)=x^4-4x^2\).

Differentiate and factor:

$$ f'(x)=4x^3-8x=4x(x^2-2). $$

Solving \(f'(x)=0\) gives \(x=0\) and \(x=\pm\sqrt{2}\). The second derivative is

$$ f''(x)=12x^2-8. $$

At \(x=0\), \(f''(0)=-8<0\), so there is a strict local maximum. The value is \(f(0)=0\). At \(x=\sqrt{2}\) and \(x=-\sqrt{2}\),

$$ f''(\sqrt{2})=12(2)-8=16>0, \qquad f''(-\sqrt{2})=12(2)-8=16>0. $$

Both points are strict local minima. Their function values are the same:

$$ f(\sqrt{2})=(\sqrt{2})^4-4(\sqrt{2})^2=4-8=-4, $$ $$ f(-\sqrt{2})=(-\sqrt{2})^4-4(-\sqrt{2})^2=4-8=-4. $$

These classifications can also be checked algebraically. At \(x=0\), \(f(x)-f(0)=x^2(x^2-4)<0\) whenever \(0<|x|<2\), confirming a strict local maximum. At either minimum point,

$$ f(x)-(-4)=x^4-4x^2+4=(x^2-2)^2. $$

This is positive for \(x\) sufficiently close to either \(\sqrt{2}\) or \(-\sqrt{2}\), except at the point itself. Thus both are strict local minima. The results are \((0,0)\) as a local maximum and \((-\sqrt{2},-4)\), \((\sqrt{2},-4)\) as local minima.

Why the Sign Gives the Classification

The connection between the test and the graph is concavity. When the second derivative is positive on an interval, the function is strictly convex there; when it is negative, the function is strictly concave. The tangent-line position for concave functions gives a useful justification for the test.

For example, suppose \(f'(c)=0\), \(f''(c)>0\), and the hypotheses in the theorem hold. By continuity of \(f''\), it remains positive in some interval around \(c\). The second-derivative concavity criterion therefore makes \(f\) strictly convex on a sufficiently small interval. For a strictly convex function, the graph lies strictly above its tangent line at \(c\), except at the point of tangency. That tangent line is horizontal because \(f'(c)=0\), so its height is \(f(c)\). Consequently, \(f(x)>f(c)\) for nearby \(x\ne c\): \(c\) is a strict local minimum.

If \(f''(c)<0\), continuity instead gives a nearby interval of strict concavity. The graph lies strictly below its horizontal tangent line there, giving \(f(x)<f(c)\) for nearby \(x\ne c\). Hence \(c\) is a strict local maximum. This explains why both ingredients matter: stationarity makes the tangent horizontal, and the sign of curvature determines which side of that tangent contains the graph.

A Common Misuse

A positive second derivative by itself does not license the conclusion “local minimum.” The test’s first condition is \(f'(c)=0\). For instance, consider \(g(x)=x^2+2x\) at \(x=0\). Although \(g''(0)=2>0\),

$$ g'(0)=2(0)+2=2\ne 0. $$

So \(x=0\) is not a stationary point, and the Second Derivative Test does not apply there. In fact, \(g(0)=0\), while \(g(-0.1)=(-0.1)^2+2(-0.1)=0.01-0.2=-0.19<0\). Thus values just to the left of \(0\) are below \(g(0)\), which rules out a local minimum at \(0\). The correct practice is to check stationarity before interpreting \(f''(c)\).

Also distinguish a local classification from a global one. A strict local minimum is lower than values sufficiently close to it; this does not establish that it is lower than every value on the whole domain. Global extrema require a broader comparison.

Summary

At a stationary point \(c\), the Second Derivative Test uses the value \(f''(c)\) to classify local behavior:

Conditions at \(c\)Conclusion
\(f'(c)=0\) and \(f''(c)>0\)Strict local minimum
\(f'(c)=0\) and \(f''(c)<0\)Strict local maximum

Always find the stationary point, evaluate the second derivative there, and state the conclusion as local. The test applies when the second derivative is nonzero and its required regularity conditions hold.

Check Your Understanding

Answer these questions using the test and its conditions.

  1. What two derivative facts must hold at \(c\) for the stated Second Derivative Test to classify a point?
  2. If \(f'(c)=0\) and \(f''(c)=5\), what kind of local extremum occurs at \(c\)?
  3. If \(f'(c)=0\) and \(f''(c)=-3\), what kind of local extremum occurs at \(c\)?
  4. For \(p(x)=x^3-6x^2+9x\), find its stationary points and use the test to classify each one.
  5. Why does \(g''(c)>0\) alone not justify concluding that \(g\) has a local minimum at \(c\)?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): 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