Enter Your Function
Enter a scalar function such as
x^2 + y^2,
x^2 + xy + y^2, or
x^2 + y^2 + z^2.
Quick examples
What Is a Hessian Matrix?
The Hessian matrix is a square matrix containing the second-order partial derivatives of a scalar function.
For three variables:
Hessian matrices are important in multivariable optimization, curvature analysis, critical-point classification and second-order approximations.
Hessian Matrix Formula
For a function of two variables \(f(x,y)\), the Hessian matrix contains all four second-order partial derivatives.
For three variables:
When the relevant second partial derivatives are continuous, the mixed partial derivatives agree: \(f_{xy}=f_{yx}\).
Hessian and Critical Points
The Hessian is especially useful after finding a critical point where the gradient is zero.
For a two-variable function, define
- \(D>0\) and \(f_{xx}>0\): local minimum.
- \(D>0\) and \(f_{xx}<0\): local maximum.
- \(D<0\): saddle point.
- \(D=0\): the second derivative test is inconclusive.
Why Is the Hessian Important?
Multivariable Optimization
Hessians describe local curvature and help distinguish minima, maxima and saddle points.
Numerical Optimization
Newton-type optimization algorithms use second-order derivative information to improve search directions.
Curvature
The Hessian describes how the gradient changes around a point.
Taylor Approximation
The Hessian appears in the quadratic term of the multivariable Taylor expansion.
Hessian and Taylor Approximation
Near a point \(a\), a twice-differentiable scalar function can be approximated by
The Hessian therefore supplies the second-order curvature information in the local quadratic model.
Hessian Calculator Examples
Example 1
\(f(x,y)=x^2+y^2\)
The Hessian is positive definite.
Example 2
\(f(x,y)=x^2-y^2\)
The Hessian is indefinite.
Example 3
\(f(x,y,z)=x^2+y^2+z^2\)
How to Use the Hessian Calculator
- Enter a scalar function.
- Select either two or three variables.
- Use \(x,y\) for two-variable functions.
- Use \(x,y,z\) for three-variable functions.
- Optionally enter an evaluation point.
- Click Calculate Hessian.
The symbolic Hessian is calculated first. If you provide a point, the function, gradient, Hessian and determinant are also evaluated numerically at that point.
Supported Mathematical Expressions
- Addition and subtraction
- Multiplication and division
- Powers such as \(x^2\)
- Implicit multiplication such as \(2x\)
- Parentheses
- \(x,y,z\)
- \(e,\pi\)
- \(\sin,\cos,\tan\)
- \(\sec,\csc,\cot\)
- \(\arcsin,\arccos,\arctan\)
- \(\ln,\log,\log_{10}\)
- \(\exp\)
- \(\sqrt{x}\)
Related Multivariable Calculus Calculators
Continue exploring multivariable calculus with these Summe.org tools:
Frequently Asked Questions
2,3
or 2,3,4 and the calculator evaluates
the function, gradient, Hessian and determinant at
that point.