Unit 5 · Topic 5.5

Find absolute extrema

Builds on critical points, the Extreme Value Theorem and the first derivative test. 14 minutes.

  1. Example 1Find all candidates on the interval
  2. Example 2Compare function values
  3. Example 3Report absolute extrema in full
  4. Example 4Justify that the search is complete
  5. Example 5Recognize an unattained extremum

The value \(f(c)\), at an input \(c\) of an interval, is the absolute maximum of \(f\) on the interval if

\[f(c)\ge f(x)\quad\text{for all } x \text{ in the interval}\]

With \(\le\) in place of \(\ge\), \(f(c)\) is the absolute minimum. Together they are the absolute extrema of \(f\), which some books call global extrema. A closed interval \([a,b]\) contains both of its ends. By the Extreme Value Theorem (topic 5.2), a function that is continuous on a closed interval has an absolute maximum and an absolute minimum.

The theorem does not say where they are. This topic finds them, and it decides whether they exist when the interval leaves out an end.

Where the extrema can be

The graph of a function f on an interval from a to b, with a filled dot at each end. From a it rises to a rounded top, falls to a rounded bottom, rises to a sharp corner and falls toward b. Dots also mark the top, the bottom and the corner. The label absolute maximum sits on the corner, and the label absolute minimum on the bottom. A slider tilts the graph. Tilted fully one way, the highest point is the top near a. Tilted fully the other way, the highest point is b, the lowest is a, and a second bottom with its own dot lies between the corner and b. A button opens the end b: its dot becomes an open ring, an orange dashed line marks its height, and where b would be the highest point, a red label reads no absolute maximum.

Figure 1Dots mark the ends of the graph of \(f\) and the points where its tangent is horizontal or it has a corner. The labels absolute maximum and absolute minimum mark the highest and lowest points. When the end \(b\) is open, its dot is an open ring, and the orange dashed line marks the height that \(f\) approaches there. A red label marks an extremum that does not exist.

In Figure 1, \(f\) is continuous on \([a,b]\). Dots mark the ends, a top and a bottom where the tangent is horizontal, and a corner, where the graph has no tangent. The labels absolute maximum and absolute minimum mark the highest and the lowest point. At the start, they are at the corner and at the bottom.

Move the slider to tilt the graph. The dots move with the graph. As the slider moves to the right, a second bottom with its own dot appears between the corner and \(b\). The two labels jump from one dot to another but never stop between them.

Fermat’s Theorem (topic 5.2) explains why. Suppose that the absolute maximum is \(f(c)\), at an input \(c\) inside the interval. Because \(a<c<b\), an open interval around \(c\) lies in \([a,b]\), and \(f(c)\ge f(x)\) for every \(x\) in it, so \(f(c)\) is also a local maximum. By Fermat’s Theorem, if \(f\) has a local maximum or minimum at \(c\) and \(f'(c)\) exists, then \(f'(c)=0\). The same reasoning applies to an absolute minimum inside the interval.

A critical point of \(f\) is an input \(c\) inside its domain where \(f'(c)=0\) or \(f'(c)\) does not exist. Each input where an absolute extremum occurs is therefore an end of the interval or a critical point inside it. These inputs are the candidates: the ends \(a\) and \(b\), and the critical points in \((a,b)\).

An end has inputs of the interval on one side only, so \(f\) has no local extremum there, and Fermat’s Theorem does not apply. Move the slider under Figure 1 all the way to the right. The highest point moves to \(b\), where the graph still rises, and the lowest point moves to \(a\).

For \(f\) continuous on \([a,b]\), the Extreme Value Theorem guarantees that the absolute maximum and minimum exist. The argument shows that each occurs at a candidate. The largest value of \(f\) at the candidates is therefore the absolute maximum, and the smallest is the absolute minimum. This method is the Candidates Test, which some books call the Closed Interval Method.

The comparison uses the values of \(f\), not of \(f'\). A corner counts like any other candidate, because \(f\) has a value there although \(f'\) does not. An answer gives each extreme value and the input where it occurs, with units in a context. A value can occur at several inputs, and then a full answer names each of them.

