Earlier in this chapter we stated that if a function has a local extremum at a point then must be a critical point of However, a function is not guaranteed to have a local extremum at a critical point. For example, has a critical point at since is zero at but does not have a local extremum at Using the results from the previous section, we are now able to determine whether a critical point of a function actually corresponds to a local extreme value. In this section, we also see how the second derivative provides information about the shape of a graph by describing whether the graph of a function curves upward or curves downward.
The First Derivative Test
Corollary of the Mean Value Theorem showed that if the derivative of a function is positive over an interval then the function is increasing over On the other hand, if the derivative of the function is negative over an interval then the function is decreasing over as shown in the following figure.

A continuous function has a local maximum at point if and only if switches from increasing to decreasing at point Similarly, has a local minimum at if and only if switches from decreasing to increasing at If is a continuous function over an interval containing and differentiable over except possibly at the only way can switch from increasing to decreasing (or vice versa) at point is if changes sign as increases through If is differentiable at the only way that can change sign as increases through is if Therefore, for a function that is continuous over an interval containing and differentiable over except possibly at the only way can switch from increasing to decreasing (or vice versa) is if or is undefined. Consequently, to locate local extrema for a function we look for points in the domain of such that or is undefined. Recall that such points are called critical points of
Note that need not have local extrema at a critical point. The critical points are candidates for local extrema only. In Figure 4.31, we show that if a continuous function has a local extremum, it must occur at a critical point, but a function may not have a local extremum at a critical point. We show that if has a local extremum at a critical point, then the sign of switches as increases through that point.

Using Figure 4.31, we summarize the main results regarding local extrema.
- If a continuous function has a local extremum, it must occur at a critical point
- The function has a local extremum at the critical point if and only if the derivative switches sign as increases through
- Therefore, to test whether a function has a local extremum at a critical point we must determine the sign of to the left and right of
This result is known as the first derivative test.
We can summarize the first derivative test as a strategy for locating local extrema.
Now let’s look at how to use this strategy to locate all local extrema for particular functions.
Concavity and Points of Inflection
We now know how to determine where a function is increasing or decreasing. However, there is another issue to consider regarding the shape of the graph of a function. If the graph curves, does it curve upward or curve downward? This notion is called the concavity of the function.
Figure 4.34(a) shows a function with a graph that curves upward. As increases, the slope of the tangent line increases. Thus, since the derivative increases as increases, is an increasing function. We say this function is concave up. Figure 4.34(b) shows a function that curves downward. As increases, the slope of the tangent line decreases. Since the derivative decreases as increases, is a decreasing function. We say this function is concave down.

In general, without having the graph of a function how can we determine its concavity? By definition, a function is concave up if is increasing. From Corollary we know that if is a differentiable function, then is increasing if its derivative Therefore, a function that is twice differentiable is concave up when Similarly, a function is concave down if is decreasing. We know that a differentiable function is decreasing if its derivative Therefore, a twice-differentiable function is concave down when Applying this logic is known as the .
We conclude that we can determine the concavity of a function by looking at the second derivative of In addition, we observe that a function can switch concavity (Figure 4.35). However, a continuous function can switch concavity only at a point if or is undefined. Consequently, to determine the intervals where a function is concave up and concave down, we look for those values of where or is undefined. When we have determined these points, we divide the domain of into smaller intervals and determine the sign of over each of these smaller intervals. If changes sign as we pass through a point then changes concavity. It is important to remember that a function may not change concavity at a point even if or is undefined. If, however, does change concavity at a point and is continuous at we say the point is an inflection point of

We now summarize, in Table 4.1, the information that the first and second derivatives of a function provide about the graph of and illustrate this information in Figure 4.37.
| Sign of | Sign of | Is increasing or decreasing? | Concavity |
| Positive | Positive | Increasing | Concave up |
| Positive | Negative | Increasing |

The Second Derivative Test
The first derivative test provides an analytical tool for finding local extrema, but the second derivative can also be used to locate extreme values. Using the second derivative can sometimes be a simpler method than using the first derivative.
We know that if a continuous function has local extrema, it must occur at a critical point. However, a function need not have local extrema at a critical point. Here we examine how the second derivative test can be used to determine whether a function has a local extremum at a critical point. Let be a twice-differentiable function such that and is continuous over an open interval containing Suppose Since is continuous over for all (Figure 4.38). Then, by Corollary is a decreasing function over Since we conclude that for all if and if Therefore, by the first derivative test, has a local maximum at On the other hand, suppose there exists a point such that but Since is continuous over an open interval containing then for all (Figure 4.38). Then, by Corollary is an increasing function over Since we conclude that for all if and if Therefore, by the first derivative test, has a local minimum at

Note that for case iii. when then may have a local maximum, local minimum, or neither at For example, the functions and all have critical points at In each case, the second derivative is zero at However, the function has a local minimum at whereas the function has a local maximum at and the function does not have a local extremum at
Let’s now look at how to use the second derivative test to determine whether has a local maximum or local minimum at a critical point where
We have now developed the tools we need to determine where a function is increasing and decreasing, as well as acquired an understanding of the basic shape of the graph. In the next section we discuss what happens to a function as At that point, we have enough tools to provide accurate graphs of a large variety of functions.
Key Concepts
- If is a critical point of and for and for then has a local maximum at



