We've updated our
Privacy Policy effective December 15. Please read our updated Privacy Policy and tap

Study Guides > Calculus Volume 1

Derivatives and the Shape of a Graph

Learning Objectives

  • 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.
  • Explain the relationship between a function and its first and second derivatives.
  • State the second derivative test for local extrema.

Earlier in this chapter we stated that if a function ff has a local extremum at a point c,c, then cc must be a critical point of f.f. However, a function is not guaranteed to have a local extremum at a critical point. For example, f(x)=x3f\left(x\right)={x}^{3} has a critical point at x=0x=0 since f(x)=3x2f\prime \left(x\right)=3{x}^{2} is zero at x=0,x=0, but ff does not have a local extremum at x=0.x=0. 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 33 of the Mean Value Theorem showed that if the derivative of a function is positive over an interval II then the function is increasing over I.I. On the other hand, if the derivative of the function is negative over an interval I,I, then the function is decreasing over II as shown in the following figure.

Both functions are increasing over the interval (a,b).\left(a,b\right). At each point x,x, the derivative f(x)>0.f\prime \left(x\right)>0. Both functions are decreasing over the interval (a,b).\left(a,b\right). At each point x,x, the derivative f(x)<0.f\prime \left(x\right)<0.
This figure is broken into four figures labeled a, b, c, and d. Figure a shows a function increasing convexly from (a, f(a)) to (b, f(b)). At two points the derivative is taken and it is noted that at both f’ > 0. In other words, f is increasing. Figure b shows a function increasing concavely from (a, f(a)) to (b, f(b)). At two points the derivative is taken and it is noted that at both f’ > 0. In other words, f is increasing. Figure c shows a function decreasing concavely from (a, f(a)) to (b, f(b)). At two points the derivative is taken and it is noted that at both f’ < 0. In other words, f is decreasing. Figure d shows a function decreasing convexly from (a, f(a)) to (b, f(b)). At two points the derivative is taken and it is noted that at both f’ < 0. In other words, f is decreasing.

A continuous function ff has a local maximum at point cc if and only if ff switches from increasing to decreasing at point c.c. Similarly, ff has a local minimum at cc if and only if ff switches from decreasing to increasing at c.c. If ff is a continuous function over an interval II containing cc and differentiable over I,I, except possibly at c,c, the only way ff can switch from increasing to decreasing (or vice versa) at point cc is if f{f}^{\prime } changes sign as xx increases through c.c. If ff is differentiable at c,c, the only way that f.{f}^{\prime }. can change sign as xx increases through cc is if f(c)=0.{f}^{\prime }\left(c\right)=0. Therefore, for a function ff that is continuous over an interval II containing cc and differentiable over I,I, except possibly at c,c, the only way ff can switch from increasing to decreasing (or vice versa) is if f(c)=0f\prime \left(c\right)=0 or f(c){f}^{\prime }\left(c\right) is undefined. Consequently, to locate local extrema for a function f,f, we look for points cc in the domain of ff such that f(c)=0f\prime \left(c\right)=0 or f(c){f}^{\prime }\left(c\right) is undefined. Recall that such points are called critical points of f.f.

Note that ff need not have a local extrema at a critical point. The critical points are candidates for local extrema only. In [link], we show that if a continuous function ff 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 ff has a local extremum at a critical point, then the sign of f{f}^{\prime } switches as xx increases through that point.

The function ff has four critical points: a,b,c,andd.a,b,c,\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}d. The function ff has local maxima at aa and d,d, and a local minimum at b.b. The function ff does not have a local extremum at c.c. The sign of ff\prime changes at all local extrema.
A function f(x) is graphed. It starts in the second quadrant and increases to x = a, which is too sharp and hence f’(a) is undefined. In this section f’ > 0. Then, f decreases from x = a to x = b (so f’ < 0 here), before increasing at x = b. It is noted that f’(b) = 0. While increasing from x = b to x = c, f’ > 0. The function has an inversion point at c, and it is marked f’(c) = 0. The function increases some more to d (so f’ > 0), which is the global maximum. It is marked that f’(d) = 0. Then the function decreases and it is marked that f’ > 0.

Using [link], we summarize the main results regarding local extrema.

  • If a continuous function ff has a local extremum, it must occur at a critical point c.c.
  • The function has a local extremum at the critical point cc if and only if the derivative f{f}^{\prime } switches sign as xx increases through c.c.
  • Therefore, to test whether a function has a local extremum at a critical point c,c, we must determine the sign of f(x){f}^{\prime }\left(x\right) to the left and right of c.c.

This result is known as the first derivative test.

First Derivative Test

Suppose that ff is a continuous function over an interval II containing a critical point c.c. If ff is differentiable over I,I, except possibly at point c,c, then f(c)f\left(c\right) satisfies one of the following descriptions:

  1. If f{f}^{\prime } changes sign from positive when x<cx<c to negative when x>c,x>c, then f(c)f\left(c\right) is a local maximum of f.f.
  2. If f{f}^{\prime } changes sign from negative when x<cx<c to positive when x>c,x>c, then f(c)f\left(c\right) is a local minimum of f.f.
  3. If ff\prime has the same sign for x<cx<c and x>c,x>c, then f(c)f\left(c\right) is neither a local maximum nor a local minimum of f.f.

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 ff that is continuous over an interval I.I.

  1. Find all critical points of ff and divide the interval II into smaller intervals using the critical points as endpoints.
  2. Analyze the sign of ff\prime in each of the subintervals. If ff\prime is continuous over a given subinterval (which is typically the case), then the sign of ff\prime in that subinterval does not change and, therefore, can be determined by choosing an arbitrary test point xx in that subinterval and by evaluating the sign of ff\prime at that test point. Use the sign analysis to determine whether ff is increasing or decreasing over that interval.
  3. Use [link] and the results of step 22 to determine whether ff has a local maximum, a local minimum, or neither at each of the critical points.

