The First Derivative Test

The test

"f′f' changes from positive to negative at cc" means that f′>0f' > 0 on some interval (c−δ,c)(c - \delta, c) and f′<0f' < 0 on some interval (c,c+δ)(c, c + \delta).
f′ changes from positive to negative at c: a relative maximum.
f′ changes from negative to positive at c: a relative minimum.
f′ is positive on both sides of c: no relative extremum.
The proof uses the Mean Value Theorem. Suppose f′>0f' > 0 on (c−δ,c)(c - \delta, c) and f′<0f' < 0 on (c,c+δ)(c, c + \delta). Take any xx in (c−δ,c)(c - \delta, c). Then ff is continuous on [x,c][x, c] and differentiable on (x,c)(x, c), so for some ξ\xi in (x,c)(x, c),
f(c)−f(x)=f′(ξ)(c−x)>0.f(c) - f(x) = f'(\xi)(c - x) > 0.
So f(x)<f(c)f(x) < f(c). The same argument on [c,x][c, x], for xx in (c,c+δ)(c, c + \delta), gives f(x)−f(c)=f′(ξ)(x−c)<0f(x) - f(c) = f'(\xi)(x - c) < 0. Thus f(c)f(c) is larger than every other value of ff on (c−δ,c+δ)(c - \delta, c + \delta), a relative maximum. The minimum case is the same with the signs reversed.
The proof needs ff continuous on [x,c][x, c], so the test asks for continuity at cc. Without it the test can fail. The function below is f(x)=xf(x) = x for x≤2x \le 2 and f(x)=6−xf(x) = 6 - x for x>2x > 2. Its derivative changes from positive to negative at 22, but ff jumps up there, and f(2)=2f(2) = 2 is smaller than the values just to its right.
f′ changes from positive to negative at x = 2, but f isn't continuous there, and f(2) = 2 is no maximum.

Writing the justification

On a free-response answer, name the critical point and say how f′f' changes sign there. The scoring guides use sentences like this one:
ff has a relative maximum at x=3x = 3 because f′f' changes from positive to negative at x=3x = 3.
Say what f′f' does. A sign chart by itself doesn't count as a justification, and neither does a description of the graph of ff.
The test needs f′f' on both sides of cc, so it classifies interior points only. That matches the definition: a relative extremum needs an open interval around cc, so an endpoint of the domain is never one. AP questions about relative extrema usually give an open interval, which sidesteps the endpoint issue. An endpoint can still be where ff is largest or smallest on the whole interval. Comparing values to find that comes later in this unit.

From a formula

To use the test on a formula, find f′f' and factor it. A factor that's never negative, such as an even power, an exponential, or 1−cos⁡x1 - \cos x, can't change the sign of f′f'. The sign comes from the other factors.

From the graph of f′

When the graph of f′f' is given, read its sign: above the axis or below it. The highest and lowest points of the graph of f′f' say nothing about the extrema of ff.

A rate in context