Hessian matrix Created 2026-09-24 Updated 2026-10-14
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]
Maxwell relations 2026-10-14
Maxwell relations turn pressure, volume and temperature measurements into information about entropy. For example, the pressure rise when heating a rigid sealed vessel determines the entropy change when expanding the same sample isothermally:
The quantities on the two sides describe different experiments, yet both are mixed partial derivatives of one Helmholtz free energy. This is the useful surprise: a mechanical measurement can reveal a thermal property. Similarly, the coefficient of thermal expansion gives . [ref]
For a simple compressible system, hold particle number and composition fixed, and allow only pressure-volume work. Write for internal energy, for enthalpy, for Helmholtz free energy, and for Gibbs free energy. Their natural-variable differentials are
Thus the first partial derivatives, with the subscript recording the variables kept fixed, are
The symmetry of second derivatives produces all four standard Maxwell relations, including their signs:
For a brief derivation of the relation, differentiate with respect to and with respect to : . Each other row follows in the same way. Assume continuous second partial derivatives of the relevant thermodynamic potential in the region considered. At a phase transition, the equilibrium potential may lose this smoothness; apply the identities within each smooth thermodynamic phase, and handle latent heat and phase coexistence separately. If particle numbers vary, the potential differentials acquire chemical potential terms, so the fixed- constraints must remain explicit. [ref]
For an ideal gas with fixed , the ideal gas law gives . At fixed volume, heating changes the pressure at rate . Consequently an isothermal expansion at positive temperature has
For one mole with and , this is . At , a reversible isothermal expansion absorbs and performs equal work, since its internal energy is unchanged. The entropy difference is a state function difference: the same equilibrium endpoints give the same in an insulated free expansion, although there and the process is irreversible.
Figure 1.
Ideal gas entropy slopes equal measured pressure responses to heating
. Left: entropy relative to one common reference state for a classical monatomic gas, , with . Each fixed-temperature curve gains on doubling the volume. Right: both partial derivatives, multiplied by , equal ; circles are independent finite differences of entropy, while the line is the pressure response. Details.
The same Maxwell relations let thermal measurements determine the difference between constant-pressure and constant-volume heat capacities. In a smooth single thermodynamic phase,
using heat capacity at constant volume, heat capacity at constant pressure, coefficient of thermal expansion and isothermal compressibility. Along fixed pressure, , so
Thus measured expansion and compression responses determine a heat capacity difference without measuring both heat capacities separately. They do not determine the absolute heat capacities or absolute entropy by themselves; an independent thermal measurement supplies that missing information. For an ideal gas, and reduce the result to , which is Mayer's relation.
When the necessary higher partial derivatives exist and commute, differentiating the Maxwell relations once more also gives
Integrating these slopes determines how a heat capacity changes with volume or pressure at fixed temperature. For an ideal gas, both right-hand sides vanish because the ideal gas law is linear in temperature at either fixed volume or fixed pressure. Consequently and depend only on temperature at fixed , although they need not be constant in temperature. [ref]
Historically, James Clerk Maxwell's Theory of Heat, first published in 1871, presents these connections using the geometry of isothermal processes and reversible adiabatic processes. His fourth edition, page 167, explicitly relates expansion on heating at fixed pressure to heat emitted during an isothermal compression: the modern relation gives . This explains why a substance with positive coefficient of thermal expansion emits heat when compressed isothermally, whereas one with negative coefficient absorbs it. [ref] [ref]
The product rule and chain rule first give
Differentiating the first expression with respect to yields ; differentiating the second with respect to gives exactly the same polynomial factor. Thus
This also follows from symmetry of second derivatives, since all derivatives of this function are continuous everywhere.
If with continuous second partial derivatives of , then and . The symmetry of second derivatives gives the necessary condition for an exact differential form:
This condition is also locally sufficient on a small rectangle for continuously differentiable coefficients; global sufficiency additionally needs suitable topology of the domain.
If with continuous second partial derivatives of , then , . The symmetry of second derivatives requires
This is a necessary condition for an exact differential. With continuously differentiable coefficients it is also locally sufficient, and is globally sufficient on a simply connected open domain; a domain with holes can require additional global information.
Write . The inverse coordinate formulas and are valid because . The multivariable chain rule gives
Applying these operators twice and using the symmetry of second derivatives,
Thus the wave equation is equivalent to
For each fixed , the partial derivative has zero derivative with respect to , so it is a function of alone. Taking an antiderivative in gives , where the integration constant may depend on . Hence
Conversely, direct partial differentiation verifies the wave equation for every twice differentiable pair . The two terms describe profiles moving left and right respectively at wave speed along the characteristic lines for the one-dimensional wave equation.
Let be the tangential surface gradient on a sphere of radius . For smooth scalar fields, set . Its radial curl detects only :
To prove this, use the radial curl formula . The radial component never enters it. The terms cancel as by symmetry of second derivatives, while the terms give the unit-sphere Laplace-Beltrami operator. Taking the dot product with the position vector gives the displayed version. This tangential gradient decomposition does not assert that the whole vector field is solenoidal.