Educerie

Educerie · AP · Calculus AB and BC

AP Calculus AB and BC 5.7

Using the Second Derivative Test to Determine Extrema

How can the derivative, the rate of change at a point, tell you what a whole function is doing?

What you will learn

  • Understand the Second Derivative Test and that it needs f'(c) = 0.
  • Know that f''(c) = 0 gives no information and the First Derivative Test is then used.
  • Understand that a single critical point that is a relative extremum is the absolute extremum on that interval.
  • Know when to use each test.

You must be able to

  1. Classify a critical point using the sign of f''
  2. State both f'(c) = 0 and the sign of f''(c) in the reason
  3. Switch to the First Derivative Test when f'' is zero
  4. Use values of f' and f'' from a table
  5. Show an absolute extremum from a single critical point

In the exam. Section I (multiple choice), Part A and Part B: "Which of the following must be true at x=2x = 2?" given values of f′(2)f'(2) and f′′(2)f''(2), or a function whose critical point you classify. In the free-response section it is an alternative to the First Derivative Test, with a justification, and a one-critical-point argument can show a global extremum.

1The Second Derivative Test

Let f′(c)=0f'(c) = 0. - If f′′(c)>0f''(c) > 0, then ff has a relative minimum at x=cx = c. - If f′′(c)<0f''(c) < 0, then ff has a relative maximum at x=cx = c. - If f′′(c)=0f''(c) = 0, the test gives no information.

Two conditions are part of the test.

  • f′(c)=0f'(c) = 0 exactly. The test does not apply where f′f' does not exist, such as a corner or a cusp. Use the First Derivative Test there.
  • The sign of f′′(c)f''(c) must be clear. Zero means no answer.

Why it works. The test is the First Derivative Test in disguise. Say f′(c)=0f'(c) = 0 and f′′(c)>0f''(c) > 0. The number f′′(c)f''(c) is the slope of the graph of f′f' at cc, so f′f' is rising as it passes through zero. A function that rises through zero goes from negative to positive. So f′f' changes from negative to positive at cc, and 5.4 says that is a relative minimum. With f′′(c)<0f''(c) < 0, f′f' falls through zero, from positive to negative, and that is a relative maximum. If f′′(c)=0f''(c) = 0, the graph of f′f' is flat at zero and could go either way or bounce back, which is why the test cannot decide.

2When the test fails

If f′(c)=0f'(c) = 0 and f′′(c)=0f''(c) = 0, the point could be a minimum, a maximum or neither. Figure 1 shows three functions with f′(0)=0f'(0) = 0 and f′′(0)=0f''(0) = 0.

Figure 1. Three functions with f'(0) = 0 and f''(0) = 0: a minimum, a maximum and neither, so the Second Derivative Test cannot decide y x f(x) = x4 local min Figure 1. Three functions with f'(0) = 0 and f''(0) = 0: a minimum, a maximum and neither, so the Second Derivative Test cannot decide y x f(x) = -x4 local max Figure 1. Three functions with f'(0) = 0 and f''(0) = 0: a minimum, a maximum and neither, so the Second Derivative Test cannot decide y x f(x) = x3 no extremum
Figure 1 · Three functions with f'(0) = 0 and f''(0) = 0: a minimum, a maximum and neither, so the Second Derivative Test cannot decide
  • f(x)=x4f(x) = x^{4}: f′′=12x2f'' = 12x^{2}. A relative minimum at 0.
  • f(x)=−x4f(x) = -x^{4}: f′′=−12x2f'' = -12x^{2}. A relative maximum at 0.
  • f(x)=x3f(x) = x^{3}: f′′=6xf'' = 6x. Neither.

All three have f′′(0)=0f''(0) = 0. The test cannot tell them apart. Use the First Derivative Test, which looks at the sign of f′f' on both sides.

3The method

  1. Find f′(x)f'(x) and solve f′(x)=0f'(x) = 0.
  2. Find f′′(x)f''(x).
  3. Put each solution into f′′f''.
  4. Positive: relative minimum. Negative: relative maximum. Zero: use the First Derivative Test.
  5. If asked, find the value f(c)f(c).

Example. f(x)=x3−12xf(x) = x^{3} - 12x.

