A Hessian matrix of a function f:U→Rf:U\to \mathbb{R} (with U⊆RnU\subseteq \mathbb{R}^n) at a point a∈Ua\in U is the n×nn\times n matrix

Hf(a)=(∂2f∂xi ∂xj(a))1≤i,j≤n,Hf(a)=\left(\frac{\partial^2 f}{\partial x_i\,\partial x_j}(a)\right)_{1\le i,j\le n},

provided these second-order partial derivatives exist.

Examples
  • For f(x,y)=x2+xy+y2f(x,y)=x^2+xy+y^2, one has
    Hf(x,y)=(2112).Hf(x,y)=\begin{pmatrix}2&1\\[2pt]1&2\end{pmatrix}.
  • For f(x,y,z)=x2+y2+z2f(x,y,z)=x^2+y^2+z^2, one has Hf(x,y,z)=2I3Hf(x,y,z)=2I_3.
Remarks

The off-diagonal entries are . Under the hypotheses of the , the Hessian is symmetric. The Hessian is used in for classifying .