A justification first states the hypotheses: \(f\) is continuous on a closed interval, so its absolute extrema exist and are at candidates. It then finds every critical point inside the interval, with a reason why there are no others. Last, it compares the values of \(f\) at all the candidates. An argument from the sign of \(f'\) can replace the comparison. If \(f'>0\) on \((a,c)\) and \(f'<0\) on \((c,b)\), then \(f\) increases on \([a,c]\) and decreases on \([c,b]\) (topic 5.3), so \(f(c)\) is the absolute maximum.

When an end is open

An end that does not belong to the interval is an open end, such as \(b\) in \([a,b)\). The Extreme Value Theorem does not apply on such an interval.

Open the end \(b\) with the button under Figure 1. Its dot becomes an open ring, and the orange dashed line marks the height of the ring, which \(f(x)\) approaches as \(x\) approaches \(b\). Then move the slider all the way to the right.

The graph rises toward the ring, but only \(b\) would give the height of the ring, and \(b\) is not in the interval. Each value of \(f\) is below that height, but values come as close to it as you like, so none is the largest. The function has no absolute maximum, and a red label appears beside the ring. The lowest point, at \(a\), is still on the graph.

Suppose in general that \(f\) is continuous on \([a,b)\) and that \(f(x)\) approaches a number \(\cy{L}\) as \(x\) approaches \(b\) from the left. A new function that equals \(f\) on \([a,b)\) and \(\cy{L}\) at \(b\) is continuous on the closed interval \([a,b]\). The Candidates Test applies to it, with \(b\) as a candidate.

If \(\cy{L}\) is larger than the value at every other candidate, the maximum of the new function is \(\cy{L}\). Each input where the new function reaches its maximum is a candidate, so only \(b\) reaches it. The function \(f\) then takes values as close to \(\cy{L}\) as you like but never \(\cy{L}\) itself, and it has no absolute maximum. Otherwise, the largest value at the other candidates is the absolute maximum of both functions.

The minimum works in the same way, with smaller in place of larger. If \(f(x)\) grows without bound as \(x\) approaches the open end, \(f\) has no absolute maximum. Its absolute minimum is then the smallest value at the candidates. Near the end, \(f\) is larger than that value, and the Candidates Test applies on the rest of the interval, which is closed. If \(f(x)\) decreases without bound, \(f\) has no absolute minimum, and the largest value at the candidates is its absolute maximum.

An open end \(a\) works in the same way, with the limit from the right. An input inside the interval where \(f\) is not defined is handled in the same way. The limits from its two sides join the comparison as heights that \(f\) only approaches there.

Example 1

Find all candidates on the interval

Find all the candidates for the absolute extrema of \(g(x)=\left|x^2+2x-3\right|\) on the interval \([-2,2]\).

Solution

The function \(g\) is continuous, because it is the absolute value of a polynomial, so the Candidates Test applies on \([-2,2]\). The ends \(-2\) and 2 are two of the candidates.

Since \(x^2+2x-3=(x+3)(x-1)\), the quadratic is negative for \(-3<x<1\) and positive for \(x>1\), so on the interval

\[g(x)=\begin{cases}3-2x-x^2, & -2\le x\le 1\\ x^2+2x-3, & 1\le x\le 2\end{cases}\]

On \((-2,1)\), \(g'(x)=-2-2x\), which is 0 at \(x=-1\). On \((1,2)\), \(g'(x)=2x+2\), which is positive. At \(x=1\), the slope is \(-4\) from the left and 4 from the right, so \(g'(1)\) does not exist, although \(g(1)\) is defined. The graph has a corner there.

The quadratic is also 0 at \(x=-3\), where the graph has a second corner, but \(-3\) is outside the interval. The candidates are

\[x=-2,\quad x=-1,\quad x=1,\quad x=2\]

Example 2

Compare function values

Find the absolute maximum value and the absolute minimum value of \(p(x)=(x-1)^{2/3}(x-6)\) on the interval \([-1,5]\).

Solution

The factor \((x-1)^{2/3}\) is the square of a cube root, which is continuous for every \(x\), so \(p\) is continuous on the closed interval \([-1,5]\). By the product rule and the chain rule,

\[\begin{aligned}p'(x)&=\tfrac23(x-1)^{-1/3}(x-6)\\&\quad+(x-1)^{2/3}\\&=\frac{2(x-6)+3(x-1)}{3(x-1)^{1/3}}\\&=\frac{5(x-3)}{3\sqrt[3]{x-1}}\end{aligned}\]

The derivative is 0 at \(x=3\). At \(x=1\), the formula for \(p'\) is undefined, while \(p(1)=0\). The quotient \(\frac{p(1+h)-p(1)}{h}\), which is \(\frac{h-5}{\sqrt[3]{h}}\), grows without bound in size as \(h\) approaches 0. Therefore \(p'(1)\) does not exist, and 1 is a critical point. The candidates are \(-1\), 1, 3 and 5:

\[\begin{aligned}p(-1)&=(-2)^{2/3}(-7)=-7\sqrt[3]{4}\\p(1)&=0\\p(3)&=2^{2/3}(-3)=-3\sqrt[3]{4}\\p(5)&=4^{2/3}(-1)=-2\sqrt[3]{2}\end{aligned}\]

Only \(p(1)\) is not negative, so the absolute maximum value is 0, at \(x=1\). Since \(\sqrt[3]{4}>\sqrt[3]{2}\), the number \(7\sqrt[3]{4}\) is larger than \(3\sqrt[3]{4}\) and than \(2\sqrt[3]{2}\), so the absolute minimum value is \(-7\sqrt[3]{4}\), at \(x=-1\).

Example 3

Report absolute extrema in full

The temperature in a greenhouse is \(T(t)=t^3-9t^2+24t+50\) degrees Fahrenheit, where \(t\) is the number of hours after 8 a.m., for \(0\le t\le 5\). Find the highest and the lowest temperature during this period, and the times at which they occur.

Solution

The function \(T\) is a polynomial, so it is continuous on the closed interval \([0,5]\), and its absolute extrema are at candidates. Its derivative exists for every \(t\):

\[\begin{aligned}T'(t)&=3t^2-18t+24\\&=3(t-2)(t-4)\end{aligned}\]

Both zeros, 2 and 4, lie in the interval, so the candidates are 0, 2, 4 and 5:

\[\begin{aligned}T(0)&=50, & T(2)&=70,\\T(4)&=66, & T(5)&=70\end{aligned}\]

The largest value, 70, occurs at two candidates, and the smallest, 50, at one. The highest temperature is 70 degrees Fahrenheit, at 10 a.m. and again at 1 p.m. The lowest temperature is 50 degrees Fahrenheit, at 8 a.m.

Example 4

Justify that the search is complete

Let \(q(x)=\left(x^2-3\right)e^x\). Find the absolute maximum value of \(q\) on the interval \([-4,2]\). Justify your answer.

Solution

The function \(q\) is a product of continuous functions, so it is continuous on the closed interval \([-4,2]\). By the Extreme Value Theorem, \(q\) has an absolute maximum there, at a candidate. By the product rule,

\[\begin{aligned}q'(x)&=2x\,e^x+\left(x^2-3\right)e^x\\&=(x+3)(x-1)\,e^x\end{aligned}\]

Since \(e^x>0\), \(q'(x)=0\) only at \(x=-3\) and \(x=1\), and \(q'\) exists everywhere. Both zeros lie inside the interval, so the candidates are \(-4\), \(-3\), 1 and 2:

\[\begin{aligned}q(-4)&=13e^{-4}\\q(-3)&=6e^{-3}\\q(1)&=-2e\\q(2)&=e^2\end{aligned}\]

Since \(e>2\), \(e^5>32>6\) and \(e^6>64>13\). Dividing by \(e^3\) and by \(e^4\) gives \(6e^{-3}<e^2\) and \(13e^{-4}<e^2\), and \(q(1)\) is negative.

The largest value at the candidates is therefore \(q(2)\), and the absolute maximum value of \(q\) on \([-4,2]\) is \(e^2\), at \(x=2\).

Example 5

Recognize an unattained extremum

Let \(r(x)=\dfrac{\ln x}{x}\). Find the absolute maximum value and the absolute minimum value of \(r\) on the interval \(\left(0,e^2\right]\), if they exist.

Solution

The interval leaves out its left end, 0, so the Extreme Value Theorem does not apply. The function \(r\) is continuous on \(\left(0,e^2\right]\), because \(\ln x\) is continuous for \(x>0\) and the denominator \(x\) is not 0 there. By the quotient rule,

\[r'(x)=\frac{\frac1x\cdot x-\ln x}{x^2}=\frac{1-\ln x}{x^2}\]

The derivative exists for every \(x>0\), and it is 0 only where \(\ln x=1\), at \(x=e\). The candidates are \(e\) and the closed end \(e^2\):

\[r(e)=\frac1e,\qquad r\left(e^2\right)=\frac{2}{e^2}\]

As \(x\) approaches 0 from the right, \(\ln x\) decreases without bound and \(\frac1x\) grows without bound, so their product decreases without bound:

\[\lim_{x\to 0^+}\frac{\ln x}{x}=-\infty\]

Near 0, \(r\) takes values below every number, so it has no absolute minimum, and its absolute maximum is the larger candidate value. Since \(e>2\), \(\frac{2}{e^2}<\frac1e\), so the absolute maximum value is \(\frac1e\), at \(x=e\).

Each example is one of the five skills of topic 5.5 in Which & Why: AP Calculus.