# 式の展開（expand）

積や累乗を展開して和の形にします。

この関数を使うと、ソルバーは途中式が見つかったときに表示します。

## 書き方

### expand(expr)

**expr**

任意の式：数、数式、リスト、行列。式を受け取ります。

## 例題

- $\displaystyle (x+1)^{3} = x^{3}+3 x^{2}+3 x+1$

  `expand((x + 1)^3)`

  ソルバーでは、`expand((x + 1)^3)` の答えは `x^3 + 3x^2 + 3x + 1` です。

  [ソルバーで開く](https://ja.hilberon.com/?q=expand%28%28x%20%2B%201%29%5E3%29)
- $\displaystyle (x-1) (x+2) = x^{2}+x-2$

  `expand((x - 1)(x + 2))`

  ソルバーでは、`expand((x - 1)(x + 2))` の答えは `x^2 + x - 2` です。

  [ソルバーで開く](https://ja.hilberon.com/?q=expand%28%28x%20-%201%29%28x%20%2B%202%29%29)

## 関連する関数

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

  平行移動した引数の特殊関数を、より簡単な関数で書き直します。
- [complex_expand](https://ja.hilberon.com/library/complex_expand)

  変数を実数と仮定して式を展開します。
- [power_expand](https://ja.hilberon.com/library/power_expand)

  積と冪の冪と対数を展開する。
- [factor](https://ja.hilberon.com/library/factor)

  多項式を既約因子に因数分解します。
- [discriminant](https://ja.hilberon.com/library/discriminant)

  変数に関する多項式の判別式。
- [full_simplify](https://ja.hilberon.com/library/full_simplify)

  仮定のもとで、simplify よりもしつこく簡単な形を探します。

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