Step-by-step math solver
Factoring quadratics
Factor quadratics such as x² + 5x + 6 and 2x² − x − 3 by finding two numbers that multiply to the constant term and add to the middle coefficient, and use the difference of squares and perfect square patterns.
Free, no sign-in. The solver runs in your browser and does not send your problem to the server.
Method
- If every term shares a common factor, factor it out first (GCF).
- x² + bx + c: find two numbers m and n with m·n = c and m + n = b; then x² + bx + c = (x + m)(x + n).
- ax² + bx + c with a ≠ 1 (the ac method): find two numbers that multiply to ac and add to b, split the middle term into two terms, then factor by grouping.
- Difference of squares: A² − B² = (A − B)(A + B). Perfect squares: A² + 2AB + B² = (A + B)² and A² − 2AB + B² = (A − B)².
Worked examples
x² + 5x + 6
Split the middle term: find two numbers with sum 5 and product 6; they are 2 and 3
x² + 5x + 6 = x² + 2x + 3x + 6
= x(x + 2) + 3(x + 2)
= (x + 2)(x + 3)
Result
x² + 5x + 6 = (x + 2)(x + 3)
Check: multiplying the factors back gives the original polynomial.
Result
x² + 5x + 6 = (x + 2)(x + 3)
Open in the solver
2x² − x − 3
Split the middle term: find two numbers with sum −1 and product −6; they are 2 and −3
2x² − x − 3 = 2x² + 2x − 3x − 3
= 2x(x + 1) − 3(x + 1)
= (x + 1)(2x − 3)
Result
2x² − x − 3 = (x + 1)(2x − 3)
Check: multiplying the factors back gives the original polynomial.
Result
2x² − x − 3 = (x + 1)(2x − 3)
Open in the solver
x² − 49
Recognise a difference of two squares: A² − B² = (A − B)(A + B)
x² − 49 = (x − 7)(x + 7)
Result
x² − 49 = (x − 7)(x + 7)
Check: multiplying the factors back gives the original polynomial.
Result
x² − 49 = (x − 7)(x + 7)
Open in the solver
4x² − 12x + 9
Recognise the square of a difference: A² − 2AB + B² = (A − B)²
4x² − 12x + 9 = (2x − 3)²
Result
4x² − 12x + 9 = (2x − 3)²
Check: multiplying the factors back gives the original polynomial.
Result
4x² − 12x + 9 = (2x − 3)²
Open in the solver
Practice problems
Work it out on paper first, then tap to see the step-by-step solution.
Not supported yet
- Only polynomials in one variable are factored for now; expressions such as x² − y² or x² + 2xy + y² are not supported yet.
For these, open Chat with the Tutor skill from the solver (sign-in required, uses credit like a normal chat).