3.4: The Second Derivative Test
Learning Objectives
A student will be able to:
 Find intervals where a function is concave upward or downward.
 Apply the Second Derivative Test to determine concavity and sketch graphs.
Introduction
In this lesson we will discuss a property about the shapes of graphs called concavity, and introduce a method with which to study this phenomenon, the Second Derivative Test. This method will enable us to identify precisely the intervals where a function is either increasing or decreasing, and also help us to sketch the graph.
 Definition

A function \begin{align*}f\end{align*}
f is said to be concave upward on \begin{align*}[a, b]\end{align*}[a,b] contained in the domain of \begin{align*}f\end{align*}f if \begin{align*}f'\end{align*}f′ is an increasing function on \begin{align*}[a, b]\end{align*}[a,b] and concave downward on \begin{align*}[a, b]\end{align*}[a,b] if \begin{align*}f'\end{align*}f′ is a decreasing function on \begin{align*}[a, b].\end{align*}[a,b].  Here is an example that illustrates these properties.
Example 1:
Consider the function \begin{align*}f(x) = x^3  x\end{align*}
The function has zeros at \begin{align*}x = \pm 1, 0\end{align*}
 Definition

A point on a graph of a function \begin{align*}f\end{align*}
f where the concavity changes is called an inflection point.  The example above had only one inflection point. But we can easily come up with examples of functions where there is more than one point of inflection.
Example 2:
Consider the function \begin{align*}f(x) = x^4  3 x^3 + x  2.\end{align*}
We can see that the graph has two relative minimums, one relative maximum, and two inflection points (as indicated by arrows).
In general we can use the following two tests for concavity and determining where we have relative maximums, minimums, and inflection points.
Test for Concavity
Suppose that \begin{align*}I\end{align*}
 If \begin{align*}f''(x) > 0\end{align*} for all \begin{align*}x \in I,\end{align*} then the graph of \begin{align*}f\end{align*} is concave upward on \begin{align*}I.\end{align*}
 If \begin{align*}f''(x) < 0\end{align*} for all \begin{align*}x \in I,\end{align*} then the graph of \begin{align*}f\end{align*} is concave downward on \begin{align*}I.\end{align*}
A consequence of this concavity test is the following test to identify extreme values of \begin{align*}f.\end{align*}
Second Derivative Test for Extrema
Suppose that \begin{align*}f\end{align*} is a continuous function near \begin{align*}c\end{align*} and that \begin{align*}c\end{align*} is a critical value of \begin{align*}f.\end{align*} Then
 If \begin{align*}f''(c) > 0,\end{align*} then \begin{align*}f\end{align*} has a relative minimum at \begin{align*}x = c.\end{align*}
 If \begin{align*}f''(c) < 0,\end{align*} then \begin{align*}f\end{align*} has a relative maximum at \begin{align*}x = c.\end{align*}
 If \begin{align*}f''(c) = 0,\end{align*} then the test is inconclusive and \begin{align*}x = c\end{align*} may be a point of inflection.
Recall the graph \begin{align*}f(x) = x^3.\end{align*} We observed that \begin{align*}x = 0,\end{align*} and that there was neither a maximum nor minimum. The Second Derivative Test cautions us that this may be the case since at \begin{align*}f''(0) = 0\end{align*} at \begin{align*}x = 0.\end{align*}
So now we wish to use all that we have learned from the First and Second Derivative Tests to sketch graphs of functions. The following table provides a summary of the tests and can be a useful guide in sketching graphs.
Signs of first and second derivatives  Information from applying First and Second Derivative Tests  Shape of the graphs 

\begin{align*}f'(x) > 0\end{align*} \begin{align*}f''(x) > 0\end{align*} 
\begin{align*}f\end{align*} is increasing \begin{align*}f\end{align*} is concave upward 

\begin{align*}f'(x) > 0\end{align*} \begin{align*}f''(x) < 0\end{align*} 
\begin{align*}f\end{align*} is increasing \begin{align*}f\end{align*} is concave downward 

\begin{align*}f'(x) < 0\end{align*} \begin{align*}f''(x) > 0\end{align*} 
\begin{align*}f\end{align*} is decreasing \begin{align*}f\end{align*} is concave upward 

\begin{align*}f'(x) < 0\end{align*} \begin{align*}f''(x) < 0\end{align*} 
\begin{align*}f\end{align*} is decreasing \begin{align*}f\end{align*} is concave downward 
Lets’ look at an example where we can use both the First and Second Derivative Tests to find out information that will enable us to sketch the graph.
Example 3:
Let’s examine the function \begin{align*}f(x) = x^5  5x + 2.\end{align*}
1. Find the critical values for which \begin{align*}f'(c) = 0.\end{align*}
\begin{align*}f'(x) = 5x^4  5 = 0,\end{align*} or
\begin{align*}x^4  1 = 0\end{align*} at \begin{align*}x = \pm 1.\end{align*}
Note that \begin{align*}f''(x) = 20 x^3 = 0\end{align*} when \begin{align*}x = 0.\end{align*}
2. Apply the First and Second Derivative Tests to determine extrema and points of inflection.
We can note the signs of \begin{align*}f'\end{align*} and \begin{align*}f''\end{align*} in the intervals partioned by \begin{align*}x = \pm 1, 0.\end{align*}
Key intervals  \begin{align*}f'(x)\end{align*}  \begin{align*}f''(x)\end{align*}  Shape of graph 

