AP® CALCULUS AB & BC · UNIT 5

First Derivative Test for Local Extrema

Find and justify local maxima and minima using derivative signs. Read graphs, classify corners and stationary points, and practice writing AP Calculus explanations.

Topic 5.4 study notes5 worked examples · 9 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 First Derivative Test

A local maximum is a value that is at least as large as all nearby values of the function. A local minimum is a value that is at most as large as all nearby values. Relative and local mean the same thing here.

Local maximum

f(c)≥f(x) for all domain inputs x sufficiently close to c.

Local minimum

f(c)≤f(x) for all domain inputs x sufficiently close to c.

An interior critical number c belongs to the domain of f and satisfies f′(c)=0 or has no derivative there. The graph point is (c,f(c)), and the extremum value, if one occurs, is f(c).

For the First Derivative Test, check that f is continuous at the interior input c and differentiable on a small open interval on either side. Compare the sign of f′ throughout those two intervals.

First Derivative Test sign patterns
Signs of f′Direction of fResult at c
+→−Rises, then fallsLocal maximum
−→+Falls, then risesLocal minimum
+→+Keeps risingNeither
−→−Keeps fallingNeither

Why the test works. A positive derivative gives strict increase and a negative derivative gives strict decrease. Continuity at c connects the two trends to the value f(c). The two sides of a peak both have smaller values, and the two sides of a valley both have larger values.

2. Build a sign chart and classify each candidate

  1. Check the original domain

    Include only inputs where the function exists. Mark excluded inputs and any boundaries before testing signs.

  2. Find interior critical numbers

    Differentiate and solve for zeros. Include interior inputs where the derivative fails and the function is defined.

  3. Justify the signs on both sides

    Use factors, the graph of the derivative, or an interior test point when the derivative keeps its sign on the interval.

  4. Name the location and value

    State how the signs change at each candidate. Evaluate the original function there if the question asks for the extremum value.

When f′ is continuous and nonzero on a test interval, it keeps its sign there. Pick an easy input in that interval, then record the sign in the chart. A factored derivative can also show the sign directly.

Near a zero, a squared factor stays positive on both sides, while a cubed factor changes sign. Check that the other factors stay nonzero before using this shortcut.

3. Read local extrema from a derivative graph

Compare the graph of f(x)=x4−4x3 with its derivative. The dashed guides mark the two critical inputs on the same horizontal scale.

Original function f

−1 0 1 2 3 Input x −30 −20 −10 0 10 Function value Stationary Local min
The curve continues downward through (0,0). It turns upward at the local minimum (3,−27).

First derivative f′

−1 0 1 2 3 Input x −20 0 20 40 Derivative value Touches Crosses
The derivative touches zero at x=0 and crosses from negative to positive at x=3.

Graph walkthrough

1 · Read the sign on each side

Near 0, the derivative graph is below the horizontal axis on both sides. Near 3, it is below on the left and above on the right.

2 · Classify the critical inputs

The negative signs on both sides of 0 give continued decrease. The negative-to-positive change at 3 gives a local minimum of f there.

4. Five worked examples

Worked example 1

Classify the turns of a cubic

Find and classify the local extrema of f(x)=x3−3x2−9x+5.

1 · Find the critical numbers

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

The polynomial is differentiable everywhere. Its derivative is zero at x=−1 and x=3.

2 · Read the sign pattern

Sign chart for the cubic
IntervalDerivative evidence and trend
(−∞,−1)
f′(−2)=15>0Increasing
(−1,3)
f′(0)=−9<0Decreasing
(3,∞)
f′(4)=15>0Increasing

3 · Explain the two turns and give their heights

At x=−1, the derivative changes from positive to negative, giving a local maximum.

f(−1)=−1−3+9+5

The local maximum value is 10.

At x=3, it changes from negative to positive, giving a local minimum.

f(3)=27−27−27+5

The local minimum value is −22.

Worked example 2

Classify a cusp and a stationary point

Find the local extrema of f(x)=x23(x−5). Use the real cube root for the fractional power.

1 · Check where the derivative exists

f(x)=x53−5x23

For x≠0, the derivative is

f′(x)=5(x−2)3x3.

It vanishes at 2. At 0, the function is continuous with f(0)=0. The difference quotient h−5h3 tends to +∞ from the left and −∞ from the right, so the derivative is undefined there.

2 · Test the three intervals

Sign chart for the cusp function
IntervalDerivative evidence and trend
(−∞,0)
f′(−1)=5>0Increasing
(0,2)
f′(1)=−53<0Decreasing
(2,∞)
f′(8)=5>0Increasing

3 · Use continuity at the cusp and classify both

The positive-to-negative change at 0 gives a local maximum of 0. The negative-to-positive change at 2 gives a local minimum.

f(2)=−343

The local minimum value is approximately −4.762.

A local maximum at a cusp

−1 0 1 2 3 4 5 Input x −6 −4 −2 0 Function value Cusp max Local min
The function is continuous at the cusp (0,0). It rises into the cusp and falls away to the right. The plotted window also shows the local minimum at x=2.

Worked example 3

