Fermat's Theorem
Fermat's theorem is a fundamental result connecting local extrema to critical points: if has a local minimum or maximum at and is differentiable at , then .
The proof is elegant: if has a local minimum at , then moving in any direction cannot decrease locally. But moving in direction changes at rate , while moving in changes it at rate . For both to be nonnegative, we need for all , which means .
Fermat's theorem transforms the optimization problem of finding local minima into the algebraic problem of solving . It does NOT say every critical point is a local extremum — only the converse.
Formal View
This gives a necessary but not sufficient condition. The set of critical points contains all local extrema, but may also contain saddle points.
Why This Matters
Fermat's theorem is the foundation of all calculus-based optimization: it reduces finding extrema to solving a system of equations.
- Maximum likelihood estimation: set derivative of log-likelihood to zero
- Lagrange multiplier method: derived using Fermat's theorem on a modified objective
- Physics: equilibrium conditions (e.g., minimum energy) are critical point conditions
Quiz
Fermat's theorem states that if is a local minimum of a differentiable , then:
Fermat's theorem gives a sufficient condition: every critical point is a local minimum.
Common Mistakes
- Reversing Fermat's theorem: concluding that every critical point is a local extremum.
- Forgetting that Fermat's theorem requires differentiability — it fails for functions like at .
- Applying to boundary points — Fermat's theorem applies only to interior points of the domain.