Tutorials › AP Calculus › Comparing First and Second Derivative Tests

Monotonicity and Local Extrema · Tutorial 362 of 999

Comparing First and Second Derivative Tests

Learn when each derivative test applies, what it can establish, and how to use sign analysis when the second derivative test cannot decide.

Intermediate 9 min read

What You'll Learn

  • State the conditions for the first derivative test and the second derivative test.
  • Use derivative signs on either side of a critical number to classify a local maximum or minimum.
  • Apply the second derivative test at a stationary point when the second derivative is nonzero.
  • Explain why a positive or negative second derivative gives a local extremum under the test’s conditions.
  • Recognize when a test is unavailable or inconclusive and choose an appropriate alternative.
  • Distinguish local conclusions from claims about absolute extrema.

Two Tests, Different Information

A critical number is a point in the domain where the derivative is zero or does not exist. Once a critical number is found, the next question is what the function does nearby: does it have a local maximum, a local minimum, or neither?

Two common tools answer this question in different ways. The first derivative test examines whether the function is increasing or decreasing on each side of the critical number. The second derivative test uses the curvature indicated by the second derivative at a stationary point. The first test describes nearby changes in direction; the second can often classify a point with less sign-chart work, but only under its conditions.

Key distinction: The first derivative test depends on the signs of \(f'\) on both sides of a critical number. The second derivative test uses \(f''(c)\) at a stationary point \(c\). A result from either test is local: by itself, it does not establish an absolute maximum or minimum on the entire domain.

What Each Test Requires

For an interior point \(c\), the first derivative test applies when \(f\) is continuous at \(c\) and differentiable on intervals immediately to its left and right. The derivative need not exist at \(c\) itself. What matters is whether the derivative has a consistent sign on each side, close enough to \(c\).

First Derivative Test: If \(f'(x)>0\) just to the left of \(c\) and \(f'(x)<0\) just to the right, \(f\) has a local maximum at \(c\). If \(f'(x)<0\) just to the left and \(f'(x)>0\) just to the right, \(f\) has a local minimum at \(c\). If \(f'\) has the same nonzero sign on both sides, this test gives no local extremum at \(c\).

The phrase “just to the left and right” means on some intervals immediately adjacent to \(c\), not necessarily on the whole domain. A sign change from positive to negative corresponds to increasing and then decreasing; a change from negative to positive corresponds to decreasing and then increasing.

The second derivative test is narrower. It requires a stationary point, \(f'(c)=0\), and a second derivative at \(c\). If that second derivative is nonzero, its sign classifies the point.

Second Derivative Test: Suppose \(f'(c)=0\) and \(f''(c)\) exists. If \(f''(c)>0\), then \(f\) has a local minimum at \(c\). If \(f''(c)<0\), then \(f\) has a local maximum at \(c\). If \(f''(c)=0\), this test is inconclusive.

Here, the conditions for the test are local: \(f'\) must be defined in a neighborhood of \(c\), so that \(f''(c)\), the derivative of \(f'\) at \(c\), is defined. In practice, differentiating \(f'\) and evaluating at \(c\) is often the shortest route when the test applies.

Why the Second Derivative Test Works

The second derivative measures the instantaneous rate of change of the first derivative. At a stationary point, \(f'(c)=0\). If \(f''(c)>0\), then near \(c\), the derivative changes approximately like a positive multiple of \(x-c\): it is negative to the left and positive to the right. That is exactly the decrease-then-increase pattern associated with a local minimum.

This reasoning can be made precise using the definition of \(f''(c)\). Because \(f'(c)=0\),

$$ f''(c) = \lim_{x\to c}\frac{f'(x)-f'(c)}{x-c} = \lim_{x\to c}\frac{f'(x)}{x-c}. $$

If \(f''(c)>0\), then the quotient \(\frac{f'(x)}{x-c}\) is positive for all \(x\ne c\) sufficiently close to \(c\). Thus \(f'(x)<0\) to the left of \(c\), and \(f'(x)>0\) to the right. The Mean Value Theorem then turns those derivative signs into comparisons of function values.

1
Use the derivative limit.
For \(x\) close to \(c\), \(f'(x)/(x-c)>0\) when \(f''(c)>0\). Hence \(f'(x)<0\) left of \(c\), and \(f'(x)>0\) right of \(c\).
2
Compare values on the left.
For \(x<c\) sufficiently close to \(c\), the Mean Value Theorem gives \(f(c)-f(x)=f'(\xi)(c-x)\) for some \(\xi\) between \(x\) and \(c\). Since \(f'(\xi)<0\) and \(c-x>0\), \(f(c)-f(x)<0\), so \(f(x)>f(c)\).
3
Compare values on the right.
For \(x>c\) sufficiently close to \(c\), the theorem gives \(f(x)-f(c)=f'(\xi)(x-c)\) for some \(\xi\) between \(c\) and \(x\). Both factors are positive, so \(f(x)>f(c)\).

Values on both sides of \(c\) are therefore greater than \(f(c)\), proving a local minimum. If \(f''(c)<0\), the quotient is negative near \(c\); \(f'\) is positive on the left and negative on the right, and the same Mean Value Theorem argument shows that nearby function values are less than \(f(c)\). This proves the local maximum case.

Worked Example: Both Tests Agree

Worked Example: Classifying Two Critical Numbers of a Cubic

Let \(f(x)=x^3-3x\). Find and classify its critical numbers using both tests.

Differentiate and factor:

$$ f'(x)=3x^2-3=3(x^2-1)=3(x-1)(x+1). $$

Setting \(f'(x)=0\) gives \(x=1\) and \(x=-1\). The derivative is defined everywhere, so these are the critical numbers. For the first derivative test, the factors show \(f'(x)>0\) when \(x<-1\), \(f'(x)<0\) when \(-1<x<1\), and \(f'(x)>0\) when \(x>1\). Therefore, \(f'\) changes from positive to negative at \(-1\), and from negative to positive at \(1\). The first test gives a local maximum at \(-1\) and a local minimum at \(1\).

For the second derivative test,

$$ f''(x)=6x,\qquad f''(-1)=-6<0,\qquad f''(1)=6>0. $$

Since \(f'(-1)=f'(1)=0\), the test applies at both points. It gives a local maximum at \(-1\) and a local minimum at \(1\), matching the first test. The function values are \(f(-1)=(-1)^3-3(-1)=-1+3=2\) and \(f(1)=1^3-3(1)=1-3=-2\). The extrema are \((-1,2)\) and \((1,-2)\). As a check, differentiating \(x^3-3x\) gives \(3x^2-3\), and differentiating again gives \(6x\), as used above.

When the First Test Gives More

The second derivative test can be inconclusive when \(f''(c)=0\). This does not mean that the point is not an extremum; it means only that this particular test does not decide. Checking the signs of \(f'\) on either side can still settle the question.

Worked Example: The Second Derivative Test Is Inconclusive

Let \(f(x)=x^4\). Classify the critical number at \(x=0\).

Differentiate:

$$ f'(x)=4x^3. $$

The derivative is zero at \(x=0\), and \(f'(x)<0\) for \(x<0\) while \(f'(x)>0\) for \(x>0\). Thus the first derivative test gives a local minimum at \(0\). The function value is \(f(0)=0^4=0\).

Now differentiate again:

$$ f''(x)=12x^2,\qquad f''(0)=12(0)^2=0. $$

The second derivative test is inconclusive. This is not a contradiction: that test supplies no classification when \(f''(0)=0\), while the first derivative test does. Direct substitution also checks the classification: for every \(x\ne0\), \(f(x)-f(0)=x^4-0=x^4>0\). Therefore \(f(0)\) is less than nearby function values. Differentiating \(x^4\) gives \(4x^3\), and differentiating \(4x^3\) gives \(12x^2\), verifying both derivatives.

When the Second Derivative Test Is Unavailable

The second derivative test cannot classify a critical number where \(f'\) does not exist, because it requires \(f'(c)=0\) and \(f''(c)\) to exist. The first derivative test may still apply if \(f\) is continuous at the point and the derivative has definite signs on the two sides.

Worked Example: A Critical Point Where the Second Test Cannot Be Used

Let \(f(x)=|x|\). For \(x<0\), \(f(x)=-x\), so \(f'(x)=-1<0\). For \(x>0\), \(f(x)=x\), so \(f'(x)=1>0\). The derivative is undefined at \(0\), which is in the domain, so \(0\) is a critical number.

The derivative changes from negative to positive there. By the first derivative test, \(f\) has a local minimum at \(0\), with \(f(0)=0\). Indeed, for every \(x\ne0\), \(|x|>0=f(0)\), which directly checks the conclusion. The second derivative test is unavailable because \(f'(0)\) does not exist. On each side, the derivative calculation checks out: differentiating \(-x\) gives \(-1\), and differentiating \(x\) gives \(1\).

Choosing a Method and Avoiding Overclaims

When \(f'(c)=0\) and \(f''(c)\ne0\), the second derivative test is often an efficient way to classify \(c\). Use the first derivative test when you need the behavior on both sides, when \(f''(c)=0\), or when the derivative is undefined at \(c\) but exists on either side. A derivative sign chart may also reveal intervals of increase and decrease, information that the second derivative test at one point does not provide.

A common mistake is to treat an inconclusive result as a classification. For \(f(x)=x^4\), the incorrect reasoning is:

$$ f''(0)=0 \quad\Longrightarrow\quad \text{there is no local extremum at }0. $$

The implication is invalid. The second derivative test says nothing decisive when \(f''(0)=0\). The correction is to use another valid method: here \(f'(x)=4x^3\) is negative to the left of zero and positive to the right, so \(f\) has a local minimum.

Both tests give local conclusions. To claim an absolute extremum on a closed interval, for example, you must compare function values at all relevant critical numbers and endpoints. Neither a positive \(f''(c)\) nor a negative-to-positive sign change by itself compares \(f(c)\) with values far away.

Takeaway: Use the second derivative test for a quick local classification when its conditions hold and \(f''(c)\ne0\). Use derivative sign analysis when the second test is inconclusive or unavailable, or when the increase-and-decrease behavior itself matters. An inconclusive test is not evidence for either outcome.

Check Your Understanding

For each question, identify which test applies and state what conclusion it supports.

  1. If \(f'(c)=0\) and \(f''(c)<0\), what does the second derivative test conclude?
  2. If \(f'\) changes from positive to negative across \(c\), what does the first derivative test conclude?
  3. Why does \(f''(c)=0\) fail to classify \(c\) using the second derivative test?
  4. Can the second derivative test be used at a critical number where \(f'(c)\) does not exist? Explain.
  5. Does a local minimum established by either test necessarily have the least function value on the entire domain?

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