NOTE: You may view the original PDFs of the notes written in class by clicking on the link for the 1:30 Section or 2:30 Section, respectively.
Lecture 19: The Extreme Value Theorem
Goal: Be able to compute the maximum and minimum of a differentiable function on a closed and bounded domain.
Definition:
Let \( f \) be a function with domain \( D \):
- We say \( f \) has an absolute (or global) maximum at \( c \) if \( f(x) \le f(c) \) for all \( x \) in \( D \).
- Likewise, \( f \) has an absolute minimum at \( c \) if \( f(c) \le f(x) \) for all \( x \) in \( D \).
Sometimes functions have both an absolute maximum and minimum, like the function in Figure 1:
Figure 1
But, they can have one and not the other.
Figure 2
They can also have neither:
Figure 3
Question: Is there a way to guarantee that a function has both an absolute maximum and minimum?
Answer: Yes! ... if we make a few assumptions.
Theorem (Extreme Value Theorem)
Let \( f \) be a function defined on a closed interval \( [a,b] \)
- If \( f \) is continuous on \( [a,b] \), then \( f \) has both an absolute maximum and minimum.
-
If \( f \) is differentiable on \( (a,b) \), then there
are only 3 places the absolute maximum and minimum can
occur:
- \( x = a \)
- \( x = b \)
- At a critical number on \( (a,b) \)
NOTE (Why (1)?)
The main idea is the endpoints \( (a, f(a)) \) and \( (b, f(b)) \) are fixed. So, if there wasn't a maximum, the graph would skyrocket to infinity, but needs to return to \( (b, f(b)) \). That can not be done without breaking continuity.
Figure 4
In other words, we can find the absolute max and min if we have a continuous function on a closed interval. But, if our function is differentiable, there is a procedure to find it. We will demonstrate this in the examples.
Example 1
Find the maximum and minimum of \( f(x) = x^3 - 3x^2 + 1 \) on \( \left[-\tfrac{1}{2}, 4\right] \)
Step 1 Find the critical numbers
\[ \begin{aligned} f'(x) &= 3x^2 - 6x \\ &= 3x(x-2) \overset{\text{set}}{=} 0 \end{aligned} \]\[ \Rightarrow x = 0, 2 \]Step 2 Compute the value of \( f \) at the endpoints and at each critical number
| \( x \) | \( -\tfrac{1}{2} \) | \( 0 \) | \( 2 \) | \( 4 \) |
|---|---|---|---|---|
| \( f(x) \) | \( \tfrac{1}{8} \) | \( 1 \) | \( -3 \) | \( 17 \) |
Step 3 State Conclusion
Conclusion: \( f \) has a minimum value of \( -3 \) at \( x = 2 \) and a maximum value of \( 17 \) at \( x = 4 \)
Figure 5
Example 2
Find the maximum and minimum for \( f(x) = x^4 - 2x^2 + 3 \) on \( [0,2] \)
Step 1 Critical numbers in \( [0,2] \)
\[ \begin{aligned} f'(x) &= 4x^3 - 4x = 4x(x^2-1) \\ &= 4x(x-1)(x+1) \overset{\text{set}}{=} 0 \end{aligned} \]\[ \Rightarrow x = 0, 1 \]NOTE:
\( x = -1 \) is also a critical number for \( f \). However, it is not in the interval \( [0,2] \), so it is not taken into consideration.
Step 2
| \( x \) | \( 0 \) | \( 1 \) | \( 2 \) |
|---|---|---|---|
| \( f(x) \) | \( 3 \) | \( 2 \) | \( 11 \) |
Conclusion: \( f \) has a minimum value of \( 2 \) at \( x = 1 \) while it has a maximum value of \( 11 \) at \( x = 2 \).
Example 3
Find the maximum and minimum of \( f(x) = \sin x + \cos x \) on \( \left[0, \frac{\pi}{3}\right] \)
Step 1
\[ \begin{gathered} f'(x) = \cos x - \sin x \overset{\text{set}}{=} 0 \\[0.5em] \cos x = \sin x \\[0.5em] \tan x = 1 \end{gathered} \]The only solution on \( \left[0, \frac{\pi}{3}\right] \) is \( x = \frac{\pi}{4} \)
Figure 6
Step 2
| \( x \) | \( 0 \) | \( \pi/4 \) | \( \frac{\pi}{3} \) |
|---|---|---|---|
| \( f(x) \) | \( 1 \) | \( \sqrt{2} \approx 1.414 \) | \( \frac{\sqrt{3}}{2} + \frac{1}{2} \approx 1.366 \) |
Conclusion: \( f \) has a minimum of \( 1 \) at \( x = 0 \) and a maximum of \( \sqrt{2} \) at \( x = \frac{\pi}{4} \)
Example 4 (HW 19, Q 8)
Find the absolute extrema of \( f(x) = 5x^2 e^x + 8 \) on \( [-4, 2] \)
Step 1
\[ \begin{aligned} f'(x) &= 10xe^x + 5x^2 e^x \\ &= 5x e^x (2 + x) \overset{\text{set}}{=} 0 \end{aligned} \] \[ \Rightarrow x = 0, -2 \]Step 2
| \( x \) | \( -4 \) | \( -2 \) | \( 0 \) | \( 2 \) |
|---|---|---|---|---|
| \( f(x) \) | \( \frac{80}{e^4} + 8 \approx 9.465 \) | \( \frac{20}{e^2} + 8 \approx 10.707 \) | \( 8 \) | \( 20e^2 + 8 \approx 155.78 \) |
Conclusion: \( f \) has an absolute min at \( (0, 8) \) and an absolute max at \( (2, 20e^2 + 8) \).
When \( f \) Has Only One Critical Number
Fact: Regardless of the interval, if \( f \) has only one critical number \( c \). Then, if \( f \) has a relative extremum at \( c \), it is an absolute extremum.
NOTE (Why?):
Since it is a relative extremum, if it was not absolute, then to get more extreme the graph would have to "bend" meaning \( f \) would have more than one critical number.
Figure 7
Example 5
Consider \( f(x) = x^2 + 2x \) on \( (-2, 0) \)
\[ \begin{aligned} f'(x) &= 2x + 2 \\ &= 2(x+1) \overset{\text{set}}{=} 0 \end{aligned} \]Ie, \( x = -1 \) is the only critical number. From a sign chart
| \( (-2, -1) \) | \( (-1, 0) \) | |
|---|---|---|
| Test Point | \( -\frac{3}{2} \) | \( -\frac{1}{2} \) |
| Sign of \( f' \) | \( - \) | \( + \) |
\( f \) has a relative minimum by the 1st Derivative Test. By the previous fact, \( f \) has an absolute minimum on \( (-2, 0) \) at \( x = -1 \).
NOTE:
The work above tells us nothing about an absolute max. In fact, it does not exist. We can see this by looking at the graph of \( f \) on \( (-2, 0) \).
Figure 8
Example 6
Consider \( y = \frac{1}{4x^2 + 3} \) on \( [-1, 1) \)
\[ \begin{aligned} y' &= -\frac{1}{(4x^2+3)^2}(8x) \overset{\text{set}}{=} 0 \\ -8x &= 0 \\ x &= 0 \end{aligned} \]So \( x = 0 \) is the only critical number. From the sign chart:
| \( [-1, 0) \) | \( (0, 1) \) | |
|---|---|---|
| Test Point | \( -\frac{1}{2} \) | \( \frac{1}{2} \) |
| Sign of \( y' \) | \( + \) | \( - \) |
\( y \) has a relative (hence absolute) max at \( 0 \) by the 1st Derivative Test. We can not say anything about a minimum without extra work. Looking at the graph, the function has an absolute minimum at \((-1, \frac{1}{7})\).