Now let’s look at how to use this strategy to locate all local extrema for particular functions.

Using the First Derivative Test to Find Local Extrema

Use the first derivative test to find the location of all local extrema for f(x)=x33x29x1.f\left(x\right)={x}^{3}-3{x}^{2}-9x-1. Use a graphing utility to confirm your results.

Step 1. The derivative is f(x)=3x26x9.{f}^{\prime }\left(x\right)=3{x}^{2}-6x-9. To find the critical points, we need to find where f(x)=0.{f}^{\prime }\left(x\right)=0. Factoring the polynomial, we conclude that the critical points must satisfy

3(x22x3)=3(x3)(x+1)=0.3\left({x}^{2}-2x-3\right)=3\left(x-3\right)\left(x+1\right)=0.

Therefore, the critical points are x=3,1.x=3,-1. Now divide the interval (,)\left(\text{−}\infty ,\infty \right) into the smaller intervals (,1),(1,3)and(3,).\left(\text{−}\infty ,-1\right),\left(-1,3\right)\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}\left(3,\infty \right).

Step 2. Since ff\prime is a continuous function, to determine the sign of f(x){f}^{\prime }\left(x\right) over each subinterval, it suffices to choose a point over each of the intervals (,1),(1,3)and(3,)\left(\text{−}\infty ,-1\right),\left(-1,3\right)\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}\left(3,\infty \right) and determine the sign of f{f}^{\prime } at each of these points. For example, let’s choose x=2,x=0,andx=4x=-2,x=0,\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}x=4 as test points.

IntervalTest PointSign of f(x)=3(x3)(x+1){f}^{\prime }\left(x\right)=3\left(x-3\right)\left(x+1\right) at Test PointConclusion
(,1)\left(\text{−}\infty ,-1\right)x=2x=-2(+)()()=+\left(\text{+}\right)\left(\text{−}\right)\left(\text{−}\right)=+ff is increasing.
(1,3)\left(-1,3\right)x=0x=0(+)()(+)=\left(\text{+}\right)\left(\text{−}\right)\left(\text{+}\right)=\text{−}ff is decreasing.
(3,)\left(3,\infty \right)x=4x=4(+)(+)(+)=+\left(\text{+}\right)\left(\text{+}\right)\left(\text{+}\right)=+ff is increasing.

Step 3. Since f{f}^{\prime } switches sign from positive to negative as xx increases through 1,f1,f has a local maximum at x=1.x=-1. Since f{f}^{\prime } switches sign from negative to positive as xx increases through 3,f3,f has a local minimum at x=3.x=3. These analytical results agree with the following graph.

The function ff has a maximum at x=1x=-1 and a minimum at x=3x=3
The function f(x) = x3 – 3x2 – 9x – 1 is graphed. It has a maximum at x = −1 and a minimum at x = 3. The function is increasing before x = −1, decreasing until x = 3, and then increasing after that.

Use the first derivative test to locate all local extrema for f(x)=x3+32x2+18x.f\left(x\right)=\text{−}{x}^{3}+\frac{3}{2}{x}^{2}+18x.

ff has a local minimum at 2-2 and a local maximum at 3.3.

Hint

Find all critical points of ff and determine the signs of f(x){f}^{\prime }\left(x\right) over particular intervals determined by the critical points.

Using the First Derivative Test

Use the first derivative test to find the location of all local extrema for f(x)=5x1/3x5/3.f\left(x\right)=5{x}^{1\text{/}3}-{x}^{5\text{/}3}. Use a graphing utility to confirm your results.

Step 1. The derivative is

f(x)=53x2/353x2/3=53x2/35x2/33=55x4/33x2/3=5(1x4/3)3x2/3.{f}^{\prime }\left(x\right)=\frac{5}{3}{x}^{-2\text{/}3}-\frac{5}{3}{x}^{2\text{/}3}=\frac{5}{3{x}^{2\text{/}3}}-\frac{5{x}^{2\text{/}3}}{3}=\frac{5-5{x}^{4\text{/}3}}{3{x}^{2\text{/}3}}=\frac{5\left(1-{x}^{4\text{/}3}\right)}{3{x}^{2\text{/}3}}.

The derivative f(x)=0{f}^{\prime }\left(x\right)=0 when 1x4/3=0.1-{x}^{4\text{/}3}=0. Therefore, f(x)=0{f}^{\prime }\left(x\right)=0 at x=±1.x=\text{±}1. The derivative f(x){f}^{\prime }\left(x\right) is undefined at x=0.x=0. Therefore, we have three critical points: x=0,x=0, x=1,x=1, and x=1.x=-1. Consequently, divide the interval (,)\left(\text{−}\infty ,\infty \right) into the smaller intervals (,1),(1,0),(0,1),\left(\text{−}\infty ,-1\right),\left(-1,0\right),\left(0,1\right), and (1,).\left(1,\infty \right).

Step 2: Since f{f}^{\prime } is continuous over each subinterval, it suffices to choose a test point xx in each of the intervals from step 11 and determine the sign of f{f}^{\prime } at each of these points. The points x=2,x=12,x=12,andx=2x=-2,x=-\frac{1}{2},x=\frac{1}{2},\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}x=2 are test points for these intervals.

IntervalTest PointSign of f(x)=5(1x4/3)3x2/3{f}^{\prime }\left(x\right)=\frac{5\left(1-{x}^{4\text{/}3}\right)}{3{x}^{2\text{/}3}} at Test PointConclusion
(,1)\left(\text{−}\infty ,-1\right)x=2x=-2(+)()+=\frac{\left(\text{+}\right)\left(\text{−}\right)}{+}=\text{−}ff is decreasing.
(1,0)\left(-1,0\right)x=12x=-\frac{1}{2}(+)(+)+=+\frac{\left(\text{+}\right)\left(\text{+}\right)}{+}=+ff is increasing.
(0,1)\left(0,1\right)x=12x=\frac{1}{2}(+)(+)+=+\frac{\left(\text{+}\right)\left(\text{+}\right)}{+}=+ff is increasing.
(1,)\left(1,\infty \right)x=2x=2(+)()+=\frac{\left(\text{+}\right)\left(\text{−}\right)}{+}=\text{−}ff is decreasing.

