##### Motivating Questions
• What are the differences between finding relative extreme values and global extreme values of a function?

• How is the process of finding the global maximum or minimum of a function over the function's entire domain different from determining the global maximum or minimum on a restricted domain?

• For a function that is guaranteed to have both a global maximum and global minimum on a closed, bounded interval, what are the possible points at which these extreme values occur?

We have seen that we can use the first derivative of a function to determine where the function is increasing or decreasing, and the second derivative to know where the function is concave up or concave down. Each of these approaches provides us with key information that helps us determine the overall shape and behavior of the graph, as well as whether the function has a relative minimum or relative maximum at a given critical number. Remember that the difference between a relative maximum and a global maximum is that there is a relative maximum of $f$ at $x = p$ if $f(p) \ge f(x)$ for all $x$ near $p\text{,}$ while there is a global maximum at $p$ if $f(p) \ge f(x)$ for all $x$ in the domain of $f\text{.}$

For instance, in Figure 3.3.1, we see a function $f$ that has a global maximum at $x = c$ and a relative maximum at $x = a\text{,}$ since $f(c)$ is greater than $f(x)$ for every value of $x\text{,}$ while $f(a)$ is only greater than the value of $f(x)$ for $x$ near $a\text{.}$ Since the function appears to decrease without bound, $f$ has no global minimum, though clearly $f$ has a relative minimum at $x = b\text{.}$

Our emphasis in this section is on finding the global extreme values of a function (if they exist). In so doing, we will either be interested in the behavior of the function over its entire domain or on some restricted portion. The former situation is familiar and similar to work that we did in the two preceding sections of the text. We explore this through a particular example in the following preview activity.

##### Preview Activity3.3.1

Let $f(x) = 2 + \frac{3}{1+(x+1)^2}\text{.}$

1. Determine all of the critical numbers of $f\text{.}$

2. Construct a first derivative sign chart for $f$ and thus determine all intervals on which $f$ is increasing or decreasing.

3. Does $f$ have a global maximum? If so, why, and what is its value and where is the maximum attained? If not, explain why.

4. Determine $\lim_{x \to \infty} f(x)$ and $\lim_{x \to -\infty} f(x)\text{.}$

5. Explain why $f(x) \gt 2$ for every value of $x\text{.}$

6. Does $f$ have a global minimum? If so, why, and what is its value and where is the minimum attained? If not, explain why.

# Subsection3.3.1Global Optimization

For the functions in Figure 3.3.1 and Preview Activity 3.3.1, we were interested in finding the global minimum and global maximum on the entire domain, which turned out to be $(-\infty, \infty)$ for each. At other times, our perspective on a function might be more focused due to some restriction on its domain. For example, rather than considering $f(x) = 2 + \frac{3}{1+(x+1)^2}$ for every value of $x\text{,}$ perhaps instead we are only interested in those $x$ for which $0 \le x \le 4\text{,}$ and we would like to know which values of $x$ in the interval $[0,4]$ produce the largest possible and smallest possible values of $f\text{.}$ We are accustomed to critical numbers playing a key role in determining the location of extreme values of a function; now, by restricting the domain to an interval, it makes sense that the endpoints of the interval will also be important to consider, as we see in the following activity. When limiting ourselves to a particular interval, we will often refer to the absolute maximum or minimum value, rather than the global maximum or minimum.

##### Activity3.3.2

Let $g(x) = \frac{1}{3}x^3 - 2x + 2.$

1. Find all critical numbers of $g$ that lie in the interval $-2 \le x \le 3\text{.}$

2. Use a graphing utility to construct the graph of $g$ on the interval $-2 \le x \le 3\text{.}$

3. From the graph, determine the $x$-values at which the absolute minimum and absolute maximum of $g$ occur on the interval $[-2,3]\text{.}$

4. How do your answers change if we instead consider the interval $-2 \le x \le 2\text{?}$

5. What if we instead consider the interval $-2 \le x \le 1\text{?}$

In Activity 3.3.2, we saw how the absolute maximum and absolute minimum of a function on a closed, bounded interval $[a,b]\text{,}$ depend not only on the critical numbers of the function, but also on the selected values of $a$ and $b\text{.}$ These observations demonstrate several important facts that hold much more generally. First, we state an important result called the Extreme Value Theorem.

##### The Extreme Value Theorem

