Second Derivative Test for Local Extrema: A Clear Guide

By culbreath Editorial · 2026-10-11 · 5 min read

The second derivative test for local extrema classifies a critical point of a function as a local maximum, a local minimum, or neither, based on the sign of the second derivative at that point. If $f’© = 0$ and $f’‘© > 0$, the function has a local minimum at $c$; if $f’‘© < 0$, it has a local maximum; and if $f’'© = 0$, the test is inconclusive. That last case matters as much as the first two, and we’ll return to it.

The logic is geometric. The first derivative tells you where the tangent line is flat; the second derivative tells you how the curve is bending at that spot. A positive second derivative means the curve is concave up (like a cup), so a flat point there must sit at the bottom of a dip. A negative second derivative means concave down (like a hill), so a flat point sits at a peak. This is the same reasoning covered in standard calculus courses and reference notes such as Paul’s Online Math Notes.

How the Test Works

A critical point is any $x$-value in the domain where $f’(x) = 0$ or where $f’(x)$ does not exist. The second derivative test applies only to points where $f’(x) = 0$ — flat points, not corners or cusps. So the first job is always to differentiate, set the derivative equal to zero, and solve. Then, for each critical point $c$, compute $f’'©$.

Result at the critical point Conclusion
$f’'© > 0$ Local minimum at $c$
$f’'© < 0$ Local maximum at $c$
$f’'© = 0$ Inconclusive — use another method

The third row is where students most often slip. A value of zero does not mean “no extremum” and it does not mean “inflection point.” It means this particular test has nothing to say, and you need a different tool. When $f’‘© = 0$, fall back to the first derivative test: examine the sign of $f’(x)$ just to the left and just to the right of $c$. If $f’$ switches from negative to positive, there’s a local minimum. If it switches from positive to negative, there’s a local maximum. If it doesn’t change sign, there is no extremum — the flat point is a horizontal inflection point, as with $f(x) = x^3$ at $x = 0$, where $f’(0) = 0$ and $f’'(0) = 0$ but the function simply passes through flat.

A Worked Example

Consider $f(x) = x^3 - 3x$.

First derivative: $f’(x) = 3x^2 - 3$. Setting this to zero gives $3x^2 = 3$, so $x^2 = 1$, and the critical points are $x = -1$ and $x = 1$.

Second derivative: $f’'(x) = 6x$, a single, simple expression that makes evaluation easy.

Evaluate:

  • At $x = -1$: $f’'(-1) = -6 < 0$, so there is a local maximum. The function value is $f(-1) = -1 + 3 = 2$.
  • At $x = 1$: $f’'(1) = 6 > 0$, so there is a local minimum. The function value is $f(1) = 1 - 3 = -2$.

You can confirm this by graphing or by checking the first derivative’s sign on either side. This kind of classification problem is a staple of single-variable calculus, and it appears in course materials from many universities, including MIT OpenCourseWare.

Why the Test Is Useful, and When It Isn’t

The appeal of this method is efficiency. Once you can differentiate twice, you get an instant classification at each flat point without tracking signs across intervals. For polynomials, rational functions, and trigonometric functions, that’s usually the fastest route.

Its two main limits are worth knowing. First, it only works at flat points: if $f’©$ is undefined — a sharp corner like the one in $f(x) = |x|$ at $x = 0$ — the test doesn’t apply at all. Second, the zero case is genuinely ambiguous. For $f(x) = x^4$ at $x = 0$, we have $f’(0) = 0$ and $f’'(0) = 0$, yet there is a local minimum. For $f(x) = x^3$ at $x = 0$, the same derivative values occur but there is no extremum. Identical test output, different answers — hence the need to dig deeper. For multivariable functions, the idea generalizes using the Hessian matrix and its determinant, a topic usually covered in multivariable or vector calculus courses. Tutorials on building intuition for the single-variable case are widely available, including through Khan Academy.

A practical habit when choosing between the two tests: try the second derivative first, since it needs only one evaluation per point. If it returns zero or the derivative is undefined, switch immediately to the first derivative test rather than pushing a method past its limits.

Key Takeaways

  • The second derivative test classifies critical points where $f’© = 0$: $f’‘© > 0$ means a local minimum, $f’'© < 0$ means a local maximum.
  • If $f’‘© = 0$, the test is inconclusive — fall back to the first derivative test and check whether $f’$ changes sign.
  • The test applies only at flat points where the first derivative exists; corners and cusps require other methods.
  • The method works because the sign of the second derivative tells you whether the curve is concave up or concave down at the flat point.
  • Always verify borderline or ambiguous cases by examining the function or its first derivative directly rather than assuming.

Frequently Asked Questions

What is the second derivative test for local extrema?
The second derivative test uses the sign of f''(x) at a critical point where f'(x)=0. If f''(x)>0, the point is a local minimum; if f''(x)<0, it is a local maximum; if f''(x)=0, the test is inconclusive.
How do you use the second derivative test to find local maxima and minima?
First find critical points by solving f'(x)=0. Then evaluate f''(x) at each critical point: positive means local minimum, negative means local maximum, and zero means you need another method.
What does it mean if the second derivative is zero in the second derivative test?
If f''(x)=0 at a critical point, the second derivative test fails and gives no conclusion. The point could be a local maximum, local minimum, or neither, so you must use the first derivative test or another approach.
Can the second derivative test give a wrong answer?
No, when f''(x) is clearly positive or negative at a critical point, the test is reliable. It only fails to decide when f''(x)=0, in which case it is inconclusive rather than wrong.
Why does the second derivative test work?
The second derivative describes concavity: f''(x)>0 means the graph is concave up, so a critical point is a valley (local minimum), while f''(x)<0 means concave down, so it is a peak (local maximum).
calculusderivativescritical pointslocal extremaconvexity

References

← Back to home