Student[VectorCalculus]
Hessian
compute the Hessian Matrix of a function from R^n to R
Calling Sequence
Parameters
Description
Examples
Compatibility
Hessian(f, v, det, opts)
Hessian(f, v=p, det, opts)
f
-
algebraic expression
v
list(name); specify the variables of differentiation
p
(optional) list(algebraic); point at which the Hessian is evaluated
det
(optional) equation of the form determinant=b, where b is either true or false; specify whether to return both the computed Hessian Matrix and its determinant
The Hessian(f, v) command computes the Hessian Matrix of the function f with respect to the variables in v. This is the Matrix with an (i,j)th entry of ∂2∂vi∂vjf.
If the point p is supplied, the computed Hessian will be evaluated at that point. The dimension of the point must equal the number of variables in v.
If the right side of det is true, an expression sequence containing the Hessian Matrix and its determinant, in that order, is returned. If the right side of det is false, the Hessian Matrix is returned. If this parameter is the word determinant, it is interpreted as determinant=true. If the det parameter is not specified, it defaults to determinant=false.
If any options are given in opts, they will be passed on to the construction of the returned Matrix. For details on available options, see Matrix.
with⁡StudentVectorCalculus:
Hessian⁡cos⁡x⁢y,x,y
−y2⁢cos⁡x⁢y−sin⁡x⁢y−y⁢x⁢cos⁡x⁢y−sin⁡x⁢y−y⁢x⁢cos⁡x⁢y−x2⁢cos⁡x⁢y
H≔Hessian⁡1x2+y2+z2,x,y,z
H≔8⁢x2x2+y2+z23−2x2+y2+z228⁢x⁢yx2+y2+z238⁢x⁢zx2+y2+z238⁢x⁢yx2+y2+z238⁢y2x2+y2+z23−2x2+y2+z228⁢y⁢zx2+y2+z238⁢x⁢zx2+y2+z238⁢y⁢zx2+y2+z238⁢z2x2+y2+z23−2x2+y2+z22
eval⁡H,x=0.3,y=0.7,z=0.1
−2.2397616128.1799989281.1685712758.17999892813.341188732.7266663101.1685712752.726666310−5.355951680
Hessian⁡x2+y2,x,y,shape=symmetric
2002
H,d≔Hessian⁡x2+y⁢exp⁡x,x,y=1,−1,determinant
H,d≔2−ⅇⅇⅇ0,−ⅇ2
The p parameter was introduced in Maple 16.
The determinant option was introduced in Maple 16.
For more information on Maple 16 changes, see Updates in Maple 16.
See Also
Student[VectorCalculus][diff]
Student[VectorCalculus][Jacobian]
Download Help Document