First derivative test (local maximum): Infer a local peak from a positive-to-negative sign change

By Vegard Gjerde Based on Masterful Learning 8 min read
first-derivative-test-local-maximum calculus derivatives math learning-strategies

First derivative test (local maximum) lets you infer that a function has a local maximum at a point when its derivative changes from positive to negative there. The conclusion is justified only when the derivative sign really switches (+ to )(+ \text{ to } -) at cc, so the core habit is checking the sign on both sides before concluding “local max.” That condition-aware move selection is a core fluency skill practiced in the Unisium Study System.

Unisium hero image titled First derivative test (local maximum) showing the principle equation and a conditions card.
The first derivative test for a local maximum uses the sign pattern f(x)>0f'(x)>0 just left of cc and f(x)<0f'(x)<0 just right of cc.

On this page: The Principle | Conditions | Failure Modes | EE Questions | Retrieval Practice | Practice Ground | Solve a Problem | Related Principles | FAQ | How This Fits


The Principle

The move: Infer that ff has a local maximum at cc from a positive-to-negative sign change in ff' around cc.

The invariant: The derivative sign pattern keeps the same local-behavior meaning throughout the step: increasing before cc and decreasing after cc supports a local maximum at cc.

Pattern: f changes (+ to ) at cf has a local maximum at cf' \text{ changes } (+ \text{ to } -) \text{ at } c \quad\longrightarrow\quad f \text{ has a local maximum at } c

Valid ✓Not valid ✗
f(x)>0f'(x)>0 just left of cc and f(x)<0f'(x)<0 just right of cc \Rightarrow ff has a local maximum at ccf(x)<0f'(x)<0 just left of cc and f(x)>0f'(x)>0 just right of cc ⇏\not\Rightarrow ff has a local maximum at cc

Left: the derivative sign shows ff rising into cc and falling after it, so the peak conclusion is justified. Right: the sign pattern is reversed, so the tempting “local max” conclusion is invalid; that pattern supports a local minimum instead.


Conditions of Applicability

Condition: f’ changes (+ to -) at c

A critical point alone is not enough. The derivative must be positive just left of cc and negative just right of cc for the local-maximum conclusion to follow.

Before applying, check: inspect the sign of ff' immediately left and right of cc; if the signs are ++ then -, the theorem is available.

If the condition is violated: the theorem does not justify a local maximum; the point may be a local minimum or may fail to be an extremum at all.

  • The test is about the sign of ff' near cc, not only about the single value f(c)f'(c).
  • A ( to +)(- \text{ to } +) sign change supports the opposite conclusion: a local minimum.
  • You can get the needed sign information from a sign chart, interval test points, or a factorized derivative.
  • The derivative facts usually come from rules such as the power rule and the derivative sum rule before you apply the test itself.

Want the complete framework behind this guide? Read Masterful Learning.


Common Failure Modes

Failure mode: treat “critical point” or f(c)=0f'(c)=0 as enough for a local maximum → you conclude a peak at a point where the function either keeps increasing or turns into a local minimum.

Debug: ignore the point value first and inspect the sign of ff' on both sides of cc; the theorem needs (+ to )(+ \text{ to } -), not merely f(c)=0f'(c)=0.


Elaborative Encoding

Use these questions to build deep understanding. (See Elaborative Encoding for the full method.)

Within the Principle

  • Why does a (+ to )(+ \text{ to } -) sign change in ff' mean the function rises before cc and falls after cc?
  • Why is checking only f(c)=0f'(c)=0 weaker than checking the sign of ff' on both sides of cc?

For the Principle

  • When you have a candidate critical point, what is the quickest reliable process for deciding whether the first derivative test can prove a local maximum there?
  • Why is a sign chart around cc a stronger basis for this theorem than checking only the single value f(c)f'(c)?

Between Principles

  • How does this sign-change test differ from using the derivative at a point definition, which tells you what a derivative means but does not by itself classify a point as a local maximum?

Generate an Example

  • Create one derivative sign chart that justifies a local maximum and one near-miss sign chart that looks structured but does not justify that conclusion.

Retrieval Practice

Answer from memory, then click to reveal and check. (See Retrieval Practice for the full method.)

State the move in one sentence: _____Infer that f has a local maximum at c when f' changes from positive to negative at c.
Write the canonical equation: _____ε>0: x(cε,c)f(x)>0, x(c,c+ε)f(x)<0\exists \varepsilon>0:\ x\in(c-\varepsilon,c) \Rightarrow f^{\prime}(x)>0,\ x\in(c,c+\varepsilon) \Rightarrow f^{\prime}(x)<0
State the canonical condition: _____f' changes (+ to -) at c

Practice Ground

Use these exercises to build move-selection fluency. (See Self-Explanation for how to use worked examples effectively.)

Procedure Walkthrough

