Math Core

Lesson 5.4 · Analytical Applications of Differentiation

The first derivative test

Every relative maximum or minimum happens at a critical point, but not every critical point is a maximum or minimum. The first derivative test sorts the candidates: it looks at how the sign of f′f' changes as you walk across each critical point.

The idea: watch the sign change

Think of hiking along the graph from left to right. At the top of a hill, you stop climbing and start descending: the slope goes from positive to negative. At the bottom of a valley, you stop descending and start climbing: the slope goes from negative to positive. If the slope is positive on both sides, you just paused on a ledge and kept climbing, so it's neither a peak nor a valley.

The first derivative test

Suppose cc is a critical point of ff, and ff is continuous at cc.

  • If f′f' changes from positive to negative at cc, then ff has a relative maximum at cc.
  • If f′f' changes from negative to positive at cc, then ff has a relative minimum at cc.
  • If f′f' does not change sign at cc, then ff has no relative extremum at cc.

The test works whether f′(c)=0f'(c) = 0 or f′(c)f'(c) doesn't exist. That makes it more powerful than the second derivative test you'll see next lesson, which fails at corners and cusps.

Using the test

The steps are the same as for finding increasing and decreasing intervals, plus one more.

  1. Find f′(x)f'(x) and the critical points.
  2. Make a sign chart for f′f'.
  3. At each critical point, read the sign change and classify it.
  4. If asked for the extreme value, plug cc into the original function ff.

Worked example: A quartic with a non-extremum

Find and classify all 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). The critical points are x=0x = 0 and x=3x = 3.

intervalx<0x < 00<x<30 < x < 3x>3x > 3
sign of 4x24x^2++++++
sign of x−3x - 3−-−-++
sign of f′(x)f'(x)−-−-++
  • At x=0x = 0, f′f' is negative on both sides, so ff has no relative extremum at x=0x = 0.
  • At x=3x = 3, f′f' changes from negative to positive, so ff has a relative minimum at x=3x = 3. Its value is f(3)=81−108=−27f(3) = 81 - 108 = -27.
f(x) = x⁴ − 4x³ (solid) and f′(x) = 4x²(x − 3) (dashed). f′ touches zero at x = 0 without changing sign, so f has a flat spot there but no extremum.Open in grapher →

The squared factor x2x^2 is the reason nothing happens at x=0x = 0. A factor raised to an even power doesn't change sign, so the derivative's sign doesn't flip there. A factor raised to an odd power does flip. That's a quick way to predict the chart before you build it.

Common mistake

Don't assume that f′(c)=0f'(c) = 0 means an extremum. You must show the sign change. On the AP exam, "f′(3)=0f'(3) = 0, so ff has a minimum at x=3x = 3" earns no justification credit. Write instead: "ff has a relative minimum at x=3x = 3 because f′f' changes from negative to positive at x=3x = 3."

Critical points where f′ doesn't exist

Worked example: A cusp

Find and classify the relative extrema of f(x)=x2/3(x−5)f(x) = x^{2/3}(x - 5).

Solution. In the previous lesson you found f′(x)=5(x−2)3x3f'(x) = \dfrac{5(x - 2)}{3\sqrt[3]{x}}, with critical points x=0x = 0 (where f′f' is undefined) and x=2x = 2 (where f′=0f' = 0). The cube root x3\sqrt[3]{x} has the same sign as xx.

intervalx<0x < 00<x<20 < x < 2x>2x > 2
sign of x−2x - 2−-−-++
sign of x3\sqrt[3]{x}−-++++
sign of f′(x)f'(x)++−-++
  • At x=0x = 0, f′f' changes from positive to negative, and ff is continuous there, so ff has a relative maximum at x=0x = 0. The value is f(0)=0f(0) = 0.
  • At x=2x = 2, f′f' changes from negative to positive, so ff has a relative minimum at x=2x = 2. The value is f(2)=22/3(−3)=−343≈−4.76f(2) = 2^{2/3}(-3) = -3\sqrt[3]{4} \approx -4.76.
f(x) = x^(2/3)(x − 5). The relative maximum is at a cusp, where f′ does not exist.Open in grapher →

Using the graph of f′

When you're given the graph of f′f', the first derivative test becomes a matter of reading where the graph crosses the xx-axis:

  • crosses from above to below: relative maximum of ff;
  • crosses from below to above: relative minimum of ff;
  • touches without crossing: no extremum.

Worked example: From a factored derivative

The function ff is defined for all real numbers, and its derivative is f′(x)=(x+1)2(x−4)(x−7)f'(x) = (x + 1)^2(x - 4)(x - 7). At which xx-values does ff have a relative maximum? A relative minimum?

The graph of f′(x) = (x + 1)²(x − 4)(x − 7), drawn at 1/20 vertical scale. It touches the axis at x = −1 and crosses it at x = 4 and x = 7.Open in grapher →

Solution. The critical points are x=−1x = -1, 44, 77. Because (x+1)2≥0(x + 1)^2 \ge 0, the sign of f′f' is the sign of (x−4)(x−7)(x - 4)(x - 7) away from x=−1x = -1:

intervalx<−1x < -1−1<x<4-1 < x < 44<x<74 < x < 7x>7x > 7
sign of f′f'++++−-++

ff has a relative maximum at x=4x = 4 (f′f' changes from positive to negative) and a relative minimum at x=7x = 7 (f′f' changes from negative to positive). At x=−1x = -1, f′f' doesn't change sign, so there is no extremum.

Tip

A relative extremum is a point on the graph of ff. If a question asks "at what xx," give the xx-value. If it asks for "the relative maximum value," give f(c)f(c), which usually means evaluating the original function, not the derivative.

Practice

Practice 1

At what value of xx does f(x)=x3−12x+1f(x) = x^3 - 12x + 1 have a relative maximum?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

Find the relative minimum value of f(x)=x3−6x2+9xf(x) = x^3 - 6x^2 + 9x.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

The derivative of a function gg is g′(x)=x(x−2)2(x+3)g'(x) = x(x - 2)^2(x + 3). Which statement is true?

Practice 4

At what value of xx does f(x)=xexf(x) = xe^x have a relative minimum?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 5

Find all xx-values at which f(x)=x4−2x2f(x) = x^4 - 2x^2 has a relative minimum.

Separate answers with commas, e.g. 2, -5

Practice 6

Find the relative maximum value of f(x)=x+4xf(x) = x + \dfrac{4}{x}.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 7

On the interval 0<x<2π0 < x < 2\pi, at what value of xx does f(x)=sin⁡x+cos⁡xf(x) = \sin x + \cos x have a relative maximum?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 8

A function hh is differentiable, h′(5)=0h'(5) = 0, and h′(x)>0h'(x) > 0 for x≠5x \ne 5. Which is a correct conclusion with a correct reason?