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 is a differentiable real function of two variables whose second partial derivatives exist and are continuous. The Hessian matrix of is the 2 × 2 matrix of partial derivatives of :
Define to be the determinantof . Finally, suppose that is a critical point of, that is, that . Then the second partial derivative test asserts the following:[1]
Sometimes other equivalent versions of the test are used. In cases 1 and 2, the requirement that is positive at implies that and have the same sign there. Therefore, the second condition, that be greater (or less) than zero, could equivalently be that or be greater (or less) than zero at that point.
A condition implicit in the statement of the test is that if
fxx=0
fyy=0
D(a,b)\leq0,
For a function f of three or more variables, there is a generalization of the rule 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.
In the two variable case,
D(a,b)
fxx(a,b)
To find and classify the critical points of the function
z=f(x,y)=(x+y)(xy+xy2)
we first set the partial derivatives
\partialz | |
\partialx |
=y(2x+y)(y+1)
\partialz | |
\partialy |
=x\left(3y2+2y(x+1)+x\right)
equal to zero and solve the resulting equations simultaneously to find the four critical points
(0,0),(0,-1),(1,-1)
\left( | 3 |
8 |
,-
3 | |
4 |
\right)
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
\begin{align} D(a,b)&=fxx(a,b)fyy(a,b)-\left(fxy(a,b)\right)2\ &=2b(b+1) ⋅ 2a(a+3b+1)-(2a+2b+4ab+3b2)2. \end{align}
D(0,0)=0;~~D(0,-1)=-1;~~D(1,-1)=-1;~~D\left(
3 | |
8 |
,-
3 | |
4 |
\right)=
27 | |
128 |
.
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
\left( | 3 |
8 |
,-
3 | |
4 |
\right)
fxx=-
3 | |
8 |
<0