Step 3: Since ff is decreasing over the interval (,1)\left(\text{−}\infty ,-1\right) and increasing over the interval (1,0),\left(-1,0\right), ff has a local minimum at x=1.x=-1. Since ff is increasing over the interval (1,0)\left(-1,0\right) and the interval (0,1),\left(0,1\right), ff does not have a local extremum at x=0.x=0. Since ff is increasing over the interval (0,1)\left(0,1\right) and decreasing over the interval (1,),f\left(1,\infty \right),f has a local maximum at x=1.x=1. The analytical results agree with the following graph.

The function f has a local minimum at x=1x=-1 and a local maximum at x=1.x=1.
The function f(x) = 5x1/3 – x5/3 is graphed. It decreases to its local minimum at x = −1, increases to x = 1, and then decreases after that.

Use the first derivative test to find all local extrema for f(x)=x13.f\left(x\right)=\sqrt[3]{x-1}.

ff has no local extrema because f{f}^{\prime } does not change sign at x=1.x=1.

Hint

The only critical point of ff is x=1.x=1.

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.

[link](a) shows a function ff with a graph that curves upward. As xx increases, the slope of the tangent line increases. Thus, since the derivative increases as xx increases, f{f}^{\prime } is an increasing function. We say this function ff is concave up. [link](b) shows a function ff that curves downward. As xx increases, the slope of the tangent line decreases. Since the derivative decreases as xx increases, f{f}^{\prime } is a decreasing function. We say this function ff is concave down.

Definition

Let ff be a function that is differentiable over an open interval I.I. If f{f}^{\prime } is increasing over I,I, we say ff is concave up over I.I. If f{f}^{\prime } is decreasing over I,I, we say ff is concave down over I.I.

(a), (c) Since ff\prime is increasing over the interval (a,b),\left(a,b\right), we say ff is concave up over (a,b).\left(a,b\right). (b), (d) Since ff\prime is decreasing over the interval (a,b),\left(a,b\right), we say ff is concave down over (a,b).\left(a,b\right).
This figure is broken into four figures labeled a, b, c, and d. Figure a shows a function increasing convexly from (a, f(a)) to (b, f(b)). At two points the derivative is taken and both are increasing, but the one taken further to the right is increasing more. It is noted that f’ is increasing and f is concave up. Figure b shows a function increasing concavely from (a, f(a)) to (b, f(b)). At two points the derivative is taken and both are increasing, but the one taken further to the right is increasing less. It is noted that f’ is decreasing and f is concave down. Figure c shows a function decreasing concavely from (a, f(a)) to (b, f(b)). At two points the derivative is taken and both are decreasing, but the one taken further to the right is decreasing less. It is noted that f’ is increasing and f is concave up. Figure d shows a function decreasing convexly from (a, f(a)) to (b, f(b)). At two points the derivative is taken and both are decreasing, but the one taken further to the right is decreasing more. It is noted that f’ is decreasing and f is concave down.

In general, without having the graph of a function f,f, how can we determine its concavity? By definition, a function ff is concave up if f{f}^{\prime } is increasing. From Corollary 3,3, we know that if f{f}^{\prime } is a differentiable function, then f{f}^{\prime } is increasing if its derivative f(x)>0.f\text{″}\left(x\right)>0. Therefore, a function ff that is twice differentiable is concave up when f(x)>0.f\text{″}\left(x\right)>0. Similarly, a function ff is concave down if f{f}^{\prime } is decreasing. We know that a differentiable function f{f}^{\prime } is decreasing if its derivative f(x)<0.f\text{″}\left(x\right)<0. Therefore, a twice-differentiable function ff is concave down when f(x)<0.f\text{″}\left(x\right)<0. Applying this logic is known as the concavity test.

Test for Concavity

Let ff be a function that is twice differentiable over an interval I.I.

  1. If f(x)>0f\text{″}\left(x\right)>0 for all xI,x\in I, then ff is concave up over I.I.
  2. If f(x)<0f\text{″}\left(x\right)<0 for all xI,x\in I, then ff is concave down over I.I.

We conclude that we can determine the concavity of a function ff by looking at the second derivative of f.f. In addition, we observe that a function ff can switch concavity ([link]). However, a continuous function can switch concavity only at a point xx if f(x)=0f\text{″}\left(x\right)=0 or f(x)f\text{″}\left(x\right) is undefined. Consequently, to determine the intervals where a function ff is concave up and concave down, we look for those values of xx where f(x)=0f\text{″}\left(x\right)=0 or f(x)f\text{″}\left(x\right) is undefined. When we have determined these points, we divide the domain of ff into smaller intervals and determine the sign of ff\text{″} over each of these smaller intervals. If ff\text{″} changes sign as we pass through a point x,x, then ff changes concavity. It is important to remember that a function ff may not change concavity at a point xx even if f(x)=0f\text{″}\left(x\right)=0 or f(x)f\text{″}\left(x\right) is undefined. If, however, ff does change concavity at a point aa and ff is continuous at a,a, we say the point (a,f(a))\left(a,f\left(a\right)\right) is an inflection point of f.f.

Definition

If ff is continuous at aa and ff changes concavity at a,a, the point (a,f(a))\left(a,f\left(a\right)\right) is an inflection point of f.f.

Since f(x)>0f\text{″}\left(x\right)>0 for x<a,x<a, the function ff is concave up over the interval (,a).\left(\text{−}\infty ,a\right). Since f(x)<0f\text{″}\left(x\right)<0 for x>a,x>a, the function ff is concave down over the interval (a,).\left(a,\infty \right). The point (a,f(a))\left(a,f\left(a\right)\right) is an inflection point of f.f.
A sinusoidal function is shown that has been shifted into the first quadrant. The function starts decreasing, so f’ < 0 and f’’ > 0. The function reaches the local minimum and starts increasing, so f’ > 0 and f’’ > 0. It is noted that the slope is increasing for these two intervals. The function then reaches an inflection point (a, f(a)) and from here the slop is decreasing even though the function continues to increase, so f’ > 0 and f’’ < 0. The function reaches the maximum and then starts decreasing, so f’ < 0 and f’’ < 0.
Testing for Concavity

For the function f(x)=x36x2+9x+30,f\left(x\right)={x}^{3}-6{x}^{2}+9x+30, determine all intervals where ff is concave up and all intervals where ff is concave down. List all inflection points for f.f. Use a graphing utility to confirm your results.

To determine concavity, we need to find the second derivative f(x).f\text{″}\left(x\right). The first derivative is f(x)=3x212x+9,f\prime \left(x\right)=3{x}^{2}-12x+9, so the second derivative is f(x)=6x12.f\text{″}\left(x\right)=6x-12. If the function changes concavity, it occurs either when f(x)=0f\text{″}\left(x\right)=0 or f(x)f\text{″}\left(x\right) is undefined. Since ff\text{″} is defined for all real numbers x,x, we need only find where f(x)=0.f\text{″}\left(x\right)=0. Solving the equation 6x12=0,6x-12=0, we see that x=2x=2 is the only place where ff could change concavity. We now test points over the intervals (,2)\left(\text{−}\infty ,2\right) and (2,)\left(2,\infty \right) to determine the concavity of f.f. The points x=0x=0 and x=3x=3 are test points for these intervals.

IntervalTest PointSign of f(x)=6x12f\text{″}\left(x\right)=6x-12 at Test PointConclusion
(,2)\left(\text{−}\infty ,2\right)x=0x=0-ff is concave down
(2,)\left(2,\infty \right)x=3x=3++ff is concave up.

We conclude that ff is concave down over the interval (,2)\left(\text{−}\infty ,2\right) and concave up over the interval (2,).\left(2,\infty \right). Since ff changes concavity at x=2,x=2, the point (2,f(2))=(2,32)\left(2,f\left(2\right)\right)=\left(2,32\right) is an inflection point. [link] confirms the analytical results.

The given function has a point of inflection at (2,32)\left(2,32\right) where the graph changes concavity.
The function f(x) = x3 – 6x2 + 9x + 30 is graphed. The inflection point (2, 32) is marked, and it is roughly equidistant from the two local extrema.

For f(x)=x3+32x2+18x,f\left(x\right)=\text{−}{x}^{3}+\frac{3}{2}{x}^{2}+18x, find all intervals where ff is concave up and all intervals where ff is concave down.

ff is concave up over the interval (,12)\left(\text{−}\infty ,\frac{1}{2}\right) and concave down over the interval (12,)\left(\frac{1}{2},\infty \right)

Hint

Find where f(x)=0.f\text{″}\left(x\right)=0.

We now summarize, in [link], the information that the first and second derivatives of a function ff provide about the graph of f,f, and illustrate this information in [link].

What Derivatives Tell Us about Graphs
Sign of ff\prime Sign of ff\text{″}Is ff increasing or decreasing?Concavity
PositivePositiveIncreasingConcave up
PositiveNegativeIncreasingConcave down
NegativePositiveDecreasingConcave up
NegativeNegativeDecreasingConcave down
Consider a twice-differentiable function ff over an open interval I.I. If f(x)>0f\prime \left(x\right)>0 for all xI,x\in I, the function is increasing over I.I. If f(x)<0f\prime \left(x\right)<0 for all xI,x\in I, the function is decreasing over I.I. If f(x)>0f\text{″}\left(x\right)>0 for all xI,x\in I, the function is concave up. If f(x)<0f\text{″}\left(x\right)<0 for all xI,x\in I, the function is concave down on I.I.
A function is graphed in the first quadrant. It is broken up into four sections, with the breaks coming at the local minimum, inflection point, and local maximum, respectively. The first section is decreasing and concave up; here, f’ < 0 and f’’ > 0. The second section is increasing and concave up; here, f’ > 0 and f’’ > 0. The third section is increasing and concave down; here, f’ > 0 and f’’ < 0. The fourth section is increasing and concave down; here, f’ < 0 and f’’ < 0.

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 ff be a twice-differentiable function such that f(a)=0{f}^{\prime }\left(a\right)=0 and ff\text{″} is continuous over an open interval II containing a.a. Suppose f(a)<0.f\text{″}\left(a\right)<0. Since ff\text{″} is continuous over I,I, f(x)<0f\text{″}\left(x\right)<0 for all xIx\in I ([link]). Then, by Corollary 3,3, f{f}^{\prime } is a decreasing function over I.I. Since f(a)=0,{f}^{\prime }\left(a\right)=0, we conclude that for all xI,f(x)>0x\in I,{f}^{\prime }\left(x\right)>0 if x<ax<a and f(x)<0{f}^{\prime }\left(x\right)<0 if x>a.x>a. Therefore, by the first derivative test, ff has a local maximum at x=a.x=a. On the other hand, suppose there exists a point bb such that f(b)=0{f}^{\prime }\left(b\right)=0 but f(b)>0.f\text{″}\left(b\right)>0. Since ff\text{″} is continuous over an open interval II containing b,b, then f(x)>0f\text{″}\left(x\right)>0 for all xIx\in I ([link]). Then, by Corollary 3,f3,{f}^{\prime } is an increasing function over I.I. Since f(b)=0,{f}^{\prime }\left(b\right)=0, we conclude that for all xI,x\in I, f(x)<0{f}^{\prime }\left(x\right)<0 if x<bx<b and f(x)>0{f}^{\prime }\left(x\right)>0 if x>b.x>b. Therefore, by the first derivative test, ff has a local minimum at x=b.x=b.

Consider a twice-differentiable function ff such that ff\text{″} is continuous. Since f(a)=0f\prime \left(a\right)=0 and f(a)<0,f\text{″}\left(a\right)<0, there is an interval II containing aa such that for all xx in I,I, ff is increasing if x<ax<a and ff is decreasing if x>a.x>a. As a result, ff has a local maximum at x=a.x=a. Since f(b)=0f\prime \left(b\right)=0 and f(b)>0,f\text{″}\left(b\right)>0, there is an interval II containing bb such that for all xx in I,I, ff is decreasing if x<bx<b and ff is increasing if x>b.x>b. As a result, ff has a local minimum at x=b.x=b.
A function f(x) is graphed in the first quadrant with a and b marked on the x-axis. The function is vaguely sinusoidal, increasing first to x = a, then decreasing to x = b, and increasing again. At (a, f(a)), the tangent is marked, and it is noted that f’(a) = 0 and f’’(a) < 0. At (b, f(b)), the tangent is marked, and it is noted f’(b) = 0 and f’’(b) > 0.
Second Derivative Test

Suppose f(c)=0,f{f}^{\prime }\left(c\right)=0,f\text{″} is continuous over an interval containing c.c.

  1. If f(c)>0,f\text{″}\left(c\right)>0, then ff has a local minimum at c.c.
  2. If f(c)<0,f\text{″}\left(c\right)<0, then ff has a local maximum at c.c.
  3. If f(c)=0,f\text{″}\left(c\right)=0, then the test is inconclusive.

Note that for case iii. when f(c)=0,f\text{″}\left(c\right)=0, then ff may have a local maximum, local minimum, or neither at c.c. For example, the functions f(x)=x3,f\left(x\right)={x}^{3}, f(x)=x4,f\left(x\right)={x}^{4}, and f(x)=x4f\left(x\right)=\text{−}{x}^{4} all have critical points at x=0.x=0. In each case, the second derivative is zero at x=0.x=0. However, the function f(x)=x4f\left(x\right)={x}^{4} has a local minimum at x=0x=0 whereas the function f(x)=x4f\left(x\right)=\text{−}{x}^{4} has a local maximum at x,x, and the function f(x)=x3f\left(x\right)={x}^{3} does not have a local extremum at x=0.x=0.

Let’s now look at how to use the second derivative test to determine whether ff has a local maximum or local minimum at a critical point cc where f(c)=0.{f}^{\prime }\left(c\right)=0.

Using the Second Derivative Test

Use the second derivative to find the location of all local extrema for f(x)=x55x3.f\left(x\right)={x}^{5}-5{x}^{3}.

To apply the second derivative test, we first need to find critical points cc where f(c)=0.{f}^{\prime }\left(c\right)=0. The derivative is f(x)=5x415x2.{f}^{\prime }\left(x\right)=5{x}^{4}-15{x}^{2}. Therefore, f(x)=5x415x2=5x2(x23)=0{f}^{\prime }\left(x\right)=5{x}^{4}-15{x}^{2}=5{x}^{2}\left({x}^{2}-3\right)=0 when x=0,±3.x=0,\text{±}\sqrt{3}.

To determine whether ff has a local extrema at any of these points, we need to evaluate the sign of ff\text{″} at these points. The second derivative is

f(x)=20x330x=10x(2x23).f\text{″}\left(x\right)=20{x}^{3}-30x=10x\left(2{x}^{2}-3\right).

In the following table, we evaluate the second derivative at each of the critical points and use the second derivative test to determine whether ff has a local maximum or local minimum at any of these points.

xxf(x)f\text{″}\left(x\right)Conclusion
3\text{−}\sqrt{3}303-30\sqrt{3}Local maximum
0000Second derivative test is inconclusive
3\sqrt{3}30330\sqrt{3}Local minimum

By the second derivative test, we conclude that ff has a local maximum at x=3x=\text{−}\sqrt{3} and ff has a local minimum at x=3.x=\sqrt{3}. The second derivative test is inconclusive at x=0.x=0. To determine whether ff has a local extrema at x=0,x=0, we apply the first derivative test. To evaluate the sign of f(x)=5x2(x23){f}^{\prime }\left(x\right)=5{x}^{2}\left({x}^{2}-3\right) for x(3,0)x\in \left(\text{−}\sqrt{3},0\right) and x(0,3),x\in \left(0,\sqrt{3}\right), let x=1x=-1 and x=1x=1 be the two test points. Since f(1)<0{f}^{\prime }\left(-1\right)<0 and f(1)<0,{f}^{\prime }\left(1\right)<0, we conclude that ff is decreasing on both intervals and, therefore, ff does not have a local extrema at x=0x=0 as shown in the following graph.

The function ff has a local maximum at x=3x=\text{−}\sqrt{3} and a local minimum at x=3x=\sqrt{3}
The function f(x) = x5 – 5x3 is graphed. The function increases to (negative square root of 3, 10), then decreases to an inflection point at 0, continues decreasing to (square root of 3, −10), and then increases.

Consider the function f(x)=x3(32)x218x.f\left(x\right)={x}^{3}-\left(\frac{3}{2}\right){x}^{2}-18x. The points c=3,2c=3,-2 satisfy f(c)=0.{f}^{\prime }\left(c\right)=0. Use the second derivative test to determine whether ff has a local maximum or local minimum at those points.

ff has a local maximum at 2-2 and a local minimum at 3.3.

Hint

