# Residue of a function (residue)

Residue of an expression at a point.

## How to write it

### residue(f, x = a)

**f**

The expression or function to work on. Takes an expression.

**x = a**

The variable and the point. Takes a variable set to a value.

## Examples

- $\displaystyle \operatorname*{Res}_{x = 0} \frac{1}{x (x-1)} = -1$

  `residue(1/(x (x - 1)), x = 0)`

  In the solver, `residue(1/(x (x - 1)), x = 0)` gives `-1`.

  [Open in the solver](https://hilberon.com/?q=residue%281%2F%28x%20%28x%20-%201%29%29%2C%20x%20%3D%200%29)

## Related functions

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

  Total derivative of an expression with respect to a variable.
- [numeric_integrate](https://hilberon.com/library/numeric_integrate)

  Approximate a definite integral numerically.
- [certified_value](https://hilberon.com/library/certified_value)

  An enclosure of a definite integral or a closed constant, with radius at most 10^-digits.
- [limit](https://hilberon.com/library/limit)

  Limit of an expression as a variable approaches a point.
- [curl](https://hilberon.com/library/curl)

  Curl of a vector field in three variables.
- [laplacian](https://hilberon.com/library/laplacian)

  Laplacian of an expression: the sum of its second partial derivatives.

---
Source: https://hilberon.com/library/residue
