Extrema, critical points and guarantees
Let \(f\) be defined on a set \(D\) of inputs, usually an interval. The value \(f(c)\) is the absolute maximum of \(f\) on \(D\) if \(c\) is in \(D\) and \(f(c)\ge f(x)\) for every \(x\) in \(D\). The absolute minimum reverses the inequality, and either one is an absolute extremum, plural extrema. Some books say global instead of absolute.
This topic asks when absolute extrema must exist, and at which inputs a maximum or a minimum can occur.
Absolute and local extrema
The graph of a function f on a closed interval from a to b, with a filled dot at each end. It rises from a to a peak marked local maximum, falls to the bottom of a valley marked absolute minimum, and rises to its highest point at b, marked absolute maximum. Filled dots also mark the peak and the bottom of the valley. Two faint vertical lines mark a window around an orange point, and an orange dashed line runs across the window at the height of the point. Inside the window, the region between the curve and the dashed line is green where the curve is higher and red where it is lower. One button opens the right end: the dot at b becomes an open ring, and the label says no absolute maximum. Another puts a jump in the curve shortly before b: the curve drops there, an open ring marks the height that the values approach from the left, a filled dot below it marks the value of f at the jump, and again the label says no absolute maximum.
In Figure 1, \(f\) is continuous on the closed interval \([a,b]\). The faint vertical lines around the orange point \(\cy{\big(x,f(x)\big)}\) mark a window, which holds the inputs of \([a,b]\) within a distance \(w\) of \(x\). The orange dashed line marks the height \(\cy{f(x)}\). In the window, the region between it and the curve is green where \(f\) is higher than \(f(x)\) and red where \(f\) is lower.
The point starts on the peak, with a narrow window. Only red shows, so every value of \(f\) near the peak is lower. Widen the window with the second slider until it covers \([a,b]\). Green appears near \(b\), so the peak is not the highest point of the graph.
The value \(f(c)\) is a local maximum of \(f\) if \(f(c)\ge f(x)\) for every \(x\) in some open interval around \(c\). This open interval must lie in \(D\), so a local extremum is never at an end of \(D\). A local minimum reverses the inequality, and some books say relative instead of local.
A local extremum compares \(f(c)\) only with nearby values, and an absolute extremum compares it with every value on \(D\). In Figure 1, the peak gives a local maximum that is not absolute. The value \(f(b)\) is the absolute maximum on \([a,b]\), but not a local maximum, because no open interval around \(b\) lies in \([a,b]\). Some books also call \(f(b)\) a local maximum, but this page does not.
Move the point to the bottom of the valley. Then widen the window over the whole interval. Only green shows, so the bottom of the valley gives the absolute minimum, which is also a local minimum. In general, an absolute extremum at an input strictly between \(a\) and \(b\) is also local, because \([a,b]\) contains an open interval around that input.
When extrema must exist
The function in Figure 1 has both absolute extrema, as the Extreme Value Theorem guarantees. The theorem states that if \(f\) is continuous on a closed interval \([a,b]\), then \(f\) has an absolute maximum and an absolute minimum on \([a,b]\). At the ends, continuity is one-sided (topic 1.12).
The theorem asks for no derivative, so a corner or a cusp does not matter. It does not say where the extrema are. Its proof needs the completeness of the real numbers (topic 1.16) and is not given here.
Each hypothesis is needed. Use the first button under Figure 1 to open the right end. The interval becomes \([a,b)\), and the dot at \(b\) turns into an open ring, because \(b\) is no longer in the interval. In the window, green shows between the point and the ring. Move the point toward \(b\). Green remains however close the point comes, so a higher value always exists, and \(f\) has no absolute maximum.
With the end closed again, put a jump in \(f\) with the second button. The function is then not continuous at the jump. Green shows between the point and the open ring. As \(x\) approaches the jump from the left, the values approach the height of the ring, but every value that \(f\) takes is lower. No value is the largest, so again \(f\) has no absolute maximum.
The ends of the interval must also be numbers. On \([0,\infty)\), the function \(x^2\) is continuous, but its values grow without bound, so it has no absolute maximum.
An absolute extremum is a value that \(f\) takes at an input in \(D\). A height that the values only approach, at an open end, at a jump or as \(x\to\pm\infty\), is not an extremum. To decide whether one exists, compare the values that \(f\) takes with the heights that it approaches. If a hypothesis fails, extrema may still exist. With either button on, \(f\) keeps its absolute minimum.
Where extrema can occur
The graph of a function f for x from 0 to 8, with the inputs 1, 3, 5 and 7 numbered. It rises to a smooth peak at x = 1, falls to a flat point at x = 3, where it falls on both sides, falls to the bottom of a sharp valley at x = 5, rises in a straight line to a corner at x = 7, and rises more steeply after it. An orange point carries its orange tangent line, which splits into two orange half-lines at a corner. Below, the graph of f prime crosses 0 at x = 1, touches 0 at x = 3, and jumps at x = 5 and at x = 7, and an orange bar reaches from its axis to f prime at the same x. Two faint lines mark a window around the point, where the region between the curve and the height of the point is green where f is higher and red where it is lower.
Figure 2 shows another function \(f\), with the orange tangent line at the orange point. The lower graph plots \(f'\), and the orange bar shows \(\cy{f'(x)}\), the slope of the tangent. Drag the point. At \(x=1\) and \(x=3\), the tangent is horizontal, so \(f'\) is 0. At 5 and 7 the graph has corners, where the two orange half-lines have different slopes. There \(f'\) does not exist, and its graph jumps.
At the peak, \(x=1\), the tangent is horizontal, and this holds at every local extremum where \(f'\) exists. To see why, suppose that \(f(c)\) is a local maximum and that \(f'(c)\) exists. For every \(h\neq 0\) small enough that \(c+h\) lies in the open interval of the definition, \(f(c+h)-f(c)\le 0\). Dividing by \(h\) keeps this inequality when \(h>0\) and reverses it when \(h<0\):
Because \(f'(c)\) exists, the quotient approaches \(f'(c)\) as \(h\) approaches 0 from either side (topic 2.2). A quotient that is never positive cannot approach a positive number, because close to that number it would be positive. The first line therefore gives \(f'(c)\le 0\), and in the same way the second gives \(f'(c)\ge 0\), so \(f'(c)=0\).
For a local minimum, both inequalities reverse, with the same conclusion. This result is Fermat's Theorem, which some books call the first derivative theorem for local extreme values.
A number \(c\) inside the domain of \(f\) is a critical number of \(f\) if \(f'(c)=0\) or \(f'(c)\) does not exist. AP problems call \(c\) a critical point. Every local extremum therefore occurs at a critical number: if \(f'(c)\) exists there, Fermat's Theorem makes it 0. An absolute extremum on \([a,b]\) that is not at \(a\) or \(b\) is local, so it occurs at a critical number too.
To find the critical numbers, solve \(f'(x)=0\). Then find the inputs where \(f'\) does not exist. Keep only the inputs inside the domain of \(f\). A formula for \(f'\) can be 0 or undefined at inputs where \(f\) has no value.
Between 0 and 8, the critical numbers of \(f\) in Figure 2 are 1, 3, 5 and 7, but not every one gives an extremum. Move the point to each one. At 1, only red shows, so \(f(1)\) is a local maximum. At 5, only green shows, so \(f(5)\) is a local minimum. At 3 and at 7, both colors show however narrow the window is, so \(f\) has no local extremum there.
The function \(x^3\) has no extremum at 0 either. Its derivative \(3x^2\) is 0 there, but \(x^3<0\) for \(x<0\) and \(x^3>0\) for \(x>0\). A critical number is only a candidate, an input where an extremum may occur. To classify it, compare \(f(c)\) with the values of \(f\) at the inputs near \(c\) on both sides.
Example 1
Find critical numbers in the domain
Find the critical numbers of \(g(x)=\dfrac{x^{2/3}}{x-5}\).
Solution
The power \(x^{2/3}=\big(\sqrt[3]{x}\big)^2\) is defined for every \(x\), so the domain of \(g\) is every \(x\) except 5. For \(x\neq 0\) and \(x\neq 5\), the quotient rule gives
The second line multiplies the top and the bottom by \(3x^{1/3}\). The numerator is 0 at \(x=-10\), which is in the domain, so \(-10\) is a critical number.
Since \(g(0)=0\), the quotient \(\frac{g(h)-g(0)}{h}\) equals \(\frac{1}{h^{1/3}(h-5)}\), which grows without bound in size as \(h\to 0\). Therefore \(g'(0)\) does not exist, and 0 is a critical number. The input 5 is not one, because \(g(5)\) is not defined. The critical numbers are \(-10\) and 0.
Example 2
Distinguish local and absolute extrema
Let \(k(x)=x^3-3x+2\). Is \(k(-1)=4\) a local maximum of \(k\)? Is it the absolute maximum of \(k\) on \([-2,2]\)? On \([-2,3]\)?
Solution
The difference \(k(x)-4\) factors, as expanding the right side confirms:
For every \(x<2\), the square is not negative and \(x-2<0\), so \(k(x)\le 4\). These inputs form an open interval around \(-1\), so \(k(-1)=4\) is a local maximum.
Since \(k(2)=4\) as well, \(k(x)\le 4\) on all of \([-2,2]\). The absolute maximum of \(k\) on \([-2,2]\) is 4, and \(k\) takes it at \(x=-1\) and at \(x=2\).
On \([-2,3]\), the value \(k(3)=20\) is larger, so 4 is not the absolute maximum there. It is still a local maximum, because only the values near \(-1\) decide that.
Example 3
Check the Extreme Value Theorem conditions
Let \(r(x)=\begin{cases}6-x^2, & -1\le x\le 1\\ 3x+2, & 1<x\le 4\end{cases}.\) Does the Extreme Value Theorem guarantee that \(r\) has an absolute maximum and an absolute minimum on \([-1,4]\)? If so, find them.
Solution
The interval \([-1,4]\) is closed, and its ends are numbers. Each formula is a polynomial, so \(r\) is continuous at every input of \([-1,4]\) except possibly the join \(x=1\), where the formula changes. There, the one-sided limits and the value must agree:
They agree, so \(r\) is continuous on \([-1,4]\), and the theorem guarantees both absolute extrema. The pieces have slopes \(-2\) and 3 at \(x=1\), so \(r'(1)\) does not exist, but the theorem asks for no derivative.
On \([-1,1]\), \(x^2\) is between 0 and 1, so \(6-x^2\) is between 5 and 6. On \((1,4]\), \(3x+2\) is greater than 5 and at most 14. The absolute maximum is \(r(4)=14\), and the absolute minimum is 5, which \(r\) takes at \(x=-1\) and at \(x=1\).
Example 4
Recognize when a maximum or minimum does not exist
Let \(p(x)=\dfrac{5}{x^2+1}\). Find the absolute maximum and the absolute minimum of \(p\) on \((-\infty,\infty)\), if they exist.
Solution
Since \(x^2+1\ge 1\) for every \(x\), \(p(x)\le 5=p(0)\). The absolute maximum is \(p(0)=5\).
Every value of \(p\) is positive, and the values approach 0 (topic 1.15):
No value is the smallest, because for any input \(x\), the input \(|x|+1\) gives a smaller value: \((|x|+1)^2+1>x^2+1\). The function \(p\) therefore has no absolute minimum.
Example 5
Do not classify from a zero derivative alone
The derivative of \(q(x)=x^4-4x^3\) is \(q'(x)=4x^2(x-3)\), which is 0 at \(x=0\) and at \(x=3\). At each of these inputs, does \(q\) have a local maximum, a local minimum or neither?
Solution
Near 0, write \(q(x)=x^3(x-4)\). For \(x<4\), the factor \(x-4\) is negative, so \(q(x)\) has the sign opposite to \(x^3\): positive for \(x<0\), and negative for \(0<x<4\). Every open interval around 0 holds values above \(q(0)=0\) and values below it, so \(q\) has no local extremum at 0.
At 3, \(q(3)=81-108=-27\), and \(q(x)+27\) factors, as expanding the right side confirms:
Neither factor is ever negative, so \(q(x)\ge q(3)\) for every \(x\), and \(q(3)=-27\) is a local minimum, even the absolute minimum.
Each example is one of the five skills of topic 5.2 in Which & Why: AP Calculus.