The Second Derivative Test
We know that critical points are candidates for local minima or maxima, but not every critical point qualifies. The second derivative test uses the Hessian to classify critical points.
The key idea: near a critical point , the function looks like its quadratic approximation (the linear term vanishes since ). The behavior of this quadratic is determined by the definiteness of the Hessian.
If is positive definite, the quadratic bowl opens upward — so nearby also rises in every direction. Local minimum! If it is negative definite, falls in every direction. Local maximum! If it is indefinite, rises in some directions and falls in others. Saddle point!
The tricky case: if is only semidefinite (has a zero eigenvalue), the test is inconclusive — the "flat" direction leaves room for higher-order effects to create a min, max, or saddle.
Formal View
Critical points where has a zero eigenvalue are called degenerate.
Interactive Visualization
Hessian Surface Explorer
Why This Matters
The second derivative test tells you whether you have found a true minimum, a maximum, or a saddle — without needing to examine the function globally.
- Verifying that a critical point found by gradient descent is actually a minimum
- Sharp vs. flat minima in deep learning — related to smallest eigenvalue of the Hessian
- Economics: checking whether a Nash equilibrium is a local optimum
- Engineering design: confirming optimal solutions satisfy second-order conditions
Quiz
At a critical point with , what is the classification?
At a critical point with , what is the classification?
The second derivative test is inconclusive when:
The second derivative test can be applied at any point, not just critical points.
Why does positive definite imply a local minimum (intuitively)?
Common Mistakes
- Applying the second derivative test at a non-critical point.
- Concluding "local minimum" when is PSD (might be degenerate) — need PD for strict local min.
- Forgetting that the test only gives *local* information — a local min might not be a global min.