Fermat's Lemma
BasisPrerequisites
If a smooth hill has a peak, the slope must be zero at the top. Fermat’s Lemma makes this intuition rigorous: at an interior local extremum, the tangent line is horizontal. This is the key ingredient in every mean-value theorem.
Statement
Fermat’s Lemma. Let be defined on an open interval containing . If is a local extremum of and is differentiable at , then
Proof
Suppose is a local maximum (the minimum case is symmetric). By the definition of a local maximum, there exists such that
Consider the difference quotient for small .
- For : and , so the quotient is . Taking the limit gives .
- For : and , so the quotient is . Taking the limit gives .
Since exists, both one-sided limits equal it. Therefore and , which forces .
Why the converse fails
The condition does not guarantee a local extremum. A point where is called a stationary point (or critical point), but it may be neither a maximum nor a minimum.
Example. For , we have , yet is not a local extremum: for and for , so the function is strictly increasing through .
Why the extremum must be interior
Fermat’s Lemma requires to be in the interior of the domain. At a boundary point, the function is only compared to values on one side, and the one-sided difference quotient need not be zero.
Example. on has a local minimum at and a local maximum at . Yet .
Summary
- Fermat’s Lemma: if is differentiable at an interior local extremum , then .
- Proof idea: the difference quotient is non-positive from the right and non-negative from the left, so both one-sided limits — and hence — equal zero.
- The converse fails: is necessary but not sufficient for a local extremum.
- The result needs interior: at boundary extrema the derivative can be nonzero.