AP CALCULUS BC • ANALYTICAL APPLICATIONS OF DIFFERENTIATION

Using the Second Derivative Test to Determine Extrema

Leverage concavity to classify critical points as local maxima or minima without building a sign chart.

Historical Context & Motivation

The quest to find maximum and minimum values of functions is one of the oldest problems in mathematics, predating even the formal invention of calculus. Ancient Greek mathematicians such as Euclid and Apollonius sought to optimize geometric quantities—finding the shortest distance from a point to a line, or the largest rectangle inscribable in a given shape—using purely synthetic methods. These early optimization problems hinted at a deeper algebraic machinery that would not be fully realized for nearly two millennia. The eventual development of the Second Derivative Test represents the culmination of centuries of refinement in understanding how the curvature of a function's graph determines the nature of its turning points.

~300 BCE
Greek Optimization
Euclid and Apollonius solved extremal problems in geometry, such as finding the shortest path and the largest area inscribed in a figure, using purely geometric reasoning.
1665–1676
Birth of Calculus
Newton and Leibniz independently developed the foundations of differential calculus, introducing the concept of the derivative and the idea that extrema occur where the tangent line is horizontal.
1740s
Euler's Systematization
Leonhard Euler formalized the use of higher-order derivatives to classify critical points, establishing the logical framework behind the second derivative test in his treatise Introductio in analysin infinitorum.
1797
Lagrange's Théorie des fonctions analytiques
Joseph-Louis Lagrange provided rigorous Taylor-series-based arguments showing that the sign of the second derivative at a critical point determines whether the function curves upward or downward, completing the modern proof.
Modern Era
Standard Calculus Curriculum
The Second Derivative Test became a cornerstone of introductory calculus courses worldwide, valued for its elegance and direct connection between concavity and the nature of extrema.

The central question that the Second Derivative Test addresses is elegantly simple: once you have located a critical point where f′(c) = 0, how can you determine—without examining the sign of f′ on intervals to the left and right—whether that point is a local maximum, a local minimum, or neither? The answer lies in the concept of concavity, which the second derivative encodes directly. This test provides a computationally efficient alternative to the First Derivative Test, particularly when evaluating f″ at the critical point is simpler than analyzing the sign behavior of f′ across an interval.

Core Principles & Definitions

Before applying the Second Derivative Test, you must have a firm command of the prerequisite concepts that underpin it. The test synthesizes three interrelated ideas: critical points, the behavior of the first derivative, and concavity as measured by the second derivative. Each of these ideas connects to the geometric shape of the curve in a way that makes classification of extrema nearly visual once the algebra is done.

1

Critical Point

A value x = c in the domain of f where f′(c) = 0 or f′(c) does not exist. Critical points are the only candidates for local extrema by Fermat's Theorem.
2

Concavity

A function is concave up on an interval where f″(x) > 0 (the curve bends upward like a cup) and concave down where f″(x) < 0 (the curve bends downward like a cap).
3

Second Derivative Test Statement

If f′(c) = 0 and f″(c) > 0, then f has a local minimum at c. If f′(c) = 0 and f″(c) < 0, then f has a local maximum at c. If f″(c) = 0, the test is inconclusive.
4

Inconclusive Case

When f″(c) = 0, the critical point could be a local max, local min, or an inflection point. You must revert to the First Derivative Test or use higher-order derivative tests.
KEY TAKEAWAY
Think of a ball rolling along the curve of f. At a critical point, the ball momentarily has zero horizontal velocity (f′ = 0). If the ground curves upward (f″ > 0), the ball sits in a valley—a local minimum. If the ground curves downward (f″ < 0), the ball sits on a hilltop—a local maximum. If the ground is perfectly flat in both curvature and slope (f″ = 0), you cannot tell which way the ball will roll without further investigation.

Visual Explanation

The following diagram illustrates the geometric intuition behind the Second Derivative Test. At each labeled critical point, the first derivative is zero—the tangent line is horizontal. The curvature of the graph at that point, captured by the sign of the second derivative, determines whether the point sits in a concave-up "bowl" (local minimum) or a concave-down "dome" (local maximum).

The purple curve shows a function with two critical points. At c₁ (pink), the curve is concave down (f″ < 0), producing a local maximum. At c₂ (cyan), the curve is concave up (f″ > 0), producing a local minimum. The dashed horizontal lines represent tangent lines with slope zero.

Observe how the concavity at each critical point determines the shape of the curve in a small neighborhood. Near the local maximum at c₁, the graph lies below its horizontal tangent line on both sides—this is precisely the geometric meaning of concave down. Near the local minimum at c₂, the graph lies above its horizontal tangent line on both sides—the hallmark of concave up. This relationship between concavity and the position of the curve relative to its tangent line is what makes the Second Derivative Test work.

Mathematical Framework