f(x)=6x3f\text{″}\left(x\right)=6x-3

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 x±.x\to \text{±}\infty . At that point, we have enough tools to provide accurate graphs of a large variety of functions.

Key Concepts

  • If cc is a critical point of ff and f(x)>0{f}^{\prime }\left(x\right)>0 for x<cx<c and f(x)<0{f}^{\prime }\left(x\right)<0 for x>c,x>c, then ff has a local maximum at c.c.
  • If cc is a critical point of ff and f(x)<0{f}^{\prime }\left(x\right)<0 for x<cx<c and f(x)>0{f}^{\prime }\left(x\right)>0 for x>c,x>c, then ff has a local minimum at c.c.
  • If f(x)>0f\text{″}\left(x\right)>0 over an interval I,I, then ff is concave up over I.I.
  • If f(x)<0f\text{″}\left(x\right)<0 over an interval I,I, then ff is concave down over I.I.
  • If f(c)=0{f}^{\prime }\left(c\right)=0 and f(c)>0,f\text{″}\left(c\right)>0, then ff has a local minimum at c.c.
  • If f(c)=0{f}^{\prime }\left(c\right)=0 and f(c)<0,f\text{″}\left(c\right)<0, then ff has a local maximum at c.c.
  • If f(c)=0{f}^{\prime }\left(c\right)=0 and f(c)=0,f\text{″}\left(c\right)=0, then evaluate f(x){f}^{\prime }\left(x\right) at a test point xx to the left of cc and a test point xx to the right of c,c, to determine whether ff has a local extremum at c.c.

If cc is a critical point of f(x),f\left(x\right), when is there no local maximum or minimum at c?c? Explain.

For the function y=x3,y={x}^{3}, is x=0x=0 both an inflection point and a local maximum/minimum?

It is not a local maximum/minimum because f{f}^{\prime } does not change sign

For the function y=x3,y={x}^{3}, is x=0x=0 an inflection point?

Is it possible for a point cc to be both an inflection point and a local extrema of a twice differentiable function?

No

Why do you need continuity for the first derivative test? Come up with an example.

Explain whether a concave-down function has to cross y=0y=0 for some value of x.x.

False; for example, y=x.y=\sqrt{x}.

Explain whether a polynomial of degree 22 can have an inflection point.

For the following exercises, analyze the graphs of f,{f}^{\prime }, then list all intervals where ff is increasing or decreasing.

The function f’(x) is graphed. The function starts negative and crosses the x axis at (−2, 0). Then it continues increasing a little before decreasing and crossing the x axis at (−1, 0). It achieves a local minimum at (1, −6) before increasing and crossing the x axis at (2, 0).

Increasing for 2<x<1-2<x<-1 and x>2;x>2; decreasing for x<2x<-2 and 1<x<2-1<x<2

The function f’(x) is graphed. The function starts negative and crosses the x axis at (−2, 0). Then it continues increasing a little before decreasing and touching the x axis at (−1, 0). It then increases a little before decreasing and crossing the x axis at the origin. The function then decreases to a local minimum before increasing, crossing the x-axis at (1, 0), and continuing to increase.
The function f’(x) is graphed. The function starts negative and touches the x axis at the origin. Then it decreases a little before increasing to cross the x axis at (1, 0) and continuing to increase.

Decreasing for x<1,x<1, increasing for x>1x>1

The function f’(x) is graphed. The function starts positive and decreases to touch the x axis at (−1, 0). Then it increases to (0, 4.5) before decreasing to touch the x axis at (1, 0). Then the function increases.
The function f’(x) is graphed. The function starts at (−2, 0), decreases to (−1.5, −1.5), increases to (−1, 0), and continues increasing before decreasing to the origin. Then the other side is symmetric: that is, the function increases and then decreases to pass through (1, 0). It continues decreasing to (1.5, −1.5), and then increase to (2, 0).

Decreasing for 2<x<1-2<x<-1 and 1<x<2;1<x<2; increasing for 1<x<1-1<x<1 and x<2x<-2 and x>2x>2

For the following exercises, analyze the graphs of f,{f}^{\prime }, then list all intervals where

  1. ff is increasing and decreasing and
  2. the minima and maxima are located.
The function f’(x) is graphed. The function starts at (−2, 0), decreases for a little and then increases to (−1, 0), continues increasing before decreasing to the origin, at which point it increases.
The function f’(x) is graphed. The function starts at (−2, 0), increases and then decreases to (−1, 0), decreases and then increases to an inflection point at the origin. Then the function increases and decreases to cross (1, 0). It continues decreasing and then increases to (2, 0).

a. Increasing over 2<x<1,0<x<1,x>2,-2<x<-1,0<x<1,x>2, decreasing over x<2,x<-2, 1<x<0,1<x<2;-1<x<0,1<x<2; b. maxima at x=1x=-1 and x=1,x=1, minima at x=2x=-2 and x=0x=0 and x=2x=2

The function f’(x) is graphed from x = −2 to x = 2. It starts near zero at x = −2, but then increases rapidly and remains positive for the entire length of the graph.
The function f’(x) is graphed. The function starts negative and crosses the x axis at the origin, which is an inflection point. Then it continues increasing.

a. Increasing over x>0,x>0, decreasing over x<0;x<0; b. Minimum at x=0x=0

The function f’(x) is graphed. The function starts negative and crosses the x axis at (−1, 0). Then it continues increasing a little before decreasing and touching the x axis at the origin. It increases again and then decreases to (1, 0). Then it increases.

For the following exercises, analyze the graphs of f,{f}^{\prime }, then list all inflection points and intervals ff that are concave up and concave down.

The function f’(x) is graphed. The function is linear and starts negative. It crosses the x axis at the origin.

Concave up on all x,x, no inflection points

