In mathematics, the second partial derivative test is a method in multivariable calculus used to determine if a critical point of a function is a local minimum, maximum or saddle point.
Suppose that f(x, y) is a differentiable real function of two variables whose second partial derivatives exist and are continuous.
of H. Finally, suppose that (a, b) is a critical point of f, that is, that fx(a, b) = fy(a, b) = 0.
In cases 1 and 2, the requirement that fxx fyy − fxy2 is positive at (x, y) implies that fxx and fyy have the same sign there.
Therefore, the second condition, that fxx be greater (or less) than zero, could equivalently be that fyy or tr(H) = fxx + fyy be greater (or less) than zero at that point.
A condition implicit in the statement of the test is that if
For a function f of three or more variables, there is a generalization of the rule shown above.
In this context, instead of examining the determinant of the Hessian matrix, one must look at the eigenvalues of the Hessian matrix at the critical point.
The following test can be applied at any critical point a for which the Hessian matrix is invertible: In those cases not listed above, the test is inconclusive.
[2] For functions of three or more variables, the determinant of the Hessian does not provide enough information to classify the critical point, because the number of jointly sufficient second-order conditions is equal to the number of variables, and the sign condition on the determinant of the Hessian is only one of the conditions.
Note that in the one-variable case, the Hessian condition simply gives the usual second derivative test.
For the general case of an arbitrary number n of variables, there are n sign conditions on the n principal minors of the Hessian matrix that together are equivalent to positive or negative definiteness of the Hessian (Sylvester's criterion): for a local minimum, all the principal minors need to be positive, while for a local maximum, the minors with an odd number of rows and columns need to be negative and the minors with an even number of rows and columns need to be positive.
See Hessian matrix#Bordered Hessian for a discussion that generalizes these rules to the case of equality-constrained optimization.
To find and classify the critical points of the function we first set the partial derivatives equal to zero and solve the resulting equations simultaneously to find the four critical points In order to classify the critical points, we examine the value of the determinant D(x, y) of the Hessian of f at each of the four critical points.
We have Now we plug in all the different critical values we found to label them; we have Thus, the second partial derivative test indicates that f(x, y) has saddle points at (0, −1) and (1, −1) and has a local maximum at
At the remaining critical point (0, 0) the second derivative test is insufficient, and one must use higher order tests or other tools to determine the behavior of the function at this point.
(In fact, one can show that f takes both positive and negative values in small neighborhoods around (0, 0) and so this point is a saddle point of f.)