The Hessian matrix describes how the slope of a function changes in different directions. For a real-valued function with continuous second partial derivatives on an open subset of , it is
The symmetry of second derivatives makes a symmetric matrix under these hypotheses. It is also the Jacobian matrix of the gradient: near , a small displacement changes by . Thus the gradient measures the current slope, while the Hessian measures its local variation. [ref]
For example, take the quadratic form
Its gradient and Hessian matrix are
The only critical point is the origin. Completing the square gives , so the origin is a strict global minimum. The eigenvalues and are both positive, recovering the same conclusion from the positive definiteness of the Hessian. Its eigenvectors identify the rotated directions in which the quadratic form has its smallest and largest bending.
Figure 1.
Positive, negative and mixed Hessian eigenvalues produce different critical-point geometry
. Contour plots of , , and . All three have a critical point at the origin; the first two have elliptical contours, while the last has positive and negative sectors meeting along its zero contours. Details.
For a fixed vector , restriction to a straight line gives the directional interpretation
This is the quadratic form associated with the Hessian matrix. For a unit eigenvector , it equals the corresponding eigenvalue. Opposite signs therefore mean that some directions bend upwards and others downwards. The second-derivative test turns this information into a classification when the gradient vanishes.
The same object is useful for computation. Newton's method in optimization chooses a displacement by solving when the Hessian matrix is an invertible matrix; this makes the gradient of the local quadratic model vanish. For the displayed , the equation gives , so one exact step reaches the minimum from any starting point. For a general function, a Hessian with opposite-sign eigenvalues or a large condition number need not give a useful minimizing step, and the local minimum need not be a global minimum.
The name honors Otto Hesse. [ref] An older geometric use is the Hessian criterion for flexes of a plane cubic, connecting a determinant of second partial derivatives with inflection points of an algebraic curve. Hesse's 1844 paper Über die Wendepuncte der Curven dritter Ordnung is an early source on that geometric problem. [ref]
Let be a twice continuously differentiable local diffeomorphism, and suppose . The chain rule gives the displayed transformation of the Hessian matrix: terms containing second partial derivatives of are multiplied by first partial derivatives of and vanish at the critical point. By Sylvester's law of inertia, the numbers of positive, negative and zero eigenvalues are unchanged. Independently of nondegeneracy, the local diffeomorphism preserves the critical point's status as a local minimum, local maximum or saddle point of a scalar function, because it maps neighbourhoods to neighbourhoods.
Applying a Hessian matrix to a vector without explicitly storing all its entries. For with diagonal , evaluate . This uses two matrix-vector multiplications and a diagonal scaling: arithmetic for dense , rather than forming the Hessian matrix. Iterative second-order methods can use this operation, with safeguards for indefinite curvature when the objective is nonconvex.
For twice differentiable , constant vectors and constant scalars , let , and let row of be . The chain rule gives
The second formula is the displayed matrix product because entry is the same weighted sum . Signed diagonal factors do not ensure a positive-definite Hessian matrix. The factorization also gives an efficient matrix-free Hessian-vector product.
The determinant of the Hessian matrix. For a twice continuously differentiable function of two variables, it is . A negative value at a critical point implies a saddle point; a positive value combines with the sign of in the second-derivative test. A zero value is inconclusive.
For with bounded Hessian matrix, Taylor's formula along the line from zero to gives . Its gradient obeys . Consequently is finite for when has finite measure, and .
For , a degenerate Hessian matrix can be supplemented by the first nonzero term of each one-variable displacement. Two negative leading even powers give a strict local maximum, two positive ones a strict local minimum, and opposite signs give a saddle. Looking along the coordinate directions and bounding the separated terms avoids an inconclusive quadratic test.
For an explicit contrast, consider
Both have zero gradient and the same zero Hessian matrix at the origin:
Nevertheless, is positive at every nonzero point, so the origin is a strict global minimum. For , the restrictions and for show that the origin is a saddle point of a scalar function. Identical quadratic information can conceal different geometry when higher-order terms are decisive.
Figure 1.
The same zero Hessian can occur at a strict minimum or a saddle
. The quartic functions and both have zero second partial derivatives at the origin. Their contour geometry and signs differ, so a singular Hessian matrix alone cannot classify the critical point. Details.
A symmetric matrix is negative semidefinite when for every vector . Equivalently, all its eigenvalues are nonpositive.
Let have continuous second partial derivatives near an interior critical point of an open subset of , with . The Hessian matrix gives the following sufficient conditions:
A positive semidefinite or negative semidefinite Hessian matrix with a zero eigenvalue does not settle the classification. The higher-order test for separated extrema gives two quartic examples with exactly the same zero Hessian. These conditions apply to an interior critical point; a boundary optimum or a constrained optimization problem requires attention to the allowed directions. [ref]
The proof outline is the Taylor expansion
For a positive-definite matrix, the smallest eigenvalue supplies a positive bound proportional to , which dominates the remainder for small enough . Negate the function for the local maximum case. For opposite-sign eigenvalues, choose the two corresponding eigenvectors: the leading terms have opposite signs along their lines.
There are also necessary conditions. At an interior local minimum, the Hessian matrix is positive semidefinite; at an interior local maximum, it is negative semidefinite. Restriction to each straight line reduces this to the one-variable second derivative condition. Since the Laplacian is the trace of the Hessian, it is nonnegative at such a local minimum and nonpositive at such a local maximum. The sign of the Laplacian alone is insufficient: has negative Laplacian but a saddle point of a scalar function at the origin.
Define and, elsewhere,
All first and second partial derivatives exist at the origin: and . Thus its Hessian matrix there is the positive-definite matrix . Nevertheless and for , so the origin is a saddle point of a scalar function. A valid second-derivative test needs a second-order Taylor expansion with a remainder ; continuous second partial derivatives in a neighborhood are a sufficient hypothesis. Existence of those derivatives at the point alone does not supply this hypothesis.
The origin is a saddle point of a scalar function for every real parameter. For four further critical points have . Equal-sign coordinates give global maxima and opposite-sign coordinates give global minima, with values . The Hessian matrix there is . Their distance from the origin is , so as they escape every compact region. At nonpositive the origin is the only critical point. This illustrates why the number of critical points on an unbounded domain can change without a finite degenerate critical point appearing.
A critical point of a real function with continuous second partial derivatives is nondegenerate when its Hessian matrix is an invertible matrix there, equivalently when none of its eigenvalues is zero. A positive-definite matrix gives a strict local minimum, a negative definite Hessian gives a strict local maximum, and opposite-sign eigenvalues give a saddle point of a scalar function. A nondegenerate critical point need not be an extremum: has Hessian matrix , which is an invertible matrix.
Such critical points are the local building blocks of Morse theory.

Ancestors (7)

  1. Multivariable calculus
  2. Calculus
  3. Real analysis
  4. Analysis
  5. Area of mathematics
  6. Mathematics
  7. Home

Synonyms (1)

Discussion (0) New discussion

There are no discussions about this article yet.

Articles by others on the same topic (1)

The Hessian matrix is a square matrix of second-order partial derivatives of a scalar-valued function. It provides important information about the local curvature of the function and is widely used in optimization problems, economics, and many areas of mathematics and engineering.