AP Calculus AB · Topic 5.7 · Reading guide, about 5 min

Using f'' at a critical point to classify it

Learn the second derivative test: classify a critical point as a relative max or min, know when it fails, and justify it.

In one minute

You already know that a critical point is only a candidate for a high or low point. The second derivative test gives a fast way to decide which one it is, using the concavity of the graph right at that point.

The idea is simple: if the tangent is flat and the graph curls upward, you are at the bottom of a bowl. If the tangent is flat and the graph curls downward, you are at the top of a hill. The test also has a gap, and the exam likes to ask about that gap.

Key terms

Critical point
A value x=cx=c in the domain of ff where f′(c)=0f'(c)=0 or f′(c)f'(c) does not exist.
Second derivative test
If f′(c)=0f'(c)=0, then f′′(c)>0f''(c)>0 gives a relative minimum and f′′(c)<0f''(c)<0 gives a relative maximum.
Relative (local) extremum
A point whose yy-value is the largest or smallest among nearby points on the graph.
Absolute (global) extremum
The largest or smallest value of ff over the whole interval or domain being considered.
Concave up
The graph bends upward like a cup, which happens where f′′>0f''>0 because f′f' is increasing.
Concave down
The graph bends downward like a cap, which happens where f′′<0f''<0 because f′f' is decreasing.
Inconclusive
When f′′(c)=0f''(c)=0 the second derivative test gives no answer, so you must use another method.
First derivative test
The backup method: check whether f′f' changes sign at cc, from positive to negative (max) or negative to positive (min).

How the test works

Suppose f′(c)=0f'(c)=0, so the tangent line at x=cx=c is horizontal. Now look at f′′(c)f''(c). If f′′(c)>0f''(c)>0, then f′f' is increasing near cc. Since f′f' is zero at cc and rising, it must be negative just left of cc and positive just right of cc. That is a sign change from negative to positive, so ff has a relative minimum at cc.

If f′′(c)<0f''(c)<0, the derivative is decreasing through zero. It goes from positive to negative, so ff has a relative maximum at cc. The second derivative test is really the first derivative test in disguise, which is why the two never disagree.

To use it you need f′(c)=0f'(c)=0 exactly. The test does not apply at a critical point where f′f' does not exist, such as a corner or cusp, because there is no horizontal tangent to classify. Use the first derivative test there.

Second derivative test at a point where f'(c) = 0
Value of f''(c)Concavity at cConclusion
f′′(c)>0f''(c)>0Concave upRelative minimum at x=cx=c
f′′(c)<0f''(c)<0Concave downRelative maximum at x=cx=c
f′′(c)=0f''(c)=0UnknownInconclusive: use the first derivative test

A fully worked example

Classify the critical points of f(x)=x3−6x2+9x+2f(x)=x^3-6x^2+9x+2. First, f′(x)=3x2−12x+9=3(x−1)(x−3)f'(x)=3x^2-12x+9=3(x-1)(x-3). Setting this equal to zero gives critical points at x=1x=1 and x=3x=3. The derivative exists everywhere, so there are no others.

Next, f′′(x)=6x−12f''(x)=6x-12. At x=1x=1, f′′(1)=6−12=−6f''(1)=6-12=-6, which is negative, so the graph is concave down there and ff has a relative maximum. Its value is f(1)=1−6+9+2=6f(1)=1-6+9+2=6.

At x=3x=3, f′′(3)=18−12=6f''(3)=18-12=6, which is positive, so the graph is concave up and ff has a relative minimum. Its value is f(3)=27−54+27+2=2f(3)=27-54+27+2=2. A written justification would read: "Since f′(3)=0f'(3)=0 and f′′(3)>0f''(3)>0, ff has a relative minimum at x=3x=3."

Notice these are only relative extremes. The cubic goes to +∞+\infty and −∞-\infty at the ends, so neither is absolute on the whole real line.

When the test fails

If f′′(c)=0f''(c)=0, the test says nothing. Three familiar functions show why. For f(x)=x4f(x)=x^4, we have f′(0)=0f'(0)=0 and f′′(0)=0f''(0)=0, yet 00 is a minimum. For f(x)=−x4f(x)=-x^4, again both are zero, yet 00 is a maximum. For f(x)=x3f(x)=x^3, both are zero and 00 is neither.

So a zero second derivative does not tell you the point is an inflection point, and it does not tell you it is not an extremum. When you see f′′(c)=0f''(c)=0 at a critical point, switch to the first derivative test and examine the sign of f′f' on each side.

From relative to absolute

Here is a useful bonus. If a function is continuous on an interval and has exactly one critical point there, and the test shows a relative minimum at it, then that minimum is also the absolute minimum on the interval. The graph cannot turn around again, so it can never dip lower elsewhere. The same is true for a maximum.

Example: let g(x)=x+4xg(x)=x+\frac{4}{x} for x>0x>0. Then g′(x)=1−4x2g'(x)=1-\frac{4}{x^2}, which is zero when x2=4x^2=4. Only x=2x=2 lies in the domain. Then g′′(x)=8x3g''(x)=\frac{8}{x^3}, so g′′(2)=1>0g''(2)=1>0. This is the only critical point on (0,∞)(0,\infty), so the absolute minimum value is g(2)=2+2=4g(2)=2+2=4. This reasoning is the engine of many optimization problems in 5.11.

How it connects

  • Back to 5.4: the first derivative test is the fallback when f′′(c)=0f''(c)=0, and it explains why the second derivative test works.
  • Back to 5.6: concavity from the sign of f′′f'' is the whole basis of the test.
  • Forward to 5.11: when an optimization problem has one critical point, the second derivative test justifies an absolute answer.

Common mistakes

  • **Applying the test where f′(c)≠0f'(c)\neq 0.** The test only classifies critical points with a horizontal tangent. Check f′(c)=0f'(c)=0 first.
  • **Calling a point an inflection point because f′′(c)=0f''(c)=0.** Inflection needs a sign change in f′′f'', and a zero second derivative may be a minimum or maximum.
  • Reversing the signs. Positive f′′f'' means a minimum (a cup), negative means a maximum. Picture the shape before you write the word.
  • **Forgetting to give the yy-value.** If the question asks for the extreme value, plug cc into ff, not f′f' or f′′f''.

How it shows up on the exam

  • A function is given by a formula and you find critical points, compute f′′f'', and write a justified classification, naming the test and the sign of f′′(c)f''(c).
  • A table gives values of f′f' and f′′f'' at several points, and you decide which are relative maxima or minima, noticing where the test cannot decide.
  • A multiple-choice question asks which statement must be true when f′(c)=0f'(c)=0 and f′′(c)=0f''(c)=0, rewarding the knowledge that the test is inconclusive.

Check yourself

  1. If f′(2)=0f'(2)=0 and f′′(2)=−3f''(2)=-3, what do you know about the graph near x=2x=2, and how would you say it in one sentence?
  2. What goes wrong with the second derivative test for f(x)=x3f(x)=x^3 at x=0x=0, and what do you do instead?
  3. Why does one critical point plus a relative minimum on an interval give an absolute minimum?

Practice this topic. AP Practice questions on exactly what this lesson covers, with an explanation for every answer.