If $f$ is a continuous function on a closed interval $[a,b]\text{,}$ then $f$ attains both an absolute minimum and absolute maximum on $[a,b]\text{.}$ That is, for some value $x_m$ such that $a \le x_m \le b\text{,}$ it follows that $f(x_m) \le f(x)$ for all $x$ in $[a,b]\text{.}$ Similarly, there is a value $x_M$ in $[a,b]$ such that $f(x_M) \ge f(x)$ for all $x$ in $[a,b]\text{.}$ Letting $m = f(x_m)$ and $M = f(x_M)\text{,}$ it follows that $m \le f(x) \le M$ for all $x$ in $[a,b]\text{.}$

The Extreme Value Theorem tells us that provided a function is continuous, on any closed interval $[a,b]$ the function has to achieve both an absolute minimum and an absolute maximum. Note, however, that this result does not tell us where these extreme values occur, but rather only that they must exist. As seen in the examples of Activity 3.3.2, it is apparent that the only possible locations for relative extremes are either the endpoints of the interval or at a critical number (the latter being where a relative minimum or maximum could occur, which is a potential location for an absolute extreme).

##### Note3.3.2

Thus, we have the following approach to finding the absolute maximum and minimum of a continuous function $f$ on the interval $[a,b]\text{:}$

• find all critical numbers of $f$ that lie in the interval;

• evaluate the function $f$ at each critical number in the interval and at each endpoint of the interval;

• from among the noted function values, the smallest is the absolute minimum of $f$ on the interval, while the largest is the absolute maximum.

##### Activity3.3.3

Find the exact absolute maximum and minimum of each function on the stated interval.

1. $h(x) = xe^{-x}\text{,}$ $[0,3]$

2. $p(t) = \sin(t) + \cos(t)\text{,}$ $[-\frac{\pi}{2}, \frac{\pi}{2}]$

3. $q(x) = \frac{x^2}{x-2}\text{,}$ $[3,7]$

4. $f(x) = 4 - e^{-(x-2)^2}\text{,}$ $(-\infty, \infty)$

5. $h(x) = xe^{-ax}\text{,}$ $[0, \frac{2}{a}]$ ($a \gt 0$)

6. $f(x) = b - e^{-(x-a)^2}\text{,}$ $(-\infty, \infty)\text{,}$ $a, b \gt 0$

One of the big lessons in finding absolute extreme values is the realization that the interval we choose has nearly the same impact on the problem as the function under consideration. Consider, for instance, the function pictured in Figure 3.3.3.

In sequence, from left to right, as we see the interval under consideration change from $[-2,3]$ to $[-2,2]$ to $[-2,1]\text{,}$ we move from having two critical numbers in the interval with the absolute minimum at one critical number and the absolute maximum at the right endpoint, to still having both critical numbers in the interval but then with the absolute minimum and maximum at the two critical numbers, to finally having just one critical number in the interval with the absolute maximum at one critical number and the absolute minimum at one endpoint. It is particularly essential to always remember to only consider the critical numbers that lie within the interval.

# Subsection3.3.2Moving toward applications

In Section 3.4, we will focus almost exclusively on applied optimization problems: problems where we seek to find the absolute maximum or minimum value of a function that represents some physical situation. We conclude this current section with an example of one such problem because it highlights the role that a closed, bounded domain can play in finding absolute extrema. In addition, these problems often involve considerable preliminary work to develop the function which is to be optimized, and this example demonstrates that process.

##### Example3.3.4

A 20 cm piece of wire is cut into two pieces. One piece is used to form a square and the other an equilateral triangle. How should the wire be cut to maximize the total area enclosed by the square and triangle? to minimize the area?

Solution
##### Activity3.3.4

A piece of cardboard that is $10 \times 15$ (each measured in inches) is being made into a box without a top. To do so, squares are cut from each corner of the box and the remaining sides are folded up. If the box needs to be at least 1 inch deep and no more than 3 inches deep, what is the maximum possible volume of the box? what is the minimum volume? Justify your answers using calculus.

1. Draw a labeled diagram that shows the given information. What variable should we introduce to represent the choice we make in creating the box? Label the diagram appropriately with the variable, and write a sentence to state what the variable represents.

2. Determine a formula for the function $V$ (that depends on the variable in (a)) that tells us the volume of the box.

3. What is the domain of the function $V\text{?}$ That is, what values of $x$ make sense for input? Are there additional restrictions provided in the problem?

4. Determine all critical numbers of the function $V\text{.}$

5. Evaluate $V$ at each of the endpoints of the domain and at any critical numbers that lie in the domain.

6. What is the maximum possible volume of the box? the minimum?

