Nathan Wakefield, Christine Kelley, Marla Williams, Michelle Haver, Lawrence Seminario-Romero, Robert Huben, Aurora Marks, Stephanie Prahl, Based upon Active Calculus by Matthew Boelkins
In many different settings, we are interested in knowing where a function achieves its least and greatest values. These can be important in applications – such as identifying a point at which maximum profit or minimum cost occurs – or in theory such as characterizing the behavior of a function or of a family of related functions.
Consider the simple and familiar example of a parabolic function such as (shown on the left of Figure 3.1 below) that represents the height of an object tossed vertically: its maximum value occurs at the vertex of the parabola and represents the greatest height the object reaches. This maximum value is an especially important point on the graph, the point at which the curve changes from increasing to decreasing.
Given a function , we say that is a global (or absolute) maximum of provided that for all in the domain of . Similarly, we call a global (or absolute) minimum of whenever for all in the domain of .
Consider, for example, the graph of on the right of Figure 3.1 below. The function has a global maximum of , but does not appear to have a global minimum, as the graph of seems to decrease without bound. Note that the point marks a fundamental change in the behavior of as changes from increasing to decreasing; similar things happen at both and , although these points are not global minima or maxima.
Figure3.1.On the left, the graph of , where is a parabola whose vertex is ; on the right, the graph of , where is a function that demonstrates several high and low points.
We say that is a local (or relative) maximum of provided that for all near . Likewise, is called a local (or relative) minimum of whenever for all near .
For example, returning to the right half of Figure 3.1 above, has a relative minimum of at the point and a relative maximum of at . We have already identified the global maximum of as ; it can also be considered a relative maximum. Another piece of terminology to be familiar with is that any maximum or minimum may also be called an extreme value of .
We would like to use calculus ideas to identify and classify key function behavior, including the location of relative extrema. Of course, if we are given a graph of a function, it is often straightforward to locate these important behaviors visually. We see this below in Example 3.2.
Example3.2.
Consider the function given by the graph in Figure 3.3 below. Use the graph to answer each of the following questions.
Figure3.3.The graph of on the interval .
Identify all of the values of for which is a local maximum of .
Identify all of the values of for which is a local minimum of .
Does have a global maximum on the interval ? If so, what is the value of this global maximum?
Does have a global minimum on the interval ? If so, what is its value?
Identify all values of for which .
Identify all values of for which does not exist.
True or false: every relative maximum and minimum of occurs at a point where is either zero or does not exist.
True or false: at every point where is zero or does not exist, has a relative maximum or minimum.
Hint.
Start by looking for -values where the graph switches from increasing to decreasing. Are there any other points that might work?
Start by looking for -values where the graph switches from decreasing to increasing. Are there any other points that might work?
Is there a highest point on the graph?
Is there a lowest point on the graph?
Remember that horizontal lines have a slope of .
Think back to earlier chapters. What characteristics of or its graph might make it nondifferentiable at a certain point?
Compare your answers to (a) and (b) with those to (e) and (f).
Compare your answers to (a) and (b) with those to (e) and (f).
Answer.
and .
.
.
.
and .
,, and .
True.
False.
Solution.
The graph shows that for every near and for every near . We notice that these are points where switches from increasing to decreasing. Since there are no other points on the graph where the -coordinate is larger than everything nearby, it follows that the only local maxima of on this domain occur at and .
The graph shows that for every near , a point where switches from decreasing to increasing. However, because we are looking at a restricted domain, on the left we see that starts out by going up, so for every near to (and greater than) . Similarly, on the right we see that finishes by going down, so for all near to (and less than) . At the very least, then, we can say that the local minima of on the domain are ,, and .
Again, we emphasize that the endpoints of the domain are special. If the graph extended to either side, we could not say with certainty whether the points and are local minima or not. They might be, if the graph changed direction again, but they would not be if the graph followed the existing trend.
The highest point shown on the graph is the point . Since is continuous on , we don’t have to worry about any points on the interval being higher and not showing up on the displayed grid. Hence we say the global maximum of on the interval is and occurs at .
The lowest point shown on the graph is the point . Again, since is continuous on , we don’t have to worry about any points on the interval being lower and not showing up in the window that is displayed. Thus we say the global minimum of on the interval is and occurs at .
It is worth noting that this was not a point that we found as a local minimum. The difference is that here we are restricting our focus to the interval that is shown, effectively cutting off the graph at its endpoints. Earlier, when we were looking for relative minima, we made the assumption that the graph of continues outside of the depicted interval by following the trends displayed and continuing downward on both sides.
When looking for points at which , we are looking for points of horizontal tangency. The graph flattens out at and , but nowhere else 4
Note that at it looks as though the graph is flat to the right of this point. However, the derivative is undefined here because of the cusp, so this is not a point of horizontal tangency
. Thus exactly when and .
Recall that only exists when all of the following are true:
is defined,
exists,
, and
exists.
Assuming is continuous at (i.e. the first three points hold), the main consequence of the final point is that a corner or a cusp at makes nondifferentiable at .
With all this in mind, we can say that does not exist at ,, or because has a cusp at these points.
This is true. Every relative extremum of occurs at a point where is either zero or does not exist.
This is false. Some points at which is zero or undefined are not relative extrema. In particular, is zero, but the graph is non-decreasing near . Similarly, is undefined, but the graph is non-increasing near . Neither of these points is a local maximum or minimum.
Figure3.4.From left to right: a function with a relative maximum where its derivative is zero; a function with a relative maximum where its derivative is undefined; a function with neither a maximum nor a minimum at a point where its derivative is zero; a function with a relative minimum where its derivative is zero; and a function with a relative minimum where its derivative is undefined.
Suppose a function is continuous on an open interval . If has a relative maximum at some number in this interval, then must be increasing in some interval just before and decreasing in some interval just after . These intervals could be quite small. Conversely, if is increasing in an interval just before and decreasing in an interval just after , then must have a relative maximum at . The natural analogue holds for relative minima: if has a relative minimum at some number in this interval, then is decreasing in some interval just before and increasing just after . Conversely, if is decreasing in some interval just before and decreasing in an interval just after , then must have a relative minimum at . (See Figure 3.4 above.) There are only two possible ways for these changes in behavior to occur: either or is undefined. Because these values of are so important, we call the point a critical point.
We say that a function has a critical point at provided that is in the domain of , and or is undefined. When is a critical point, we say that is a critical number of the function, or that is a critical value.
Critical points are the only possible locations where the function may have relative 5
Absolute extrema occur only at critical points or at endpoints for functions defined on a fixed domain.
extrema. Note that not every critical point produces a maximum or minimum; in the middle graph of Figure 3.4, the function pictured there has a horizontal tangent line at the noted point, but the function is increasing before and increasing after, so the critical point does not yield a maximum or minimum. Two other such points appeared earlier in Figure 3.3 of Example 3.2.
The first derivative test summarizes how sign changes in the first derivative (which can only occur at critical numbers) indicate the presence of a local maximum or minimum for a given function.
If is a critical number of a continuous function that is differentiable near (except possibly at ), then has a relative maximum at if and only if changes sign from positive to negative at , and has a relative minimum at if and only if changes sign from negative to positive at .
Example3.5.
Let be a function whose derivative is given by the formula . Determine all critical numbers of and decide whether a relative maximum, relative minimum, or neither occurs at each.
Hint.
When is ? What else do you need to look for?
Answer.
is a critical number that is not a relative extremum. is a local maximum.
Solution.
Since we already have written in factored form, it is straightforward to find the critical numbers of . Because is defined for all values of , we need only determine where . From the equation
and the zero product property 6
The zero product property says that if , where and are expressions representing real numbers (e.g. , where is a real number), then it must be the case that or (or both).
, it follows that and are critical numbers of . (There is no value of that makes .)
Next, to apply the first derivative test, we’d like to know the sign of at inputs near the critical numbers. Because the critical numbers are the only locations at which can change sign, it follows that the sign of the derivative is the same on each of the intervals created by the critical numbers: for instance, the sign of must be the same for every . What this means is that we can choose (carefully) where to evaluate the derivative in order to ascertain its sign on a given interval. Since and must have the same sign, we may as well evaluate at to figure out the sign of for . We create a first derivative sign chart (displayed below, with explanation following) to summarize the sign of on the relevant intervals, along with the corresponding behavior of .
Figure3.6.The first derivative sign chart for a function whose derivative is given by the formula .
To produce the first derivative sign chart in Figure 3.6, we start by marking the critical numbers and on the number line. We then identify the sign of each factor of at one selected point in each interval. The intervals in this example are ,, and ; we will choose ,, and for our selected points. The process with is laid out below:
For , we use the value to determine the sign of ,, and . We note that is positive regardless of the value of , is positive whenever it is nonzero — which is everywhere within the intervals of interest since we intentionally plucked out the zeros — and that is also positive at . Hence each of the three terms in is positive, and we indicate this by writing “” above the interval . Taking the product of three positive terms results in a positive value for , so we denote the sign of by a “” above the appropriate interval in the chart. Finally, since is positive on that interval, we know that is increasing, so we write “INC” to represent the behavior of .
In a similar fashion, we find that is positive (because and the other terms are also still positive) and is increasing on , and that is negative (because but the other terms are still positive) and is decreasing for .
Now we look for critical numbers at which changes sign. In this example, changes sign only at , from positive to negative, so has a relative maximum at . Although has a critical number at , since is increasing both before and after , has neither a minimum nor a maximum at .
Example3.7.
Suppose is a function that is continuous for every value of , and whose first derivative is . Further, assume that it is known that has a vertical asymptote at .
Determine all critical numbers of .
By developing a carefully labeled first derivative sign chart, decide whether has as a local maximum, local minimum, or neither at each critical number.
Does have a global maximum? Does have a global minimum? Justify your claims.
What is the value of ? What does the value of this limit tell you about the long-term behavior of ?
Sketch a possible graph of .
Hint.
For which is ?
Note that is positive for all .
Use your first derivative sign chart from (b).
Try expanding the numerator before evaluating the limit.
Think carefully about the information from the sign chart found in (b). Your answers to part (c) and (d) should also support your graph.
Answer.
or .
has a local maximum at and neither a max nor min at .
does not have a global minimum; it is unclear (at this point in our work) if increases without bound, so we can’t say for certain whether or not has a global maximum.
.
A possible graph of is the following.
Solution.
Since , we see that implies that or . Although makes undefined, we are told that has a vertical asymptote at . So is not in the domain of , and hence is technically not a critical number of . Nonetheless, we place on our first derivative sign chart since the vertical asymptote is a location at which may change sign.
The first derivative sign chart shows that:
for ,
for ,
for , and
for .
By the first derivative test, has a local maximum at and neither a max nor min at . As these are the only two critical numbers, these are the only two locations for possible extrema. (Note: although changes from decreasing to increasing at , this is due to a vertical asymptote, and does not have a minimum there.)
Because is decreasing as (where has a vertical asymptote), does not have a global minimum. For , is always increasing, which suggests that does not have a global maximum (though we do not know for sure that increases without bound; this is explored in part (d)).
We observe that
Since as , this tells us that increases without bound as .
From all of our work above, we know that has a local maximum at , a horizontal tangent line with neither a max nor min at , and a vertical asymptote at , plus and both increase without bound as . Thus, a possible graph of is the following.
Recall that the second derivative of a function tells us several important things about the behavior of the function itself. For instance, if is positive on an interval, then we know that on that interval is increasing and, consequently, that is concave up. Hence throughout that interval the tangent line to lies below the curve at every point. At a point where , the sign of the second derivative determines whether has a local minimum or local maximum at the critical number .
In Figure 3.8 above, we see the four possibilities for a function that has a critical number at which , provided is not zero on an interval including (except possibly at ). On either side of the critical number, can be either positive or negative, and hence can be either concave up or concave down. In the first two graphs, does not change concavity at and has either a local minimum or local maximum in those situations. In particular, if and , then is concave down at with a horizontal tangent line, so has a local maximum there. This fact, along with the corresponding statement for when is positive, is the substance of the second derivative test.
If is a critical number of a continuous function such that and , then has a relative maximum at if and only if , and has a relative minimum at if and only if .
In the event that , the second derivative test is inconclusive. That is, the test doesn’t provide us any information. This is because if , it is possible that has a local minimum, local maximum, or neither. 7
Consider the functions ,, and at the critical point .
Just as a first derivative sign chart reveals all of the increasing and decreasing behavior of a function, we can construct a second derivative sign chart that demonstrates all of the important information involving concavity.
Example3.9.
Let be a function whose first derivative is . Construct both first and second derivative sign charts for ; fully discuss where is increasing, decreasing, concave up, and concave down; identify all relative extreme values; and sketch a possible graph of .
Solution.
Since we know , we can find the critical numbers of by solving . Factoring, we observe that
,
so that are the three critical numbers of . The first derivative sign chart for is given below in Figure 3.10.
Figure3.10.The first derivative sign chart for when .
We see that is increasing on the intervals and , and is decreasing on and . By the first derivative test, this information tells us that has a local maximum at and a local minimum at . Although also has a critical number at , neither a maximum nor minimum occurs there since does not change sign at .
Next, we move on to investigate concavity. Differentiating , we see that . Since we are interested in knowing the intervals on which is positive and negative, we first find where . Observe that
.
This equation has solutions . Building a sign chart for in the exact same way we do for , we see the result shown below in Figure 3.11.
Figure3.11.The second derivative sign chart for when .
Therefore is concave down on the intervals and , and concave up on and .
Putting all of this information together, we now see a complete and accurate possible graph of in Figure 3.12.
Figure3.12.A possible graph of the function in Example 3.9.
The point is a local maximum, because is increasing prior to and decreasing after; similarly, the point is a local minimum. Note, too, that is concave down at and concave up at , which is consistent both with our second derivative sign chart and the second derivative test. At points and , concavity changes, as we saw in the results of the second derivative sign chart in Figure 3.11. Finally, at point , has a critical point with a horizontal tangent line, but neither a maximum nor a minimum occurs there, since is decreasing both before and after . It is also the case that concavity changes at .
While we completely understand where is increasing and decreasing, where is concave up and concave down, and where has relative extrema, we do not know any specific information about the -coordinates of points on the curve. For instance, while we know that has a local maximum at , we don’t know the value of that maximum because we do not know . Any vertical translation of our sketch of in Figure 3.12 would satisfy the given criteria for .
Let be a continuous function. If is a point in the domain of at which changes concavity, then we say that is an inflection point (or point of inflection) of .
Just as we look for locations where changes from increasing to decreasing at points where or is undefined, so too we find where or is undefined to see if there are points of inflection at these locations.
At this point in our study, it is important to remind ourselves of the big picture that derivatives help to paint: the sign of the first derivative tells us whether the function is increasing or decreasing, while the sign of the second derivative tells us how the function is increasing or decreasing.
Example3.13.
Suppose that is a function whose second derivative, , is given by the graph in Figure 3.14 below.
Figure3.14.The graph of .
Find the -coordinates of all points of inflection of .
Fully describe the concavity of by making an appropriate sign chart.
Suppose you are given that . Is there a local maximum, local minimum, or neither (for the function ) at this critical number of , or is it impossible to say? Why?
Assuming that is a polynomial (and that all important behavior of is seen in the graph above), what degree polynomial do you think is? Why?
Hint.
What must be true of at a point of inflection?
Use the given graph to decide where is positive and negative.
What does the second derivative test say?
Can you guess a formula for based on its graph?
Answer.
is an inflection point of .
is concave up for , concave down for , and concave down for .
has a local minimum at .
is a degree 5 polynomial.
Solution.
Based on the given graph of , the only point at which changes sign is , so this is the only inflection point of .
Note that for , for , and for . This tells us that is concave up for , concave down for , and concave down for .
Given that , we know that has a horizontal tangent line at this critical number. Additionally, the graph of shows that , so we infer that is concave up at -values near . The second derivative test allows us to conclude that has a local minimum at .
As seen in the given graph, since has a simple zero at and a repeated zero at , it appears that is a degree 3 polynomial. If so, then is a degree 4 polynomial, and is a degree 5 polynomial.
As we will see in more detail in the following section, derivatives also help us to understand families of functions that differ only by changing one or more parameters. For instance, we might be interested in understanding the behavior of all functions of the form where ,, and are parameters. Each parameter has considerable impact on how the graph appears.
Example3.15.
Consider the family of functions given by , where is an arbitrary positive real number.
Use a graphing utility to sketch the graph of for several different -values, including . What is the smallest value of at which you think you can see (just by looking at the graph) at least one inflection point on the graph of ?
Explain why the graph of has no inflection points if , but infinitely many inflection points if .
Explain why, no matter the value of , can only have finitely many critical numbers.
Hint.
Be sure to try some values between 1.5 and 2.
Treat as an arbitrary constant in computing and .
What is the largest value of ? How many times can intersect the line ?
Answer.
In the graph below, is given in dark blue, while is shown in light blue.
If , then the equation has no solution. Hence, whenever , or , it follows that the equation has no solutions , which means that is never zero (indeed, for these -values, is always positive so that is always concave up). On the other hand, if then , which guarantees that has infinitely many solutions due to the periodicity of the cosine function. At each such point, changes sign if and only if . (In the case where , the function has infinitely many zeros but is always non-negative.) Therefore has infinitely many inflection points whenever , and no inflection points otherwise.
To see why can only have a finite number of critical numbers regardless of the value of , consider the equation
,
which implies that . Since , we know that . Once is sufficiently large, we are guaranteed that , which means that for large values of , the graphs of and cannot intersect. Moreover, for relatively small values of , the functions and can only intersect finitely many times since only oscillates a finite number of times on a fixed interval. This is why can only have a finite number of critical numbers, regardless of the value of .
Solution.
In the graph below, is given in dark blue, while is shown in light blue.
Close inspection of the light blue graph reveals some subtle changes in concavity around . For values smaller than , it is very hard to visually detect any inflection points in .
Treating as an arbitrary constant, we first observe that . Again treating as a constant and differentiating, we find
.
We seek the values of at which and changes sign. Setting and rearranging the resulting equation, we now seek such that
,
or
.
Now, remember that is an arbitrary positive constant and recall that for all input values . If , then the equation has no solution. Hence, whenever , or , it follows that the equation has no solutions, which means that is never zero (indeed, for these -values, is always positive so that is always concave up). On the other hand, if then , which guarantees that has infinitely many solutions due to the periodicity of the cosine function. At each such point, changes sign if and only if . (In the case where , the function has infinitely many zeros but is always non-negative.) Therefore has infinitely many inflection points whenever , and no inflection points otherwise.
To see why can only have a finite number of critical numbers regardless of the value of , recall that and consider the equation
,
which then implies that . Since , we know that . Once is sufficiently large, we are guaranteed that , which means that for large values of , the graphs of and cannot intersect. Moreover, for relatively small values of , the functions and can only intersect finitely many times since only oscillates a finite number of times on a finite interval. This is why can only have a finite number of critical numbers, regardless of the value of .
The critical numbers of a continuous function are the values of for which or does not exist. These values are important because they identify horizontal tangent lines or corner points on the graph, which are the only possible locations at which a local maximum or local minimum can occur.
Given a differentiable function : whenever is positive, is increasing; whenever is negative, is decreasing. The first derivative test tells us that at any point where changes from increasing to decreasing, has a local maximum, while conversely at any point where changes from decreasing to increasing has a local minimum.
Given a twice differentiable function , if we have a horizontal tangent line at and is nonzero, the sign of tells us the concavity of and hence whether has a maximum or minimum at . In particular, if and , then is concave down at and has a local maximum there, while if and , then has a local minimum at . If both and , then the second derivative test does not tell us whether has a local extremum at or not.
The following shows graphs of three functions, A (in black), B (in blue), and C (in green). If these are the graphs of three functions ,, and , identify which is which.
Construct a first derivative sign chart for . Clearly identify all critical numbers of , where is increasing and decreasing, and where has local extrema.
On the right-hand axes, sketch an approximate graph of .
Construct a second derivative sign chart for . Clearly identify where is concave up and concave down, as well as all inflection points.
On the left-hand axes, sketch a possible graph of .
Construct a second derivative sign chart for and determine all inflection points of .
Suppose you also know that is a critical number of . Does have a local minimum, local maximum, or neither at ? Why?
If the point lies on the graph of and , find the equation of the tangent line to at the point where . Does the tangent line lie above the curve, below the curve, or neither at this value? Why?