Multivariable calculus·Advanced·Matrix of derivatives

Hessian Matrix

The Hessian matrix is the square matrix of all second-order partial derivatives of a scalar-valued function.

It records how the gradient changes as the input moves in each coordinate direction.

Multivariable CalculusSecond derivatives

What does hessian matrix mean?

For a twice-differentiable f(x₁,…,xₙ), the (i,j) entry is ∂²f/(∂xᵢ∂xⱼ). If the second partial derivatives are continuous near a point, mixed partials agree and the Hessian is symmetric there. At a stationary point, eigenvalues of the Hessian help classify local curvature, subject to the usual nondegeneracy conditions.

Notation

H_f or ∇²f

Hessian matrix of second partial derivatives

Hf=(∂2f∂xi∂xj)i,j=1nH_f=(\frac{\partial^2 f}{\partial x_i\partial x_j})_{i,j=1}^{n}

Hessian Matrix examples

Example 1

Find the Hessian of f(x,y)=x²+3xy+y².

Answer: [[2,3],[3,2]]

The second partials are f_xx=2, f_xy=3, f_yx=3, and f_yy=2.

Properties and types

  • The Hessian is symmetric when mixed second partials are continuous.
  • Its quadratic form describes second-order local change.
  • At a stationary point, positive definite Hessian implies a strict local minimum; negative definite implies a strict local maximum.

Where is hessian matrix used?

This concept appears in a range of mathematical and practical settings:

  • Classifying multivariable critical points
  • Newton optimization methods
  • Second-order approximation

Common misunderstandings

  • Leaving out mixed partial derivatives.
  • Assuming the Hessian test classifies points when it is singular or inconclusive.
  • Confusing the Hessian with the gradient.

Related tools and learning resources