Second derivative test for a function of two variables

From Calculus

Statement

Suppose f is a function of two variables x,y. Suppose (x0,y0) is a point in the domain of f such that both the first-order partial derivatives at the point are zero, i.e., fx(x0,y0)=fy(x0,y0)=0. Suppose that all the second-order partial derivatives (pure and mixed) for f exist and are continuous at and around (x0,y0). Note that by Clairaut's theorem on equality of mixed partials, this implies that fxy(x0,y0)=fyx(x0,y0).

The second derivative test helps us determine whether f has a local maximum at (x0,y0), a local minimum at (x0,y0), or a saddle point at (x0,y0).

First, consider the Hessian determinant of f at (x0,y0), which we define as:

D=fxx(x0,y0)fyy(x0,y0)(fxy(x0,y0))2

Note that this is the determinant of the Hessian matrix:

H(f)(x0,y0)=(fxx(x0,y0)fxy(x0,y0)fyx(x0,y0)fyy(x0,y0))

We now have the following:

Case Local maximum, local minimum, saddle point, or none of these?
D<0 Saddle point
D>0 and fxx(x0,y0)>0 (note that these together also force fyy(x0,y0)>0) Local minimum (reasoning similar to the single-variable second derivative test)
D>0 and fxx(x0,y0)<0 (note that these together also force fyy(x0,y0)<0) Local maximum (reasoning similar to the single-variable second derivative test)
D=0 and one or both of fxx(x0,y0) and fyy(x0,y0) is positive (note that if one of them is positive, the other one is either positive or zero) Inconclusive, but we can rule out the possibility of being a local maximum
D=0 and one or both of fxx(x0,y0) and fyy(x0,y0) is negative (note that if one of them is negative, the other one is either negative or zero) Inconclusive, but we can rule out the possibility of being a local minimum
All entries of the Hessian matrix are zero, i.e., fxx(x0,y0),fyy(x0,y0),fxy(x0,y0) are all zero Inconclusive. No possibility can be ruled out.