Fermat's interior extremum theorem and the second-derivative test
Statement
If is differentiable at an interior point of its domain and is a local extremum of , then . Conversely, if and is twice differentiable near with , then is a local minimum when , and a local maximum when .
Why is it true?
At an extremum the tangent line must be horizontal, because the curve cannot keep rising (or falling) past a peak (or valley) without turning around; the second derivative then measures which way the curve bends at that flat point, telling a valley from a peak.
Proof sketch
(Necessity.) Suppose is a local maximum; the local-minimum case is symmetric. There is with for all with . For , , and letting gives . For , the numerator is and the denominator is negative, so , and letting gives . Since is differentiable at , both one-sided limits agree, forcing .
(Sufficiency, case .) Since and exists near , the definition of as the derivative of gives as . Because , this expression is negative for slightly less than and positive for slightly greater than .
So changes sign from to across : by the monotonicity theorem, is decreasing just to the left of and increasing just to the right, which is exactly the definition of a local minimum at .
The case is identical with all inequalities reversed, giving changing from to , hence a local maximum. When the expansion above gives no information about the sign of near , so the test is inconclusive and one must examine the sign of directly (as the pitfall below illustrates with ).
Topics that use this theorem
Step-by-step proofs
No step-by-step proof yet for this theorem.
References
- Michael Spivak (2008). Calculus
- Stephen Boyd, Lieven Vandenberghe (2004). Convex Optimization