Skip to content
Family Table Math
Auto

First Derivative Test

The derivative tells you the slope of a graph at every point. Positive slope means the graph is going up; negative slope means it’s going down. So just from the sign of f′f' you can say where a function rises, where it falls, and where it turns around. The first derivative test turns this into a reliable way to find relative maximums and minimums, and it’s the justification AP graders expect most often.

On an interval:

  • If f′(x)>0f'(x) \gt 0, then ff is increasing.
  • If f′(x)<0f'(x) \lt 0, then ff is decreasing.

This follows from the Mean Value Theorem: if f′f' is positive everywhere between two points, the average rate of change between them is positive too, so the right-hand point is higher.

f′f' can only change sign at a critical point (where f′=0f' = 0 or is undefined) or where ff itself is undefined. So:

  1. Find the critical points, plus any xx-values not in the domain of ff.
  2. Mark them on a number line. They split it into intervals.
  3. Pick a test value in each interval and find the sign of f′(x)f'(x) there. (Only the sign matters, so the factored form of f′f' is the easiest to use.)
  4. Read off: ++ means increasing, −- means decreasing.
The graph of f(x) = x cubed minus 3x squared minus 9x plus 2, with a relative maximum at (-1, 7) and a relative minimum at (3, -25). Below it, a sign chart for f prime: positive before x = -1, negative between -1 and 3, positive after 3. −2 −1 1 2 3 4 5 −25 −20 −15 −10 −5 5 10 (−1, 7) (3, −25) sign chart for f′(x) = 3(x + 1)(x − 3) −1 0 3 0 + f increasing − f decreasing + f increasing
The sign chart for f′(x)=3(x+1)(x−3)f'(x) = 3(x + 1)(x - 3) matches the shape of f(x)=x3−3x2−9x+2f(x) = x^3 - 3x^2 - 9x + 2 (Example 1).

Let cc be a critical point of a continuous function ff.

As xx passes cc from left to right, f′f' changes from…At x=cx = c, ff has a…
positive to negativerelative maximum
negative to positiverelative minimum
doesn’t change signneither

Picture it: up then down is a hilltop; down then up is a valley; up then up (or down then down) is just a pause.

AP graders want the reason tied to f′f', at the specific xx-value:

  • ”f′(x)f'(x) changes from positive to negative at x=−1x = -1, so ff has a relative maximum at x=−1x = -1.”
  • ”f′(x)>0f'(x) \gt 0 on (3,∞)(3, \infty), so ff is increasing on (3,∞)(3, \infty).”
  • ”f′(x)f'(x) does not change sign at x=0x = 0, so ff has no relative extremum there.”

Avoid vague phrases like “the slope goes up and down” or “it” without naming ff or f′f'. Write about the function you’re given: if the question gives the graph of f′f', talk about the sign of f′f', not the shape of a graph of ff you haven’t been shown.

Let f(x)=x3−3x2−9x+2f(x) = x^3 - 3x^2 - 9x + 2. Find the intervals where ff is increasing and decreasing, and find all relative extrema.

Solution.

f′(x)=3x2−6x−9=3(x+1)(x−3)f'(x) = 3x^2 - 6x - 9 = 3(x + 1)(x - 3)

Critical points: x=−1x = -1 and x=3x = 3. Test each interval:

IntervalTest value3(x+1)(x−3)3(x + 1)(x - 3)ff is
(−∞,−1)(-\infty, -1)x=−2x = -23(−)(−)=+3(-)(-) = +increasing
(−1,3)(-1, 3)x=0x = 03(+)(−)=−3(+)(-) = -decreasing
(3,∞)(3, \infty)x=4x = 43(+)(+)=+3(+)(+) = +increasing

ff is increasing on (−∞,−1)(-\infty, -1) and (3,∞)(3, \infty), and decreasing on (−1,3)(-1, 3).

f′f' changes from positive to negative at x=−1x = -1, so ff has a relative maximum there: f(−1)=−1−3+9+2=7f(-1) = -1 - 3 + 9 + 2 = 7.

f′f' changes from negative to positive at x=3x = 3, so ff has a relative minimum there: f(3)=27−27−27+2=−25f(3) = 27 - 27 - 27 + 2 = -25.

Example 2: A critical point that isn’t an extremum

Section titled “Example 2: A critical point that isn’t an extremum”

Find the relative extrema of f(x)=x4−4x3f(x) = x^4 - 4x^3.

Solution.

