Stand at the bottom of a bowl, on top of a hill, or in the middle of a mountain pass. In all three places the ground is level in every direction, so the tangent plane is horizontal. Yet only two of them are high or low points. A pass rises in one direction and falls in another. Telling these three situations apart is the job of the second derivative test, and spotting when it cannot decide is just as important.
Key terms
Local maxima and minima
Definition Let be defined on a set and let be a point of . The function has a local maximum at if there is an such that
A local minimum is defined the same way with . The extremum is strict if the inequality is strict for every such . Local maxima and minima together are called local extrema.
In plain words A local maximum is a point that is at least as high as everything close to it. It is strict when it is the only point at that height nearby.
Example The function has a strict local minimum at , since everywhere else. The function has a local minimum at every point , but none of them is strict, because along the whole -axis.
Critical points
Definition Let be an interior point of the domain of . The point is a critical point of if or if at least one first partial derivative of does not exist at . If has a local extremum at an interior point and exists, then . Hence every local extremum at an interior point occurs at a critical point. The converse is false.
In plain words At an interior high or low point, either the ground is level or the function has a corner or spike. So you look for both kinds of candidates, smooth ones and singular ones.
Example For , the partials and exist everywhere and vanish together exactly at and . Those are the only critical points. For , the partials exist away from the origin and never vanish together there, but does not exist, since . So the origin is a singular critical point, and it is a strict local minimum.
Saddle points
Definition A critical point of is a saddle point if every open ball centered at contains points in the domain with and points with . Equivalently, a saddle point is a critical point that is neither a local maximum nor a local minimum.
In plain words Near a saddle, the function goes up in some directions and down in others, no matter how closely you look. A horizontal tangent plane does not make a point a peak or a pit.
Example For the gradient vanishes only at the origin. Along the -axis , and along the -axis for . So both signs appear in every disk around the origin, and it is a saddle point.
Hessian definiteness
Definition A symmetric matrix is positive definite if for every , negative definite if for every , and indefinite if takes both positive and negative values. If for all it is positive semidefinite, and if for all it is negative semidefinite. Equivalently, these are the cases where all eigenvalues are positive, all are negative, some are positive and some negative, all are nonnegative, and all are nonpositive. For a symmetric matrix
the three main cases read
In plain words Definiteness tells you the sign of the quadratic part of the Taylor model. Positive definite means the quadratic part curves up in every direction, like a bowl.
Example Compare
The matrix has and determinant , so it is positive definite. The matrix has determinant , so it is indefinite. Indeed at its form gives , while at it gives .
The second derivative test
Definition Let be on an open set containing , and let . If is positive definite, has a strict local minimum at . If is negative definite, has a strict local maximum at . If is indefinite, is a saddle point. For two variables put
Then with gives a strict local minimum, with gives a strict local maximum, and gives a saddle point. If the test gives no information.
In plain words At a critical point the gradient term of the Taylor model is zero, so along each line on which , the difference has the sign of that number for all small . Definiteness makes this sign the same in every direction at once. The determinant is a quick way to read off which case you are in.
Example Classify the critical points of . The equations and give and , so the critical points are and . The Hessian is
| Point | Type | ||
|---|---|---|---|
| saddle point | |||
| strict local minimum, |
Degenerate and inconclusive cases
Definition Let be on an open set containing . A critical point with is degenerate when , which for two variables means . For two variables the Hessian is then semidefinite and the test above gives no conclusion. In three or more variables a degenerate Hessian can still be indefinite, for example with eigenvalues , and , and then the point is a saddle by the test above, because has a strict minimum along one line and a strict maximum along another. A degenerate Hessian that is semidefinite gives no conclusion. In the inconclusive case the point may be a strict or non-strict extremum or a saddle, and it must be classified by other means, such as the sign of near , restrictions of to lines or curves through , or factoring. The test also does not apply to singular critical points, where is not differentiable.
In plain words When the quadratic part is flat in some direction, it is too weak to decide, and higher order terms take over. Look at the function itself.
Example At the origin, , and all have zero Hessian, so . Directly, the first has a strict minimum, the second a strict maximum, and the third a saddle, since it is positive on the -axis and negative on the -axis. A less obvious case is , whose Hessian at the origin is
so . Along the -axis takes both signs, so the origin is a saddle point.
Check yourself
- Find and classify the critical points of .
Show the answer
The equations and give the single point . There , , , so with . It is a strict local minimum with value .
- The second derivative test fails for at the origin. Why, and what kind of point is it?
Show the answer
The Hessian at the origin is
so . Directly, for every , so the origin is a strict local minimum.
- Find all critical points of and say whether the extrema are strict.
Show the answer
The gradient vanishes exactly on the line , and there . Since with equality on that line, every point of the line is a local minimum. None is strict, because nearby points on the line have the same value .