Second partial derivative test: Difference between revisions

From testwiki
Jump to navigation Jump to search
imported>JayBeeEll
m rv
 
(No difference)

Latest revision as of 01:52, 26 December 2024

Template:Short description Template:Multiple image

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.

Functions of two variables

Suppose that Template:Math is a differentiable real function of two variables whose second partial derivatives exist and are continuous. The Hessian matrix Template:Mvar of Template:Mvar is the 2 × 2 matrix of partial derivatives of Template:Mvar: H(x,y)=[fxx(x,y)fxy(x,y)fyx(x,y)fyy(x,y)].

Define Template:Math to be the determinant D(x,y)=det(H(x,y))=fxx(x,y)fyy(x,y)(fxy(x,y))2 of Template:Mvar. Finally, suppose that Template:Math is a critical point of Template:Mvar, that is, that Template:Math. Then the second partial derivative test asserts the following:[1]

  1. If Template:Math and Template:Math then Template:Math is a local minimum of Template:Mvar.
  2. If Template:Math and Template:Math then Template:Math is a local maximum of Template:Mvar.
  3. If Template:Math then Template:Math is a saddle point of Template:Mvar.
  4. If Template:Math then the point Template:Math could be any of a minimum, maximum, or saddle point (that is, the test is inconclusive).

Sometimes other equivalent versions of the test are used. In cases 1 and 2, the requirement that Template:Math is positive at Template:Math implies that Template:Mvar and Template:Mvar have the same sign there. Therefore, the second condition, that Template:Mvar be greater (or less) than zero, could equivalently be that Template:Mvar or Template:Math be greater (or less) than zero at that point.

A condition implicit in the statement of the test is that if fxx=0 or fyy=0, it must be the case that D(a,b)0, and therefore only cases 3 or 4 are possible.

Functions of many variables

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:

  1. If the Hessian is positive definite (equivalently, has all eigenvalues positive) at a, then f attains a local minimum at a.
  2. If the Hessian is negative definite (equivalently, has all eigenvalues negative) at a, then f attains a local maximum at a.
  3. If the Hessian has both positive and negative eigenvalues then a is a saddle point for f (and in fact this is true even if a is degenerate).

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) and fxx(a,b) are the principal minors of the Hessian. The first two conditions listed above on the signs of these minors are the conditions for the positive or negative definiteness of the Hessian. 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.

Examples

Critical points of f(x,y)=(x+y)(xy+xy2)
maxima (red) and saddle points (blue).

To find and classify the critical points of the function

z=f(x,y)=(x+y)(xy+xy2),

we first set the partial derivatives

zx=y(2x+y)(y+1) and zy=x(3y2+2y(x+1)+x)

equal to zero and solve the resulting equations simultaneously to find the four critical points

(0,0),(0,1),(1,1) and (38,34).

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

D(a,b)=fxx(a,b)fyy(a,b)(fxy(a,b))2=2b(b+1)2a(a+3b+1)(2a+2b+4ab+3b2)2.

Now we plug in all the different critical values we found to label them; we have

D(0,0)=0;D(0,1)=1;D(1,1)=1;D(38,34)=27128.

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 (38,34) since fxx=38<0. 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.)

Notes

Template:Reflist

References

  1. Template:Harvnb, p. 803.
  2. Kurt Endl/Wolfgang Luh: Analysis II. Aula-Verlag 1972, 7th edition 1989, Template:Isbn, pp. 248-258 (German)