The Second Derivative Test
The test
The proof runs through the First Derivative Test. Suppose . Since is continuous, it stays positive on some open interval around , so is increasing there. Since , is negative just to the left of and positive just to the right. By the First Derivative Test, has a relative minimum at . When , the same argument with the signs reversed gives a relative maximum.
Near , a graph that's concave up with a horizontal tangent lies above that tangent line: a valley. A graph that's concave down at a horizontal tangent lies below it: a peak.
The test needs . At a critical point where doesn't exist, doesn't exist either, so use the First Derivative Test there.
Classifying critical points
When f″(c) = 0
Each function below has and , and the three behave differently at .
For , is positive on both sides of . So increases through , from negative to positive, and has a relative minimum.
For , is negative on both sides of . So decreases through , and has a relative maximum.
For , is negative on both sides of , so decreases through and has neither.
So when , go back to the First Derivative Test and find the sign of on each side of .
One critical point
Here's the reason for a minimum. Suppose some in , say with , had . By the Extreme Value Theorem, has a maximum on . It isn't at , where is below . If it were at , would be constant just to the right of , and every point there would be critical. So it's strictly between and , a second critical point. The case is the same.
The theorem needs exactly one critical point. In Example 1, has two, and its relative maximum isn't an absolute maximum on : is larger.