The second partial derivative test in this visualization
At a critical point P of a function , both first partial derivatives are zero and the tangent plane is horizontal. The second partial derivative test tells what kind of point it is from the second derivatives , and , through the discriminant , the determinant of the Hessian matrix. If f has continuous second partial derivatives near P:
The page cuts a surface with a vertical slice through a critical point P, in any direction θ. The surface is a quadratic form whose second derivatives you set, or one of several other functions. How much the cut bends at P is the second derivative along that direction, . The compass around P is filled where the slices bend up and hatched where they bend down. The test is a statement about all these slices at once.
As θ turns through half a circle, the bending makes one full wave around its midline with amplitude s, drawn in the small plot. Its highest and lowest values, and , come in two perpendicular directions, and they are the eigenvalues of the Hessian. Multiplying out gives . So means the wave never reaches zero. Every slice bends the same way, and P is a minimum or a maximum. Any one slice then tells which, and is simply the bending along x. means the wave crosses zero: some slices bend up and others down, and P is a saddle point.
This is why and are not enough. The cross term turns the peaks of the wave away from the axes and makes the wave taller without moving its midline. Once is large enough, a diagonal slice bends down although both axis slices bend up, and the bowl has become a saddle.
When , the bending is zero in exactly two directions, where the wave crosses zero, and the compass draws them as lines across the disc. They are the tangents of the level curve through P, which crosses itself there. This is the X that a saddle point makes on a contour map.
When the wave touches zero or lies on it, so in some direction the second-order term vanishes and the test cannot tell. and have the same second derivatives at the origin, yet along y the first falls like and the second rises like , so one is a saddle and the other a minimum. On the monkey saddle every second derivative is zero at the origin, and the surface rises in three directions and falls in three. “The test can’t tell” does not mean “no extremum”.
At a critical point the first-order terms vanish, so near P the function is close to its second-order Taylor polynomial, which is f(P) plus a quadratic form. Quadratic approximation draws it over the disc. When , close enough to P the quadratic term outweighs the remainder in every direction, so P is a minimum or maximum like the approximation. When , it still does along the directions where it bends up or down, so f rises along some and falls along others: a saddle.
Things to notice
- A critical point is a local matter. On the minimum at (1, 0) is not a lowest point: the function falls without bound as x decreases.
Controls
- The slice turns from the red handle on the compass, from the direction dial, or by dragging the wave in the small plot.
- The θ field takes degrees or a multiple of π such as π/4.