Factor Polynomial
Factor polynomials into products.
About this tool
Type a polynomial in x and get it as a product of factors. 2x² − 5x + 3 factors to (x − 1)*(2*x − 3).
How to use
How it works
The tool uses the rational root theorem: any rational root p/q has p dividing the constant term and q dividing the leading coefficient. Each root it finds becomes a bracket. For 2x² − 5x + 3 the candidates include 1 and 3/2, and both are roots, so the factors are (x − 1) and (2x − 3). Whatever has no rational root is left as a bracket, such as (x² + x + 1).
x² + (a+b)x + ab = (x + a)(x + b) x² − a² = (x − a)(x + a)
Worked example
A quadratic with a leading coefficient
- Input
- 2x^2 - 5x + 3
- Output
- (x - 1)*(2*x - 3)
- Walkthrough
- x = 1 gives 2 − 5 + 3 = 0, so (x − 1) is a factor. Dividing leaves 2x − 3. Check: (x − 1)(2x − 3) = 2x² − 3x − 2x + 3 = 2x² − 5x + 3.
Limitations
- Polynomials in x only, with at least one power of x. A constant such as 5, or a two-variable expression such as x*y + x, returns the message "Enter a polynomial in x".
- Factors over the rationals. A quadratic with irrational roots stays as one bracket: x² − 2 is returned as (x^2 - 2), and x² + x + 1 as (x^2 + x + 1).
- A common number is pulled out in front: 2x² − 8 gives 2*(x - 2)*(x + 2).
Questions
How do I factor x^2 - 5x + 6?
How do I factor 2x^2 - 5x + 3?
How do I factor x^3 - 1?
How do I factor x^2 - 4?
How do I factor 2x^2 - 8?
How do I factor x^2 + 2x + 1?
Features
- Quadratics, cubics and higher
- Difference of squares and cubes
- Runs in your browser
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
Solving an equation with variables on both sides
Khan Academy
Classic linear solve pattern for algebra calculators.
Watch on YouTubeVectors | Essence of linear algebra
3Blue1Brown
Visual vectors when algebra tools move toward matrices.
Watch on YouTube
- Math is Fun
Math is Fun
Clear explainers that pair well with calculator-style tools.
- Elementary Algebra 2e
OpenStax
Free algebra textbook for equations and polynomials.