Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

Factor a polynomial (factor)

Factor a polynomial into irreducible factors.

With this function, the solver shows the steps whenever it finds them.

How to write it

factor(expr)

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

Examples

  • x2−1=(x−1)(x+1)\displaystyle x^{2}-1 = (x-1) (x+1)
    factor(x^2 - 1)

    In the solver, factor(x^2 - 1) gives (x - 1)(x + 1).

    Open in the solver
  • x3−6x2+11x−6=(x−1)(x−2)(x−3)\displaystyle x^{3}-6 x^{2}+11 x-6 = (x-1) (x-2) (x-3)
    factor(x^3 - 6x^2 + 11x - 6)

    In the solver, factor(x^3 - 6x^2 + 11x - 6) gives (x - 1)(x - 2)(x - 3).

    Open in the solver
  • full_simplify

    Search harder than simplify for a simpler form, under assumptions.

  • expand

    Multiply out products and powers into a sum.

  • function_expand

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

  • discriminant

    Discriminant of a polynomial in a variable.

  • groebner_basis

    Groebner basis of a list of polynomials.

  • denominator

    Denominator of a fraction.