AP® CALCULUS AB & BC · UNIT 5

Second Derivative Test for Local Extrema

Classify local maxima and minima at stationary points. Read the second derivative, justify each result, and handle cases where the test gives no conclusion.

Topic 5.7 study notes5 worked examples · 7 practice questionsUpdated 10 November 2026
Calculus notebook with limit and integral symbols, a compass and pencil on an olive and cream study desk

1. Apply the Second Derivative Test

The Second Derivative Test classifies an interior stationary point. Start with a function f differentiable on an open interval around c and check that f′(c)=0. Then evaluate the second derivative at that input.

Read the test at a stationary input
Second derivative at cConclusion
f″(c)>0Local minimum at c
f″(c)<0Local maximum at c
f″(c)=0 or undefinedUse another method to classify the point

After classifying the input c, evaluate f(c) if the prompt asks for the extremum value. The test uses one value of f″ for each stationary point.

Check the slope first. If f′(c) is undefined, the Second Derivative Test does not apply. For a continuous corner or cusp, the signs of f′ on the two sides may still classify it.

2. Why the test works

At a stationary input c, f′(c)=0. The definition of the second derivative becomes

f″(c)=limh→0f′(c+h)h.

If this limit is positive, the quotient is positive for sufficiently small nonzero h. For negative h, f′(c+h) is negative. For positive h, it is positive. So f falls into c and rises away from it, giving a local minimum. A negative limit reverses these signs and gives a local maximum.

In a smooth example where the second derivative keeps its sign near the point, this looks like a valley or a peak with a horizontal tangent.

3. Classify each stationary input

  1. Check the domain and find stationary inputs

    Solve for zeros of the first derivative within the domain. Identify any corner or cusp for a separate check.

  2. Evaluate the second derivative

    Substitute each stationary input into the second derivative. A positive result gives a local minimum and a negative result gives a local maximum.

  3. Switch methods if needed

    When the test gives no conclusion, check the signs of the first derivative around a continuous point or compare nearby function values.

  4. State the location and the value

    Name the local maximum or minimum and its input. Evaluate the original function if the question asks for its value.

4. Connect stationary points to the second derivative

The left plot shows the cubic from Example 1. The right plot shows its second derivative. Both use the same input scale. The dashed guides align the stationary inputs x=1 and x=3.

Original function f

0 1 2 3 4 Input x 0 1 2 3 4 5 6 Function value Local max Local min
The short horizontal tangents mark the local maximum at (1,5) and the local minimum at (3,1).

Second derivative f″

0 1 2 3 4 Input x −12 −6 0 6 12 Second derivative value −6 +6
The value at 1 is −6, and the value at 3 is 6. The zero at 2 belongs to the second derivative, while f′(2)=−3.

Graph walkthrough

1 · Find the horizontal tangents on the original graph

Both marked inputs have f′(c)=0. Only those stationary inputs enter the Second Derivative Test.

2 · Read the second-derivative value at each input

The negative value at 1 gives a local maximum. The positive value at 3 gives a local minimum.

5. Five worked examples

Worked example 1

Classify the two turns of a cubic

Classify the critical points of f(x)=x3−6x2+9x+1.

1 · Find the stationary inputs

f′(x)=3x2−12x+9
f′(x)=3(x−1)(x−3)

The polynomial is differentiable everywhere. Its stationary inputs are 1 and 3.

2 · Substitute into the second derivative

f″(x)=6x−12
Classifying the cubic’s stationary inputs
Input cf″(c) and result
1
−6<0Local maximum
3
6>0Local minimum

3 · Evaluate the original function

The local maximum is f(1)=5, and the local minimum is f(3)=1.

Worked example 2

Switch to the First Derivative Test when curvature is zero

Classify the stationary point of f(x)=x4.

1 · Check both derivatives at zero

f′(x)=4x3
f″(x)=12x2

The only stationary input is 0, where f″(0)=0. The Second Derivative Test is inconclusive.

2 · Read the slope on either side

The derivative 4x3 is negative for x<0 and positive for x>0. The sign change gives a local minimum of f(0)=0.

A minimum with zero second derivative

−1 0 1 Input x 0 1 2 3 Function value Flat minimum
The graph falls to (0,0) and rises afterward. Its horizontal tangent and zero second derivative at 0 still allow a minimum.

Worked example 3

Use different tests at different stationary inputs

Classify the critical points of f(x)=x4−4x3+6.

1 · Find both stationary inputs

f′(x)=4x2(x−3)
f″(x)=12x(x−2)

The stationary inputs are 0 and 3.

2 · Compare the second-derivative results

Two different outcomes for one quartic
Input cf″(c) and result
0
0Inconclusive
3
36>0Local minimum

3 · Finish the classification of both inputs

Near 0, 4x2 is positive on either side and x−3 is negative. The first derivative is negative on both sides, so the curve keeps falling through 0. At 3, the positive second derivative gives a local minimum of f(3)=−21.

Worked example 4

Evaluate exact trig values on one period

Classify the interior critical points of f(x)=sinx+cosx on [0,2π], in radians.

1 · Solve for the stationary inputs

f′(x)=cosx−sinx

Sine equals cosine at x=π4 and x=5π4 in this interval.

2 · Evaluate the second derivative

f″(x)=−sinx−cosx
Second derivative values for the trig example
Input cf″(c) and result
π4
−2<0Local maximum
5π4
2>0Local minimum

At each input, sine and cosine have equal magnitude 22. Both are positive at the first input and negative at the second.

3 · Report the exact heights

The local maximum is 2 at x=π4. The local minimum is −2 at x=5π4.

Worked example 5

Classify stationary points on separate rational branches

Classify the critical points of f(x)=x2x−1 on its domain.

1 · Record the exclusion and differentiate

The original domain excludes 1. The quotient rule gives

f′(x)=x(x−2)(x−1)2.

The stationary inputs are 0 and 2. For the next derivative, the same first derivative can be written as 1−1(x−1)2.

2 · Evaluate the second derivative on the two branches

f″(x)=2(x−1)3
Second derivative values for the rational function
Input cf″(c) and result
0
−2<0Local maximum
2
2>0Local minimum

3 · Report the local extrema

The local maximum is f(0)=0. The local minimum is f(2)=4. The excluded input 1 separates the two branches.

Two extrema on different domain intervals

−2 0 1 2 4 Input x −6 −3 0 4 8 Function value Local max Local min
The dashed line marks the excluded input x=1. The left branch has a local maximum at (0,0), and the right branch has a local minimum at (2,4).

6. Handle inconclusive and undefined cases

A zero second derivative at a stationary point leaves several possibilities. Compare the actual behavior of these functions around 0.

Same second derivative value at zero, different results
FunctionBehavior near zero
x3The derivative is positive on both sides. The graph keeps rising through zero.
x4The derivative changes from negative to positive. The graph has a local minimum.
−x4The derivative changes from positive to negative. The graph has a local maximum.
Undefined first derivative
For f(x)=|x|, the slopes to either side of 0 are −1 and 1. Continuity and the change of sign give a local minimum.
Undefined second derivative
For f(x)=x43 with the real cube root, f′(0)=0, but f″(0) is undefined. The first derivative is negative to the left and positive to the right, giving a local minimum.
Endpoint or missing input
The two-sided local test applies to interior stationary points. Compare endpoint values when the problem asks for absolute extrema on a closed interval. Keep excluded inputs out of the list of candidates.

The First Derivative Test uses continuity at the candidate and definite signs on either side. Where signs alone leave the classification open, compare the function’s value with nearby values.

7. Connect a local extremum to an absolute extremum

On a single interval of its domain, suppose f is continuous and has exactly one interior critical number. If that input is already known to give a local extremum, it also gives the corresponding absolute extremum on the interval.

From local to absolute

1 · Verify the conditions across the whole interval

In Example 2, f(x)=x4 is continuous on (−∞,∞). Its derivative 4x3 vanishes only at 0 and is defined everywhere.

2 · Use the established local minimum

The First Derivative Test gives a local minimum at 0. Since this is the only critical number on the interval, f(0)=0 is also the absolute minimum.

Apply this reasoning on the specified interval. For Example 5, each rational branch is a separate interval. On a finite closed interval with multiple critical numbers, use the Candidates Test to compare values at the critical numbers and the endpoints.

8. Seven practice questions

Try each question before opening its notebook solution.

Practice 1. Classify two stationary points of a cubic

Use the Second Derivative Test for f(x)=x3−3x+2.

Show solution 1

Notebook solution

1 · Find the stationary inputs

f′(x)=3(x−1)(x+1)
f″(x)=6x

The stationary inputs are −1 and 1.

2 · Evaluate the test at both inputs

Since f″(−1)=−6, there is a local maximum of f(−1)=4. Since f″(1)=6, there is a local minimum of f(1)=0.