f′(x)=3x2−12=3(x−2)(x+2)sox=−2,2f'(x) = 3x^{2} - 12 = 3(x - 2)(x + 2) \quad\text{so}\quad x = -2, 2f′′(x)=6xf''(x) = 6xf′′(−2)=−12<0relative maximum, f(-2) = 16f''(-2) = -12 < 0 \qquad \textcolor{#838c91}{\text{relative maximum, f(-2) = 16}}f′′(2)=12>0relative minimum, f(2) = -16f''(2) = 12 > 0 \qquad \textcolor{#838c91}{\text{relative minimum, f(2) = -16}}

Example (an inconclusive point). f(x)=x4−4x3f(x) = x^{4} - 4x^{3}.

f′(x)=4x2(x−3)sox=0,3f'(x) = 4x^{2}(x - 3) \quad\text{so}\quad x = 0, 3f′′(x)=12x2−24x=12x(x−2)f''(x) = 12x^{2} - 24x = 12x(x - 2)f′′(3)=36>0f′′(0)=0f''(3) = 36 > 0 \qquad f''(0) = 0

At x=3x = 3, f′′(3)>0f''(3) > 0, so there is a relative minimum. At x=0x = 0, f′′(0)=0f''(0) = 0, so the test fails. The First Derivative Test (5.4) shows f′f' is negative on both sides of 0, so there is no extremum at 0.

4Using values from a table

A table can give f′(c)f'(c) and f′′(c)f''(c) directly.

xxf′(x)f'(x)f′′(x)f''(x)
10−3-3
405
600
  • At x=1x = 1: f′=0f' = 0 and f′′<0f'' < 0, so a relative maximum.
  • At x=4x = 4: f′=0f' = 0 and f′′>0f'' > 0, so a relative minimum.
  • At x=6x = 6: f′′=0f'' = 0, so the test gives no information.

5From a relative extremum to an absolute one

The Second Derivative Test finds relative extrema. There is one case where it settles the absolute question too.

If ff is continuous on an interval, has only one critical point on that interval, and that point is a relative extremum, then it is the absolute extremum on that interval.

Reason: near cc, ff is higher than f(c)f(c) on both sides. To reach a lower value further away, it would have to turn round, and that needs a second critical point.

Example. f(x)=x+16xf(x) = x + \dfrac{16}{x} on (0,∞)(0, \infty).

f′(x)=1−16x2=0givesx=4(x=−4 is not in the interval)f'(x) = 1 - \frac{16}{x^{2}} = 0 \quad\text{gives}\quad x = 4 \quad (x = -4 \text{ is not in the interval})f′′(x)=32x3f′′(4)=12>0f''(x) = \frac{32}{x^{3}} \qquad f''(4) = \frac{1}{2} > 0

ff is continuous on (0,∞)(0, \infty), and x=4x = 4 is its only critical point there. f′′(4)>0f''(4) > 0, so it is a relative minimum, hence the absolute minimum. The minimum value is f(4)=4+4=8f(4) = 4 + 4 = 8.

Example. f(x)=xexf(x) = xe^{x} on all real numbers. f′(x)=(x+1)exf'(x) = (x + 1)e^{x}, so the only critical point is x=−1x = -1. f′′(x)=(x+2)exf''(x) = (x + 2)e^{x} and f′′(−1)=e−1>0f''(-1) = e^{-1} > 0. So ff has an absolute minimum at x=−1x = -1, of value −e−1-e^{-1}.

This argument is used in optimization (5.10 and 5.11) to show that a value found is the least cost or the greatest area.

Warning. On a closed interval, use the Candidates Test (5.5) instead. The endpoints may give a higher or lower value than the relative extremum, even when there is a single critical point.

6Which test to use

SituationBest test
f′′f'' is easy to find and f′′(c)≠0f''(c) \ne 0Second Derivative Test
f′′(c)=0f''(c) = 0First Derivative Test
f′(c)f'(c) does not existFirst Derivative Test
A graph of f′f' is givenFirst Derivative Test (read the crossing)
An absolute extremum on a closed intervalCandidates Test

7Writing the justification

"f′(2)=0f'(2) = 0 and f′′(2)=18>0f''(2) = 18 > 0, so by the Second Derivative Test ff has a relative minimum at x=2x = 2."

State both f′(c)=0f'(c) = 0 and the sign of f′′(c)f''(c). The first is often forgotten.

Practice questions

30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.