The Second Derivative Test and Curve Sketching
Learning Objectives
- 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.
- Explain the relationship between a function and its first and second derivatives.
- State the second derivative test for local extrema.
- Analyze a function and its derivatives to draw its graph.
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)(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)(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 .

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)). 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 .

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.
Answer:
To determine concavity, we need to find the second derivative . The first derivative is , so the second derivative is . If the function changes concavity, it occurs either when or is undefined. Since is defined for all real numbers , we need only find where . Solving the equation , we see that is the only place where could change concavity. We now test points over the intervals and to determine the concavity of . The points and are test points for these intervals.
Interval | Test Point | Sign of at Test Point | Conclusion |
---|---|---|---|
is concave down | |||
is concave up. |
We conclude that is concave down over the interval and concave up over the interval . Since changes concavity at , the point is an inflection point. (Figure) confirms the analytical results.

For , find all intervals where is concave up and all intervals where is concave down.
Answer:
is concave up over the interval and concave down over the interval
We now summarize, in (Figure), the information that the first and second derivatives of a function provide about the graph of , and illustrate this information in (Figure).
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 |

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 a local extrema, it must occur at a critical point. However, a function need not have a 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)). Then, by Corollary 3, 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)). 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 .

Second Derivative Test
Suppose is continuous over an interval containing .
- If , then has a local minimum at .
- If , then has a local maximum at .
- If , then the test is inconclusive.
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 .
Using the Second Derivative Test
Use the second derivative to find the location of all local extrema for .
Answer:
To apply the second derivative test, we first need to find critical points where . The derivative is . Therefore, when .
To determine whether has a local extrema at any of these points, we need to evaluate the sign of at these points. The second derivative is
In the following table, we evaluate the second derivative at each of the critical points and use the second derivative test to determine whether has a local maximum or local minimum at any of these points.
Conclusion | ||
---|---|---|
Local maximum | ||
0 | 0 | Second derivative test is inconclusive |
Local minimum |
By the second derivative test, we conclude that has a local maximum at and has a local minimum at . The second derivative test is inconclusive at . To determine whether has a local extrema at , we apply the first derivative test. To evaluate the sign of for and , let and be the two test points. Since and , we conclude that is decreasing on both intervals and, therefore, does not have a local extrema at as shown in the following graph.

Consider the function . The points satisfy . Use the second derivative test to determine whether has a local maximum or local minimum at those points.
Answer:
has a local maximum at -2 and a local minimum at 3.
Hint
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. Next 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.
Guidelines for Drawing the Graph of a Function
We now have enough analytical tools to draw graphs of a wide variety of algebraic and transcendental functions. Before showing how to graph specific functions, let’s look at a general strategy to use when graphing any function.
Problem-Solving Strategy: Drawing the Graph of a Function
Given a function use the following steps to sketch a graph of :
- Determine the domain of the function.
- Locate the - and -intercepts.
- Evaluate and to determine the end behavior. If either of these limits is a finite number , then is a horizontal asymptote. If either of these limits is or , determine whether has an oblique asymptote. If is a rational function such that , where the degree of the numerator is greater than the degree of the denominator, then can be written as
,where the degree of is less than the degree of . The values of approach the values of as . If is a linear function, it is known as an oblique asymptote.
- Determine whether has any vertical asymptotes.
- Calculate . Find all critical points and determine the intervals where is increasing and where is decreasing. Determine whether has any local extrema.
- Calculate . Determine the intervals where is concave up and where is concave down. Use this information to determine whether has any inflection points. The second derivative can also be used as an alternate means to determine or verify that has a local extremum at a critical point.
Now let’s use this strategy to graph several different functions. We start by graphing a polynomial function.
Sketching a Graph of a Polynomial
Sketch a graph of .
Answer:
Step 1. Since is a polynomial, the domain is the set of all real numbers.
Step 2. When . Therefore, the -intercept is . To find the -intercepts, we need to solve the equation , which gives us the -intercepts and
Step 3. We need to evaluate the end behavior of . As , and . Therefore, . As , and . Therefore, . To get even more information about the end behavior of , we can multiply the factors of . When doing so, we see that
Since the leading term of is , we conclude that behaves like as .
Step 4. Since is a polynomial function, it does not have any vertical asymptotes.
Step 5. The first derivative of is
Therefore, has two critical points: . Divide the interval into the three smaller intervals: , , and . Then, choose test points , , and from these intervals and evaluate the sign of at each of these test points, as shown in the following table.
Interval | Test Point | Sign of Derivative | Conclusion |
---|---|---|---|
is increasing. | |||
is decreasing. | |||
is increasing. |
From the table, we see that has a local maximum at and a local minimum at . Evaluating at those two points, we find that the local maximum value is and the local minimum value is .
Step 6. The second derivative of is
The second derivative is zero at . Therefore, to determine the concavity of , divide the interval into the smaller intervals and , and choose test points and to determine the concavity of on each of these smaller intervals as shown in the following table.
Interval | Test Point | Sign of | Conclusion |
---|---|---|---|
is concave down. | |||
is concave up. |
We note that the information in the preceding table confirms the fact, found in step 5, that has a local maximum at and a local minimum at . In addition, the information found in step 5—namely, has a local maximum at and a local minimum at , and at those points—combined with the fact that changes sign only at confirms the results found in step 6 on the concavity of .
Combining this information, we arrive at the graph of shown in the following graph.

