Hessian

DOWNLOAD Mathematica Notebook

The Jacobian of the derivatives partialf/partialx_1, partialf/partialx_2, ..., partialf/partialx_n of a function f(x_1,x_2,...,x_n) with respect to x_1, x_2, ..., x_n is called the Hessian (or Hessian matrix) H of f, i.e.,

 Hf(x_1,x_2,...,x_n)=[(partial^2f)/(partialx_1^2) (partial^2f)/(partialx_1partialx_2) (partial^2f)/(partialx_1partialx_3) ... (partial^2f)/(partialx_1partialx_n); (partial^2f)/(partialx_2partialx_1) (partial^2f)/(partialx_2^2) (partial^2f)/(partialx_2partialx_3) ... (partial^2f)/(partialx_2partialx_n); | | | ... |; (partial^2f)/(partialx_npartialx_1) (partial^2f)/(partialx_npartialx_2) (partial^2f)/(partialx_npartialx_3) ... (partial^2f)/(partialx_n^2).]

As in the case of the Jacobian, the term "Hessian" unfortunately appears to be used both to refer to this matrix and to the determinant of this matrix (Gradshteyn and Ryzhik 2000, p. 1069).

In the second derivative test for determining extrema of a function f(x,y), the discriminant D is given by

 Hf(x,y)=|(partial^2f)/(partialx^2) (partial^2f)/(partialxpartialy); (partial^2f)/(partialypartialx) (partial^2f)/(partialy^2)|.

The Hessian can be implemented in the Wolfram Language as

  HessianH[f_, x_List?VectorQ] := D[f, {x, 2}]

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

Wolfram Problem Generator »

Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.

Wolfram Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.