Learning Outcomes
- Explain how the sign of the first derivative affects the shape of a function’s graph
- State the first derivative test for critical points
- Use concavity and inflection points to explain how the sign of the second derivative affects the shape of a function’s graph
- Explain the concavity test for a function over an open interval
The First Derivative Test
Corollary 3 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.
Figure 1. Both functions are increasing over the interval . At each point , the derivative . Both functions are decreasing over the interval . At each point , the derivative .
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 a local extrema at a critical point. The critical points are candidates for local extrema only. In Figure 2, 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.

Figure 2. The function has four critical points: , and . The function has local maxima at and , and a local minimum at . The function does not have a local extremum at . The sign of changes at all local extrema.
Using Figure 2, 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.
First Derivative Test
Suppose that is a continuous function over an interval containing a critical point . If is differentiable over , except possibly at point , then satisfies one of the following descriptions:
- If changes sign from positive when [latex]x
c[/latex], then is a local maximum of . - If changes sign from negative when [latex]x
c[/latex], then is a local minimum of . - If has the same sign for [latex]x
c[/latex], then is neither a local maximum nor a local minimum of .
We can summarize the first derivative test as a strategy for locating local extrema.
Problem-Solving Strategy: Using the First Derivative Test
Consider a function that is continuous over an interval .
- Find all critical points of and divide the interval into smaller intervals using the critical points as endpoints.
- Analyze the sign of in each of the subintervals. If is continuous over a given subinterval (which is typically the case), then the sign of in that subinterval does not change and, therefore, can be determined by choosing an arbitrary test point in that subinterval and by evaluating the sign of at that test point. Use the sign analysis to determine whether is increasing or decreasing over that interval.
- Use the first derivative test and the results of step 2 to determine whether has a local maximum, a local minimum, or neither at each of the critical points.
Recall from Chapter 4.3 that when talking about local extrema, the value of the extremum is the y value and the location of the extremum is the x value.
Now let’s look at how to use this strategy to locate all local extrema for particular functions.
Example: Using the First Derivative Test to Find Local Extrema
Use the first derivative test to find the location of all local extrema for . Use a graphing utility to confirm your results.
Watch the following video to see the worked solution to Example: Using the First Derivative Test to Find Local Extrema.
Try It
Use the first derivative test to locate all local extrema for .
Example: Using the First Derivative Test
Use the first derivative test to find the location of all local extrema for . Use a graphing utility to confirm your results.
Try It
Use the first derivative test to find all local extrema for .
Try It
Try It
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 5(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 5(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.
Definition
Let be a function that is differentiable over an open interval . If is increasing over , we say is concave up over . If is decreasing over , we say is concave down over .
Figure 5. (a), (c) Since is increasing over the interval , we say is concave up over . (b), (d) Since is decreasing over the interval , we say is concave down over .
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 3, 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 concavity test.
Test for Concavity
Let be a function that is twice differentiable over an interval .
- If for all , then is concave up over .
- If for all , then is concave down over .
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 6). 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 .
Definition
If is continuous at and changes concavity at , the point is an inflection point of .
Figure 6. Since for , the function is concave up over the interval . Since for , the function is concave down over the interval . The point is an inflection point of .
Example: Testing for Concavity
For the function , determine all intervals where is concave up and all intervals where is concave down. List all inflection points for . Use a graphing utility to confirm your results.
Watch the following video to see the worked solution to Example: Testing for Concavity.
Try It
For , find all intervals where is concave up and all intervals where is concave down.
We now summarize, in the box below, the information that the first and second derivatives of a function provide about the graph of , and illustrate this information in Figure 8.
Sign of | Sign of | Is increasing or decreasing? | Concavity |
---|---|---|---|
Positive | Positive | Increasing | Concave up |
Positive | Negative | Increasing | Concave down |
Negative | Positive | Decreasing | Concave up |
Negative | Negative | Decreasing | Concave down |
Figure 8. Consider a twice-differentiable function over an open interval . If for all , the function is increasing over . If for all , the function is decreasing over . If for all , the function is concave up. If for all , the function is concave down on .
Candela Citations
- 4.5 Derivatives and the Shape of a Graph. Authored by: Ryan Melton. License: CC BY: Attribution
- Calculus Volume 1. Authored by: Gilbert Strang, Edwin (Jed) Herman. Provided by: OpenStax. Located at: https://openstax.org/details/books/calculus-volume-1. License: CC BY-NC-SA: Attribution-NonCommercial-ShareAlike. License Terms: Access for free at https://openstax.org/books/calculus-volume-1/pages/1-introduction