f′(x)=4x3−12x2=4x2(x−3)f'(x) = 4x^3 - 12x^2 = 4x^2(x - 3)

Critical points: x=0x = 0 and x=3x = 3. The factor x2x^2 is never negative, so the sign of f′f' depends only on x−3x - 3:

Interval(−∞,0)(-\infty, 0)(0,3)(0, 3)(3,∞)(3, \infty)
Sign of f′f'−-−-++

f′f' does not change sign at x=0x = 0, so there’s no extremum there (the graph flattens out, then keeps falling). f′f' changes from negative to positive at x=3x = 3, so ff has a relative minimum: f(3)=81−108=−27f(3) = 81 - 108 = -27.

Let f(x)=x+4xf(x) = x + \dfrac{4}{x}. Find the intervals of increase and decrease and the relative extrema.

Solution. The domain is all x≠0x \ne 0.

f′(x)=1−4x2=x2−4x2=(x−2)(x+2)x2f'(x) = 1 - \frac{4}{x^2} = \frac{x^2 - 4}{x^2} = \frac{(x - 2)(x + 2)}{x^2}

Critical points: x=±2x = \pm 2. Also put x=0x = 0 on the chart, since ff is undefined there (it is not a critical point).

Interval(−∞,−2)(-\infty, -2)(−2,0)(-2, 0)(0,2)(0, 2)(2,∞)(2, \infty)
Sign of f′f'++−-−-++

ff is increasing on (−∞,−2)(-\infty, -2) and (2,∞)(2, \infty), and decreasing on (−2,0)(-2, 0) and (0,2)(0, 2). Write these as two separate intervals: ff isn’t defined at 00, so you can’t say “decreasing on (−2,2)(-2, 2)”.

