# 勾配（grad）

式の勾配。その偏導関数のリスト。

## 書き方

### grad(f, variables)

**f**

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

**variables**

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

## 例題

- $\displaystyle \nabla_{x, y} (x^{2}+y^{2}) = \left[ 2 x, 2 y \right]$

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

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

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

## 関連する関数

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

  式のヘッセ行列。その2階偏導関数。
- [div](https://ja.hilberon.com/library/div)

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

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

  1つ以上の変数に関する式の導関数。
- [jacobian](https://ja.hilberon.com/library/jacobian)

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

  導関数の演算子: derivative(n)はn階、derivative(0, 1)は第2引数に関する偏導関数。

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