Kim’s Math NotesCourse index

The Second Derivative Test

When does the second derivative classify a critical point?

Use f′(c)=0 and the sign of f′′(c) to classify a critical point, know when the test cannot tell, and use one critical point to find an absolute extremum.

f'' = 0 is not an answer

Common mistake f′′(5)=0, so f has a point of inflection at 5 (or: no relative max or min at 5).

Correction f′′(c)=0: no conclusion yet. Check the sign changes of f′ and f′′.

Idea 1: a flat spot and the bend

Idea one: a flat spot, and the bend. Let's watch one curve do both. Here's f of x equals x cubed minus twelve x. It climbs, drops, and climbs again. F prime is three x squared minus twelve: three times x minus two, times x plus two.

It's zero at negative two, and at two.

Watch this part of the concept lesson

Read the rest of this scene

Those are the two flat spots on f. F double prime is the slope of f prime: six x. At negative two, it's six times negative two: negative twelve. Negative f double prime means f prime is falling, right there. Look: f prime crosses zero on its way down, from plus to minus.

On f, up then down makes a peak: a relative maximum at negative two. At two, f double prime is positive twelve. F prime is rising there, crossing zero from minus to plus. Down then up: a valley. A relative minimum at two.

With the First Derivative Test, you checked f prime on both sides of c. Here, one number at c did it. So the sign of f double prime at c tells you whether f prime crosses zero going up, or going down. The rule. Start with f prime of c equal to zero. If f double prime of c is positive, f prime rises through zero, minus to plus: a relative minimum.

If f double prime of c is negative, f prime falls through zero, plus to minus: a relative maximum. On f, a flat tangent inside a cup is a valley; under a cap, a peak. That's the Second Derivative Test. One warning: it needs f prime of c equal to zero. At a sharp corner, where f prime doesn't exist, you can't use it.

One more use. Where is f falling fastest? Where f prime is smallest. So the function we're judging is f prime itself. The derivative of f prime is six x: zero at x equals zero. Its derivative is six, positive.

By the Second Derivative Test, f prime has a relative minimum at zero. It's an upward parabola, so that's its lowest point: f falls fastest at zero.

Idea 2: when f''(c) = 0

Idea two: what if f double prime of c equals zero? Here are three quick curves. First, y equals x to the fourth: clearly a valley at zero. Under it, y prime is four x cubed: zero at zero, minus then plus. And y double prime, twelve x squared, is zero at zero too.

Flip it: y equals negative x to the fourth, a peak.

Watch this part of the concept lesson

Read the rest of this scene

Y prime is negative four x cubed: plus, then minus. Y double prime is negative twelve x squared, also zero at zero. And y equals x to the fifth: it climbs right through zero. Y prime, five x to the fourth, only touches zero: plus on both sides. Y double prime is twenty x cubed, again zero at zero. Three for three.

Every one has y prime of zero, and y double prime of zero, equal to zero. Yet: a relative minimum, a relative maximum, and neither. So when f double prime of c is zero, this test gives no answer. It's inconclusive. Go back to the First Derivative Test: check the signs of f prime on both sides.

And zero doesn't mean an inflection point, either. X to the fourth has f double prime zero at zero, and it's a cup on both sides. So why use a test that can fail? Most of the time, one number settles a flat spot fast. And when it can't, the First Derivative Test is right there.

Idea 3: only one critical point

Idea three. What if there's only one critical point? Take f of x equals x plus four over x, for x greater than zero. F prime is one minus four over x squared. Draw both: the line y equals one, and the curve four over x squared.

They meet at two.

Watch this part of the concept lesson

Read the rest of this scene

Left of two, the curve is above the line, so f prime is negative. Right of two, it's below, so f prime is positive. The algebra agrees: x squared equals four, and with x positive, x equals two. Only two. F double prime is eight over x cubed. At two: eight over eight, one. Positive.

So there's a relative minimum at two. The value is two plus four over two: four. Could f dip below four somewhere else? It would have to climb out of this valley, and then turn back down. Turning back down needs another flat spot or corner: a second critical point. There isn't one.

So the relative minimum is the absolute minimum: four is the smallest value on x greater than zero. The rule: if f is continuous on an interval, and has only one critical point there, then a relative extremum at that point is the absolute extremum on the interval. Compare: on a closed interval, you compare the candidates, ends included.

With no ends, this argument does the job.

Example 1: sin x + cos x

Example one. Let f of x equal sine x plus cosine x, on the open interval from zero to two pi. Use the Second Derivative Test to find where f has a relative maximum and a relative minimum. Justify your answer. The plan: find where f prime is zero, then check the sign of f double prime at each spot.

F prime is cosine x minus sine x: white minus purple.

Watch this part of the concept lesson

