# ヘッセ行列（hessian）

式のヘッセ行列。その2階偏導関数。

## 書き方

### hessian(f, variables)

**f**

対象となる式または関数。式を受け取ります。

**variables**

変数。角括弧で囲みます。変数のリストを受け取ります。

## 例題

- $\displaystyle H_{x, y} (x^{2}+y^{2}) = \begin{pmatrix} 2 & 0 \\ 0 & 2 \end{pmatrix}$

  `hessian(x^2 + y^2, [x, y])`

  ソルバーでは、`hessian(x^2 + y^2, [x, y])` の答えは `[[2, 0], [0, 2]]` です。

  [ソルバーで開く](https://ja.hilberon.com/?q=hessian%28x%5E2%20%2B%20y%5E2%2C%20%5Bx%2C%20y%5D%29)

## 関連する関数

- [integrate](https://ja.hilberon.com/library/integrate)

  式の原始関数、または区間における定積分。
- [grad](https://ja.hilberon.com/library/grad)

  式の勾配。その偏導関数のリスト。
- [jacobian](https://ja.hilberon.com/library/jacobian)

  式のリストのヤコビ行列。それらの偏導関数。
- [div](https://ja.hilberon.com/library/div)

  ベクトル場の発散。
- [laplacian](https://ja.hilberon.com/library/laplacian)

  式のラプラシアン。その2階偏導関数の和。
- [diff](https://ja.hilberon.com/library/diff)

  1つ以上の変数に関する式の導関数。

---
Source: https://ja.hilberon.com/library/hessian
