Relation between Hessian matrix and second-order partial derivatives

From Calculus
Revision as of 16:26, 12 May 2012 by Vipul (talk | contribs) (Created page with "==Relation at a point== ===For a function of two variables at a point=== Suppose <math>f</math> is a real-valued function of two variables <math>x,y</math> and <math>(x_0,y_...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Relation at a point

For a function of two variables at a point

Suppose f is a real-valued function of two variables x,y and (x0,y0) is a point in the domain of f at which f is twice differentiable. In particular, this means that all the four second-order partial derivatives exist at (x0,y0), i.e., the two pure second-order partials fxx(x0,y0),fyy(x0,y0) exist, and so do the two second-order mixed partial derivatives fxy(x0,y0) and fyx(x0,y0). Then, the Hessian matrix of f at (x0,y0), denoted H(f)(x0,y0), can be expressed explicitly as a 2×2 matrix of real numbers defined as follows:

(fxx(x0,y0)fxy(x0,y0)fyx(x0,y0)fyy(x0,y0))

Note that it may be possible that f is not twice differentiable at (x0,y0) but the above 2×2 matrix still exists. In that case, we do not call it the Hessian matrix, because it does not satisfy any of the nice behavior that we expect of the Hessian matrix.

For a function of multiple variables at a point

Suppose f is a real-valued function of multiple variables (x1,x2,,xn). Suppose (a1,a2,,an) is a point in the domain of f at which f is twice differentiable. In other words, a1,a2,,an are real numbers and the point has coordinates x1=a1,x2=a2,,xn=an. It then follows that all the second-order partials (pure and mixed) of f with respect to these variables exist at the point (a1,a2,,an). Then, the Hessian matrix of f at (a1,a2,,an), denoted H(f)(a1,a2,,an), is a n×n matrix of real numbers that can be expressed explicitly as follows:

The (ij)th entry (i.e., the entry in the ith row and jth column) is fxixj(a1,a2,,an). This is the same as 2xjxif(x1,x2,,xn)|(x1,x2,,xn)=(a1,a2,,an). Note that in the two notations, the order in which we write the partials differs because the convention differs (left-to-right versus right-to-left).

The matrix looks like this:

(fx1x1(a1,a2,,an)fx1x2(a1,a2,,an)fx1xn(a1,a2,,an)fx2x1(a1,a2,,an)fx2x2(a1,a2,,an)fx2xn(a1,a2,,an)fxnx1(a1,a2,,an)fxnx2(a1,a2,,an)fxnxn(a1,a2,,an))

Note that it may be possible that f is not twice differentiable at (a1,a2,,an) but the above n×n matrix still exists. In that case, we do not call it the Hessian matrix, because it does not satisfy any of the nice behavior that we expect of the Hessian matrix.

Relation as functions

For a function of two variables

Suppose f is a real-valued function of two variables x,y. The Hessian matrix of f, denoted H(f) satisfies the following:

H(f)(x,y)=(fxx(x,y)fxy(x,y)fyx(x,y)fyy(x,y))

The equality holds whenever the left side makes sense. In other words, the domain of H(f) is contained in the domain of the right side, but it is possible that the domain of definition for the matrix on the right side is strictly bigger than the domain of definition of H(f).

We can also write the above in point-free notation:

H(f)(x,y)=(fxxfxyfyxfyy)

Again, equality holds whenever the left side makes sense.

For a function of multiple variables

Suppose f is a function of variables x1,x2,,xn. The Hessian matrix of f, denoted H(f), is related to the second-order partial derivatives as follows (expressed in point-free notation):

H(f)=(fx1x1fx1x2fx1xnfx2x1fx2x2fx2xnfxnx1fxnx2fxnxn)

The equality holds whenever the left side makes sense. In other words, the domain of H(f) is contained in the domain of the right side, but it is possible that the domain of definition for the matrix on the right side is strictly bigger than the domain of definition of H(f).

Note for functions with continuous second-order partials

If all the second-order partial derivatives (both pure and mixed) of f are continuous functions at and around a particular point in the domain, then the Hessian matrix exists and is given by the matrix expression in terms of second-order partials. In particular, if all the second-order partials of f exist and are continuous everywhere, then the Hessian matrix of f exists everywhere and is given by the matrix expression everywhere.

The key role of continuity is as follows: it helps us conclude that, in fact, the Hessian matrix does exist. Without checking continuity, we can still compute the matrix of second-order partials, and we know it must equal the Hessian matrix if it exists, but we don't know whether the Hessian matrix exists. Continuity helps bridge that knowledge gap, allowing us to go from computing second-order partials to computing the Hessian matrix without reverting to first principles.