← Return to lessonClass materials · 5.7
The Second Derivative Test
Lecture transcript
0:00Let's start with a flat spot. Suppose I tell you that f prime of c equals zero. All that tells us is one thing: the tangent line is flat, right at c. Is it a peak? A valley? We can't tell yet. It could even be neither. Take f of x equals x cubed. Right at zero, the tangent is completely flat. But follow the curve: it keeps climbing, right through that flat spot.
0:30Right under it, f prime is three x squared. It touches zero at zero, but it's plus on the left, and plus on the right. There's no sign change in f prime: neither a relative max nor a relative min. So f prime of c equals zero, alone, can't decide. Let's differentiate one more time, and look at the sign of f double prime, right at c.
1:00By the end, you'll know how the bend at a flat spot tells a peak from a valley, and exactly when that shortcut breaks down. Idea one: a flat spot, and the bend. Let's watch one curve do both. Here's f of x equals x cubed minus twelve x. It climbs, drops, and climbs again. F prime is three x squared minus twelve: three times x minus two, times x plus two.
1:31It's zero at negative two, and at two. Those are the two flat spots on f. F double prime is the slope of f prime: six x. At negative two, it's six times negative two: negative twelve. Negative f double prime means f prime is falling, right there. Look: f prime crosses zero on its way down, from plus to minus. On f, up then down makes a peak: a relative maximum at negative two.
2:06At two, f double prime is positive twelve. F prime is rising there, crossing zero from minus to plus. Down then up: a valley. A relative minimum at two. With the First Derivative Test, you checked f prime on both sides of c. Here, one number at c did it. So the sign of f double prime at c tells you whether f prime crosses zero going up, or going down.
2:38The rule. Start with f prime of c equal to zero. If f double prime of c is positive, f prime rises through zero, minus to plus: a relative minimum. If f double prime of c is negative, f prime falls through zero, plus to minus: a relative maximum. On f, a flat tangent inside a cup is a valley; under a cap, a peak.
3:08That's the Second Derivative Test. One warning: it needs f prime of c equal to zero. At a sharp corner, where f prime doesn't exist, you can't use it. One more use. Where is f falling fastest? Where f prime is smallest. So the function we're judging is f prime itself. The derivative of f prime is six x: zero at x equals zero. Its derivative is six, positive.
3:41By the Second Derivative Test, f prime has a relative minimum at zero. It's an upward parabola, so that's its lowest point: f falls fastest at zero. Idea two: what if f double prime of c equals zero? Here are three quick curves. First, y equals x to the fourth: clearly a valley at zero. Under it, y prime is four x cubed: zero at zero, minus then plus.
4:14And y double prime, twelve x squared, is zero at zero too. Flip it: y equals negative x to the fourth, a peak. Y prime is negative four x cubed: plus, then minus. Y double prime is negative twelve x squared, also zero at zero. And y equals x to the fifth: it climbs right through zero. Y prime, five x to the fourth, only touches zero: plus on both sides.
4:47Y double prime is twenty x cubed, again zero at zero. Three for three. Every one has y prime of zero, and y double prime of zero, equal to zero. Yet: a relative minimum, a relative maximum, and neither. So when f double prime of c is zero, this test gives no answer. It's inconclusive. Go back to the First Derivative Test: check the signs of f prime on both sides.
5:17And zero doesn't mean an inflection point, either. X to the fourth has f double prime zero at zero, and it's a cup on both sides. So why use a test that can fail? Most of the time, one number settles a flat spot fast. And when it can't, the First Derivative Test is right there. Idea three. What if there's only one critical point? Take f of x equals x plus four over x, for x greater than zero.
5:51F prime is one minus four over x squared. Draw both: the line y equals one, and the curve four over x squared. They meet at two. Left of two, the curve is above the line, so f prime is negative. Right of two, it's below, so f prime is positive. The algebra agrees: x squared equals four, and with x positive, x equals two. Only two.
6:22F double prime is eight over x cubed. At two: eight over eight, one. Positive. So there's a relative minimum at two. The value is two plus four over two: four. Could f dip below four somewhere else? It would have to climb out of this valley, and then turn back down. Turning back down needs another flat spot or corner: a second critical point. There isn't one.
6:53So the relative minimum is the absolute minimum: four is the smallest value on x greater than zero. The rule: if f is continuous on an interval, and has only one critical point there, then a relative extremum at that point is the absolute extremum on the interval. Compare: on a closed interval, you compare the candidates, ends included. With no ends, this argument does the job.
7:25Example one. Let f of x equal sine x plus cosine x, on the open interval from zero to two pi. Use the Second Derivative Test to find where f has a relative maximum and a relative minimum. Justify your answer. The plan: find where f prime is zero, then check the sign of f double prime at each spot. F prime is cosine x minus sine x: white minus purple.
7:57They meet at pi over four, and five pi over four. White above, then below, then above: plus, minus, plus. So we already expect a max at pi over four, and a min at five pi over four. But the problem asks for the Second Derivative Test, so we keep going. F double prime is negative sine x minus cosine x. At pi over four, we get negative root two over two, minus root two over two: negative root two, less than zero.
8:32Write both facts together. F double prime alone isn't the reason; the pair is. F prime of pi over four is zero, and f double prime of pi over four is negative. So f has a relative maximum at x equals pi over four. At five pi over four, sine and cosine are both negative root two over two, so f double prime is root two, greater than zero. F prime is zero there, and f double prime is positive:
9:03a relative minimum at x equals five pi over four. Try the matching problem in your workbook the same way: zeros of f prime, the sign of f double prime, and both facts. Example two. f is twice differentiable. F prime of two is zero, and f double prime of two is negative three. And f prime of five and f double prime of five are both zero. Which of the three statements must be true here?
9:36We'll go one statement at a time. Statement one: f prime of two is zero, and f double prime of two is negative three. A flat tangent under a cap means a relative maximum at two. True. Statement two: f double prime of five is zero, so the test can't tell. At five, f could look like any of our three curves. A peak is possible, so it doesn't have to be a minimum. Statement three: an inflection point at five?
10:08The valley and the peak bend the same way on both sides: no change in concavity. So that doesn't have to be true, either. So the answer is A: statement one only. Another must-be-true question is in your workbook. Take it one statement at a time. Here's where answers go wrong: f double prime of five equals zero. One rushed answer: f double prime of five is zero, so there's an inflection point at five.
10:40Another: so no max or min at five. Both treat that zero as a verdict. Read it as: no conclusion yet. For a max or min, check whether f prime changes sign. For an inflection point, check whether f double prime changes sign. Example three. f is differentiable, and f prime of x is x squared minus two x minus eight. That's a formula for f prime, not f.
11:13For part a, where does f have relative extrema? Use the second derivative test. For part b, on x greater than negative two, does f have an absolute minimum? Then justify your answers. Part a. The plan: zeros of f prime, then the sign of f double prime. Notice: we're given f prime, not f. Its graph is a parabola.
11:43It factors: x minus four, times x plus two. It's zero at negative two, and at four. F double prime is the derivative of f prime: two x minus two. At negative two, f double prime is negative six. F prime is zero there, and f double prime is negative: a relative maximum at x equals negative two. At four, it's positive six. Zero f prime and positive f double prime give a relative minimum at x equals four.
12:20Part b is about x greater than negative two. Draw the boundary at negative two. Greater than, not equal: negative two is left out. So four is the only critical point on this interval. F is differentiable, so it's continuous there. The rule needs that. Right of the line, f prime is negative until four, then positive: down, then up.
12:50Continuous, with its only critical point a relative minimum: so yes, f has an absolute minimum at x equals four. Write the words, the only critical point, in your answer. That's the reason. One more in the workbook goes from relative to absolute. So, back to today's question. Does the sign of f double prime at c decide? Mostly, yes. A flat tangent in a cup: f prime is zero, f double prime is positive, so f prime is rising, a relative minimum.
13:28Under a cap, f double prime is negative, so f prime is falling, a relative maximum. If f double prime is zero, or doesn't exist, the test sits out, and there's no conclusion yet: back to the signs of f prime. If a continuous function has only one critical point on an interval, its relative extremum there is the absolute extremum. And never write one half without the other: f prime of c equals zero, and the sign of f double prime of c.
13:59Next, in five point eight, we use slopes and bends to sketch f and f prime from each other. See you there.