Hessian matrix of a scalar function
MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.
MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.
hessian(f, x) computes the Hesse matrix (the
Hessian) of the scalar function in
Cartesian coordinates, i.e., the square matrix of second partial derivatives
The Hessian of the function f(x, y, z) = x y + 2 x z is the following matrix:
delete x, y, z: hessian(x*y + 2*z*x, [x, y, z])
An arithmetical expression (the scalar function)
A list of (indexed) identifiers
Matrix of the domain
For a function , X a subset of , the p×p matrix
is called the Hesse matrix of f.