\begin{align*}x < 1\end{align*}  \begin{align*}+\end{align*}  \begin{align*}\end{align*}  Increasing, concave down 
\begin{align*}1 < \times < 0\end{align*}  \begin{align*}\end{align*}  \begin{align*}\end{align*}  Decreasing, concave down 
\begin{align*}0 < \times < 1\end{align*}  \begin{align*}\end{align*}  \begin{align*}+\end{align*}  Decreasing, concave up 
\begin{align*}x > 1\end{align*}  \begin{align*}+\end{align*}  \begin{align*}+\end{align*}  Increasing, concave up 
Also note that \begin{align*}f'' (1) =  20 < 0.\end{align*} By the Second Derivative Test we have a relative maximum at \begin{align*}x = 1,\end{align*} or the point \begin{align*}(1, 6).\end{align*}
In addition, \begin{align*}f'' (1) = 20 > 0.\end{align*} By the Second Derivative Test we have a relative minimum at \begin{align*}x = 1,\end{align*} or the point \begin{align*}(1, 2).\end{align*} Now we can sketch the graph.
Lesson Summary
 We learned to identify intervals where a function is concave upward or downward.
 We applied the First and Second Derivative Tests to determine concavity and sketch graphs.
Multimedia Links
For a video presentation of the second derivative test to determine relative extrema (9.0), see Math Video Tutorials by James Sousa, The Second Derivative Test (8:41).
Review Questions
 Find all extrema using the Second Derivative Test. \begin{align*} f(x) =\frac{x^2} {4} + \frac{4} {x}\end{align*}
 Consider \begin{align*}f(x) = x^2 + ax + b,\end{align*} with \begin{align*}f(1) = 3.\end{align*}
 Determine \begin{align*}a\end{align*} and \begin{align*}b\end{align*} so that \begin{align*}x = 1\end{align*} is a critical value of the function \begin{align*}f.\end{align*}
 Is the point \begin{align*}(1, 3)\end{align*} a maximum, a minimum or neither?
In problems #3–6, find all extrema and inflection points. Sketch the graph.
 \begin{align*}f(x) = x^3 + x^2\end{align*}
 \begin{align*} f(x) = \frac{x^2 +3} {x}\end{align*}
 \begin{align*}f(x) = x^3  12x\end{align*}
 \begin{align*}f(x) = \frac{1} {4} x^4 + 2x^2\end{align*}
 Use your graphing calculator to examine the graph of \begin{align*}f(x) = x(x  1)^3\end{align*} (Hint: you will need to change the \begin{align*}y\end{align*} range in the viewing window)
 Discuss the concavity of the graph in the interval \begin{align*}(0, \frac{1} {2})\end{align*}.
 Use your calculator to find the minimum value of the function in the interval.
 True or False: \begin{align*}f(x) = x^4 + 4x^3\end{align*} has a relative minimum at \begin{align*}x = 2\end{align*} and a relative maximum at \begin{align*}x = 0\end{align*}?
 If possible, provide an example of a nonpolynomial function that has exactly one relative minimum.
 If possible, provide an example of a nonpolynomial function that is concave downward everywhere in its domain.
Review Answers
 There is a relative minimum at \begin{align*}x = 2;\end{align*} the relative minimum is located at \begin{align*}(2, 3).\end{align*}
 \begin{align*}f(1) = 3\end{align*} suggests that \begin{align*}a + b = 2\end{align*} and \begin{align*}f'(1) = 0 = 2 + a;\end{align*} solving this system we have that \begin{align*}a =  2,\end{align*} \begin{align*}b = 4\end{align*}; the point \begin{align*}(1, 3)\end{align*} is an absolute minimum of \begin{align*}f.\end{align*}
 Relative maximum at \begin{align*}x=\frac{2} {3}\end{align*}, relative minimum at \begin{align*}x = 0\end{align*}; the relative maximum is located at \begin{align*}(\frac{2} {3}, 0.15)\end{align*}; the relative minimum is located at \begin{align*}(0, 0).\end{align*} There is a point of inflection at \begin{align*}(\frac{1} {3},0.07)\end{align*}.
 Relative maximum at \begin{align*}x = \sqrt{3}\end{align*}, located at \begin{align*}(\sqrt{3}, 2\sqrt{3})\end{align*}; relative minimum at \begin{align*}x = {\sqrt{3}}\end{align*}, located at \begin{align*}(\sqrt{3}, 2{\sqrt{3}})\end{align*}. There are no inflection points.
 Relative maximum at \begin{align*}x = 2,\end{align*} relative minimum at \begin{align*}x = 2\end{align*}; the relative maximum is located at \begin{align*}(2, 16)\end{align*}; the relative minimum is located at \begin{align*}(2, 16).\end{align*} There is a point of inflection at \begin{align*}(0, 0).\end{align*}
 Relative maximums at \begin{align*}x = \pm 2,\end{align*} relative minimum at \begin{align*}x = 0\end{align*}; the relative maximums are located at \begin{align*}(2, 4)\end{align*} and \begin{align*}(2, 4)\end{align*}; the relative minimum is located at \begin{align*}(0, 0).\end{align*} There are two inflection points, located at \begin{align*}( \frac{2 \sqrt{3}} {3}, \frac{20} {9})\end{align*} and \begin{align*}(\frac{2 \sqrt{3}} {3}, \frac{20} {9}).\end{align*}
 The graph is concave up in the interval;
 There is a relative minimum at \begin{align*}(0.25, 0.10)\end{align*}
 False: there are inflection points at \begin{align*}x = 0\end{align*} and \begin{align*}x = 2\end{align*}. There is a relative minimum at \begin{align*}x = 3.\end{align*}
 \begin{align*}f(x) = x^2 + (\frac{1} {x  1})\end{align*}
 \begin{align*}f(x) = {\sqrt{x}}\end{align*} on \begin{align*}(0, + \infty)\end{align*} Also, \begin{align*}f(x) =  \frac{1} {x^2}\end{align*}