Read a horizontal tangent where the curve keeps rising

Use the First Derivative Test to analyze f(x)=x3.

1 · Find the stationary input

f′(x)=3x2
3x2=0⟹x=0

2 · Read the signs to the left and right

Sign chart for the stationary cubic
IntervalDerivative evidence and trend
(−∞,0)
f′(−1)=3>0Increasing
(0,∞)
f′(1)=3>0Increasing

3 · Classify the point from the same signs

The derivative stays positive on both sides of 0, so f keeps rising and has no local extremum there. The horizontal tangent at (0,0) occurs at a stationary inflection point.

Worked example 4

Compare a repeated zero and a simple zero

Classify the critical numbers of f(x)=x4−4x3, the function shown in the paired graphs.

1 · Factor to find both critical numbers

f′(x)=4x3−12x2
f′(x)=4x2(x−3)

The roots are 0 and 3. The squared factor is positive away from 0, so x−3 determines the sign on each test interval.

2 · Confirm the derivative signs

Sign chart for the quartic
IntervalDerivative evidence and trend
(−∞,0)
f′(−1)=−16<0Decreasing
(0,3)
f′(1)=−8<0Decreasing
(3,∞)
f′(4)=64>0Increasing

3 · Explain why only one input is a turn

At 0 the curve continues decreasing through a horizontal tangent, so there is no extremum. At 3 the derivative changes from negative to positive, giving a local minimum.

f(3)=81−108=−27

Worked example 5

Separate a local extremum from two vertical asymptotes

Find and classify the local extrema of f(x)=x2x2−4.

1 · Record the domain and differentiate

The original denominator excludes x=−2 and x=2. The quotient rule gives the numerator 2x(x2−4)−2x3, which simplifies to −8x.

f′(x)=−8x(x2−4)2

The only critical number is 0. The excluded inputs divide the sign chart into pieces.

2 · Read the signs on the four intervals

Sign chart with the two excluded inputs
IntervalDerivative evidence and trend
(−∞,−2)
f′(−3)=2425>0Increasing
(−2,0)
f′(−1)=89>0Increasing
(0,2)
f′(1)=−89<0Decreasing
(2,∞)
f′(3)=−2425<0Decreasing

3 · Classify the defined critical point

The derivative changes from positive to negative at 0, so the middle branch has a local maximum of f(0)=0. The outer branches lie above 1, so this maximum is local.

Domain gaps and a local peak

−4 −2 0 2 4 Input x −4 −2 0 1 2 4 6 Function value Local max
The dashed lines mark the excluded inputs x=−2 and x=2. The middle branch has a local maximum at (0,0). Outer branches approach the horizontal asymptote y=1.

5. Handle repeated roots, cusps, and endpoints

Corners and cusps
Check that the function is defined and continuous at the candidate. For f(x)=|x|, the negative derivative to the left and positive derivative to the right give a local minimum at 0.
Repeated zeros
Compare f′(x)=(x−2)2 with f′(x)=(x−2)3. The squared factor gives positive signs on both sides of 2. The cubed factor gives a negative-to-positive change and a local minimum there.
Endpoints
The two-sided test classifies interior points. If a prompt includes endpoint extrema, compare values from the side within the domain. To find absolute extrema on a closed interval, include both endpoints among the candidates.
Flat pieces and jumps
The sign table requires a definite positive or negative sign on each side and continuity at the candidate. For a flat piece or a discontinuity, compare the value at the input directly with nearby function values.

Check continuity before naming a turn. If the left and right curves approach a height different from f(c), the actual value f(c) can change the classification. The derivative signs describe the motion on each side.

6. Compare the extrema tests

Choose the method for the question
MethodWhat it determines
First Derivative Test
Topic 5.4
Classify interior local extrema using the signs of f′ on either side of a continuous point. The derivative can fail at the point itself.
Candidates Test
Topic 5.5
Compare the original function at endpoints and interior critical numbers to find absolute extrema on a finite closed interval where the function is continuous.
Second Derivative Test
Topic 5.7
At an interior stationary point, a positive f″(c) gives a local minimum and a negative f″(c) gives a local maximum. If f″(c)=0, try another method.

7. Nine practice questions

Try each question before opening its notebook solution.

Practice 1. Classify the two turns of a cubic

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

Show solution 1

Notebook solution

1 · Factor and check the signs

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

The signs are +,−,+ across the intervals split by −1 and 1.

2 · Report both extrema

The change from positive to negative gives a local maximum at −1, where f(−1)=4. The change from negative to positive gives a local minimum at 1, where f(1)=0.

Practice 2. Classify a quartic with three critical numbers

Use the First Derivative Test for f(x)=x4−8x2.

Show solution 2

Notebook solution

1 · Split the number line

f′(x)=4x(x−2)(x+2)

The critical numbers are −2, 0, and 2. The derivative signs from left to right are −,+,−,+.

2 · Give the values of the two valleys and the peak

There are local minima of −16 at x=−2 and x=2. At 0 the change is positive to negative, giving a local maximum of 0.

Practice 3. Check both branches of a reciprocal sum