Read the rest of this scene

They meet at pi over four, and five pi over four. White above, then below, then above: plus, minus, plus. So we already expect a max at pi over four, and a min at five pi over four. But the problem asks for the Second Derivative Test, so we keep going. F double prime is negative sine x minus cosine x.

At pi over four, we get negative root two over two, minus root two over two: negative root two, less than zero. Write both facts together. F double prime alone isn't the reason; the pair is. F prime of pi over four is zero, and f double prime of pi over four is negative. So f has a relative maximum at x equals pi over four.

At five pi over four, sine and cosine are both negative root two over two, so f double prime is root two, greater than zero. F prime is zero there, and f double prime is positive: a relative minimum at x equals five pi over four. Try the matching problem in your workbook the same way: zeros of f prime, the sign of f double prime, and both facts.

Example 2: which must be true?

Example two. f is twice differentiable. F prime of two is zero, and f double prime of two is negative three. And f prime of five and f double prime of five are both zero. Which of the three statements must be true here? We'll go one statement at a time.

Statement one: f prime of two is zero, and f double prime of two is negative three. A flat tangent under a cap means a relative maximum at two. True. Statement two: f double prime of five is zero, so the test can't tell. At five, f could look like any of our three curves.

Watch this part of the concept lesson

Read the rest of this scene

A peak is possible, so it doesn't have to be a minimum. Statement three: an inflection point at five? The valley and the peak bend the same way on both sides: no change in concavity. So that doesn't have to be true, either. So the answer is A: statement one only.

Another must-be-true question is in your workbook. Take it one statement at a time.

Common mistake: f''(5) = 0 as a verdict

Here's where answers go wrong: f double prime of five equals zero. One rushed answer: f double prime of five is zero, so there's an inflection point at five. Another: so no max or min at five. Both treat that zero as a verdict. Read it as: no conclusion yet.

For a max or min, check whether f prime changes sign.

Watch this part of the concept lesson

Read the rest of this scene

For an inflection point, check whether f double prime changes sign.

Example 3: given f', relative and absolute

Example three. f is differentiable, and f prime of x is x squared minus two x minus eight. That's a formula for f prime, not f. For part a, where does f have relative extrema? Use the second derivative test.

For part b, on x greater than negative two, does f have an absolute minimum?

Watch this part of the concept lesson

Read the rest of this scene

Then justify your answers. Part a. The plan: zeros of f prime, then the sign of f double prime. Notice: we're given f prime, not f. Its graph is a parabola. It factors: x minus four, times x plus two.

It's zero at negative two, and at four. F double prime is the derivative of f prime: two x minus two. At negative two, f double prime is negative six. F prime is zero there, and f double prime is negative: a relative maximum at x equals negative two. At four, it's positive six.

Zero f prime and positive f double prime give a relative minimum at x equals four. Part b is about x greater than negative two. Draw the boundary at negative two. Greater than, not equal: negative two is left out. So four is the only critical point on this interval.

F is differentiable, so it's continuous there. The rule needs that. Right of the line, f prime is negative until four, then positive: down, then up. Continuous, with its only critical point a relative minimum: so yes, f has an absolute minimum at x equals four. Write the words, the only critical point, in your answer. That's the reason.

One more in the workbook goes from relative to absolute.

Worked examples

Example 1

Let f(x)=sinx+cosx on (0,2π).
Use the Second Derivative Test to find where f has a relative maximum and a relative minimum. Justify.
Hint

Find f′=0 first. Then only the sign of f′′ there.

Answer and solution

Answer relative max at x=π4, relative min at x=5π4

  1. f′(x)=cosx−sinx=0→tanx=1→x=π4,5π4
  2. f′′(x)=−sinx−cosx,f′′(π4)=−2<0,f′′(5π4)=2>0
  3. f′=0 and f′′<0 at π4: a relative maximum. f′=0 and f′′>0 at 5π4: a relative minimum.

Example 2

f is twice differentiable. f′(2)=0,f′′(2)=−3, f′(5)=f′′(5)=0. Which must be true?
(I) f has a relative maximum at x=2.
(II) f has a relative minimum at x=5.
(III) f has a point of inflection at x=5.
  1. I only
  2. II only
  3. I and III only
  4. I, II, and III
Hint

One statement at a time. f′′(c)=0 gives no conclusion.

Answer and solution

Answer A. I only

  1. (I) f′(2)=0 and f′′(2)=−3<0: a relative maximum. True.
  2. (II), (III) f′′(5)=0: the test cannot tell. Like x4, −x4, x5 at 0, it can be a valley, a peak, or neither.
  3. Only I must be true. Answer A.

Example 3

