For problems involving maxima and minima in multiple variables, we calculate the discriminant

at critical points. If and one of the partial derivatives is nonzero, then the critical point is a relative extremum, if , the critical point is a saddle point, and if , the test is inconclusive.