Skip to main content

Section 8.1 Extreme Values

We have learned earlier that when a function \(f(x)\) can be written as an accumulation function, we can describe the behavior of the function in terms of its rate of accumulation \(f'(x)\text{.}\) We use sign analysis of \(f'(x)\) to find the intervals of monotonicity of \(f(x)\text{.}\) And if \(f'(x)\) can also be written as an accumulation function with rate \(f''(x)\text{,}\) the sign analysis of \(f''(x)\) determines the intervals of concavity of \(f(x)\text{.}\)

In this section, we apply this information to describe the extreme values of a function. By identifying points where \(f'(x)\) changes sign, we can find local maximum and minimum values. Global extreme values require comparing local extremes with end behaviors.

Subsection 8.1.1 Local Extreme Values

When the derivative \(f'(x)\) changes sign at a point where \(f(x)\) is continuous, the function has a local or relative extreme value. We begin by focusing on what we mean by a local extreme value. A local extreme is a point where the function reaches either its highest or lowest point on an interval around that point. The function might exceed the value on some other interval, but the value needs to be the extreme in a neighborhood of the point.

Definition 8.1.1. Local (Relative) Extreme Values.

A function \(f(x)\) has a local maximum at a point \(x=c\) in the domain if there is an interval \((a,b)\) with \(c \in (a,b)\) so that \(f(x) \le f(c)\) for all \(x \in (a,b)\text{.}\)

A function \(f(x)\) has a local minimum at a point \(x=c\) in the domain if there is an interval \((a,b)\) with \(c \in (a,b)\) so that \(f(c) \le f(x)\) for all \(x \in (a,b)\text{.}\)

The reason that the definition describes these extreme values as local extremes is that the function might go higher or lower at some point outside of the interval. A local or relative extreme value is only at the highest or lowest points relative to its immediate neighbors. The following graph illustrates a function with multiple local extreme values.

A graph climbs from negative infinity to a local maximum labeled by A, then decreases to a local minimum labeled B, then increases to another local maximum labeled C, a short interval of decreasing to a local minimum labeled D, another short interval of increasing to a local maximum labeled E, then decreases to a local minimum labeled F, after which the function increases without bound to plus infinity.
Figure 8.1.2. Illustration of a function with local extremes and no global extremes.

The function shows local maxima at points labeled \(A\text{,}\) \(C\text{,}\) and \(E\) and local minima at points labeled \(B\text{,}\) \(D\text{,}\) and \(F\text{.}\) Of the three maxima, the value at \(A\) is the greatest. Because the graph continues to increase after \(F\text{,}\) however, the function reaches values higher than all of the local maxima. Similarly, the minimum at \(F\) is the lowest of the three lolal minima but the function reach values even lower at points to the left of \(A\text{.}\)

One observation we should make is that the local extreme values occurred where the function transitioned between an interval of increasing to an interval of decreasing. Such points are called turning points. Sign analysis using the first derivative can often identify these turning points, so we use sign analysis to find local extreme values. The applicable theorem is called the first derivative test for extreme values.

Because \(f'(x)\) most frequently changes sign at points where \(f'(x)=0\text{,}\) we call such points the critical points of \(f(x)\text{.}\) When we have a more precise definition of the derivative, we will learn that critical points also need to include points where \(f'(x)\) is not defined.

Example 8.1.4.

Find the local extreme values of \(f(x) = x^3 - 6x^2 - 36x + 5\text{.}\)

Solution

The first step in a question about extreme values is to compute the rate of change \(f'(x)\text{.}\)

\begin{equation*} f'(x) = 3x^2 - 12x - 36\text{.} \end{equation*}

To apply the First Derivative Test, we need to complete sign analysis. Because \(f'(x)\) is defined and continuous everywhere, our critical points of \(f\) are the roots of \(f'(x)\text{.}\) We solve the equation by factoring:

\begin{gather*} 3x^2-12x-36 = 0\\ 3(x^2-4x-12) = 0\\ 3(x-6)(x+2) = 0. \end{gather*}

There are two roots of \(f'\text{,}\) \(x=6\) and \(x=-2\text{,}\) which are the critical points of \(f\text{.}\)

Next, we perform sign analysis using the roots as the end points of the test intervals, which are \((-\infty,-2)\text{,}\) \((-2,6)\text{,}\) and \((6,\infty)\text{.}\) Using the factored function \(f'(x)=3(x+2)(x-6)\) makes it easier to find the signs without necessarily computing the final value. We can just look at the signs of each factor:

\begin{align*} f'(-3)&=3(-3+2)(-3-6) =(+)(-)(-)= +,\\ f'(0)&=3(0+2)(0-6) = (+)(+)(-) = -,\\ f'(8)&=3(8+2)(8-6) = (+)(+)(+) = +. \end{align*}

We now know \(f\) is increasing on \((-\infty,-2]\text{,}\) decreasing on \([-2,6]\text{,}\) and increasing on \([6,\infty)\text{.}\)

By the First Derivative Test, we now know that \(f\) has a local maximum at \(x=-2\) and a local minimum at \(x=6\text{.}\) The \(y\)-coordinate of the local maximum can be found using the formula for \(f(x)\text{:}\)

\begin{equation*} f(-2) = (-2)^3 -6(-2)^2-36(-2)+5 = 45\text{.} \end{equation*}

This is guaranteed to be the maximum value over the interval \((-\infty,6]\text{.}\) The \(y\)-coordinate of the local minimum can also be found:

\begin{equation*} f(6) = (6)^3 -6(6)^2-36(6)+5 = -211\text{,} \end{equation*}

which is guaranteed to be the minimum over the interval \([-2,\infty)\text{.}\) If we wanted to graph this function and show the local extrema, we would know that our window would need to include the \(x\)-values of \(x=-2\) and \(x=6\) as well these \(y\)-values.

Although we do not yet know all of the rules that would allow us to compute derivatives, with the help of technology we can analyze many other functions.

Example 8.1.5.

Use technology to find the derivative of the function

\begin{equation*} \displaystyle f(x) = \frac{x}{x^2+3}\text{.} \end{equation*}

Then describe the local extreme values of \(f(x)\text{.}\)

Solution

In SageMath, we find the derivative formula using the diff command, which stands for the verb differentiate. The following script will define our function for SageMath and then ask it to show us the derivative where \(x\) is the independent variable.

We see that \(f(x)\) has a derivative

\begin{equation*} f'(x) = -\frac{2x^2}{(x^2+3)^2} + \frac{1}{x^2+3}. \end{equation*}

We can simplify this if we get a common denominator.

\begin{align*} f'(x) &= -\frac{2x^2}{(x^2+3)^2} + \frac{(x^2+3)}{(x^2+3)^2} \\ &= \frac{-2x^2+x^2+3}{(x^2+3)^2} \\ &= \frac{3-x^2}{(x^2+3)^2} \end{align*}

The denominator of \(f'(x)\) is never zero because \(x^2+3 \ge 3\) will never equal zero. So the sign can only change where \(3-x^2=0\) which occurs at two values, \(x=\pm\sqrt{3}\text{.}\) There are three intervals of interest to test, \((-\infty,-\sqrt{3})\text{,}\) \((-\sqrt{3},\sqrt{3})\text{,}\) and \((\sqrt{3},\infty)\text{.}\) We can find the signs of \(f'(x)\) using the values \(x=-2\text{,}\) \(x=0\) and \(x=2\text{.}\) The signs are summarized in the number line summary below.

We finish by interpreting our results.

  • Because \(f'(x) \lt 0\) on \((-\infty,-\sqrt{3})\) and \(f'(x) \gt 0\) on \((-\sqrt{3},\sqrt{3})\text{,}\) we know \(f(x)\) has a local minimum at \(x=-\sqrt{3}\text{.}\) (Minimum over the interval \((-\infty,+\sqrt{3})\))
  • Because \(f'(x) \gt 0\) on \((-\sqrt{3},\sqrt{3})\) and \(f'(x) \lt 0\) on \((\sqrt{3},\infty)\text{,}\) we know \(f(x)\) has a local maximum at \(x=\sqrt{3}\text{.}\) (Maximum over the interval \((-\sqrt{3},\infty)\))

A graph of the function is illustrated below.

Having discussed how the first derivative \(f'(x)\) allows us to identify local extreme values of \(f(x)\text{,}\) we should note that the second derivative \(f''(x)\) will allow us to identify local extreme values of \(f'(x)\text{.}\) These points are the inflection points of the function \(f\text{,}\) where the concavity of \(f\) changes. Inflection points are significant as being extreme values in that they represent points where the rate of accumulation or rate of change reaches either a maximum or minimum rate.

Subsection 8.1.2 Global Extreme Values

In Figure 8.1.2, we saw that when a function has local extreme values, there could still be other points that are not local extremes that exceed the extremes. This leads to the idea of global extreme values.

Definition 8.1.6.

Suppose the function \(f\) has domain \(D\text{.}\)

  • \(f\) has a global maximum at \(c \in D\) if \(f(c) \ge f(x)\) for all \(x \in D\text{.}\)
  • \(f\) has a global minimum at \(c \in D\) if \(f(c) \le f(x)\) for all \(x \in D\text{.}\)

To identify global extremes of a function, we first need to find all of the local extreme values. Then we use additional information to test whether the function manages to reach beyond those values. The sign analysis used to analyze local extrema does give us some information about the intervals immediately to the left and right of an extremum. For example, we know that a local maximum will be greater than all points in the immediately adjacent intervals, but we may not know how far down the function goes.

Finishing the analysis for global extremes generally involves computing limits of the function on intervals not already accounted for by the local extremes. If a limit has a real (finite) value, the function values approach that limit but may not actually reach the limit as an actual function value. When a function is approaches a value in a limit that would be an extreme value but never reaches it, we call that value a bound rather than an extreme.

Example 8.1.7.

Find the global extreme values of \(f(x) = 4x^2 - x^3\) restricted to each of the following domains.

  1. \(D = (-\infty,\infty)\)
  2. \(D_1 = [-1,3]\)
  3. \(D_2 = (-2,4]\)
  4. \(D_3 = [-2,2)\)
Solution

This question considers finding global extrema for a function when it is restricted to different domains. Regardless of which domain we use, we will need to find the local extreme values. Local extreme values are identified from sign analysis of \(f'(x)\text{.}\) We find

\begin{equation*} f'(x)=4(2x) - (3x^2) = 8x - 3x^2\text{.} \end{equation*}

Sign analysis begins by finding the roots, where \(f'(x)=0\text{.}\)

\begin{gather*} 8x-3x^2 = 0\\ x(8-3x) = 0\\ x=0, \quad 8-3x=0\\ x=0, \quad x=\frac{8}{3} \end{gather*}

Because \(f'(x)\) is continuous, the roots determine the test intervals: \((-\infty,0)\text{,}\) \((0,\frac{8}{3})\text{,}\) and \((\frac{8}{3},\infty)\text{.}\) Testing one value of \(x\) from each interval in \(f'(x) = x(8-3x)\text{,}\) we find the signs summarized on the following number line.

A sign analysis number line summary for f'(x) is shown with marks at 0 and 8/3 as roots or zeros, marked as negative to the left of 0, positive between 0 and 8/3, and negative to the right of 8/3.

We can interpret the sign analysis of \(f'(x)\) as characterizing the monotonicity of \(f(x)\text{.}\)

  • \(f(x)\) is decreasing on \((-\infty,0)\text{.}\)
  • \(f(x)\) is increasing on \((0,\frac{8}{3})\text{.}\)
  • \(f(x)\) is decreasing on \((\frac{8}{3},\infty)\text{.}\)

Because \(f(x)\) is decreasing on the left of \(x=0\) and increasing on the right, \(f(x)\) has a local minimum at \(x=0\text{.}\) The value of the function at this minimum is

\begin{equation*} f(0) = 4(0)^2-(0)^3 = 0\text{.} \end{equation*}

Similarly, because \(f(x)\) is increasing on the left of \(x=\frac{8}{3}\) and decreasing on the right, \(f(x)\) has a local maximum at \(x=\frac{8}{3}\text{.}\) The value of the function at this maximum is

\begin{equation*} f(\frac{8}{3}) = 4(\frac{8}{3})^2-(\frac{8}{3})^3 = \frac{256}{27} \approx 9.4815\text{.} \end{equation*}

From our sign analysis of \(f'(x)\text{,}\) we know that \(f(0)\) is the minimum value for the interval \((-\infty,\frac{8}{3}]\) and that \(f(\frac{8}{3})\) is the maximum value for the interval \([\frac{8}{3},\infty)\text{.}\) To complete the analysis of global extreme values, we need use limits to compare \(f(0)\) with points on the interval \((\frac{8}{3},\infty)\) and \(f(\frac{8}{3})\) with points on the interval \((-\infty,0)\text{.}\) To evaluate limits involving \(\pm \infty\text{,}\) we need to factor out the dominant power,

\begin{equation*} f(x) = 4x^2-x^3 = x^3(\frac{4}{x} - 1)\text{,} \end{equation*}

before using the limit arithmetic of infinity.

\begin{align*} \lim_{x \to -\infty} f(x) &= \lim_{x \to -\infty} x^3 (\frac{4}{x}-1)\\ &= (-\infty)^3 \cdot (\frac{4}{-\infty}-1)\\ &= -\infty \cdot (0-1) = +\infty\\ \lim_{x \to +\infty} f(x) &= \lim_{x \to +\infty} x^3 (\frac{4}{x}-1)\\ &= (\infty)^3 \cdot (\frac{4}{\infty}-1)\\ &= \infty \cdot (0-1) = -\infty \end{align*}

Let us now address the question of the global extreme values on each of the requested restricted domains.

  1. Find the global extremes on the interval \((-\infty,\infty)\text{.}\)

    We have learned that on the interval \((-\infty,0)\text{,}\) \(f\) reaches all values between \(f(0)=0\) and \(\displaystyle \lim_{x \to -\infty}f(x)=\infty\text{.}\) Clearly, \(f(x)\) has no maximum value because it is unbounded above. Similarly, we learned that on the interval \((\frac{8}{3},\infty)\text{,}\) \(f(x)\) reaches all values between \(-\infty\) and \(f(\frac{8}{3})=\frac{256}{27}\) and is unbounded below. So \(f(x)\) has no minimum value. The range of \(f\) has been shown to be \((-\infty,\infty)\) and \(f\) has no global extreme values on \((-\infty,\infty)\text{.}\)

  2. Find the global extremes on the interval \(D_1=[-1,3]\text{.}\)

    We know \(f\) is decreasing on \([-1,0)\text{,}\) a subset of \((-\infty,0)\text{,}\) so the maximum value on that interval is

    \begin{equation*} f(-1) = 4(-1)^2-(-1)^3 = 5\text{.} \end{equation*}

    We also know \(f\) is decreasing on \((\frac{8}{3},3]\) so the minimum value on that interval is

    \begin{equation*} f(3) = 4(3)^2 - (3)^3 = 9\text{.} \end{equation*}

    Comparing these to the local minimum \(f(0)=0\) and the local maximum \(f(\frac{8}{3})=\frac{256}{27}\text{,}\) we see that \(f(0)=0\) is the global minimum and \(f(\frac{8}{3})=\frac{256}{27}\) is the global maximum for the interval \(D_1=[-1,3]\text{.}\) When restricted to this domain, the range of \(f\) becomes \([0,\frac{256}{27}]\text{.}\)

  3. Find the global extremes on the interval \(D_2=(-2,4]\text{.}\)

    We know \(f\) is decreasing on \((-2,0)\text{,}\) so that the left end-point provides an upper bound

    \begin{equation*} \lim_{x \to -2^+} f(x) = f(-2) = 4(-2)^2-(-2)^3=24\text{.} \end{equation*}

    This is not a maximum value because \(x=-2\) is not included in the domain. Because \(f\) is decreasing on \((\frac{8}{3},4]\) the minimum value on that interval is

    \begin{equation*} f(4) = 4(4)^2 - (4)^3 = 0\text{.} \end{equation*}

    The global minimum occurs in two locations,

    \begin{equation*} f(0) = f(4) = 0\text{.} \end{equation*}

    The value \(f(-2)=24\) is not a global maximum because \(x=-2\) is not included in the domain. However, \(f\) does include all values up to that value through the limit so that \(f\) has an upper bound of 24. When \(f\) is restricted to \(D_2=(-2,4]\text{,}\) the range is \([0,24)\text{.}\)

  4. Find the global extremes on the interval \(D_3=[-2,2)\text{.}\)

    From the work above, we know \(f(-2)=24\) is the maximum value on \([-2,0)\text{.}\) Because the right end point \(x=2\) is to the left of the local maximum at \(x=\frac{8}{3}\text{,}\) we need to consider the interval of monotonicity \((0,2)\text{.}\) \(f\) is increasing on this interval and bounded above by the limit

    \begin{equation*} \lim_{x \to 2^-} f(x) = f(2) = 4(2)^2-2^3 = 8\text{.} \end{equation*}

    Our work shows that \(f\) has a global minimum at \(x=0\) with \(f(0)=0\) and a global maximum at \(x=-2\) with \(f(-2)=24\text{.}\) The range of \(f\) restricted to \(D_3=[-2,2)\) is \([0,24]\text{.}\)

The following figure illustrates the graph \(y=f(x)\) restricted to each domain. Be sure to compare the analysis that identified the global extremes with the graphs.

(a) Domain: \((-\infty,\infty)\)
(b) Domain: \([-1,3]\)
(c) Domain: \((-2,4]\)
(d) Domain: \([-2,2)\)
Figure 8.1.8.

The process to find global extrema is summarized as the following algorithm.

Subsection 8.1.3 Extreme Values involving Accumulation

In our examples above, we worked with functions with explicit formulas. However, most steps in the analysis involved only knowing information about the derivative. Here we consider examples where the derivative is given as the rate of accumulation and we do not know the explicit formula for the function in question.

Example 8.1.10.

Suppose \(f\) is defined as an accumulation function with an initial value \(f(0)=10\) and a rate of accumulation \(f'\) shown in the graph below. We assume the graph continues as shown outside of the viewing window. Determine local and global extreme values for \(f(x)\text{.}\)

Solution

Our function of interest is defined by an accumulation

\begin{equation*} f(x) = 10 + \int_0^x f'(z) \, dz\text{.} \end{equation*}

We can find local extrema in the same way as before. However, instead of solving an equation \(f'(x)=0\text{,}\) we can look at the graph to both find the roots and the signs of \(f'\text{.}\) The graph crosses the \(x\)-axis at \(x=-3\text{,}\) \(x=1\) and \(x=5\text{.}\) The signs of \(f'(x)\) are identified in the following sign analysis number line summary.

The Theorem 8.1.3 allows us to conclude that \(f(x)\) has a local maximum at \(x=-3\text{,}\) a local minimum at \(x=1\text{,}\) and another local maximum at \(x=4\text{.}\) It is possible to decide which maximum has a higher value by considering the signed area of the graph. In particular, because \(f'(x)\) has linear segments, we can compute the areas in question using elementary geometry to find

\begin{gather*} \int_{-3}^{1} f'(x) \, dx = -5,\\ \int_{1}^{4} f'(x) \, dx = 6. \end{gather*}

Using the splitting property of definite integrals, this implies

\begin{equation*} f(4)-f(-3) = \int_{-3}^{4} f'(x) \, dx = -5 + 6 = 1\text{.} \end{equation*}

Consequently, \(f(4) = f(-3) + 1\) and \(f\) has a higher value at \(x=4\) than at \(x=-3\text{.}\)

We can find actual values if we use the initial value,

\begin{equation*} f(-3) = 10 + \int_{0}^{-3} f'(z) \, dz\text{.} \end{equation*}

Because the integral goes right to left, we have \(dz \lt 0\) and the signed area will be negated. Again using geometry, we find

\begin{equation*} f(-3) = 10 + -(-4.5) = 14.5 \text{.} \end{equation*}

Using this point and the integrals above, we can quickly find

\begin{align*} f(1) &= f(-3) + \int_{-3}^{1} f'(z) \, dz = 14.5 -5 = 9.5,\\ f(4) &= f(1) + \int_{1}^{4} f'(z) \, dz = 9.5 +6 = 15.5. \end{align*}

To find global extrema, we need to think about what happens to the left and right of these local extrema. The sign analysis of \(f'(x)\) shows that \(f\) is increasing on \((-\infty,-3)\text{.}\) Thus, \(f(-3)\) is the maximum value on \((-\infty,3]\text{.}\) The value of \(f\) is unbounded below on this interval,

\begin{equation*} \lim_{x \to -\infty} f(x) = -\infty\text{.} \end{equation*}

We can see this by considering the integral \(\displaystyle \int_{-3}^{x}\) for \(x \lt -3\text{.}\) Because the integral goes right to left, \(dz \lt 0\text{,}\) and \(f'(z) \gt 0\) on this interval, the integral becomes more and more negative the further \(x\) goes to the left. With a similar argument using \(\displaystyle \int_4^x f'(z) \, dz\text{,}\) we find

\begin{equation*} \lim_{x \to \infty} f(x) = -\infty \end{equation*}

and \(f\) is again unbounded below on the interval \((4,\infty)\text{.}\)

We conclude that \(f\) has a global maximum \(f(4) = 13.5\) and no global minimum. A graph of \(y=f(x)\) is shown below.

Subsection 8.1.4 Summary

  • A function \(f\) has a local maximum (plural: maxima) at \(x=c\) if \(f(c) \ge f(x)\) in a neighborhood of \(c\text{.}\) The function \(f\) has a local minimum (plural: minima) at \(x=c\) if \(f(c) \le f(x)\) in a neighborhood of \(c\text{.}\)
  • A function \(f\) has a global maximum at \(x=c\) if \(f(c) \ge f(x)\) for all \(x\) in the domain. The function \(f\) has a global minimum at \(x=c\) if \(f(c) \le f(x)\) for all \(x\) in the domain.
  • We can use sign analysis of the derivative \(f'\) to find local extreme values. Points where \(f'(x)\) changes sign are local extrema. This is called the First Derivative Test.
  • Global extrema can occur at local extrema or at boundaries of intervals. We need to compare the value of the function at each of the local extrema with the end points. If an end point is not included, the value of the limit at that point can serve as a bound for the function but would not be an actual extreme value.

Exercises 8.1.5 Exercises

For each function, identify all local extrema.

1.

\(f(x)=x^3-9x^2-48x+60\)

2.

\(f(x)=120x+3x^2-2x^3\)

3.

\(f(x)=x^4-8x^2\)

4.

\(f(x)=x^4-4x^3+3x^2+2\)

For each function, find the global extrema on the given intervals.

5.

\(f(x)=4x-x^2\) on (i) \(D=[-1,6]\text{,}\) (ii) \(D=(1,4)\text{,}\) and \((-\infty,\infty)\)

6.

\(f(x)=x^2+3x\) on (i) \(D=[-1,2]\text{,}\) (ii) \(D=(-4,1]\text{,}\) and \((-\infty,\infty)\)

7.

\(f(x)=x^3-9x^2-48x+60\) on (i) \(D=[-5,5]\text{,}\) (ii) \(D=[-10,10)\text{,}\) and \((-\infty,\infty)\)

8.

\(f(x)=x^4-12x^3+28x^2-17\) on (i) \(D=[-1,3]\text{,}\) (ii) \(D=(1,8)\text{,}\) and \((-\infty,\infty)\)