Student/VectorCalculus/Hessian - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Student/VectorCalculus/Hessian

Student[VectorCalculus]

  

Hessian

  

compute the Hessian Matrix of a function from R^n to R

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

Hessian(f, v, det, opts)

Hessian(f, v=p, det, opts)

Parameters

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

Description

• 

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 2vivjf.

• 

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.

Examples

withStudentVectorCalculus:

Hessiancosxy,x,y

y2cosxysinxyyxcosxysinxyyxcosxyx2cosxy

(1)

HHessian1x2+y2+z2,x,y,z

H8x2x2+y2+z232x2+y2+z228xyx2+y2+z238xzx2+y2+z238xyx2+y2+z238y2x2+y2+z232x2+y2+z228yzx2+y2+z238xzx2+y2+z238yzx2+y2+z238z2x2+y2+z232x2+y2+z22

(2)

evalH,x=0.3,y=0.7,z=0.1

−2.2397616128.1799989281.1685712758.17999892813.341188732.7266663101.1685712752.726666310−5.355951680

(3)

Hessianx2+y2,x,y,shape=symmetric

2002

(4)

H,dHessianx2+yexpx,x,y=1,1,determinant

H,d2ⅇⅇⅇ0,ⅇ2

(5)

Compatibility

• 

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]

Student[VectorCalculus][diff]

Student[VectorCalculus][Jacobian]