Relative Minimums and Maximums
At the top of a peak or the bottom of a pit, the ground is level in every direction, so the gradient is zero. But level ground can also be a saddle, and the second derivative test, using , tells the three apart.
What the symbols mean
- Discriminant
D > 0: a max or min (check the sign of f_xx). D < 0: a saddle. D = 0: no conclusion.
Explanation
A relative maximum is simply a hilltop, a point higher than everything right around it, and a relative minimum is the bottom of a dip. ("Relative" because it only has to beat its neighbors, not the whole landscape.) Finding them is how you optimize anything that depends on two inputs, like profit from two products. The test quantity looks intimidating, but it's built from three bend measurements: (how the surface curves going east), (how it curves going north) and (a twist term). Its sign tells you whether both directions curve the same way or not. That's really all it's doing.
Critical points. In one variable, you found maxes and mins where , because the tangent line is flat at the top of a hill. Same idea here: at a peak or pit, the tangent plane is flat, so both slopes are zero. Solve and together.
A flat tangent plane isn't enough, though, just like wasn't enough in one variable. In two variables there's a new possibility: a saddle point, which curves up in one direction and down in another, like a mountain pass. The tangent plane is flat there, but it's neither a peak nor a pit.
Sorting them out. In one variable you checked the sign of . Now there are several second partials, and the surface might bend up in one direction and down in another. Here's the reasoning behind . If and have the same sign and the twist is small, the surface bends the same way in both directions, and beats , so . If they have opposite signs, is negative and : a saddle. A large twist term can also make negative, because it can tilt the bending so that some diagonal direction curves the other way. When , the sign of says whether it's a bowl or a dome.
The test at a critical point:
| Conclusion | ||
|---|---|---|
| relative minimum | ||
| relative maximum | ||
| saddle point | ||
| inconclusive |
When the test simply can't decide, just like in one variable, and you'd have to look at the function more closely.
See it
Worked examples
Classify the critical points of .
- 1
Set both slopes to zero: gives , and gives . So the critical points are and .
Practice
Type your answer and check it. Solve them all to complete the lesson.
Find the critical point of .
Classify it.
For , classify .
For , find at the origin.
What is the maximum value of ?
A company sells two related products. Its profit from and thousand units is (thousand dollars). Find the maximum profit.
The hardest one here. Get it, and you've got this lesson.
Find all critical points of , classify them, and give the local minimum value.
Where it's used
Training a neural network means descending a loss surface with millions of dimensions, where saddle points vastly outnumber true minima: the second-derivative ideas here explain why optimizers stall there.