# 多項式の因数分解（factor）

多項式を既約因子に因数分解します。

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

## 書き方

### factor(expr)

**expr**

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

## 例題

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

  `factor(x^2 - 1)`

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

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

  `factor(x^3 - 6x^2 + 11x - 6)`

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

  [ソルバーで開く](https://ja.hilberon.com/?q=factor%28x%5E3%20-%206x%5E2%20%2B%2011x%20-%206%29)

## 関連する関数

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

  仮定のもとで、simplify よりもしつこく簡単な形を探します。
- [expand](https://ja.hilberon.com/library/expand)

  積や累乗を展開して和の形にします。
- [function_expand](https://ja.hilberon.com/library/function_expand)

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

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

  多項式のリストのグレブナー基底。
- [denominator](https://ja.hilberon.com/library/denominator)

  分数の分母。

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