Factor a Polynomial Calculator
Factor any polynomial into its simplest irreducible components with step-by-step mathematical explanations. Solves quadratics, cubics, differences of squares, cubes, and four-term grouping with real root extraction.
Step-by-Step Factorization Solution
How Do You Factor a Polynomial?
To factor a polynomial, first extract any Greatest Common Factor (GCF) shared across all terms. Next, identify the polynomial's structure by term count: for two terms, check for difference of squares (a^2 - b^2 = (a-b)(a+b)) or sum/difference of cubes (a^3 pm b^3 = (a pm b)(a^2 mp ab + b^2)); for three terms (ax^2 + bx + c), apply product-sum factoring or the AC method by finding two numbers whose product is a*c and sum is b; for four terms, group in pairs to factor out common binomials. Setting each resulting linear factor equal to zero reveals the roots of the polynomial.
What Is Polynomial Factorization
Polynomial factorization is the algebraic decomposition of a polynomial expression into a product of simpler polynomials, known as factors. Just as prime integer factorization decomposes the composite number 60 into $2^2 \times 3 \times 5$, polynomial factorization breaks down expressions like $x^2 - 9$ into $(x - 3)(x + 3)$. When multiplied together via the distributive law, these factors reconstruct the original polynomial exactly.
Factorization represents the foundational bridge between algebraic arithmetic and analytical problem solving. Transforming an additive polynomial into a multiplicative product enables mathematicians and engineers to find roots instantly using the Zero Product Property: if $A \times B = 0$, then either $A = 0$ or $B = 0$. Factorization is indispensable for simplifying rational functions, computing calculus limits, decomposing transfer functions in control systems, and finding resonance frequencies in physics.
Before factoring, knowing the exact structure of your terms is essential; you can verify whether your expression is a trinomial or binomial using the Expression Type Identifier. Once factored, you can easily reverse the process using the Factored Form to Standard Form Converter.
The Fundamental Theorem of Algebra & Factor Theorem
Two profound mathematical theorems govern the factorization of polynomials:
The Fundamental Theorem of Algebra (Gauss, 1799)
Every non-zero single-variable polynomial of degree $n$ with complex coefficients has exactly $n$ complex roots (counting multiplicity). As a direct corollary, known as the Complete Linear Factorization Theorem, any degree-$n$ polynomial can be factored completely into $n$ linear factors:
Over the real numbers ℝ, complex roots occur in conjugate pairs (a ± bi), meaning every real polynomial factors into a product of linear real factors and irreducible quadratic factors with negative discriminants (b^2 - 4ac < 0).
The Polynomial Factor Theorem
A polynomial $P(x)$ has a linear factor $(x - c)$ if and only if $P(c) = 0$. This theorem links root-finding directly to factorization. If substituting $x = 3$ yields zero, $(x - 3)$ is guaranteed to be an exact divisor of $P(x)$ with zero remainder.
Systematic Polynomial Factoring Hierarchy
Attempting to factor a polynomial without a systematic strategy frequently leads to circular calculations. Professional mathematicians follow a strict five-step hierarchy:
Step 1: Extract the Greatest Common Factor (GCF)
Always inspect all terms for common numerical factors and variable powers. For example, in $6x^3 - 18x^2 + 12x$, the GCF is $6x$. Factoring out the GCF yields $6x(x^2 - 3x + 2)$, which dramatically simplifies subsequent factoring.
Step 2: Count the Number of Terms
The number of remaining terms indicates which specific technique to apply:
- 2 Terms (Binomial): Check for Difference of Squares, Sum of Cubes, or Difference of Cubes.
- 3 Terms (Trinomial): Check for Perfect Square Trinomials, then apply Product-Sum or the AC Method.
- 4 Terms (Multinomial): Attempt Factoring by Grouping in pairs or $3+1$ patterns.
- Degree ≥ 3 without Grouping: Apply the Rational Root Theorem with synthetic division.
Step 3: Verify Irreducibility
Inspect each resulting factor to ensure it cannot be factored further. For example, $(x^4 - 16)$ factors into $(x^2 + 4)(x^2 - 4)$, but $(x^2 - 4)$ can still be factored into $(x - 2)(x + 2)$.
Special Factoring Formulas and Product Patterns
Recognizing algebraic identities allows instantaneous factorization without trial and error:
| Pattern Name | Standard Polynomial Form | Factored Identity Form | Concrete Example |
|---|---|---|---|
| Difference of Two Squares | a^2 - b^2 | (a - b)(a + b) | 4x^2 - 25 = (2x - 5)(2x + 5) |
| Perfect Square Trinomial (+) | a^2 + 2ab + b^2 | (a + b)^2 | x^2 + 6x + 9 = (x + 3)^2 |
| Perfect Square Trinomial (-) | a^2 - 2ab + b^2 | (a - b)^2 | 9x^2 - 12x + 4 = (3x - 2)^2 |
| Sum of Two Cubes | a^3 + b^3 | (a + b)(a^2 - ab + b^2) | x^3 + 8 = (x + 2)(x^2 - 2x + 4) |
| Difference of Two Cubes | a^3 - b^3 | (a - b)(a^2 + ab + b^2) | x^3 - 27 = (x - 3)(x^2 + 3x + 9) |
The AC Method for Quadratic Trinomials ($a \neq 1$)
When factoring a quadratic trinomial $ax^2 + bx + c$ where the leading coefficient $a \neq 1$ and no GCF exists, trial-and-error guess factoring becomes tedious. The AC Method (or grouping method) eliminates guesswork through a guaranteed four-step algorithm:
Step 1: Compute the AC Product
Multiply the leading coefficient $a$ by the constant term $c$. For the polynomial $6x^2 + 11x - 10$, we calculate $a \times c = 6 \times (-10) = -60$.
Step 2: Find Factor Pairs That Sum to $b$
Identify two integers $p$ and $q$ such that $p \times q = -60$ and $p + q = 11$. Testing factor pairs of $-60$ reveals $15$ and $-4$, since $15 \times (-4) = -60$ and $15 + (-4) = 11$.
Step 3: Split the Linear Middle Term
Rewrite the middle term $11x$ as the sum of $15x$ and $-4x$:
Step 4: Factor by Grouping
Group into two pairs and extract the common monomial from each:
Factoring Four-Term Polynomials by Grouping
Four-term polynomials frequently possess an underlying symmetry that allows factoring by grouping pairs of terms. Consider the cubic polynomial:
Group the first two terms together and the last two terms together:
Extract the greatest common factor from each pair: $x^2$ from the first pair and $4$ from the second pair:
Because both terms share the common binomial factor $(x - 3)$, factor it out:
Finally, recognize that $(x^2 - 4)$ is a difference of two squares, yielding the complete factorization:
Higher-Degree Factoring: Rational Root Theorem & Synthetic Division
When a polynomial has degree 3 or higher and grouping fails, mathematicians employ the Rational Root Theorem combined with synthetic division:
For any polynomial P(x) = a_n x^n + … + a_0 with integer coefficients, any rational zero must have the form ± p/q, where p is a factor of the constant term a_0 and q is a factor of the leading coefficient a_n.
Once a rational zero $r$ is discovered (such that $P(r) = 0$), perform synthetic division by $(x - r)$ to deflate the polynomial into a quotient of degree $n - 1$. Repeat this procedure until the quotient reduces to a quadratic polynomial, which can be factored directly using the AC method or the Quadratic Formula Calculator.
Irreducible Polynomials Over Rational and Real Fields
A polynomial is termed irreducible (or prime) over a given number field if it cannot be expressed as the product of two non-constant polynomials whose coefficients belong to that field. Reducibility is strictly field-dependent:
- Over the Rationals ℚ: The polynomial x^2 - 2 is irreducible because √2 ∉ ℚ.
- Over the Reals ℝ: The polynomial x^2 - 2 factors into (x - √2)(x + √2), but x^2 + 9 remains strictly irreducible.
- Over the Complex Numbers ℂ: The polynomial x^2 + 9 factors into (x - 3i)(x + 3i). No polynomial of degree ≥ 2 is irreducible over ℂ.
Comprehensive Worked Factoring Examples
Example 1: Factoring with GCF: 3x^3 - 12x
Step 1: Factor out the common monomial $3x$: $3x(x^2 - 4)$.
Step 2: Factor the difference of squares: $3x(x - 2)(x + 2)$.
Roots: x = 0, 2, -2
Example 2: Difference of Cubes: 8x^3 - 27
Step 1: Recognize terms as cubes: $(2x)^3 - 3^3$.
Step 2: Apply formula $(a - b)(a^2 + ab + b^2)$: $(2x - 3)(4x^2 + 6x + 9)$.
Quadratic factor discriminant Δ = 36 - 4(4)(9) = -108 < 0, confirming irreducibility over ℝ.
Lead Developer & Founder of Basic Math Tools. Specializes in browser-native computational algorithms and applied mathematics.
Mathematics & curriculum specialists. Audited against standard algebraic and arithmetic principles.