Starting from f(x)=x33x2+4f(x)=x^3-3x^2+4 and the candidate point c=0c=0, determine whether ff has a local maximum there.

StepExpressionOperation
0f(x)=x33x2+4, c=0f(x)=x^3-3x^2+4,\ c=0-
1f(x)=3x26x=3x(x2)f'(x)=3x^2-6x=3x(x-2)Differentiate and factor to expose the sign pattern
2x<0f(x)>0, 0<x<2f(x)<0x<0 \Rightarrow f'(x)>0,\ 0<x<2 \Rightarrow f'(x)<0Sign analysis on intervals around 00
3ff' changes (+ to )(+ \text{ to } -) at 00State the canonical condition
4ff has a local maximum at x=0x=0First derivative test
5f(0)=4f(0)=4, so the local maximum point is (0,4)(0,4)Evaluate the function at the classified point

Drills

Format B: Action label

What principle justifies the step below, and is the move valid?

f(x)>0 on (1.9,2),f(x)<0 on (2,2.1)f has a local maximum at x=2f'(x)>0 \text{ on } (1.9,2),\quad f'(x)<0 \text{ on } (2,2.1) \quad\Longrightarrow\quad f \text{ has a local maximum at } x=2

Reveal

First derivative test (local maximum). The move is valid because the derivative changes from positive to negative at x=2x=2.


What principle is being attempted below, and is the move valid?

f(x)<0 just left of 3,f(x)>0 just right of 3f has a local maximum at x=3f'(x)<0 \text{ just left of } 3,\quad f'(x)>0 \text{ just right of } 3 \quad\Longrightarrow\quad f \text{ has a local maximum at } x=3

Reveal

The attempted move is the first derivative test for a local maximum, but it is not valid. The sign pattern is ( to +)(- \text{ to } +), which supports a local minimum, not a local maximum.


What principle is being attempted below, and is the move valid?

f(x)>0 just left of 1,f(x)>0 just right of 1f has a local maximum at x=1f'(x)>0 \text{ just left of } -1,\quad f'(x)>0 \text{ just right of } -1 \quad\Longrightarrow\quad f \text{ has a local maximum at } x=-1

Reveal

The attempted move is again the first derivative test for a local maximum, but it is not valid. There is no sign change, so the theorem does not justify any local-maximum conclusion.


What principle is being attempted below, and is the move valid?

f(4)=0f has a local maximum at x=4f'(4)=0 \quad\Longrightarrow\quad f \text{ has a local maximum at } x=4

Reveal

The attempted move is the first derivative test for a local maximum, but it is not valid. The theorem needs a + to + \text{ to } - sign change around 44, not just the single-point fact f(4)=0f'(4)=0.


Format C: Transition identification

Which transition uses the first derivative test directly?

f(x)=(x2)(x+1)(1)x<2f(x)>0, x>2f(x)<0(2)f changes (+ to ) at 2(3)f has a local maximum at 2f'(x)=-(x-2)(x+1) \xrightarrow{(1)} x<2 \Rightarrow f'(x)>0,\ x>2 \Rightarrow f'(x)<0 \xrightarrow{(2)} f' \text{ changes } (+ \text{ to } -) \text{ at } 2 \xrightarrow{(3)} f \text{ has a local maximum at } 2

Reveal

Transition (3) uses the first derivative test directly.

  • (1) is sign analysis.
  • (2) summarizes the sign pattern.
  • (3) turns that verified condition into the local-maximum conclusion.

Which transition is not justified by the first derivative test?

f(x)=(x1)2(1)x<1f(x)>0, x>1f(x)>0(2)f has a local maximum at 1f'(x)=(x-1)^2 \xrightarrow{(1)} x<1 \Rightarrow f'(x)>0,\ x>1 \Rightarrow f'(x)>0 \xrightarrow{(2)} f \text{ has a local maximum at } 1

Reveal

Transition (2) is not justified. The derivative is positive on both sides of 11, so there is no (+ to )(+ \text{ to } -) change to trigger the theorem.


Which proposed conclusion steps are eligible for the first derivative test (local maximum)?

  1. f(x)>0f'(x)>0 just left of cc and f(x)<0f'(x)<0 just right of cc \Longrightarrow ff has a local maximum at cc
  2. f(x)<0f'(x)<0 just left of cc and f(x)>0f'(x)>0 just right of cc \Longrightarrow ff has a local maximum at cc
  3. f(x)>0f'(x)>0 just left of cc and f(x)>0f'(x)>0 just right of cc \Longrightarrow ff has a local maximum at cc
  4. f(c)=0f'(c)=0 \Longrightarrow ff has a local maximum at cc
Reveal

Eligible step: 1 only.

  • 1 matches the canonical condition exactly.
  • 2 supports a local minimum instead.
  • 3 has no sign change.
  • 4 gives only a critical-point candidate, not the theorem condition.

