The test
Let f be continuous at x₀ with f′(x₀) = 0, and differentiable on both sides nearby.
- If f′ is positive just left of x₀ and negative just right of it, f has a local maximum at x₀.
- If f′ is negative just left and positive just right, f has a local minimum at x₀.
- If f′ has the same sign on both sides, x₀ is neither: the curve levels off and carries on.
Worked example
f(x) = x³ − 3x². Then f′(x) = 3x² − 6x = 3x(x − 2), which is 0 at x = 0 and x = 2.
| Interval | Test point | f′ there | f |
|---|---|---|---|
| x < 0 | −1 | 9 | rising |
| 0 < x < 2 | 1 | −3 | falling |
| x > 2 | 3 | 9 | rising |
f′ goes from + to − at x = 0, a maximum with f(0) = 0. It goes from − to + at x = 2, a minimum with f(2) = 8 − 12 = −4.
No change of sign. f(x) = x³ has f′(x) = 3x², which is 0 at x = 0 and positive on both sides. There is no extremum there.
Common mistakes
- Taking f′(x₀) = 0 as proof of an extremum. The example x³ shows it is not.
- Putting the test point into f. The sign is read from f′, not f.
- Stopping at x. The question often asks for the y-value of the extremum, which is f(x₀).
- Forgetting the ends. On a closed interval the greatest or least value can sit at an endpoint.
Common questions
When is the second derivative test easier?
When f″ is simple to find and not zero at the point: see the second derivative test. The sign chart
also works where f″(x₀) = 0 and where f″ does not exist. For the stationary points themselves, see
stationary points.

