Kim’s Math NotesCourse index

The First Derivative Test

Why does a zero derivative alone fail to establish a local extremum?

Decide whether a critical point is a relative maximum, a relative minimum, or neither from the sign change of f′, corners included, and write the reason.

f' = 0 is not the reason

Common mistake f′(2)=0, so f has an extremum at 2. ``f goes from increasing to decreasing.''

Correction No sign change of f′ at 2: neither. The reason is the sign change of f′.

1. The sign of f' on each side

Quick reminder from 5.2: a critical point is where f prime is zero or doesn't exist. Today's job: which of those are real peaks and valleys? Here's a smooth curve f, shaped like a W. A hill at zero, valleys at negative two and two, and the tangent is flat at all three. Now stack the graph of f prime underneath, on the same x-axis.

Flat tangent means slope zero, so f prime hits zero at negative two, zero, and two.

Watch this part of the concept lesson

Read the rest of this scene

Follow f from left to right. Downhill: f prime is below the axis, negative. Uphill: positive. Downhill again: negative. Uphill at the end: positive.

Read down the dashed line at zero. f rises, then falls: that's the hill. And f prime crosses from positive to negative. At negative two and two, f falls, then rises: valleys. And right there, f prime crosses from negative to positive.

Notice what matters. We don't care how big f prime gets. Only its sign, and whether that sign flips from one side to the other.

The troublemaker: y = x^3

So, is every flat spot a peak or a valley? Let's test a classic troublemaker: y equals x cubed. This curve climbs from the left, flattens out for a split second at zero, then keeps right on climbing. Put its derivative, three x squared, underneath. It touches zero at zero: there's the flat tangent.

But it bounces right back up. Positive on the left, positive on the right. Since f prime never changes sign, f never turns around. At zero, f has neither a relative maximum nor a relative minimum. That gives the whole rule.

At a critical point c, as long as f is continuous there, check the sign of f prime on each side. Positive to negative: a relative maximum.

Watch this part of the concept lesson

Read the rest of this scene

Negative to positive: a relative minimum. No sign change: neither one. This is the First Derivative Test. First just means it uses the first derivative, f prime.

2. Corners: where f' does not exist

Big idea two: a sharp corner, where f prime doesn't even exist. Picture a crooked roof, continuous all the way across. Going up the left side: a straight line with slope one. Coming down the right side, it's steeper: slope negative two. Right at the peak, the slope jumps from one to negative two.

There's no single slope at two, so f prime of two does not exist.

Watch this part of the concept lesson

Read the rest of this scene

Is it still a peak? Of course. f is continuous at two, and f prime still switches from positive to negative. So f has a relative maximum at x equals two. Never skip the points where f prime does not exist. One warning. Here's y equals one over x squared.

Left of zero it rises, right of zero it falls, so f prime goes from plus to minus. But zero is not in the domain. So zero is not a critical point, and there's no extremum there.

3. The sentence to write

When a question says justify, write it just like this. f prime changes from positive to negative at x equals zero, so f has a relative maximum there. And when nothing happens: f prime does not change sign at x equals c, so f has neither a relative maximum nor a relative minimum there. Two things live in that sentence. You name f prime, not it.

And you say how its sign changes.

Watch this part of the concept lesson

Read the rest of this scene

If you only write f increases, then decreases, you've just described what a maximum looks like. The calculus reason comes from the sign of f prime.

Example 1: the sign of f'

Example one. The derivative of f is f prime of x equals the quantity x plus one, times the square of the quantity x minus two. Find all x where f has a relative extremum. Justify your answer. The plan: set f prime equal to zero, sketch f prime, read the signs, then write the sentences. Set f prime equal to zero: x equals negative one, and x equals two.

f prime is a polynomial, so it exists everywhere. These two are the only critical points. Now sketch f prime. At negative one, the factor has power one, so the graph slices straight through the axis. At two, the factor is squared: the graph comes down, kisses the axis, and bounces back up.

Watch this part of the concept lesson

Read the rest of this scene

Read the signs straight off the picture: below, above, still above. Minus, plus, plus. At negative one, f prime goes from minus to plus. So we write: f prime changes from negative to positive at x equals negative one, so f has a relative minimum there. Your turn: write the sentence for x equals two.

Now x equals two. The plan: the sign on each side of two. Plus on the left, plus on the right. f prime is zero at two, but its sign does not change. So we write: f prime does not change sign at x equals two, so f has neither a relative maximum nor a relative minimum there.

