The maximum and minimum values of a function are collectively called its extreme values. Fermat's Theorem tells us where to look: every local extreme value occurs at a critical point. On a closed interval, we also check the endpoints.
| Concept | Meaning |
|---|---|
| Absolute maximum at | for all in the domain |
| Absolute minimum at | for all in the domain |
| Local maximum at | for all near |
| Local minimum at | for all near |
| Critical point | f'(c)=0 or f'(c) does not exist |
Overview
In many practical problems, we need to find the greatest (maximum) value or the least (minimum) value of a function. The maximum and minimum values of a function are collectively called the extreme values or extrema of the function. (Extremum is the singular form; maxima and minima are the plural forms of maximum and minimum.)
There are two types of extrema, distinguished by the prefixes absolute and local (or relative).
Absolute Maxima and Minima
Let the function be defined on a set . We say has an absolute maximum on at a point if
and an absolute minimum value on at if
Absolute maxima and absolute minima are also referred to as global maxima and global minima.
The Extreme Value Theorem. If is continuous on a closed interval , then attains both its absolute maximum and absolute minimum in . That is, there are numbers and in such that and .
Important remarks:
- Continuity on an open interval is not sufficient to guarantee the existence of absolute extrema.
- If the function fails to be continuous even at one point in , the Extreme Value Theorem may fail (although a discontinuous function may still have extrema).
Local (Relative) Maxima and Minima

A point may be higher than all nearby points without being the global maximum. Such a point is called a local maximum.

A function is said to have a local (or relative) maximum at a point within its domain if there is some open interval containing such that
The concept of local (or relative) minimum is similarly defined by reversing the inequality.
Geometrically speaking, local maxima and local minima are respectively the peaks and the bottoms of trenches of the curve.

Every absolute maximum or minimum that is not an endpoint of an interval is also a local maximum or minimum, respectively. An endpoint cannot be a local extremum because we cannot find an open interval around an endpoint that is contained in the domain.
The graph of a function is illustrated in the following figure. Find its absolute and local extrema.

Solution
The lowest point of the graph is , so has an absolute minimum at . Because is an interior point, is also a local minimum. The absolute maximum occurs at , but because is an endpoint and is not defined on its right side, is not a local maximum. Other local minima occur at and . Because , the function cannot have a maximum there. It is evident that is a local maximum. We claim is a local maximum because for all close enough to , .

The graph of a function is illustrated in the following figure. Specify where its extrema occur.

Solution
Because there is no greatest and no least value, the function does not have an absolute maximum or minimum. For every , there is some neighborhood completely contained in , and for each , we have and (because on that interval). Therefore, the function has a local maximum and a local minimum at every in . The function has a local maximum at and a local minimum at .
Fermat's Theorem and Critical Points
At a local extremum, the tangent line is either horizontal (slope ) or the function has no tangent line at that point.

Fermat's Theorem. Suppose is a function defined on an open interval containing the point . If is a local maximum or minimum, then either f'(c) does not exist or f'(c)=0.
Proof
We prove the case of a local minimum at . By definition: for all sufficiently close to zero. If f'(c) does not exist, there is nothing more to prove. So suppose f'(c)=\lim_{h\to0}\frac{f(c+h)-f(c)}{h} exists as a definite number. We need to show f'(c)=0. When is small, . Therefore: Letting gives f'(c)\geq0, and letting gives f'(c)\leq0. Since the limit must be the same from both sides, 0\leq f'(c)\leq0, so f'(c)=0. The proof for a local maximum is similar.Equivalently: if f'(c) exists and f'(c)\neq0, then is not a local maximum or minimum.
If f'(c) exists and f'(c)\neq 0, then is not a local maximum or minimum.
Fermat's Theorem states a necessary condition for a local extremum, it is not sufficient. For example:
- has f'(0)=0, but is neither a local max nor a local min.
- has g'(0) undefined, but is not a local extremum.

Critical Points
A point in the domain of a function is called a critical point (or critical number) of if
f'(c)=0\quad\text{or}\quad f'(c)\text{ does not exist.}The number is called a critical value of .
Note: if f'(c)=+\infty or f'(c)=-\infty, we say f'(c) does not exist because are not numbers.
Fermat's Theorem (reworded). If is a local maximum or a local minimum, then is a critical point of .
Every local extreme value is a critical value, but not every critical value is a local extreme value.

Since every absolute extreme value (except at endpoints) is also a local extreme value:
An absolute maximum or minimum of a function occurs either at a critical point or at an endpoint of its domain.

Strategy for Finding Absolute Extrema
Strategy for finding the absolute extrema of a continuous function on a finite closed interval :
- Step 1: Find f'(x).
- Step 2: Find all critical values: set f'(x)=0 and solve for . Also find every for which f'(x) does not exist. Evaluate at each of these numbers that lie in .
- Step 3: Evaluate and .
- Step 4: The largest value from Steps 2 and 3 is the absolute maximum of ; the smallest is the absolute minimum.
Examples
Find the absolute maximum and minimum of on .
Solution
**Step 1:** Finding the derivative. f(x)=\frac{1}{3}x^{3}-4x\Rightarrow f'(x)=x^{2}-4. **Step 2:** Finding the critical values. The function is differentiable everywhere, so critical points come from f'(x)=0: Both and lie in : **Step 3:** Evaluating at the endpoints: **Step 4:** Comparing values: | | | | $2$ | $4$ | |-----|------|------|-----|-----| | | $3$ | | | | | | | max | min | max | The absolute maximum is , occurring at and . The absolute minimum is , occurring at .![Graph of y = (1/3)x^3 - 4x on [-3, 4] showing the absolute extrema](https://adaptivebooks.org/book-images/calculus1/Ch6-ExtremeValues-Ex3.png)
Find the extrema of on .
Solution
**Step 1:** Finding the derivative: f'(x)=1-3\cdot\frac{2}{3}(x-1)^{-1/3}=1-\frac{2}{\sqrt[3]{x-1}}. **Step 2:** Finding critical values. Setting f'(x)=0: But does not lie in . Also, f'(x) does not exist when . So is a critical point with . **Step 3:** Evaluating at the endpoints: **Step 4:** Comparing values: | | | $1$ | $2$ | |-----|------|-----|-----| | | | $1$ | | | | min | max | | The absolute maximum is $1$ at , and the absolute minimum is at .![Graph of y = x - 3(x-1)^(2/3) on [-1, 2]](https://adaptivebooks.org/book-images/calculus1/Ch6-ExtremeValues-Ex3-prime.png)
Find the absolute maximum and minimum of .
Solution
The domain of is . Because is periodic with fundamental period , we find the extrema on .