Which transition uses the theorem directly?

f(x)=3x(x4)(1)0<x<4f(x)<0, x>4f(x)>0(2)f changes ( to +) at 4(3)f has a local maximum at 4f'(x)=3x(x-4) \xrightarrow{(1)} 0<x<4 \Rightarrow f'(x)<0,\ x>4 \Rightarrow f'(x)>0 \xrightarrow{(2)} f' \text{ changes } (- \text{ to } +) \text{ at } 4 \xrightarrow{(3)} f \text{ has a local maximum at } 4

Reveal

No transition uses the theorem correctly. Transition (3) is the attempted theorem step, but it is invalid because the sign pattern is ( to +)(- \text{ to } +), not (+ to )(+ \text{ to } -).


Format A: Forward step

Apply the first derivative test once.

f(x)>0 on (4,2),f(x)<0 on (2,0)f'(x)>0 \text{ on } (-4,-2),\quad f'(x)<0 \text{ on } (-2,0)

Reveal

The derivative changes from positive to negative at x=2x=-2, so ff has a local maximum at x=2x=-2.


Apply the first derivative test once after reading the derivative sign near the candidate point.

f(x)=(x4)(x+1),c=4f'(x)=-(x-4)(x+1),\quad c=4

Reveal

Near x=4x=4, the factor (x+1)(x+1) stays positive. The factor (x4)(x-4) is negative just left of 44 and positive just right of 44, so the leading minus sign makes f(x)f'(x) positive just left of 44 and negative just right of 44.

Therefore ff has a local maximum at x=4x=4.


Should you apply the first derivative test for a local maximum here? Explain briefly.

f(x)=(x1)2,c=1f'(x)=(x-1)^2,\quad c=1

Reveal

No. The derivative is nonnegative on both sides of 11 and does not change from positive to negative there, so the condition for the local-maximum version of the test is not met.


Solve a Problem

Apply what you’ve learned with Problem Solving.

Problem: Starting from f(x)=x33x2+1f(x)=x^3-3x^2+1, determine whether c=0c=0 is a local maximum using the first derivative test.

Full solution
StepExpressionMove
0f(x)=x33x2+1, c=0f(x)=x^3-3x^2+1,\ c=0-
1f(x)=3x26x=3x(x2)f'(x)=3x^2-6x=3x(x-2)Differentiate and factor
2x<0f(x)>0, 0<x<2f(x)<0x<0 \Rightarrow f'(x)>0,\ 0<x<2 \Rightarrow f'(x)<0Test the sign of ff' on both sides of 00
3ff' changes (+ to )(+ \text{ to } -) at 00Verify the canonical condition
4ff has a local maximum at x=0x=0First derivative test
5f(0)=1f(0)=1, so the local maximum point is (0,1)(0,1)Evaluate the function at the classified point

PrincipleRelationship
Derivative at a point (definition)Supplies the derivative values whose sign you inspect around the candidate point
Power ruleOften computes the polynomial derivative before you build the sign chart
Derivative sum ruleHelps differentiate sums before the local-max classification step

FAQ

What is the first derivative test for a local maximum?

It is the rule that lets you conclude ff has a local maximum at cc when ff' changes from positive to negative at cc. The theorem turns a derivative sign pattern into a local-behavior conclusion.

When is the first derivative test for a local maximum valid?

It is valid when the derivative changes (+ to )(+ \text{ to } -) at the candidate point cc. In practice, that means checking the sign of ff' on both sides of cc, not only at the point itself.

Is f(c)=0f'(c)=0 enough to prove a local maximum?

No. A zero derivative at a point only marks a critical-point candidate. You still need the sign of ff' to switch from positive to negative to justify the local-maximum conclusion.

What if the derivative changes from negative to positive instead?

Then the local-maximum conclusion is wrong. That sign change supports a local minimum, because the function is decreasing before cc and increasing after it.

How is this different from the second derivative test?

The first derivative test uses the sign of ff' on both sides of the point. The second derivative test uses curvature information at the point itself, so it is a different route to classifying critical points.


How This Fits in Unisium

In Unisium, the first derivative test is trained as a move-selection principle: you compute or inspect ff', check the local sign pattern, and only then convert that pattern into a local-maximum conclusion. That works naturally with retrieval practice, self-explanation, and the broader logic of Masterful Learning, where the point is recognizing when a theorem is both applicable and useful. To build that fluency under time pressure, practice directly in the Unisium app.

Explore further:

Masterful Learning book cover

Masterful Learning

The study system for physics, math, & programming that works: retrieval, connection, explanation, problem solving, and more.

Read the book (opens in new tab) ISBN 979-8-2652-9642-9

Ready to apply this strategy?

Join Unisium and start implementing these evidence-based learning techniques.

Start Learning with Unisium Read More Guides

Want the complete framework? This guide is from Masterful Learning.

Learn about the book →