The approaches shown in Example 3.3.4 and experienced in Activity 3.3.4 include standard steps that we undertake in almost every applied optimization problem: we draw a picture to demonstrate the situation, introduce one or more variables to represent quantities that are changing, work to find a function that models the quantity to be optimized, and then decide an appropriate domain for that function. Once that work is done, we are in the familiar situation of finding the absolute minimum and maximum of a function over a particular domain, at which time we apply the calculus ideas that we have been studying to this point in Chapter 3.

# Subsection3.3.3Summary

• To find relative extreme values of a function, we normally use a first derivative sign chart and classify all of the function's critical numbers. If instead we are interested in absolute extreme values, we first decide whether we are considering the entire domain of the function or a particular interval.

• In the case of finding global extremes over the function's entire domain, we again use a first or second derivative sign chart in an effort to make overall conclusions about whether or not the function can have a absolute maximum or minimum. If we are working to find absolute extremes on a restricted interval, then we first identify all critical numbers of the function that lie in the interval.

• For a continuous function on a closed, bounded interval, the only possible points at which absolute extreme values occur are the critical numbers and the endpoints. Thus, to find said absolute extremes, we simply evaluate the function at each endpoint and each critical number in the interval, and then we compare the results to decide which is largest (the absolute maximum) and which is smallest (the absolute minimum).

##### 1

Based on the given information about each function, decide whether the function has global maximum, a global minimum, neither, both, or that it is not possible to say without more information. Assume that each function is twice differentiable and defined for all real numbers, unless noted otherwise. In each case, write one sentence to explain your conclusion.

1. $f$ is a function such that $f''(x) \lt 0$ for every $x\text{.}$

2. $g$ is a function with two critical numbers $a$ and $b$ (where $a \lt b$), and $g'(x) \lt 0$ for $x \lt a\text{,}$ $g'(x) \lt 0$ for $a \lt x \lt b\text{,}$ and $g'(x) \gt 0$ for $x \gt b\text{.}$

3. $h$ is a function with two critical numbers $a$ and $b$ (where $a \lt b$), and $h'(x) \lt 0$ for $x \lt a\text{,}$ $h'(x) \gt 0$ for $a \lt x \lt b\text{,}$ and $h'(x) \lt 0$ for $x \gt b\text{.}$ In addition, $\lim_{x \to \infty} h(x) = 0$ and $\lim_{x \to -\infty} h(x) = 0\text{.}$

4. $p$ is a function differentiable everywhere except at $x = a$ and $p''(x) \gt 0$ for $x \lt a$ and $p''(x) \lt 0$ for $x \gt a\text{.}$

##### 2

For each family of functions that depends on one or more parameters, determine the function's absolute maximum and absolute minimum on the given interval.

1. $p(x) = x^3 - a^2x\text{,}$ $[0,a]$ ($a \gt 0$)

2. $r(x) = axe^{-bx}\text{,}$ $[\frac{1}{2b}, b]$ ($a, b \gt 0$)

3. $w(x) = a(1-e^{-bx})\text{,}$ $[b, 3b]$ ($a, b \gt 0$)

4. $s(x) = \sin(kx)\text{,}$ $[\frac{\pi}{3k}, \frac{5\pi}{6k}]$

##### 3

For each of the functions described below (each continuous on $[a,b]$), state the location of the function's absolute maximum and absolute minimum on the interval $[a,b]\text{,}$ or say there is not enough information provided to make a conclusion. Assume that any critical numbers mentioned in the problem statement represent all of the critical numbers the function has in $[a,b]\text{.}$ In each case, write one sentence to explain your answer.

1. $f'(x) \le 0$ for all $x$ in $[a,b]$

2. $g$ has a critical number at $c$ such that $a \lt c\lt b$ and $g'(x) \gt 0$ for $x \lt c$ and $g'(x) \lt 0$ for $x \gt c$

3. $h(a) = h(b)$ and $h''(x) \lt 0$ for all $x$ in $[a,b]$

4. $p(a) \gt 0\text{,}$ $p(b) \lt 0\text{,}$ and for the critical number $c$ such that $a \lt c \lt b\text{,}$ $p'(x) \lt 0$ for $x \lt c$ and $p'(x) \gt 0$ for $x \gt c$

##### 4

Let $s(t) = 3\sin(2(t-\frac{\pi}{6})) + 5.$ Find the exact absolute maximum and minimum of $s$ on the provided intervals by testing the endpoints and finding and evaluating all relevant critical numbers of $s\text{.}$

1. $[\frac{\pi}{6}, \frac{7\pi}{6}]$

2. $[0, \frac{\pi}{2}]$

3. $[0, 2\pi]$

4. $[\frac{\pi}{3}, \frac{5\pi}{6}]$