Sketch a graph of .
Answer:
Hint
is a fourth-degree polynomial.
Sketching a Rational Function
Sketch the graph of .
Answer:
Step 1. The function is defined as long as the denominator is not zero. Therefore, the domain is the set of all real numbers except .
Step 2. Find the intercepts. If , then , so 0 is an intercept. If , then , which implies . Therefore, is the only intercept.
Step 3. Evaluate the limits at infinity. Since is a rational function, divide the numerator and denominator by the highest power in the denominator: . We obtain
Therefore, has a horizontal asymptote of as and .
Step 4. To determine whether has any vertical asymptotes, first check to see whether the denominator has any zeroes. We find the denominator is zero when . To determine whether the lines or are vertical asymptotes of , evaluate and . By looking at each one-sided limit as , we see that
In addition, by looking at each one-sided limit as , we find that
Step 5. Calculate the first derivative:
Critical points occur at points where or is undefined. We see that when . The derivative is not undefined at any point in the domain of . However, are not in the domain of . Therefore, to determine where is increasing and where is decreasing, divide the interval into four smaller intervals: , , , and , and choose a test point in each interval to determine the sign of in each of these intervals. The values , , , and are good choices for test points as shown in the following table.
Interval | Test Point | Sign of | Conclusion |
---|---|---|---|
is decreasing. | |||
is decreasing. | |||
is increasing. | |||
is increasing. |
From this analysis, we conclude that has a local minimum at but no local maximum.
Step 6. Calculate the second derivative:
To determine the intervals where is concave up and where is concave down, we first need to find all points where or is undefined. Since the numerator for any , is never zero. Furthermore, is not undefined for any in the domain of . However, as discussed earlier, are not in the domain of . Therefore, to determine the concavity of , we divide the interval into the three smaller intervals , , and , and choose a test point in each of these intervals to evaluate the sign of in each of these intervals. The values , , and are possible test points as shown in the following table.
Interval | Test Point | Sign of | Conclusion |
---|---|---|---|
is concave down. | |||
is concave up. | |||
is concave down. |
Combining all this information, we arrive at the graph of shown below. Note that, although changes concavity at and , there are no inflection points at either of these places because is not continuous at or .

Sketch a graph of .
Answer:
Hint
A line is a horizontal asymptote of if the limit as or the limit as of is . A line is a vertical asymptote if at least one of the one-sided limits of as is or .
Sketching a Rational Function with an Oblique Asymptote
Sketch the graph of
Answer:
Step 1. The domain of is the set of all real numbers except .
Step 2. Find the intercepts. We can see that when , , so is the only intercept.
Step 3. Evaluate the limits at infinity. Since the degree of the numerator is one more than the degree of the denominator, must have an oblique asymptote. To find the oblique asymptote, use long division of polynomials to write
Since as , approaches the line as . The line is an oblique asymptote for .
Step 4. To check for vertical asymptotes, look at where the denominator is zero. Here the denominator is zero at . Looking at both one-sided limits as , we find
Therefore, is a vertical asymptote, and we have determined the behavior of as approaches 1 from the right and the left.
Step 5. Calculate the first derivative:
We have when . Therefore, and are critical points. Since is undefined at , we need to divide the interval into the smaller intervals , , , and , and choose a test point from each interval to evaluate the sign of in each of these smaller intervals. For example, let , , , and be the test points as shown in the following table.
Interval | Test Point | Sign of | Conclusion |
---|---|---|---|
is increasing. | |||
is decreasing. | |||
is decreasing. | |||
is increasing. |
From this table, we see that has a local maximum at and a local minimum at . The value of at the local maximum is and the value of at the local minimum is . Therefore, and are important points on the graph.
Step 6. Calculate the second derivative:
We see that is never zero or undefined for in the domain of . Since is undefined at , to check concavity we just divide the interval into the two smaller intervals and , and choose a test point from each interval to evaluate the sign of in each of these intervals. The values and are possible test points as shown in the following table.
Interval | Test Point | Sign of | Conclusion |
---|---|---|---|
is concave down. | |||
is concave up. |
From the information gathered, we arrive at the following graph for