Relative maximum at x=−2x = -2 (f′f' changes from ++ to −-): f(−2)=−2−2=−4f(-2) = -2 - 2 = -4.

Relative minimum at x=2x = 2 (f′f' changes from −- to ++): f(2)=2+2=4f(2) = 2 + 2 = 4.

(Yes, the relative maximum is lower than the relative minimum. That’s possible because the graph breaks apart at x=0x = 0.)

A function ff is differentiable, with f′(x)=(x+2)(x−1)2(x−4)f'(x) = (x + 2)(x - 1)^2(x - 4). Find the xx-values of all relative extrema of ff, and justify your answers.

Solution. Critical points: x=−2x = -2, 11, 44. The factor (x−1)2(x - 1)^2 is never negative, so it doesn’t affect the sign.

Interval(−∞,−2)(-\infty, -2)(−2,1)(-2, 1)(1,4)(1, 4)(4,∞)(4, \infty)
(x+2)(x + 2)−-++++++
(x−4)(x - 4)−-−-−-++
Sign of f′f'++−-−-++
  • f′f' changes from positive to negative at x=−2x = -2, so ff has a relative maximum at x=−2x = -2.
  • f′f' changes from negative to positive at x=4x = 4, so ff has a relative minimum at x=4x = 4.
  • f′f' does not change sign at x=1x = 1, so ff has no relative extremum at x=1x = 1.

You don’t know ff itself, so you can’t find the yy-values, and the question doesn’t ask for them.

Saying “f′ = 0, so it’s a maximum.” A zero derivative only makes cc a candidate. You need the sign change to classify it, as Example 2 shows.

Leaving undefined points off the sign chart. In Example 3, skipping x=0x = 0 would give the wrong picture. Put every critical point and every point where ff is undefined on the number line.

Joining intervals across a break. “Decreasing on (−2,2)(-2, 2)” is wrong in Example 3, because 00 isn’t in the domain. List the intervals separately: (−2,0)(-2, 0) and (0,2)(0, 2).

Using the sign of f instead of f′. Where the graph of ff is above the axis tells you nothing about increasing or decreasing. It’s the sign of f′f' that matters. This trips people up most when a question gives the graph of f′f'.

Weak justifications. “Because the graph goes up and then down” earns no credit on the AP exam. Name the derivative, the sign change, and the xx-value.

Giving a point when an x-value is asked for (or vice versa). “At what xx” wants x=−1x = -1. “Find the relative maximum value” wants f(−1)=7f(-1) = 7.

1. (Warm-up) Let f(x)=x2−10xf(x) = x^2 - 10x. Find where ff is increasing and decreasing, and find its relative extremum.

Solution

f′(x)=2x−10=2(x−5)f'(x) = 2x - 10 = 2(x - 5), which is negative for x<5x \lt 5 and positive for x>5x \gt 5.

ff is decreasing on (−∞,5)(-\infty, 5) and increasing on (5,∞)(5, \infty). f′f' changes from negative to positive at x=5x = 5, so there’s a relative minimum: f(5)=25−50=−25f(5) = 25 - 50 = -25.

2. (Warm-up) A function gg is differentiable, and g′(x)g'(x) changes from negative to positive at x=3x = 3. What does gg have at x=3x = 3? Write the justification sentence.

Solution

A relative minimum. ”g′(x)g'(x) changes from negative to positive at x=3x = 3, so gg has a relative minimum at x=3x = 3.”

3. (Warm-up) Let f(x)=12x−x3f(x) = 12x - x^3. Find the intervals of increase and decrease, and the relative extrema.

Solution

f′(x)=12−3x2=3(2−x)(2+x)f'(x) = 12 - 3x^2 = 3(2 - x)(2 + x).

Interval(−∞,−2)(-\infty, -2)(−2,2)(-2, 2)(2,∞)(2, \infty)
Sign of f′f'−-++−-

ff is decreasing on (−∞,−2)(-\infty, -2) and (2,∞)(2, \infty), and increasing on (−2,2)(-2, 2).

Relative minimum at x=−2x = -2 (−- to ++): f(−2)=−24+8=−16f(-2) = -24 + 8 = -16. Relative maximum at x=2x = 2 (++ to −-): f(2)=24−8=16f(2) = 24 - 8 = 16.

4. (Core) Let f(x)=xe−xf(x) = xe^{-x}. Find the intervals of increase and decrease and the relative extremum.

Solution

By the product rule:

f′(x)=e−x+x(−e−x)=(1−x)e−xf'(x) = e^{-x} + x(-e^{-x}) = (1 - x)e^{-x}

e−x>0e^{-x} \gt 0 always, so the sign comes from 1−x1 - x: positive for x<1x \lt 1, negative for x>1x \gt 1.

ff is increasing on (−∞,1)(-\infty, 1) and decreasing on (1,∞)(1, \infty). f′f' changes from positive to negative at x=1x = 1, so ff has a relative maximum: f(1)=e−1=1e≈0.368f(1) = e^{-1} = \dfrac{1}{e} \approx 0.368.

5. (Core) Let f(x)=x2/3(x−5)f(x) = x^{2/3}(x - 5), so f′(x)=5(x−2)3x1/3f'(x) = \dfrac{5(x - 2)}{3x^{1/3}}. Find the relative extrema.

Solution

Critical points: x=0x = 0 (where f′f' is undefined but f(0)=0f(0) = 0 exists) and x=2x = 2.

Interval(−∞,0)(-\infty, 0)(0,2)(0, 2)(2,∞)(2, \infty)
x−2x - 2−-−-++
x1/3x^{1/3}−-++++
Sign of f′f'++−-++

f′f' changes from positive to negative at x=0x = 0: relative maximum, f(0)=0f(0) = 0.

f′f' changes from negative to positive at x=2x = 2: relative minimum, f(2)=22/3(−3)=−343≈−4.762f(2) = 2^{2/3}(-3) = -3\sqrt[3]{4} \approx -4.762.

6. (Core) Let f(x)=x2x−1f(x) = \dfrac{x^2}{x - 1}. Find the intervals of increase and decrease and the relative extrema.

Solution

The domain is x≠1x \ne 1.

f′(x)=(x−1)(2x)−x2(1)(x−1)2=x2−2x(x−1)2=x(x−2)(x−1)2f'(x) = \frac{(x - 1)(2x) - x^2(1)}{(x - 1)^2} = \frac{x^2 - 2x}{(x - 1)^2} = \frac{x(x - 2)}{(x - 1)^2}

Critical points: x=0x = 0 and x=2x = 2. Also mark x=1x = 1 (not in the domain). The denominator is positive, so the sign comes from x(x−2)x(x - 2):

Interval(−∞,0)(-\infty, 0)(0,1)(0, 1)(1,2)(1, 2)(2,∞)(2, \infty)
Sign of f′f'++−-−-++

Increasing on (−∞,0)(-\infty, 0) and (2,∞)(2, \infty); decreasing on (0,1)(0, 1) and (1,2)(1, 2).

Relative maximum at x=0x = 0: f(0)=0f(0) = 0. Relative minimum at x=2x = 2: f(2)=41=4f(2) = \dfrac{4}{1} = 4.

7. (Core) Let f(x)=x+2cos⁡xf(x) = x + 2\cos x on [0,2π][0, 2\pi] (radians). Find the xx-values of the relative extrema and the relative extreme values.

Solution

f′(x)=1−2sin⁡x=0f'(x) = 1 - 2\sin x = 0 gives sin⁡x=12\sin x = \dfrac{1}{2}, so x=π6x = \dfrac{\pi}{6} or x=5π6x = \dfrac{5\pi}{6}.

Test values: at x=0.1x = 0.1, f′≈1−0.2>0f' \approx 1 - 0.2 \gt 0; at x=π2x = \frac{\pi}{2}, f′=1−2=−1<0f' = 1 - 2 = -1 \lt 0; at x=πx = \pi, f′=1−0=1>0f' = 1 - 0 = 1 \gt 0.

f′f' changes from positive to negative at x=π6x = \dfrac{\pi}{6}: relative maximum,

f(π6)=π6+2⋅32=π6+3≈2.256f\left(\frac{\pi}{6}\right) = \frac{\pi}{6} + 2 \cdot \frac{\sqrt{3}}{2} = \frac{\pi}{6} + \sqrt{3} \approx 2.256

f′f' changes from negative to positive at x=5π6x = \dfrac{5\pi}{6}: relative minimum,

f(5π6)=5π6+2(−32)=5π6−3≈0.886f\left(\frac{5\pi}{6}\right) = \frac{5\pi}{6} + 2\left(-\frac{\sqrt{3}}{2}\right) = \frac{5\pi}{6} - \sqrt{3} \approx 0.886

8. (Core) A function ff has derivative f′(x)=x2(x+1)(x−4)3f'(x) = x^2(x + 1)(x - 4)^3. At what xx-values does ff have a relative maximum or minimum? Justify your answer.

Solution

Critical points: x=−1x = -1, 00, 44. The factor x2x^2 doesn’t affect the sign; (x−4)3(x - 4)^3 has the same sign as x−4x - 4.

Interval(−∞,−1)(-\infty, -1)(−1,0)(-1, 0)(0,4)(0, 4)(4,∞)(4, \infty)
Sign of f′f'(−)(−)=+(-)(-) = +(+)(−)=−(+)(-) = -(+)(−)=−(+)(-) = -(+)(+)=+(+)(+) = +
  • f′f' changes from positive to negative at x=−1x = -1, so ff has a relative maximum at x=−1x = -1.
  • f′f' changes from negative to positive at x=4x = 4, so ff has a relative minimum at x=4x = 4.
  • f′f' does not change sign at x=0x = 0, so there is no relative extremum there.

9. (Challenge) Show that f(x)=ln⁡(x2+1)−xf(x) = \ln(x^2 + 1) - x is decreasing on its whole domain, and explain why it has no relative extrema.

Solutionf′(x)=2xx2+1−1=2x−(x2+1)x2+1=−(x−1)2x2+1f'(x) = \frac{2x}{x^2 + 1} - 1 = \frac{2x - (x^2 + 1)}{x^2 + 1} = \frac{-(x - 1)^2}{x^2 + 1}

The numerator −(x−1)2-(x - 1)^2 is never positive, and the denominator is always positive, so f′(x)≤0f'(x) \le 0 for all xx, with f′(x)=0f'(x) = 0 only at x=1x = 1. A single point where f′=0f' = 0 doesn’t stop ff from decreasing, so ff is decreasing on (−∞,∞)(-\infty, \infty).

The only critical point is x=1x = 1, and f′f' doesn’t change sign there (negative on both sides), so ff has no relative extrema.

10. (Challenge) Find the value of kk so that f(x)=x3−kxf(x) = x^3 - kx has a relative maximum at x=−2x = -2. Then find the relative maximum value.

Solution

f′(x)=3x2−kf'(x) = 3x^2 - k. A relative maximum at x=−2x = -2 needs f′(−2)=0f'(-2) = 0: 12−k=012 - k = 0, so k=12k = 12.

Check with the first derivative test: f′(x)=3x2−12=3(x−2)(x+2)f'(x) = 3x^2 - 12 = 3(x - 2)(x + 2) is positive for x<−2x \lt -2 and negative on (−2,2)(-2, 2). It changes from positive to negative at x=−2x = -2, so it really is a relative maximum.

f(−2)=−8+24=16f(-2) = -8 + 24 = 16.