Fermat's Theorem and Critical Numbers
Where Should We Look for Extrema?
The Extreme Value Theorem tells us that a continuous function on $[a, b]$ has a maximum and minimum; but it doesn’t say where to find them. Do we need to check every point? That’s infinitely many!
Fortunately, calculus gives us a shortcut. Fermat’s Theorem narrows down the search: if you’re looking for local extrema, you only need to check points where the derivative is zero or doesn’t exist. These special points are called critical numbers.
Think of a critical number as a “suspect” in the search for extrema. Not every suspect is guilty (has an extremum), but every guilty point (local extremum) is among the suspects.
Prerequisite Map
Quick Reference
| Property | Value |
|---|---|
| Section | Stewart §4.1 |
| Course | MATH161 |
| Difficulty | Intermediate |
| Time | ~20 minutes |
Key Concepts
Fermat’s Theorem
$$\boxed{\text{If } f \text{ has a local extremum at } c \text{ and } f'(c) \text{ exists, then } f'(c) = 0.}$$
Geometric interpretation: At a local maximum or minimum where the function is smooth, the tangent line is horizontal.
Local Maximum Local Minimum
___ |
/ \ slope = 0 ___|___ slope = 0
/ \ / \
/ \ / \
The Proof (for local maximum)
Suppose $f$ has a local maximum at $c$ and $f'(c)$ exists.
From the right: For small positive $h$, $f(c + h) \leq f(c)$, so: $$\frac{f(c+h) - f(c)}{h} \leq 0$$
Taking $\lim_{h \to 0^+}$ gives $f'(c) \leq 0$.
From the left: For small negative $h$, $f(c + h) \leq f(c)$, but now we divide by negative $h$: $$\frac{f(c+h) - f(c)}{h} \geq 0$$
Taking $\lim_{h \to 0^-}$ gives $f'(c) \geq 0$.
Combining: $f'(c) \leq 0$ and $f'(c) \geq 0$ implies $f'(c) = 0$. $\square$
Caution: The Converse is False!
Fermat’s Theorem says: local extremum → derivative zero (if it exists)
It does NOT say: derivative zero → local extremum
Counterexample: $f(x) = x^3$ has $f'(0) = 0$, but $x = 0$ is not a local extremum.
f(x) = x³
/
/
------●------ ← horizontal tangent at (0,0)
/ but NOT an extremum
/
Critical Numbers
Definition: A critical number of $f$ is a number $c$ in the domain of $f$ such that either:
- $f'(c) = 0$, or
- $f'(c)$ does not exist
Why Include “Derivative DNE”?
Fermat’s Theorem has a hypothesis: “if $f'(c)$ exists.” What about points where the derivative doesn’t exist?
Example: $f(x) = \vert x\vert $ has a local minimum at $x = 0$, but $f'(0)$ doesn’t exist.
|x|
/\
/ \
/ \ ← sharp corner at x = 0
/ \ (derivative DNE)
So we must also check points where the derivative doesn’t exist; hence the definition of critical number includes both cases.
Rephrasing Fermat’s Theorem
Corollary: If $f$ has a local extremum at $c$, then $c$ is a critical number of $f$.
This tells us: all local extrema occur at critical numbers. So to find all candidates for local extrema, find all critical numbers.
Types of Critical Numbers
| Type | Condition | Example | Could Be Extremum? |
|---|---|---|---|
| Stationary point | $f'(c) = 0$ | $f(x) = x^2$ at $c = 0$ | Yes |
| Singular point | $f'(c)$ DNE | $f(x) = \|x\|$ at $c = 0$ | Yes |
Fermat’s theorem says every critical number is a local extremum.
This is the concept-image-conflicts-definition error. Fermat’s theorem runs in ONE direction only: if $f$ has a local extremum at $c$, then $c$ is a critical number ($f'(c) = 0$ or $f'(c)$ undefined). The CONVERSE is false: a critical number need not be an extremum. For $f(x) = x^3$: $f'(0) = 0$, so $x = 0$ is a critical number, but the graph passes through the origin with a horizontal tangent and keeps increasing -- there is no local maximum or minimum there. Fermat’s theorem is a filter for candidates, not a guarantee.
if $f'(c) = 0$, the graph of $f$ must equal zero at $c$ too.
This is the height-vs-slope error. $f'(c) = 0$ means the SLOPE of the tangent is zero at $x = c$ -- the graph is momentarily flat. It says nothing about the HEIGHT $f(c)$. For $f(x) = x^2 + 7$: $f'(0) = 0$, but $f(0) = 7$, not zero. The graph has a horizontal tangent at height $7$. The zero of the derivative locates a potential extremum on the x-axis scale, but the function value there can be anything.
Finding Critical Numbers: Procedure
- Find $f'(x)$
- Find where $f'(x) = 0$ (solve the equation)
- Find where $f'(x)$ doesn’t exist (but $f(x)$ does)
- List all such $x$-values: these are the critical numbers
Practice Problems
Find all critical numbers of $f(x) = x^3 - 12x + 5$.
Find all critical numbers of $g(x) = \dfrac{x^2}{x - 1}$.
Find all critical numbers of $h(x) = x^{2/3}(x - 5)$.
Find all critical numbers of $f(\theta) = 2\cos\theta + \sin(2\theta)$ on the interval $[0, 2\pi]$.
Let $f(x) = ax^3 + bx^2 + cx + d$ where $a \neq 0$.
- How many critical numbers can $f$ have? (Consider all cases.)
- Prove that if $f$ has two distinct critical numbers, it has exactly one local maximum and one local minimum.
- Prove that if $f$ has exactly one critical number, it has no local extrema.
CCI-Style Conceptual Questions
True or False (justify each):
- If $f'(c) = 0$, then $f$ has a local extremum at $c$.
- If $f$ has a local maximum at $c$, then $f'(c) = 0$.
- If $f'(c)$ does not exist, then $c$ is a critical number of $f$.
- Every continuous function on $[a, b]$ has at least one critical number in $(a, b)$.
Mastery Checklist
Mental Model
The Suspects Analogy:
Think of critical numbers as “suspects” in the search for local extrema:
- Fermat’s Theorem says: “Every local extremum is at a critical number” (i.e., “the criminal is among the suspects”)
- But not every suspect is guilty; $f'(c) = 0$ doesn’t guarantee an extremum at $c$
- We also can’t forget suspects with “no alibi” (where $f'$ doesn’t exist)
To find extrema: first round up all the suspects (critical numbers), then investigate each one to determine if it’s actually an extremum.
Connections
Looking back:
- Derivative definition is used in the proof of Fermat’s Theorem
- Absolute vs Local Extrema defines what we’re trying to find
Looking ahead:
- The Closed Interval Method uses critical numbers to find absolute extrema
- The First Derivative Test determines if a critical number is a max, min, or neither
- The Second Derivative Test provides another way to classify critical numbers
| Previous | Up | Next |
|---|---|---|
| Extreme Value Theorem | Section Index | Closed Interval Method |
Last updated: 2026-01-22