The formal justification of the Second Derivative Test rests on the local Taylor expansion of f about the critical point c. Because f′(c) = 0, the first-order term vanishes, and the behavior of f near c is dominated by the second-order term involving f″(c). This is why the sign of f″(c) alone suffices to classify the critical point, provided f″(c) ≠ 0.

TAYLOR EXPANSION AT A CRITICAL POINT
f(c + h) = f(c) + f′(c)·h + ½·f″(c)·h² + O(h³)
Since f′(c) = 0, this simplifies to f(c + h) ≈ f(c) + ½·f″(c)·h². The sign of f″(c) determines whether f(c + h) is greater than or less than f(c) for small h.
SECOND DERIVATIVE TEST — LOCAL MINIMUM
If f′(c) = 0 and f″(c) > 0, then f has a local minimum at x = c.
When f″(c) > 0, the term ½·f″(c)·h² > 0 for all small h ≠ 0, so f(c + h) > f(c). The function value at c is less than all nearby values—a local minimum.
SECOND DERIVATIVE TEST — LOCAL MAXIMUM
If f′(c) = 0 and f″(c) < 0, then f has a local maximum at x = c.
When f″(c) < 0, the term ½·f″(c)·h² < 0 for all small h ≠ 0, so f(c + h) < f(c). The function value at c exceeds all nearby values—a local maximum.
INCONCLUSIVE CASE
If f′(c) = 0 and f″(c) = 0, the Second Derivative Test is inconclusive.
Consider f(x) = x⁴ (local min at 0), f(x) = −x⁴ (local max at 0), and f(x) = x³ (inflection at 0). All have f′(0) = 0 and f″(0) = 0, yet exhibit three different behaviors. The First Derivative Test or higher-order analysis is required.
📝 AP Exam Tip
On the AP Calculus BC exam, always state the conditions you are checking: "f′(c) = 0 and f″(c) > 0, so by the Second Derivative Test, f has a local minimum at x = c." Omitting the justification—even if your answer is correct—can cost rubric points on free-response questions.

Classification Flowchart & Decision Logic

When confronted with a function whose extrema you must classify, the decision process follows a clear algorithmic path. First, compute f′(x) and solve f′(x) = 0 to locate all critical points where the derivative vanishes. Next, compute f″(x) and evaluate it at each critical point. The sign of f″ at that point determines the classification. The flowchart below captures this decision tree, including the fallback path when the test is inconclusive.

Decision flowchart for the Second Derivative Test. After finding critical points by setting f′(c) = 0, evaluate f″(c). A negative value yields a local maximum (pink), a positive value yields a local minimum (cyan), and zero means the test is inconclusive (amber), requiring the First Derivative Test or higher-order analysis.
Summary of Second Derivative Test outcomes
Conditionf″(c)ConclusionGeometric Meaning
f′(c) = 0> 0Local minimumCurve is concave up — shaped like a bowl
f′(c) = 0< 0Local maximumCurve is concave down — shaped like a dome
f′(c) = 0= 0InconclusiveCurvature vanishes — could be max, min, or inflection

Worked Example

Let us apply the Second Derivative Test to classify the critical points of a polynomial function that appears frequently in AP Calculus BC problems. Consider the function f(x) = 2x³ − 9x² + 12x − 4. We will find all critical points, evaluate f″ at each, and classify them.

Classify the extrema of f(x) = 2x³ − 9x² + 12x − 4
1
Step 1 — Compute the first derivativeDifferentiate f(x) = 2x³ − 9x² + 12x − 4 using the power rule. f′(x) = 6x² − 18x + 12. Factor out the common factor of 6: f′(x) = 6(x² − 3x + 2) = 6(x − 1)(x − 2).
f′(x) = 6(x − 1)(x − 2)
2
Step 2 — Find the critical pointsSet f′(x) = 0 and solve. 6(x − 1)(x − 2) = 0 gives x = 1 and x = 2. Since f′ is defined for all real x, these are the only critical points.
Critical points: x = 1 and x = 2
3
Step 3 — Compute the second derivativeDifferentiate f′(x) = 6x² − 18x + 12 to obtain f″(x) = 12x − 18.
f″(x) = 12x − 18
4
Step 4 — Evaluate f″ at each critical pointAt x = 1: f″(1) = 12(1) − 18 = −6. Since f″(1) < 0, the graph is concave down at x = 1, so f has a local maximum at x = 1. At x = 2: f″(2) = 12(2) − 18 = 6. Since f″(2) > 0, the graph is concave up at x = 2, so f has a local minimum at x = 2.
f″(1) = −6 → local max; f″(2) = 6 → local min
5
Step 5 — State the extrema valuesCompute the function values: f(1) = 2(1)³ − 9(1)² + 12(1) − 4 = 2 − 9 + 12 − 4 = 1. f(2) = 2(2)³ − 9(2)² + 12(2) − 4 = 16 − 36 + 24 − 4 = 0. Therefore, f has a local maximum of 1 at x = 1 and a local minimum of 0 at x = 2.
Local maximum: (1, 1); Local minimum: (2, 0)