The function f’(x) is graphed. It is an upward-facing parabola with 0 as its local minimum.
The function f’(x) is graphed. The function resembles the graph of x3: that is, it starts negative and crosses the x axis at the origin. Then it continues increasing.

Concave up on all x,x, no inflection points

The function f’(x) is graphed. The function starts negative and crosses the x axis at (−0.5, 0). Then it continues increasing to (0, 1.5) before decreasing and touching the x axis at (1, 0). It then increases.
The function f’(x) is graphed. The function starts negative and crosses the x axis at (−1, 0). Then it continues increasing to a local maximum at (0, 1), at which point it decreases and touches the x axis at (1, 0). It then increases.

Concave up for x<0x<0 and x>1,x>1, concave down for 0<x<1,0<x<1, inflection points at x=0x=0 and x=1x=1

For the following exercises, draw a graph that satisfies the given specifications for the domain x=[3,3].x=\left[-3,3\right]. The function does not have to be continuous or differentiable.

f(x)>0,f(x)>0f\left(x\right)>0,{f}^{\prime }\left(x\right)>0 over x>1,3<x<0,f(x)=0x>1,-3<x<0,{f}^{\prime }\left(x\right)=0 over 0<x<10<x<1

f(x)>0{f}^{\prime }\left(x\right)>0 over x>2,3<x<1,f(x)<0x>2,-3<x<-1,{f}^{\prime }\left(x\right)<0 over 1<x<2,f(x)<0-1<x<2,f\text{″}\left(x\right)<0 for all xx

Answers will vary

f(x)<0f\text{″}\left(x\right)<0 over 1<x<1,f(x)>0,3<x<1,1<x<3,-1<x<1,f\text{″}\left(x\right)>0,-3<x<-1,1<x<3, local maximum at x=0,x=0, local minima at x=±2x=\text{±}2

There is a local maximum at x=2,x=2, local minimum at x=1,x=1, and the graph is neither concave up nor concave down.

Answers will vary

There are local maxima at x=±1,x=\text{±}1, the function is concave up for all x,x, and the function remains positive for all x.x.

For the following exercises, determine

  1. intervals where ff is increasing or decreasing and
  2. local minima and maxima of f.f.

f(x)=sinx+sin3xf\left(x\right)=\text{sin}\phantom{\rule{0.1em}{0ex}}x+{\text{sin}}^{3}x over π<x<π\text{−}\pi <x<\pi

a. Increasing over π2<x<π2,-\frac{\pi }{2}<x<\frac{\pi }{2}, decreasing over x<π2,x>π2x<-\frac{\pi }{2},x>\frac{\pi }{2} b. Local maximum at x=π2;x=\frac{\pi }{2}; local minimum at x=π2x=-\frac{\pi }{2}

f(x)=x2+cosxf\left(x\right)={x}^{2}+\text{cos}\phantom{\rule{0.1em}{0ex}}x

For the following exercises, determine a. intervals where ff is concave up or concave down, and b. the inflection points of f.f.

f(x)=x34x2+x+2f\left(x\right)={x}^{3}-4{x}^{2}+x+2

a. Concave up for x>43,x>\frac{4}{3}, concave down for x<43x<\frac{4}{3} b. Inflection point at x=43x=\frac{4}{3}

For the following exercises, determine

  1. intervals where ff is increasing or decreasing,
  2. local minima and maxima of f,f,
  3. intervals where ff is concave up and concave down, and
  4. the inflection points of f.f.

f(x)=x26xf\left(x\right)={x}^{2}-6x

f(x)=x36x2f\left(x\right)={x}^{3}-6{x}^{2}

a. Increasing over x<0x<0 and x>4,x>4, decreasing over 0<x<40<x<4 b. Maximum at x=0,x=0, minimum at x=4x=4 c. Concave up for x>2,x>2, concave down for x<2x<2 d. Infection point at x=2x=2

f(x)=x46x3f\left(x\right)={x}^{4}-6{x}^{3}

f(x)=x116x10f\left(x\right)={x}^{11}-6{x}^{10}

a. Increasing over x<0x<0 and x>6011,x>\frac{60}{11}, decreasing over 0<x<60110<x<\frac{60}{11} b. Minimum at x=6011x=\frac{60}{11} c. Concave down for x<5411,x<\frac{54}{11}, concave up for x>5411x>\frac{54}{11} d. Inflection point at x=5411x=\frac{54}{11}

f(x)=x+x2x3f\left(x\right)=x+{x}^{2}-{x}^{3}

f(x)=x2+x+1f\left(x\right)={x}^{2}+x+1

a. Increasing over x>12,x>-\frac{1}{2}, decreasing over x<12x<-\frac{1}{2} b. Minimum at x=12x=-\frac{1}{2} c. Concave up for all xx d. No inflection points

f(x)=x3+x4f\left(x\right)={x}^{3}+{x}^{4}

For the following exercises, determine

  1. intervals where ff is increasing or decreasing,
  2. local minima and maxima of f,f,
  3. intervals where ff is concave up and concave down, and
  4. the inflection points of f.f. Sketch the curve, then use a calculator to compare your answer. If you cannot determine the exact answer analytically, use a calculator.

[T]f(x)=sin(πx)cos(πx)f\left(x\right)=\text{sin}\left(\pi x\right)-\text{cos}\left(\pi x\right) over x=[1,1]x=\left[-1,1\right]

a. Increases over 14<x<34,-\frac{1}{4}<x<\frac{3}{4}, decreases over x>34x>\frac{3}{4} and x<14x<-\frac{1}{4} b. Minimum at x=14,x=-\frac{1}{4}, maximum at x=34x=\frac{3}{4} c. Concave up for 34<x<14,-\frac{3}{4}<x<\frac{1}{4}, concave down for x<34x<-\frac{3}{4} and x>14x>\frac{1}{4} d. Inflection points at x=34,x=14x=-\frac{3}{4},x=\frac{1}{4}

[T]f(x)=x+sin(2x)f\left(x\right)=x+\text{sin}\left(2x\right) over x=[π2,π2]x=\left[-\frac{\pi }{2},\frac{\pi }{2}\right]

[T]f(x)=sinx+tanxf\left(x\right)=\text{sin}\phantom{\rule{0.1em}{0ex}}x+\text{tan}\phantom{\rule{0.1em}{0ex}}x over (π2,π2)\left(-\frac{\pi }{2},\frac{\pi }{2}\right)

a. Increasing for all xx b. No local minimum or maximum c. Concave up for x>0,x>0, concave down for x<0x<0 d. Inflection point at x=0x=0

[T]f(x)=(x2)2(x4)2f\left(x\right)={\left(x-2\right)}^{2}{\left(x-4\right)}^{2}

[T]f(x)=11x,x1f\left(x\right)=\frac{1}{1-x},x\ne 1

a. Increasing for all xx where defined b. No local minima or maxima c. Concave up for x<1;x<1; concave down for x>1x>1 d. No inflection points in domain

[T]f(x)=sinxxf\left(x\right)=\frac{\text{sin}\phantom{\rule{0.1em}{0ex}}x}{x} over x=[2π,2π]x=\left[-2\pi ,2\pi \right] [2π,0)(0,2π]\left[2\pi ,0\right)\cup \left(0,2\pi \right]

f(x)=sin(x)exf\left(x\right)=\text{sin}\left(x\right){e}^{x} over x=[π,π]x=\left[\text{−}\pi ,\pi \right]

a. Increasing over π4<x<3π4,-\frac{\pi }{4}<x<\frac{3\pi }{4}, decreasing over x>3π4,x<π4x>\frac{3\pi }{4},x<-\frac{\pi }{4} b. Minimum at x=π4,x=-\frac{\pi }{4}, maximum at x=3π4x=\frac{3\pi }{4} c. Concave up for π2<x<π2,-\frac{\pi }{2}<x<\frac{\pi }{2}, concave down for x<π2,x>π2x<-\frac{\pi }{2},x>\frac{\pi }{2} d. Infection points at x=±π2x=\text{±}\frac{\pi }{2}

f(x)=lnxx,x>0f\left(x\right)=\text{ln}\phantom{\rule{0.1em}{0ex}}x\sqrt{x},x>0

f(x)=14x+1x,x>0f\left(x\right)=\frac{1}{4}\sqrt{x}+\frac{1}{x},x>0

a. Increasing over x>4,x>4, decreasing over 0<x<40<x<4 b. Minimum at x=4x=4 c. Concave up for 0<x<823,0<x<8\sqrt[3]{2}, concave down for x>823x>8\sqrt[3]{2} d. Inflection point at x=823x=8\sqrt[3]{2}

f(x)=exx,x0f\left(x\right)=\frac{{e}^{x}}{x},x\ne 0

For the following exercises, interpret the sentences in terms of f,f,andf.f,{f}^{\prime },\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}f\text{″}.

The population is growing more slowly. Here ff is the population.

f>0,f>0,f<0f>0,{f}^{\prime }>0,f\text{″}<0

A bike accelerates faster, but a car goes faster. Here f=f= Bike’s position minus Car’s position.

The airplane lands smoothly. Here ff is the plane’s altitude.

f>0,f<0,f<0f>0,{f}^{\prime }<0,f\text{″}<0

Stock prices are at their peak. Here ff is the stock price.

The economy is picking up speed. Here ff is a measure of the economy, such as GDP.

f>0,f>0,f>0f>0,{f}^{\prime }>0,f\text{″}>0

For the following exercises, consider a third-degree polynomial f(x),f\left(x\right), which has the properties f(1)=0,f(3)=0.{f}^{\prime }\left(1\right)=0,{f}^{\prime }\left(3\right)=0. Determine whether the following statements are true or false. Justify your answer.

f(x)=0f\left(x\right)=0 for some 1x31\le x\le 3

f(x)=0f\text{″}\left(x\right)=0 for some 1x31\le x\le 3

True, by the Mean Value Theorem

There is no absolute maximum at x=3x=3

If f(x)f\left(x\right) has three roots, then it has 11 inflection point.

True, examine derivative

If f(x)f\left(x\right) has one inflection point, then it has three real roots.

Glossary

concave down
if ff is differentiable over an interval II and f{f}^{\prime } is decreasing over I,I, then ff is concave down over II
concave up
if ff is differentiable over an interval II and f{f}^{\prime } is increasing over I,I, then ff is concave up over II
concavity
the upward or downward curve of the graph of a function
concavity test
suppose ff is twice differentiable over an interval I;I; if f>0f\text{″}>0 over I,I, then ff is concave up over I;I; if f<0f\text{″}<0 over I,I, then ff is concave down over II
first derivative test
let ff be a continuous function over an interval II containing a critical point cc such that ff is differentiable over II except possibly at c;c; if f{f}^{\prime } changes sign from positive to negative as xx increases through c,c, then ff has a local maximum at c;c; if f{f}^{\prime } changes sign from negative to positive as xx increases through c,c, then ff has a local minimum at c;c; if f{f}^{\prime } does not change sign as xx increases through c,c, then ff does not have a local extremum at cc
inflection point
if ff is continuous at cc and ff changes concavity at c,c, the point (c,f(c))\left(c,f\left(c\right)\right) is an inflection point of ff
second derivative test
suppose f(c)=0{f}^{\prime }\left(c\right)=0 and ff\text{″} is continuous over an interval containing c;c; if f(c)>0,f\text{″}\left(c\right)>0, then ff has a local minimum at c;c; if f(c)<0,f\text{″}\left(c\right)<0, then ff has a local maximum at c;c; if f(c)=0,f\text{″}\left(c\right)=0, then the test is inconclusive