Hessian matrix (hessian)
Hessian matrix of an expression: its second partial derivatives.
How to write it
hessian(f, variables)
- f
- The expression or function to work on. Takes an expression.
- variables
- The variables, in brackets. Takes a list of variables.
Examples
hessian(x^2 + y^2, [x, y])In the solver,
Open in the solverhessian(x^2 + y^2, [x, y])gives[[2, 0], [0, 2]].
Related functions
- integrate
Antiderivative of an expression, or its definite integral over a range.
- grad
Gradient of an expression: the list of its partial derivatives.
- jacobian
Jacobian matrix of a list of expressions: their partial derivatives.
- div
Divergence of a vector field.
- laplacian
Laplacian of an expression: the sum of its second partial derivatives.
- diff
Derivative of an expression with respect to one or more variables.