First Derivative Test vs. Second Derivative Test

Both the First Derivative Test and the Second Derivative Test serve the same purpose—classifying critical points as local maxima, local minima, or neither—but they do so through different mechanisms. Understanding when each test is preferable is essential for both exam efficiency and deeper conceptual understanding. The following comparison highlights their strengths and limitations.

Comparison of the First and Second Derivative Tests for classifying critical points
FeatureFirst Derivative TestSecond Derivative Test
What you computeSign of f′ on intervals flanking cValue of f″(c) at the single point c
Handles f′(c) DNEYes — works at cusps and cornersNo — requires f″(c) to exist
Inconclusive caseNever inconclusive (always classifies or identifies neither)Inconclusive when f″(c) = 0
Computational effortMust test points in two intervals and determine signsSingle evaluation of f″(c) — often faster
Best used whenf″ is hard to compute or f″(c) = 0f″ is easy to compute and f″(c) ≠ 0
KEY TAKEAWAY
Think of the Second Derivative Test as a quick diagnostic scan and the First Derivative Test as a comprehensive MRI. The scan (SDT) is fast and usually conclusive, but occasionally the results come back "unclear" (when f″(c) = 0), and you need the more thorough procedure (FDT) to get a definitive answer. On the AP exam, attempt the Second Derivative Test first for efficiency, and fall back to the First Derivative Test only when needed.

Connection to Advanced Theory

The Second Derivative Test for single-variable functions is the gateway to more powerful optimization machinery that you will encounter in multivariable calculus and beyond. In Calculus III, the analogous test for functions of two variables f(x, y) uses the Hessian matrix—a matrix of second partial derivatives—to classify critical points. The determinant of the Hessian and the sign of f_xx play roles analogous to f″(c) in the single-variable case.

Second Derivative Test: single-variable vs. multivariable extensions
FeatureSingle-Variable (Calc BC)Multivariable (Calc III)
Critical point conditionf′(c) = 0∇f(a, b) = 0 (both partials vanish)
Classification toolSign of f″(c)Determinant of Hessian: D = f_xx·f_yy − (f_xy)²
Local min conditionf″(c) > 0D > 0 and f_xx > 0
Local max conditionf″(c) < 0D > 0 and f_xx < 0
New phenomenonN/AD < 0 → saddle point (no single-variable analog)

In optimization theory and machine learning, second-derivative information is used ubiquitously. Newton's method for optimization uses the Hessian to find critical points of objective functions, and the second-order conditions determine whether the algorithm has converged to a minimum rather than a maximum or saddle point. Mastering the single-variable Second Derivative Test now gives you the conceptual foundation for these advanced applications, where the principle is identical—it is the sign of the "curvature" at a stationary point that determines its nature—but the computational machinery scales to arbitrary dimensions.

Practice Problems

1
Suppose f is a twice-differentiable function with f′(3) = 0 and f″(3) = −7. Which of the following is true?
2
Let g(x) = x⁴ − 8x² + 3. Using the Second Derivative Test, classify all critical points where the test is conclusive. At which x-value does g have a local maximum?
3
Let h(x) = xe^(−x). Find all critical points and use the Second Derivative Test to classify each. Which of the following correctly identifies the local extremum?
PROBLEM 4APPLIED
A manufacturer determines that the profit P (in thousands of dollars) from producing x hundred units of a product is given by P(x) = −2x³ + 15x² − 36x + 40 for x > 0. Use the Second Derivative Test to determine the production level that yields a local maximum profit. (a) Find all critical points of P(x) for x > 0. (b) Apply the Second Derivative Test to classify each critical point. (c) State the production level (in units) that maximizes local profit and compute that profit. (d) Explain why the Second Derivative Test is sufficient here and the First Derivative Test is not needed.
PROBLEM 5CRITICAL THINKING
Consider the family of functions f_n(x) = x^(2n) for positive integers n ≥ 1. (a) Show that x = 0 is a critical point for every f_n. (b) Determine for which values of n the Second Derivative Test is conclusive at x = 0, and for which it is inconclusive. (c) For the inconclusive case(s), use the First Derivative Test or another argument to classify x = 0.

Summary

The Second Derivative Test provides a streamlined method for classifying critical points of a twice-differentiable function. After locating all values c where f′(c) = 0, you evaluate f″(c). If f″(c) > 0, the curve is concave up and f has a local minimum; if f″(c) < 0, the curve is concave down and f has a local maximum; if f″(c) = 0, the test is inconclusive and you must fall back on the First Derivative Test.

The test's power comes from the Taylor expansion at the critical point: with the first-order term vanishing, the second-order term ½·f″(c)·h² dominates the behavior of f near c. This single-variable framework extends naturally to the Hessian matrix in multivariable calculus. On the AP exam, remember to state both conditions—f′(c) = 0 and the sign of f″(c)—and explicitly name the test for full justification credit.

Varsity Tutors • AP Calculus BC • Using the Second Derivative Test to Determine Extrema