Find the oblique asymptote for .
Answer:
Hint
Use long division of polynomials.
Sketching the Graph of a Function with a Cusp
Sketch a graph of .
Answer:
Step 1. Since the cube-root function is defined for all real numbers and , the domain of is all real numbers.
Step 2: To find the -intercept, evaluate . Since , the -intercept is . To find the -intercept, solve . The solution of this equation is , so the -intercept is .
Step 3: Since , the function continues to grow without bound as and .
Step 4: The function has no vertical asymptotes.
Step 5: To determine where is increasing or decreasing, calculate . We find
This function is not zero anywhere, but it is undefined when . Therefore, the only critical point is . Divide the interval into the smaller intervals and , and choose test points in each of these intervals to determine the sign of in each of these smaller intervals. Let and be the test points as shown in the following table.
Interval | Test Point | Sign of | Conclusion |
---|---|---|---|
is decreasing. | |||
is increasing. |
We conclude that has a local minimum at . Evaluating at , we find that the value of at the local minimum is zero. Note that is undefined, so to determine the behavior of the function at this critical point, we need to examine . Looking at the one-sided limits, we have
Therefore, has a cusp at .
Step 6: To determine concavity, we calculate the second derivative of :
We find that is defined for all , but is undefined when . Therefore, divide the interval into the smaller intervals and , and choose test points to evaluate the sign of in each of these intervals. As we did earlier, let and be test points as shown in the following table.
Interval | Test Point | Sign of | Conclusion |
---|---|---|---|
is concave down. | |||
is concave down. |
From this table, we conclude that is concave down everywhere. Combining all of this information, we arrive at the following graph for .

Consider the function . Determine the point on the graph where a cusp is located. Determine the end behavior of .
Answer:
The function has a cusp at : , . For end behavior, .
Hint
A function has a cusp at a point if exists, is undefined, one of the one-sided limits as of is , and the other one-sided limit is .
Key Concepts
- If over an interval , then is concave up over .
- If over an interval , then is concave down over .
- If and , then has a local minimum at .
- If and , then has a local maximum at .
- If and , then evaluate at a test point to the left of and a test point to the right of , to determine whether has a local extremum at .
- For a polynomial function , where , the end behavior is determined by the leading term . If , approaches or at each end.
- For a rational function , the end behavior is determined by the relationship between the degree of and the degree of . If the degree of is less than the degree of , the line is a horizontal asymptote for . If the degree of is equal to the degree of , then the line is a horizontal asymptote, where and are the leading coefficients of and , respectively. If the degree of is greater than the degree of , then approaches or at each end.
2. For the function , is both an inflection point and a local maximum/minimum?
Answer:
It is not a local maximum/minimum because does not change sign
3. For the function , is an inflection point?
4. Is it possible for a point to be both an inflection point and a local extrema of a twice differentiable function?
Answer:
No
5. Why do you need continuity for the first derivative test? Come up with an example.
6. Explain whether a concave-down function has to cross for some value of .
Answer:
False; for example, .
7. Explain whether a polynomial of degree 2 can have an inflection point.
For the following exercises, analyze the graphs of , then list all inflection points and intervals that are concave up and concave down.

Answer:
Concave up on all , no inflection points


Answer: Concave up on all , no inflection points


