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
factor(x^2 - 1)In the solver,
Open in the solverfactor(x^2 - 1)gives(x - 1)(x + 1).factor(x^3 - 6x^2 + 11x - 6)In the solver,
Open in the solverfactor(x^3 - 6x^2 + 11x - 6)gives(x - 1)(x - 2)(x - 3).
Related functions
- 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.