girgit.org

Application of Derivatives

The second derivative test: cup or cap?

The big ideaAt a point where f′(c) = 0, the sign of the second derivative tells you the shape: f″(c) < 0 is a cap (local maximum), f″(c) > 0 is a cup (local minimum), and f″(c) = 0 means the test cannot decide.

In simple words

A bowl that holds water is shaped like a cup. Its lowest point is in the middle. Turn the bowl upside down and it is a cap, with its highest point in the middle. The second derivative tells you whether the curve is bent like a cup or like a cap at the flat spot. Cup means bottom. Cap means top.

The second derivative test

Theorem 4 (second derivative test)

  • Let f be defined on an interval I, c in I, and f twice differentiable at c (f″(c) exists).
  • If \( f'(c) = 0 \) and \( f''(c) < 0 \), c is a point of local maxima; f(c) is the local maximum value.
  • If \( f'(c) = 0 \) and \( f''(c) > 0 \), c is a point of local minima; f(c) is the local minimum value.
  • If \( f'(c) = 0 \) and \( f''(c) = 0 \), the test fails: go back to the first derivative test.

Why it works. f″ is the rate of change of the slope f′. If \( f''(c) < 0 \), the slope is decreasing as you pass c. It is 0 at c, so it must be positive just before and negative just after: plus to minus, a hilltop. If \( f''(c) > 0 \), the slope goes from negative to positive: a valley.

Worked example 1

\( f(x) = x^4 - 8x^2 + 3 \). Then \( f'(x) = 4x^3 - 16x = 4x(x - 2)(x + 2) \), zero at 0, 2, −2, and \( f''(x) = 12x^2 - 16 \).

cf″(c)ShapeVerdictf(c)
0−16 < 0caplocal maximum3
232 > 0cuplocal minimum−13
−232 > 0cuplocal minimum−13

Check one: f(2) = 16 − 32 + 3 = −13.

Worked example 2: a trigonometric function

\( f(x) = x + 2\cos x \) on (0, 2π). Then \( f'(x) = 1 - 2\sin x \), zero when \( \sin x = \frac{1}{2} \): \( x = \frac{\pi}{6} \) or \( \frac{5\pi}{6} \). And \( f''(x) = -2\cos x \).

  • At \( \frac{\pi}{6} \): \( f'' = -2 \cdot \frac{\sqrt{3}}{2} = -\sqrt{3} < 0 \). Local maximum, value \( \frac{\pi}{6} + \sqrt{3} \approx 2.26 \).
  • At \( \frac{5\pi}{6} \): \( f'' = +\sqrt{3} > 0 \). Local minimum, value \( \frac{5\pi}{6} - \sqrt{3} \approx 0.89 \).

Guess first: if f″(c) = 0, is it a point of inflexion?

Look at three functions, each with f′(0) = 0 and f″(0) = 0: \( x^3 \), \( x^4 \) and \( -x^4 \). Guess: are all three points of inflexion at 0?

Answer, then change the power and the sign and watch the sign tape.

See what happens
No, all three are different. \( x^3 \) is neither (inflexion). \( x^4 \) has a local minimum at 0, since \( x^4 \ge 0 \). \( -x^4 \) has a local maximum at 0. So f″(c) = 0 does not mean "inflexion"; it means "this test has nothing to say". Use the first derivative test: for \( x^4 \), f′ = \( 4x^3 \) goes from − to +, so minimum.

Worked example 3: when the test fails

\( f(x) = x^3 - 3x^2 + 3x + 2 \) (from Concept 7). \( f'(x) = 3(x - 1)^2 \) and \( f''(x) = 6(x - 1) \). At x = 1 both are 0, so the second derivative test fails. Back to the first derivative test: f′ > 0 on both sides, so x = 1 is a point of inflexion.

Which test should I use?

SituationBetter test
f″ is easy to find and not zero at csecond derivative test (quick)
f″(c) = 0first derivative test
f not differentiable at c (a corner, like |x|)first derivative test
f″ is long and messyfirst derivative test

Try it. Use the second derivative test on \( f(x) = 2x^3 - 3x^2 - 36x + 10 \).

Answer
\( f'(x) = 6x^2 - 6x - 36 = 6(x - 3)(x + 2) \), zero at 3 and −2. \( f''(x) = 12x - 6 \). f″(3) = 30 > 0: local minimum f(3) = 54 − 27 − 108 + 10 = −71. f″(−2) = −30 < 0: local maximum f(−2) = −16 − 12 + 72 + 10 = 54.

Words to know

Second derivative
f″(x), the derivative of f′(x): how fast the slope is changing.
Twice differentiable at c
f″(c) exists.
Second derivative test
At f′(c) = 0: f″(c) < 0 gives a maximum, f″(c) > 0 a minimum.
Test fails
f″(c) = 0: the test cannot decide, so use the first derivative test.

f′(4) = 0 and f″(4) = −5. What happens at x = 4?

  1. A local maximum
  2. A local minimum
  3. The test fails

For \( f(x) = x^4 \), f′(0) = 0 and f″(0) = 0. What is x = 0?

  1. A point of inflexion
  2. A local minimum
  3. A local maximum

For \( f(x) = 3 + |x| \), why can't you use the second derivative test at x = 0?

  1. Because f″ is zero there
  2. Because f is not differentiable at 0
  3. Because f is not continuous at 0