AP Calculus AB · Topic 5.4 · Reading guide, about 5 min

Sign changes of f' and local highs and lows

Learn the first derivative test for local maxima and minima, with sign charts and graphs of f', and how to justify the conclusion.

In one minute

A hilltop is where you stop climbing and start descending. In calculus language, a local maximum happens where f′f' changes from positive to negative, and a local minimum where f′f' changes from negative to positive. This is the first derivative test.

The test is only as good as your justification. The exam asks you to say that f′f' changes sign at x=cx=c, and to say which direction it changes. Finding f′(c)=0f'(c)=0 is not enough, and the answer must name f′f', not ff.

Key terms

First derivative test
At a critical point cc where ff is continuous, the sign change of f′f' decides: ++ to −- gives a local maximum, −- to ++ a local minimum, no change gives neither.
Local maximum
A point where f is larger than at all nearby inputs; f rises up to it and falls after it.
Local minimum
A point where f is smaller than at all nearby inputs; f falls to it and rises after it.
Sign change
When f′f' goes from positive to negative or the reverse as xx passes through a value. A zero without a sign change is not enough.
Critical point
An input where f′(x)=0f'(x)=0 or does not exist, the only places a local extremum can occur inside the domain.
Relative extremum
Another name for local extremum: either a local maximum or a local minimum.
Justification
A written reason for a conclusion, naming the function f′f', its sign behavior, and the point.

The test in one picture

Walk along the graph of ff from left to right. If the slope is positive, then zero, then negative, you climbed, topped out, and began to descend: a local maximum. If the slope is negative, then zero, then positive, you went down into a valley and began to climb: a local minimum. If the slope is positive, zero, positive, you paused on a flat step and kept climbing, so there is no extremum, as with x3x^3 at 0.

The test also works at a critical point where f′f' does not exist, provided ff is continuous there. For f(x)=∣x∣f(x)=|x| the derivative is −1-1 on the left and 11 on the right, so the corner at 0 is a local minimum even though f′(0)f'(0) does not exist.

First derivative test at a critical point c
Sign of f' left of cSign of f' right of cConclusion about f at c
PositiveNegativeLocal maximum
NegativePositiveLocal minimum
PositivePositiveNeither (f keeps increasing)
NegativeNegativeNeither (f keeps decreasing)

A fully worked example

Let f(x)=x4−4x3f(x)=x^4-4x^3. Classify its critical points. Step 1: f′(x)=4x3−12x2=4x2(x−3)f'(x)=4x^3-12x^2=4x^2(x-3). It is defined everywhere and equals zero at x=0x=0 and x=3x=3. Step 2: the intervals are (−∞,0)(-\infty, 0), (0,3)(0, 3) and (3,∞)(3, \infty). Test values: at x=−1x=-1, f′(−1)=4(1)(−4)=−16<0f'(-1)=4(1)(-4)=-16 < 0. At x=1x=1, f′(1)=4(1)(−2)=−8<0f'(1)=4(1)(-2)=-8 < 0. At x=4x=4, f′(4)=4(16)(1)=64>0f'(4)=4(16)(1)=64 > 0.

Step 3: interpret. At x=0x=0, f′f' is negative on both sides, so there is no sign change, and ff has neither a maximum nor a minimum there; the factor x2x^2 never changes sign. At x=3x=3, f′f' changes from negative to positive, so ff has a local minimum there, with value f(3)=81−108=−27f(3)=81-108=-27. Written justification: "f′f' changes from negative to positive at x=3x=3, so ff has a relative minimum at x=3x=3." Because this is the only place f′f' changes sign, the function decreases up to x=3x=3 and increases after it, so the value −27-27 is in fact the lowest value of the function overall.

Reading the test from a graph of f'

When you are given the graph of f′f', find where it crosses the xx-axis. A crossing from above to below marks a local maximum of ff; a crossing from below to above marks a local minimum of ff. A point where the graph of f′f' touches the axis and turns back marks no extremum of ff. Notice that peaks and valleys of the graph of f′f' itself are not extrema of ff; they are places where the slope of ff is steepest or shallowest, and that connects to inflection points in 5.6.

Writing the justification

A complete answer has three parts: the point, the sign behavior of f′f' on each side, and the conclusion. For example: "f′(x)>0f'(x) > 0 on (1,2)(1, 2) and f′(x)<0f'(x) < 0 on (2,3)(2, 3), so f′f' changes from positive to negative at x=2x=2, so ff has a local maximum at x=2x=2." Include the value of f(2)f(2) only if the question asks for it.

How it connects

  • Back to 5.2: critical points are the candidates, and this test decides which candidates are extrema.
  • Back to 5.3: the intervals of increase and decrease from the sign chart supply the sign changes.
  • Forward to 5.5: absolute extremes on a closed interval compare critical-point values with endpoint values.
  • Forward to 5.7: the second derivative test is a shortcut that avoids sign charts, but fails when f′′=0f''=0.

Common mistakes

  • **Declaring an extremum because f′(c)=0f'(c)=0.** You must show a sign change. For x3x^3 at 0, the derivative is zero but ff has no extremum.
  • **Talking about the sign of ff.** The justification must be about the sign change of f′f', not about ff being positive or negative.
  • Mixing up the direction. Positive to negative is a maximum (up, then down); negative to positive is a minimum.
  • Confusing local with absolute. A local maximum is highest nearby; calling it the highest value overall requires further evidence (5.5).

How it shows up on the exam

  • Given f′(x)f'(x) as a formula, classify each critical point of ff with a written sign-change justification.
  • Given the graph of f′f', identify the xx-values of local maxima and minima of ff and explain.
  • Given a table of signs of f′f' on intervals, say where ff has extrema, including at a point where f′f' does not exist.

Check yourself

  1. If f′(x)=(x−1)2(x+2)f'(x)=(x-1)^2(x+2), which critical points are extrema and which are not?
  2. How would you explain why a local maximum of ff is not a peak of the graph of f′f'?
  3. Can ff have a local minimum where f′f' is undefined? What must be true of ff there?

Practice this topic. AP Practice questions on exactly what this lesson covers, with an explanation for every answer.