Practice 2. Use the sign at each stationary input

Use the Second Derivative Test for f(x)=2x3−9x2+12x+1.

Show solution 2

Notebook solution

1 · Factor the derivative

f′(x)=6(x−1)(x−2)
f″(x)=12x−18

2 · Classify both critical numbers

At 1, f″(1)=−6, giving a local maximum of f(1)=6. At 2, f″(2)=6, giving a local minimum of f(2)=5.

Practice 3. Check the second derivative at all three inputs

Use the Second Derivative Test for f(x)=x4−8x2+3.

Show solution 3

Notebook solution

1 · Find all stationary inputs

f′(x)=4x(x−2)(x+2)
f″(x)=12x2−16

The three stationary inputs are −2, 0, and 2.

2 · Use the negative value at zero and the positive values at the other inputs

Classifying the three stationary inputs
Input cf″(c) and result
−2
32>0Local minimum
0
−16<0Local maximum
2
32>0Local minimum

The local maximum is f(0)=3. The local minima each have value −13, at x=−2 and x=2.

Practice 4. Analyze an inconclusive fifth-power example

Apply the Second Derivative Test to f(x)=x5 at its stationary point. How can you finish the classification?

Show solution 4

Notebook solution

1 · Check both derivatives

f′(x)=5x4
f″(x)=20x3

Both derivatives are zero at 0, so the Second Derivative Test is inconclusive.

2 · Use the first derivative signs

The first derivative is positive on both sides of zero. The curve keeps rising through 0, so there is no local extremum there.

Practice 5. Decide which test works at a corner

Can you use the Second Derivative Test for f(x)=|x−2| at x=2? Explain.

Show solution 5

Notebook solution

1 · Check the slopes at the corner

The left slope is −1 and the right slope is 1, so f′(2) does not exist. The Second Derivative Test requires f′(2)=0.

2 · Use the sign change

The first derivative changes from negative to positive at the continuous corner. Therefore f(2)=0 is a local minimum.

Practice 6. Explain why the test works

Why does a nonzero second derivative classify a stationary point? Connect the answer to the graph’s bend.

Show solution 6

Notebook solution

1 · Start with the horizontal tangent

The slope is zero at the stationary input. A positive second derivative there gives negative slopes just to the left and positive slopes just to the right. The curve falls into the point and rises out of it. A negative second derivative reverses the slope signs and gives a peak.

Practice 7. Find an extremum when the test is inconclusive

Give an example with f″(c)=0 at a stationary point where a local extremum still occurs.

Show solution 7

Notebook solution

1 · Give the two derivative values

For f(x)=x4, f′(0)=0 and f″(0)=0. The Second Derivative Test is inconclusive.

2 · Compare function values

For every x≠0, x4>0. Since f(0)=0, the function has a local minimum there.

9. Write an AP-style justification

A complete justification identifies the stationary input, gives the value of the second derivative there, and connects its sign to the local classification. If the test gives no conclusion, show the evidence from another method.

AP response model

1 · Show the two required derivative values

In the first example, f′(1)=0 and f″(1)=−6.

2 · State the conclusion and the value

By the Second Derivative Test, f has a local maximum at x=1. Its value is f(1)=5.

  • Use the test at a stationary input. Check f′(c)=0 before reading f″(c).
  • Classify each input separately. In the same problem, one input may need the First Derivative Test and another may need just one second-derivative evaluation.
  • Use f(c) for the height. The derivative values justify the classification. The original function gives the extremum value.

10. Frequently asked questions

What does a positive second derivative mean at a stationary point?

If f′(c)=0 and f″(c)>0 at an interior point where the test applies, f has a local minimum there.

Does a zero second derivative rule out a local extremum?

It leaves the classification open. The function x4 still has a local minimum at zero.

Can the Second Derivative Test classify a cusp?

A cusp may have an undefined first derivative. In that case, check continuity and the signs of the first derivative to each side.

Can a local minimum also be an absolute minimum?

Yes. One sufficient condition is continuity on the interval and exactly one interior critical number, where the local minimum occurs.

Should I substitute into the function or its second derivative?

Use f″(c) to classify the stationary point and f(c) to find its height.

11. Continue studying calculus

Topic 5.4 classifies local extrema from signs of the first derivative. Topic 5.6 develops concavity, which helps explain the second-derivative rule. Topic 5.8 uses both derivatives when sketching a curve.