# total_diff 函数

表达式关于某个变量的全导数。

## 怎么写

### total_diff(f, x)

**f**

要处理的表达式或函数。接受一个表达式。

**x**

求导所关于的变量。接受一个变量。

## 示例

- $\displaystyle \frac{d}{dx}(x^{2}) = 2 x$

  `total_diff(x^2, x)`

  在求解器中，`total_diff(x^2, x)` 的结果是 `2x`。

  [在求解器中打开](https://zh.hilberon.com/?q=total_diff%28x%5E2%2C%20x%29)

## 相关函数

- [diff](https://zh.hilberon.com/library/diff)

  表达式关于一个或多个变量的导数。
- [certified_value](https://zh.hilberon.com/library/certified_value)

  定积分或闭式常数的区间包围，半径至多为 10^-digits。
- [residue](https://zh.hilberon.com/library/residue)

  表达式在某点的留数。
- [curl](https://zh.hilberon.com/library/curl)

  三个变量的向量场的旋度。
- [numeric_integrate](https://zh.hilberon.com/library/numeric_integrate)

  用数值方法近似计算定积分。
- [derivative](https://zh.hilberon.com/library/derivative)

  导数算子：derivative(n) 为 n 阶导数，derivative(0, 1) 为关于第二个自变量的偏导数。

---
Source: https://zh.hilberon.com/library/total_diff
