# function_expand function

Rewrite special functions of shifted arguments in terms of simpler ones.

## How to write it

### function_expand(expr)

**expr**

Any expression: a number, a formula, a list or a matrix. Takes an expression.

## Examples

- $\displaystyle \Gamma(x+1) = x \Gamma(x)$

  `function_expand(gamma(x + 1))`

  In the solver, `function_expand(gamma(x + 1))` gives `x*gamma(x)`.

  [Open in the solver](https://hilberon.com/?q=function_expand%28gamma%28x%20%2B%201%29%29)

## Functions its examples use

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

  Gamma function: gamma(n) is (n - 1)! for a whole number n.

## Related functions

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

  Multiply out products and powers into a sum.
- [complex_expand](https://hilberon.com/library/complex_expand)

  Expand an expression assuming its variables are real.
- [power_expand](https://hilberon.com/library/power_expand)

  Expand powers and logarithms of products and powers.
- [groebner_basis](https://hilberon.com/library/groebner_basis)

  Groebner basis of a list of polynomials.
- [full_simplify](https://hilberon.com/library/full_simplify)

  Search harder than simplify for a simpler form, under assumptions.
- [minimal_polynomial](https://hilberon.com/library/minimal_polynomial)

  Minimal polynomial of an algebraic number over the rationals.

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