And if a problem hands you this graph of f prime instead of the formula, you read it exactly the same way. In your workbook, write one sentence for every critical point, even the ones that are neither.

Common mistake

Two rushed mistakes lose points right here. Mistake one: seeing f prime of two equals zero, and calling it an extremum. Zero alone decides nothing. Check the sign on each side. Mistake two: writing f goes from falling to rising.

Name f prime and its sign change instead.

Watch this part of the concept lesson

Example 2: the relative maximum value

Example two, multiple choice. Let f of x equal the natural log of x, over x. What is the relative maximum value of f? The plan: find f prime, read only its sign, then find the value. Use the quotient rule: u prime v minus u v prime, over v squared.

The derivative of ln x is one over x.

Watch this part of the concept lesson

Read the rest of this scene

So f prime is one over x times x, minus ln x times one, all over x squared. One over x times x is just one. So f prime equals one minus ln x, over x squared. Your turn: where is the top equal to zero? Keep f prime in view: one minus ln x, over x squared.

For a max or min, we only care about its sign. Think like a lazy mathematician, in a good way. On x greater than zero, x squared is always positive, so it can't change the sign. The sign comes from the top: one minus ln x. Graph both pieces: the purple line y equals one, and the white curve y equals ln x.

The top is purple minus white. They meet where ln x equals one: at x equals e. Your turn: who's on top on each side of e? Bring both graphs back: purple minus white. Left of e, the purple line sits above the white curve.

Bigger minus smaller: plus. Right of e, the purple line is below. Smaller minus bigger: minus. f prime changes from plus to minus at x equals e, so f has a relative maximum at x equals e. But don't stop at e.

The question asks for the value. f of e is ln e over e: one over e. That's choice B. Choice D is just the x. In your workbook, drop whatever is always positive, and let a quick sketch tell you the sign.

Example 3: how many relative extrema?

Example three. Let f of x equal the absolute value of the quantity x squared minus four x. How many relative extrema does f have? Please don't differentiate absolute value bars with algebra. The plan: draw it, then count.

Ignore the bars first.

Watch this part of the concept lesson

Read the rest of this scene

x squared minus four x is x times the quantity x minus four: an upward parabola crossing at zero and four, dipping below the axis in between. The bars flip anything negative straight up. The middle valley becomes a smooth arch, and the graph stays continuous. At x equals two, a smooth flat top: f prime goes from plus to minus. One relative maximum.

At zero and four, the graph bounces off the axis: sharp corners, where f prime does not exist. f is continuous, and the slope goes from negative to positive. Two relative minimums. One max plus two mins: three relative extrema. Choice C. In your workbook, when bars wrap a familiar function, draw it, flip the negative part, and count.

Worked examples

Example 1

The derivative of f is f′(x)=(x+1)(x−2)2.
Find all x where f has a relative extremum. Justify your answer.
Hint

f′=0 is not enough: look at the sign of f′ on each side.

Answer and solution

Answer relative min at x=−1; x=2 neither

  1. f′(x)=0 at x=−1 and x=2. The graph of f′ crosses at −1 and touches at 2: signs −,+,+.
  2. f′ changes from negative to positive at x=−1, so f has a relative minimum there.
  3. f′ does not change sign at x=2, so f has neither a relative maximum nor a relative minimum there.

Example 2

Let f(x)=lnxx. What is the relative maximum value of f?
  1. 0
  2. 1e
  3. 1
  4. e
Hint

x2>0, so the sign of f′ is the sign of its top.

Answer and solution

Answer B. 1e

  1. f′(x)=1x⋅x−lnx⋅1x2=1−lnxx2
  2. x2>0, so the sign is the sign of 1−lnx: positive for x<e, negative for x>e.
  3. f′ changes from + to − at x=e: a relative max. f(e)=lnee=1e. Answer B.

Example 3

Let f(x)=|x2−4x|. How many relative extrema does f have?
  1. 1
  2. 2
  3. 3
  4. 4
Hint

Draw it: flip the part below the axis up. Count corners too.

Answer and solution

Answer C. 3

  1. x2−4x=x(x−4)<0 on (0,4): that part flips up.
  2. x=2: f′=0, + to −, a relative max. x=0 and x=4: corners (f′ does not exist), − to +, two relative mins.
  3. Three relative extrema. Answer C.

Workbook

Problem 1

Let f(x)=x4−4x3. Find all x where f has a relative extremum, and classify each. Justify your answer.
Hint

Factor f′(x). At a double zero, does the sign change?

Answer and solution

Answer relative min at x=3; x=0 neither

  1. f′(x)=4x3−12x2=4x2(x−3)=0→x=0,3
  2. Signs of f′: −,−,+.
  3. f′ changes from − to + at x=3: a relative min. No sign change at x=0: neither.

Common mistake Calling x = 0 an extremum because f'(0) = 0.

Watch the worked solution to Problem 1

Problem 2

Let f(x)=x+9x, x≠0. Find the relative maximum and minimum of f. Justify your answer.
Hint

One fraction: f′(x)=x2−9x2. x=0 is not in the domain, but it still splits the intervals.

Answer and solution

Answer relative max at x=−3, relative min at x=3

  1. f′(x)=1−9x2=(x−3)(x+3)x2
  2. Signs of f′: + on (−∞,−3), − on (−3,0) and (0,3), + on (3,∞).
  3. + to − at x=−3: a relative max. − to + at x=3: a relative min.

Common mistake Treating x = 0 as a critical point although it is not in the domain.

Watch the worked solution to Problem 2

Problem 3

Let f(x)=xe−x22. At what value of x does f have a relative maximum?
  1. −1
  2. 0
  3. 1
  4. 2
Hint

e−x2/2>0, so the sign of f′ is the sign of 1−x2.

Answer and solution

Answer C. 1

  1. f′(x)=e−x22−x2e−x22=e−x22(1−x2)
  2. e−x2/2>0; 1−x2 changes from + to − at x=1. Answer C.

Common mistake Choosing x = 0 because of the factor x.

Watch the worked solution to Problem 3

Problem 4

The graph of f′, the derivative of f, is shown for −3≤x≤4. Find all x where f has a relative extremum, and classify each. Justify your answer.
xy-3-2-11234-2-112
Graph of f'(x)
Hint

Where does the graph of f′ cross the axis, and which way? A touch is not a sign change.

Answer and solution

Answer relative min at x=−2, relative max at x=1; x=3 neither

  1. At x=−2, f′ changes from − to +: a relative min.
  2. At x=1, f′ changes from + to −: a relative max.
  3. At x=3, f′ touches 0 and is negative on both sides: neither.

Common mistake Calling x = 3 an extremum because f' touches 0 there.

Watch the worked solution to Problem 4

Problem 5

Let f(x)=x9−x2 for −3≤x≤3. Find the relative maximum value of f. Justify your answer.
Hint

One fraction: f′(x)=9−2x29−x2. The bottom is positive.

Answer and solution

Answer 92

  1. f′(x)=9−x2−x29−x2=9−2x29−x2
  2. f′=0 at x=±32; f′ changes from + to − at x=32: a relative max.
  3. f(32)=32⋅32=92

Common mistake Answering with the x-value instead of the relative maximum value.

Watch the worked solution to Problem 5

Problem 6

Let f(x)=x2 for x≤1 and f(x)=3−2x for x>1. Does f have a relative extremum at x=1? Justify your answer.
Hint

Check continuity at x=1 first. Then the sign of f′ on each side.

Answer and solution

Answer relative max at x=1

  1. f is continuous at 1: 12=1=3−2(1). f′(1) does not exist (a corner), so x=1 is a critical point.
  2. Left of 1: f′=2x>0. Right of 1: f′=−2<0.
  3. f′ changes from + to − at x=1, so f has a relative maximum there.

Common mistake Using only f'(1) = 0 tests and skipping the corner.

Watch the worked solution to Problem 6

Problem 7

Let f(x)=|x3−4x|. How many relative extrema does f have?
  1. 2
  2. 3
  3. 4
  4. 5
Hint

Draw x3−4x, flip the negative parts up, then count the corners and the humps.

Answer and solution

Answer D. 5

  1. Draw first. Inside the bars: x3−4x=x(x−2)(x+2), zero at -2, 0, 2; above the axis on (-2, 0), below on (0, 2) and left of -2.
  2. The bars flip every negative part up. At the corners x = -2, 0, 2, f' changes from - to +: three relative minimums.
  3. The hump on (-2, 0) stays up, and the dip on (0, 2) flips into a hump: two relative maximums. 3 + 2 = 5. Answer D.

Common mistake Counting only the corners, or only the humps.

Watch the worked solution to Problem 7