Answer:
Concave up for and , concave down for , inflection points at and
For the following exercises, draw a graph that satisfies the given specifications for the domain . The function does not have to be continuous or differentiable.
23. over over
24. over over for all
Answer:
Answers will vary
25. over , local maximum at , local minima at
26. There is a local maximum at , local minimum at , and the graph is neither concave up nor concave down.
Answer:
Answers will vary
27. There are local maxima at , the function is concave up for all , and the function remains positive for all .
For the following exercise, determine a. intervals where is concave up or concave down, and b. the inflection points of .
30.
Answer:
a. Concave up for , concave down for b. Inflection point at
For the following exercises, determine
- intervals where is increasing or decreasing,
- local minima and maxima of ,
- intervals where is concave up and concave down, and
- the inflection points of .
31.
32.
Answer:
a. Increasing over and , decreasing over b. Maximum at , minimum at c. Concave up for , concave down for d. Infection point at
33.
34.
Answer:
a. Increasing over and , decreasing over b. Minimum at c. Concave down for , concave up for d. Inflection point at
35.
36.
Answer:
a. Increasing over , decreasing over b. Minimum at c. Concave up for all d. No inflection points
37.
For the following exercises, determine
- intervals where is increasing or decreasing,
- local minima and maxima of ,
- intervals where is concave up and concave down, and
- the inflection points of . Sketch the curve, then use a calculator to compare your answer. If you cannot determine the exact answer analytically, use a calculator.
38. [T] over
Answer:
a. Increases over , decreases over and b. Minimum at , maximum at c. Concave up for , concave down for and d. Inflection points at
39. [T] over
40. [T] over
Answer:
a. Increasing for all b. No local minimum or maximum c. Concave up for , concave down for d. Inflection point at
41. [T]
42. [T]
Answer:
a. Increasing for all where defined b. No local minima or maxima c. Concave up for , concave down for d. No inflection points in domain
43. [T] over
44. over
Answer:
a. Increasing over , decreasing over b. Minimum at , maximum at c. Concave up for , concave down for d. Infection points at
45.
46.
Answer:
a. Increasing over , decreasing over b. Minimum at c. Concave up for , concave down for d. Inflection point at
47.
For the following exercises, examine the graphs. Identify where the vertical asymptotes are located.

Answer:


Answer:


Answer:
For the following functions , determine whether there is an asymptote at . Justify your answer without graphing on a calculator.
6.
7.
Answer:
Yes, there is a vertical asymptote
8.
9.
Answer:
Yes, there is a vertical asymptote
10.
For the following exercises, construct a function that has the given asymptotes.
11. and
Answer:
Answers will vary, for example:
12. and
13. and
Answer:
Answers will vary, for example:
14.
For the following exercises, graph the function on a graphing calculator on the window and estimate the horizontal asymptote or limit. Then, calculate the actual horizontal asymptote or limit.
15. [T]
Answer:
16. [T]
17. [T]
Answer:
18. [T]
19. [T]
Answer:
For the following exercises, draw a graph of the functions without using a calculator. Be sure to notice all important features of the graph: local maxima and minima, inflection points, and asymptotic behavior.
20.
21.
Answer:
22.
23.
Answer:
24.
25.
Answer:
26.
27. , on
Answer:
28.
29.
Answer:
30.
31.
Answer:
32. For to have an asymptote at then the polynomials and must have what relation?
33. For to have an asymptote at , then the polynomials and must have what relation?
Answer:
must have have as a factor, where has as a factor.
34. If has asymptotes at and , then has what asymptotes?
35. Both and have asymptotes at and . What is the most obvious difference between these two functions?
Answer:
and
36. True or false: Every ratio of polynomials has vertical asymptotes.
Glossary
- end behavior
- the behavior of a function as and
- horizontal asymptote
- if or , then is a horizontal asymptote of
- infinite limit at infinity
- a function that becomes arbitrarily large as becomes large
- limit at infinity
- the limiting value, if it exists, of a function as or
- oblique asymptote
- the line if approaches it as or
Key Concepts
- If is a critical point of and for and for , then has a local maximum at .
- If is a critical point of and for and for , then has a local minimum at .
- If over an interval , then is concave up over .
- If over an interval , then is concave down over .
- If and , then has a local minimum at .
- If and , then has a local maximum at .
- If and , then evaluate at a test point to the left of and a test point to the right of , to determine whether has a local extremum at .
Hint
Find where f′′(x)=0.