Quadratic Factoring Calculator: Steps & Examples
The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.
A quadratic polynomial factoring calculator takes a quadratic expression in the form ax² + bx + c and rewrites it as a product of two binomials, such as (x + p)(x + q). You enter the coefficients a, b, and c, and the calculator returns the factored form, along with the roots of the equation ax² + bx + c = 0. This page explains the formula, shows a worked example, and covers common pitfalls.
Formula
For a quadratic polynomial ax² + bx + c (with a ≠ 0), the factored form is:
a(x − r₁)(x − r₂)
where r₁ and r₂ are the roots given by the quadratic formula:
r = (−b ± √(b² − 4ac)) / (2a)
Variables:
- a – coefficient of x² (unitless, any real number except 0)
- b – coefficient of x (unitless)
- c – constant term (unitless)
- r₁, r₂ – roots (values of x that make the polynomial equal to zero)
The expression b² − 4ac is called the discriminant. It determines the nature of the roots:
- If b² − 4ac > 0: two distinct real roots
- If b² − 4ac = 0: one real root (a repeated root)
- If b² − 4ac < 0: two complex roots (no real factorization over the reals)
Worked Example
Using the default values a = 1, b = 5, c = 6:
- Compute the discriminant: b² − 4ac = 5² − 4·1·6 = 25 − 24 = 1
- Find the first root: r₁ = (−5 + √1) / (2·1) = (−5 + 1) / 2 = −4/2 = −2
- Find the second root: r₂ = (−5 − √1) / (2·1) = (−5 − 1) / 2 = −6/2 = −3
- Write the factored form: 1(x − (−2))(x − (−3)) = (x + 2)(x + 3)
So x² + 5x + 6 factors to (x + 2)(x + 3). The roots are x = −2 and x = −3.
How the Calculator Works
This calculator applies the quadratic formula to find the roots, then constructs the factored form. It handles three cases:
- Real distinct roots: The discriminant is positive, and the factored form uses the two real roots.
- Repeated root: The discriminant is zero, and the factored form is a perfect square, e.g., (x + 2)².
- Complex roots: The discriminant is negative. The calculator still returns the roots as complex numbers (using imaginary unit i), but the factored form over the reals does not exist. Many calculators will show the complex factorization, e.g., (x − (1 + i))(x − (1 − i)).
Note that the calculator’s output for the factored form uses the formula a(x − r₁)(x − r₂). If a ≠ 1, the leading coefficient is included. For example, 2x² + 8x + 6 factors to 2(x + 1)(x + 3).
When to Use Factoring
Factoring a quadratic is useful in several contexts:
- Solving quadratic equations: Setting the factored form to zero and using the zero-product property gives the solutions.
- Graphing parabolas: The x-intercepts (roots) are directly visible in the factored form.
- Simplifying rational expressions: Factoring the numerator and denominator helps cancel common factors.
- Partial fraction decomposition: In calculus, factoring is a prerequisite for breaking complex fractions into simpler ones.
Factoring is fastest when the roots are integers or simple fractions. For other cases, the quadratic formula is more reliable.
Common Mistakes and How to Avoid Them
- Forgetting the leading coefficient a: The factored form is a(x − r₁)(x − r₂), not just (x − r₁)(x − r₂) when a ≠ 1. For example, 2x² + 8x + 6 = 2(x + 1)(x + 3), not (x + 1)(x + 3).
- Sign errors in the roots: The quadratic formula gives roots with the opposite sign of the constant in the binomial. For x² − 5x + 6, the roots are 2 and 3, so the factors are (x − 2)(x − 3). A common mistake is writing (x + 2)(x + 3).
- Misinterpreting the discriminant: A negative discriminant means no real roots, so the polynomial does not factor over the reals. Some students try to force a factorization with real numbers, which is impossible.
- Unit mix-ups: In word problems, the coefficients may carry units (e.g., meters, seconds). The roots will then have units of the variable. For example, if x is in seconds, the roots are in seconds. The calculator treats coefficients as unitless, so you must interpret the units yourself.
- Rounding errors: When roots are irrational, rounding too early can make the factored form inaccurate. Keep several decimal places or use exact radical form when possible.
Limitations of Factoring
Factoring is not always the best method:
- Complex roots: If the discriminant is negative, the polynomial has no real factors. Over the complex numbers, it factors, but that is beyond basic algebra.
- Irrational roots: If the roots are irrational (e.g., √2), the factored form uses radicals. It is valid but may be less useful for further algebraic manipulation.
- High-degree polynomials: This calculator only handles quadratics (degree 2). Cubic and higher-degree polynomials require different methods, such as synthetic division or the rational root theorem.
- Non-monic polynomials: When a ≠ 1, factoring by grouping or the AC method is sometimes easier than the quadratic formula, but the calculator handles it automatically.
For classroom practice, it is often better to factor by inspection when the roots are integers. The calculator is useful for checking your work or for problems with messy coefficients.
Frequently Asked Questions
What is the difference between factoring and solving a quadratic?
Factoring rewrites the expression as a product of binomials. Solving means finding the values of x that make the equation true (usually ax² + bx + c = 0). Factoring is one method to solve, but you can also use the quadratic formula or completing the square.
Can every quadratic be factored?
Every quadratic can be factored over the complex numbers, but not every quadratic factors over the real numbers. If the discriminant is negative, the polynomial has no real roots and cannot be factored into real linear factors.
What if the coefficient a is negative?
If a is negative, you can factor out −1 first, or just use the quadratic formula directly. For example, −x² + 5x − 6 = −(x² − 5x + 6) = −(x − 2)(x − 3). The roots are still 2 and 3.
How do I factor a quadratic with a leading coefficient greater than 1?
You can use the AC method: multiply a and c, find two numbers that multiply to ac and add to b, then split the middle term and factor by grouping. Alternatively, use the quadratic formula to find the roots and write a(x − r₁)(x − r₂).
What does it mean if the discriminant is zero?
It means the quadratic has exactly one real root (a repeated root). The factored form is a perfect square, such as (x + 2)². The graph of the parabola touches the x-axis at a single point.
Can I use this calculator for equations like 2x² + 4x = 0?
Yes. First rewrite it in standard form: 2x² + 4x + 0 = 0, so a = 2, b = 4, c = 0. The calculator will give the factored form 2x(x + 2) and the roots 0 and −2.
Related
Formula used
in a | a (coefficient of x²) | - | 1 | 0
in b | b (coefficient of x) | - | 5 | 0
in c | c (constant term) | - | 6 | 0
out factored | Factored form | - | "(" + a + "x + " + (b + sqrt(b^2 - 4*a*c))/2 + ")(" + a + "x + " + (b - sqrt(b^2 - 4*a*c))/2 + ")" | 0
out root1 | First root | - | (-b + sqrt(b^2 - 4*a*c)) / (2*a) | 4
out root2 | Second root | - | (-b - sqrt(b^2 - 4*a*c)) / (2*a) | 4Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.