Fermat's Theorem
Theorem 1. If has a local maximum or minimum at , and if exists, then .
Proof. Without loss of generality, suppose that has a local maximum at . This means that for which is sufficiently close to . If , we have and so we have shown that . Similarly, we can show that if . Since both of these inequalities must be true, the only possibility is that .
Critical Number
Definition 1. A critical number of a function is a number in the domain of such that either or does not exist.
Remark. We can rephrase Fermat's theorem in terms of critical numbers as follows:
If has a local maximum or minimum at , then is a critical number of .