Use the First Derivative Test for f(x)=x+1x.

Show solution 3

Notebook solution

1 · Find the two candidates and the domain gap

f′(x)=1−1x2
f′(x)=(x−1)(x+1)x2

The critical numbers are −1 and 1. The input 0 separates the two branches.

2 · Explain the sign change at each candidate

At −1, the derivative changes from positive to negative, giving a local maximum of f(−1)=−2. At 1, it changes from negative to positive, giving a local minimum of f(1)=2.

Practice 4. Classify a cusp with the opposite turn

Use the First Derivative Test for f(x)=x23(2−x).

Show solution 4

Notebook solution

1 · Differentiate away from zero

f′(x)=4−5x3x3

The derivative vanishes at 45. At 0, the difference quotient for nonzero h is 2−hh3. Its one-sided limits are −∞ and +∞, while f(0)=0.

2 · Follow the derivative signs

The signs are negative, positive, then negative across 0 and 45. The cusp gives a local minimum of 0 at x=0. The next change gives a local maximum at x=45.

f(45)=65(45)23

Practice 5. Classify the turn of a rational function

Use the First Derivative Test for f(x)=x2−1x2+1.

Show solution 5

Notebook solution

1 · Check the denominator and derivative

The original denominator is positive for every real input.

f′(x)=4x(x2+1)2

2 · Read the single sign change

The derivative is negative to the left of 0 and positive to its right, giving a local minimum of f(0)=−1.

Practice 6. Test a claim about a flat tangent

A student says that f(x)=x4 has no local extremum at 0 because f′(0)=0. Use the First Derivative Test to check the claim.

Show solution 6

Notebook solution

1 · Check both sides of zero

f′(x)=4x3

The derivative is negative for x<0 and positive for x>0. Therefore f has a local minimum of 0 at x=0.

Practice 7. Recognize when the sign table is inconclusive

Can the First Derivative Test sign table fail to classify a critical point? Explain.

Show solution 7

Notebook solution

1 · Consider a flat piece next to an increasing piece

g(x)={0x≤0x2x>0

The derivative is zero to the left of 0 and positive to the right. The strict sign patterns leave this case open. Comparing the outputs directly gives a local minimum of 0, with equality on the flat side.

Practice 8. Classify using only a derivative formula

If f′(x)=(x−2)2(x+1) for every real input, identify the locations of the local extrema of f.

Show solution 8

Notebook solution

1 · Compare the simple and repeated zeros

At −1, the derivative changes from negative to positive, so f has a local minimum there. At 2, the derivative is positive on both sides, so f keeps increasing through that critical number.

2 · Report the location

The given derivative identifies x=−1 as the location of the minimum. To state its value, you would also need a function value or a formula for f.

Practice 9. Check the hypothesis in Fermat’s theorem

True or false: every local maximum at c satisfies f′(c)=0. Explain.

Show solution 9

Notebook solution

1 · Use a corner

False. The function f(x)=−|x| has a local maximum at 0. Its left slope is 1 and its right slope is −1, so the derivative at 0 is undefined.

2 · State the condition

At an interior local extremum where f is differentiable, the derivative must equal zero.

8. Write an AP-style justification

In a justification, state the derivative sign on each side and name the resulting change at the candidate. The sign chart organizes your evidence. Write how that evidence establishes the local extremum.

AP response model

1 · Name the two signs

In the cubic example, f′(x)=3(x−3)(x+1). This is positive on (−∞,−1) and negative on (−1,3) by the signs of the two factors.

2 · Connect the signs to the extremum

Since f′ changes from positive to negative at x=−1, the continuous function f has a local maximum there. Its value is f(−1)=10.

  • Check the original domain first. Test both sides of an interior candidate and keep excluded inputs out of the list of critical numbers.
  • Label the derivative. On a graph of f′, read height relative to zero. A crossing of that axis can reveal a change in the direction of f.
  • Separate the input from the output. Give x=c for the location. Substitute into the original function for the extremum value if the prompt asks for it.
  • Match the prompt. A local maximum only compares nearby values. An absolute maximum compares all values on the specified domain or interval.

9. Frequently asked questions

Can a critical number have neither kind of local extremum?

Yes. For f(x)=x3, the derivative is positive on both sides of 0. The function increases through its horizontal tangent.

Can a cusp be the location of a local extremum?

Yes. If the function is continuous at the cusp, use the derivative signs on its two sides. A positive-to-negative change gives a local maximum there.

Why do the vertical asymptotes split the sign chart?

An excluded input separates the domain into intervals. Check the sign on each interval and classify only inputs where the function has a value.

Does the First Derivative Test require a second derivative?

It uses the first derivative on the two sides of a candidate and continuity at that input.

How should I justify an extremum on an AP response?

Name the sign of f′ on each side and explain how the change gives a local maximum or minimum. Give f(c) if the prompt asks for the value.

10. Continue studying calculus

Topic 5.3 shows how the first derivative determines intervals of increase and decrease. Topic 5.4 uses the switch between those behaviors to classify a local turn. Topic 5.5 extends the analysis to absolute extrema by comparing function values.