Tutorials › AP Calculus › Applying the Second Derivative Test Correctly

Justification and Candidate Tests · Tutorial 909 of 999

Applying the Second Derivative Test Correctly

Use the value of the second derivative at a stationary point to justify a local maximum or minimum, while checking the conditions that make the test valid.

Intermediate 9 min read

What You'll Learn

  • State the conditions for applying the second derivative test.
  • Explain why a positive second derivative gives a local minimum.
  • Explain why a negative second derivative gives a local maximum.
  • Evaluate the second derivative at the correct stationary point.
  • Write a concise, complete justification for an AP free-response solution.

What the Second Derivative Test Tells You

At an interior point where a differentiable function has a horizontal tangent, the second derivative can help classify the point. It measures how the first derivative is changing nearby: a positive second derivative corresponds to upward bending, while a negative second derivative corresponds to downward bending.

The test is useful because it can classify a local extremum with a calculation at one point. But that conclusion is justified only when the required conditions hold. In particular, the point must satisfy \(f'(c)=0\), and the second derivative must have the appropriate nonzero sign.

Theorem: Second Derivative Test. Let \(f\) be twice differentiable on an open interval containing \(c\), and suppose \(f''\) is continuous at \(c\). If \(f'(c)=0\), then:
  • If \(f''(c)>0\), \(f\) has a strict local minimum at \(c\).
  • If \(f''(c)<0\), \(f\) has a strict local maximum at \(c\).

A local minimum means that there is an interval around \(c\) on which \(f(x)\geq f(c)\); a strict local minimum has \(f(x)>f(c)\) for nearby \(x\ne c\). A local maximum is defined with the inequalities reversed. The theorem concerns an interior point and a local extremum; it does not by itself establish an absolute maximum or minimum over a larger domain.

Why the Sign Gives the Classification

Here is the reasoning for \(f''(c)>0\). Continuity of \(f''\) at \(c\) means that if \(f''(c)\) is positive, then \(f''\) remains positive sufficiently close to \(c\). On that neighborhood, the Mean Value Theorem applied to \(f'\) shows that \(f'\) is increasing. Since \(f'(c)=0\), \(f'\) is negative just to the left of \(c\) and positive just to the right. Thus \(f\) decreases toward \(c\) and increases away from it.

1
Use continuity to preserve the sign.
If \(f''(c)>0\), continuity ensures \(f''(x)>0\) for all \(x\) sufficiently close to \(c\).
2
Determine the sign of \(f'\).
The Mean Value Theorem shows that \(f'\) increases through its value \(f'(c)=0\), so \(f'(x)<0\) to the left and \(f'(x)>0\) to the right.
3
Determine the change in \(f\).
The function decreases before \(c\) and increases after \(c\), so nearby function values are greater than \(f(c)\).

The sign argument can be written precisely. Choose a neighborhood of \(c\) where \(f''(x)>0\). For any \(x\ne c\) in that neighborhood, apply the Mean Value Theorem to \(f'\) between \(c\) and \(x\). For some \(u\) between those points,

$$ f'(x)-f'(c)=f''(u)(x-c). $$

Because \(f'(c)=0\) and \(f''(u)>0\), this gives \(f'(x)>0\) when \(x>c\), and \(f'(x)<0\) when \(x<c\). Now apply the Mean Value Theorem to \(f\) between \(c\) and \(x\). For some \(v\) between them,

$$ f(x)-f(c)=f'(v)(x-c). $$

If \(x>c\), both factors on the right are positive. If \(x<c\), both are negative. In either case \(f(x)-f(c)>0\), proving that \(c\) is a strict local minimum. If \(f''(c)<0\), continuity instead gives \(f''<0\) nearby. The same Mean Value Theorem reasoning makes \(f'\) positive to the left and negative to the right, so \(f(x)-f(c)<0\) on both sides. Therefore \(c\) is a strict local maximum.

Worked Examples

Worked Example: A Positive Second Derivative

Classify the stationary point of \(f(x)=x^2+4x+7\) using the second derivative test.

First find the first derivative and set it equal to zero:

$$ f'(x)=2x+4,\qquad 2x+4=0,\qquad x=-2. $$

The candidate is \(c=-2\). Differentiate again and evaluate:

$$ f''(x)=2,\qquad f''(-2)=2>0. $$

The function is a polynomial, so it is twice differentiable and its second derivative is continuous. Since \(f'(-2)=0\) and \(f''(-2)>0\), the test proves that \(f\) has a strict local minimum at \(x=-2\). Its value there is

$$ f(-2)=(-2)^2+4(-2)+7=4-8+7=3. $$

Thus the local minimum point is \((-2,3)\). As a check, completing the square gives \(f(x)=(x+2)^2+3\). Since \((x+2)^2\geq 0\), the function is at least \(3\), with equality at \(x=-2\), confirming the classification.

Worked Example: Classifying Two Stationary Points

For \(g(x)=x^3-3x\), find and classify all stationary points using the second derivative test.

Differentiate and solve \(g'(x)=0\):

$$ g'(x)=3x^2-3=3(x-1)(x+1), \qquad 3(x-1)(x+1)=0, \qquad x=1\ \text{or}\ x=-1. $$

The second derivative is

$$ g''(x)=6x. $$

At \(x=-1\), \(g'(-1)=3(1)-3=0\) and \(g''(-1)=6(-1)=-6<0\). The second derivative test proves a strict local maximum there. Its function value is

$$ g(-1)=(-1)^3-3(-1)=-1+3=2. $$

At \(x=1\), \(g'(1)=3(1)-3=0\) and \(g''(1)=6(1)=6>0\). The test proves a strict local minimum there, with value

$$ g(1)=1^3-3(1)=1-3=-2. $$

The classifications can also be checked directly. Around \(x=-1\), write \(x=-1+h\). Then

$$ g(-1+h)=2-3h^2+h^3. $$

For sufficiently small nonzero \(h\), \(-3h^2+h^3<0\), so the nearby values are below \(2\). Around \(x=1\), write \(x=1+h\):

$$ g(1+h)=-2+3h^2+h^3. $$

For sufficiently small nonzero \(h\), \(3h^2+h^3>0\), so nearby values are above \(-2\). Both checks agree with the test.

Worked Example: A Function Defined on a Restricted Domain

Classify the stationary point of \(h(x)=\ln x-\frac{x}{2}\), whose domain is \(x>0\).

Differentiate on the domain and solve for a stationary point:

$$ h'(x)=\frac{1}{x}-\frac{1}{2}, \qquad \frac{1}{x}-\frac{1}{2}=0, \qquad \frac{1}{x}=\frac{1}{2}, \qquad x=2. $$

The candidate \(2\) is in the domain. The second derivative and its value at the candidate are

$$ h''(x)=-\frac{1}{x^2}, \qquad h''(2)=-\frac{1}{2^2}=-\frac{1}{4}<0. $$

The function is twice differentiable with continuous second derivative for \(x>0\). Because \(h'(2)=0\) and \(h''(2)<0\), the second derivative test proves that \(h\) has a strict local maximum at \(x=2\). The function value is

$$ h(2)=\ln 2-\frac{2}{2}=\ln 2-1. $$

The result is the local maximum point \((2,\ln 2-1)\). As a check on the direction of change, \(h'(x)>0\) for \(0<x<2\), since \(1/x>1/2\), and \(h'(x)<0\) for \(x>2\). The function increases before \(2\) and decreases after it, consistent with a local maximum.

Writing a Complete Justification

In an AP response, a conclusion such as “there is a minimum” should be connected to the theorem’s hypotheses and evidence. A concise justification identifies the candidate, verifies the first-derivative condition, evaluates the second derivative there, and states the classification.

Useful justification pattern: “At \(x=c\), \(f'(c)=0\) and \(f''(c)=k>0\). Since \(f\) is twice differentiable near \(c\) and \(f''\) is continuous there, the second derivative test shows that \(f\) has a strict local minimum at \(x=c\).” For \(k<0\), replace “minimum” with “maximum.”

If a problem asks for the function value as well, evaluate \(f(c)\) and report the point \((c,f(c))\). Keep the candidate coordinate and the function value distinct: the test classifies the behavior at \(x=c\), while \(f(c)\) gives the corresponding vertical coordinate.

A Common Sign Error

The sign of \(f''(c)\) is easy to reverse. For example, for \(q(x)=x^2\), a mistaken calculation might say, “\(q''(0)=2>0\), so \(x=0\) is a local maximum.” The numerical derivative is correct, but the conclusion is not: a positive second derivative gives a local minimum, not a local maximum.

The correction is \(q'(x)=2x\), so \(q'(0)=0\), and \(q''(x)=2\), so \(q''(0)=2>0\). The second derivative test therefore gives a strict local minimum at \(x=0\). Directly, \(q(x)=x^2\geq 0=q(0)\), which checks the conclusion.

Another important safeguard is to evaluate \(f''\) at the stationary point, not at an unrelated input. The test uses the pair of values \(f'(c)\) and \(f''(c)\) at the same \(c\). If \(f'(c)\ne 0\), the test’s hypothesis is not satisfied, so the sign of \(f''(c)\) alone does not classify a local extremum there.

When the Test Gives a Classification

The decisive cases are \(f'(c)=0\) together with a continuous, nonzero second derivative at \(c\). A positive value proves a strict local minimum; a negative value proves a strict local maximum. These are sufficient conditions: once they hold, no further sign chart is needed to establish the local classification.

The requirement that \(f'(c)=0\) matters because the test concerns a stationary point. The requirement that the second derivative be nonzero matters because the conclusion depends on its sign. If a required condition is absent, do not claim that this test has classified the point. In particular, a zero second derivative does not supply either of the positive- or negative-sign conclusions in the theorem.

Finally, a local classification answers a question about nearby inputs only. To determine an absolute extremum on a closed interval, one must compare the relevant values across the interval, including its endpoints. The second derivative test alone makes no such global comparison.

Check Your Understanding

For each question, identify the hypotheses you would check before stating a conclusion from the second derivative test.

  1. If \(f'(3)=0\), \(f''(3)=5\), and \(f''\) is continuous near \(3\), what local classification follows?
  2. If \(g'(a)=0\) and \(g''(a)=-7\), what classification follows when the other hypotheses of the test hold?
  3. For \(p(x)=x^2-6x+10\), find the stationary point and use the second derivative test to classify it.
  4. Why is the sign of \(f''(c)\) alone insufficient when \(f'(c)\ne 0\)?
  5. Does a local maximum established by this test automatically have to be an absolute maximum on the function’s entire domain? Explain.

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon