← Return to lesson

Class materials · 5.4

The First Derivative Test

Lecture transcript

0:00

Take a derivative, set it equal to zero, and solve for x. Boom: a maximum or a minimum, right? Not so fast. Setting f prime equal to zero is one of the biggest fake-outs in calculus. So here's today's question. Where the tangent line is flat, is there always a peak or a valley? By the end, you'll tell a real top or bottom from a flat spot that's only pretending, and you'll catch peaks hiding at sharp corners.

0:31

And you'll have the exact sentence to write when a question says justify. Let's go get that five. 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.

1:02

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. 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.

1:35

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. So, is every flat spot a peak or a valley? Let's test a classic troublemaker: y equals x cubed.

2:08

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.

2:39

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. 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.

3:11

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.

3:41

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.

4:11

But zero is not in the domain. So zero is not a critical point, and there's no extremum there. 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.

4:42

Two things live in that sentence. You name f prime, not it. And you say how its sign changes. 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 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.

5:12

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.

5:42

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. 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.

6:17

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.

6:54

In your workbook, write one sentence for every critical point, even the ones that are neither. 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.

7:27

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. So f prime is one over x times x, minus ln x times one, all over x squared.

8:03

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.

8:34

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.

9:07

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.

9:40

In your workbook, drop whatever is always positive, and let a quick sketch tell you the sign. 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. 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.

10:18

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.

10:48

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. Back to today's question. Where the tangent is flat, is there always a peak or a valley? No. Remember x cubed: flat at zero, but neither a maximum nor a minimum. And sharp corners, where f prime does not exist, can be peaks and valleys too.

11:21

When you justify, name f prime, and say how its sign changes. Today we found relative peaks: winners among nearby neighbors. Next, in 5.5, we find the absolute highest and lowest values on a whole closed interval, with the Candidates Test. See you there.