f is differentiable and f′(x)=x2−2x−8.
(a) Where does f have relative extrema? Use the Second Derivative Test.
(b) On x>−2, does f have an absolute minimum? Justify.
Hint

On x>−2 there is only one critical point.

Answer and solution
  1. relative max at x=−2, relative min at x=4
  2. yes, at x=4
  1. f′(x)=(x−4)(x+2)=0→x=−2,4,f′′(x)=2x−2
  2. (a) f′′(−2)=−6<0: relative max at x=−2. f′′(4)=6>0: relative min at x=4.
  3. (b) f is differentiable, so continuous. On x>−2 the only critical point is x=4, a relative min, so it is the absolute minimum. Yes.

Workbook

Problem 1

Let f(x)=2x3−3x2−12x. Use the Second Derivative Test to find the relative extrema of f.
Hint

Solve f′(x)=0, then put each critical point into f′′.

Answer and solution

Answer relative max at x=−1, relative min at x=2

  1. f′(x)=6x2−6x−12=6(x−2)(x+1)→x=−1,2
  2. f′′(x)=12x−6,f′′(−1)=−18<0,f′′(2)=18>0
  3. Relative max at x=−1; relative min at x=2.

Common mistake Putting the critical points into f instead of f''.

Watch the worked solution to Problem 1

Problem 2

Let f(x)=x4−8x2. Use the Second Derivative Test to classify each critical point of f.
Hint

Three critical points. f′′<0: relative max. f′′>0: relative min.

Answer and solution

Answer relative max at x=0, relative min at x=−2 and x=2

  1. f′(x)=4x3−16x=4x(x−2)(x+2)→x=0,±2
  2. f′′(x)=12x2−16,f′′(0)=−16<0,f′′(±2)=32>0
  3. Relative max at x=0; relative min at x=−2 and x=2.

Common mistake Missing the critical point x = 0.

Watch the worked solution to Problem 2

Problem 3

The function f is twice differentiable, with f′(2)=0 and f′′(2)=0. Which of the following must be true?
  1. f has a relative maximum at x=2
  2. f has a relative minimum at x=2
  3. f has a point of inflection at x=2
  4. None of these must be true
Hint

Try (x−2)4, −(x−2)4, and (x−2)5: all have f′(2)=f′′(2)=0.

Answer and solution

Answer D. None of these must be true

  1. (x−2)4 has f′(2)=f′′(2)=0 and a relative min, with no inflection: not A, not C.
  2. −(x−2)4 has a relative max: not B. None must be true. Answer D.

Common mistake Saying f'(2) = f''(2) = 0 means a point of inflection.

Watch the worked solution to Problem 3

Problem 4

Let g(x)=x+2cosx for 0<x<2π. Use the Second Derivative Test to find where g has a relative maximum and a relative minimum.
Hint

g′(x)=1−2sinx=0 gives two angles. Put each into g′′(x)=−2cosx.

Answer and solution

Answer relative max at x=π6, relative min at x=5π6

  1. g′(x)=1−2sinx=0→x=π6,5π6
  2. g′′(x)=−2cosx,g′′(π6)=−3<0,g′′(5π6)=3>0
  3. Relative max at x=π6; relative min at x=5π6.

Common mistake Using cos x instead of sin x in g'.

Watch the worked solution to Problem 4

Problem 5

Let f(x)=x2+16x for x>0. Find the absolute minimum value of f for x>0. Justify your answer.
Hint

Only one critical point on x>0. A relative min with no other critical point is the absolute min.

Answer and solution

Answer 12, at x = 2

  1. f′(x)=2x−16x2=0→x3=8→x=2
  2. f′′(x)=2+32x3,f′′(2)=6>0,f(2)=4+8=12
  3. f is continuous on x>0, and x=2 is its only critical point, a relative min. So the absolute minimum value is 12, at x=2.

Common mistake Stopping at the relative minimum without saying why it is absolute.

Watch the worked solution to Problem 5

Problem 6

The function f is twice differentiable. The table gives values of f′ and f′′. For each x in the table with f′(x)=0, determine whether f has a relative maximum or a relative minimum, or whether the Second Derivative Test is inconclusive. Justify your answer.
x-1024
f′(x)0300
f′′(x)-2050
Hint

Test only the x with f′(x)=0. If f′′=0 there, the test cannot tell.

Answer and solution

Answer x=−1: relative max; x=2: relative min; x=4: the test cannot tell; x=0 is not a critical point

  1. x=−1: f′=0, f′′=−2<0, a relative max. x=2: f′=0, f′′=5>0, a relative min.
  2. x=4: f′=0, f′′=0, the test cannot tell.
  3. x=0: f′(0)=3≠0, not a critical point.

Common mistake Testing x = 0, where f'(0) is not 0.

Watch the worked solution to Problem 6