Factoring Polynomials Calculator
Factor polynomials of any degree into linear and irreducible quadratic factors. Automatically extracts monomial greatest common factors, evaluates special products, and performs synthetic division via the Rational Root Theorem.
Polynomial Input Expression
Supports degrees 1 through 6 with standard exponents (x^3, x^2, x)
Polynomial Structural Properties
How Do You Factor a Polynomial Completely?
To factor a polynomial completely, first factor out the greatest common factor (GCF). Then inspect the number of terms: use special product identities for binomials (difference of squares or cubes), AC method or quadratic formula for trinomials, grouping for four-term expressions, and the Rational Root Theorem with synthetic division for higher-degree polynomials.
Fundamental Theorem of Algebra and Factorization Hierarchy
The factorization of polynomials represents one of the foundational pillars of classical algebra. Proven by Carl Friedrich Gauss, the Fundamental Theorem of Algebra asserts that every non-zero single-variable polynomial of degree $n$ with complex coefficients possesses exactly $n$ complex roots (counting algebraic multiplicities):
Where $r_1, r_2, \dots, r_n \in \mathbb{C}$ are the complex roots of the polynomial equation $P(x) = 0$.
When restricted to real coefficients ($a_i \in \mathbb{R}$), any non-real complex roots must occur in conjugate pairs ($a \pm bi$). As a consequence, every real polynomial can be factored completely into a unique product of real linear factors $(x - r)$ and irreducible real quadratic factors $(x^2 + px + q)$ where the discriminant $\Delta = p^2 - 4q < 0$. For four-term structures, see our dedicated Factoring by Grouping Calculator.
Master Factoring Hierarchy and Strategy Decision Tree
When presented with an arbitrary polynomial expression, mathematicians employ a structured decision tree to select the most efficient factorization pathway:
Tier 1: Global Greatest Common Factor (GCF)
Always isolate the greatest common monomial factor across all terms first. For example, in $4x^4 - 16x^2$, factoring out $4x^2$ immediately produces $4x^2(x^2 - 4)$, lowering the active working degree from four to two.
Tier 2: Binomials (Two Terms)
For two-term expressions, test against algebraic identities: Difference of Squares ($a^2 - b^2$), Sum of Cubes ($a^3 + b^3$), or Difference of Cubes ($a^3 - b^3$). Remember that the sum of two squares ($a^2 + b^2$) is irreducible over real numbers.
Tier 3: Trinomials (Three Terms)
For quadratics $ax^2 + bx + c$, if $a=1$, find factor pairs of $c$ that sum to $b$. If $a \neq 1$, employ the AC grouping method or compute the discriminant $\Delta = b^2 - 4ac$. For dedicated trinomial analysis, visit the Factoring Quadratic Calculator.
Tier 4: Four Terms (Grouping)
Partition the expression into pairs $(T_1 + T_2) + (T_3 + T_4)$ or evaluate a 3-to-1 perfect square trinomial difference.
Tier 5: Higher Degree Polynomials (Degree ≥ 3)
When algebraic grouping fails, apply the Rational Root Theorem to generate candidate roots, and apply synthetic division to deflate the polynomial iteratively.
Special Product Identities and Power Factorizations
Standard algebraic formulas enable instantaneous factorization of expressions exhibiting specific symmetry:
| Identity Name | Expanded Algebraic Form | Completely Factored Form |
|---|---|---|
| Difference of Squares | $a^2 - b^2$ | $(a - b)(a + b)$ |
| Difference of Cubes | $a^3 - b^3$ | $(a - b)(a^2 + ab + b^2)$ |
| Sum of Cubes | $a^3 + b^3$ | $(a + b)(a^2 - ab + b^2)$ |
| Perfect Square Trinomial (+) | $a^2 + 2ab + b^2$ | $(a + b)^2$ |
| Perfect Square Trinomial (-) | $a^2 - 2ab + b^2$ | $(a - b)^2$ |
The quadratic trinomial in the sum and difference of cubes formulas, $(a^2 \mp ab + b^2)$, has a negative discriminant ($\Delta = (-b)^2 - 4(1)(b^2) = -3b^2 < 0$) and is therefore always irreducible over the real numbers. For further exploration of difference of squares patterns, see Difference of Squares Factorization.
The Rational Root Theorem and Synthetic Division Protocol
When high-degree polynomials (degree 3, 4, or higher) lack symmetry for grouping or special identities, the Rational Root Theorem provides a systematic method for finding roots.
The Factor Theorem states that $r$ is a root of $P(x)$ if and only if $(x - r)$ is a factor of $P(x)$. Once a candidate root $r$ is verified ($P(r) = 0$), we divide $P(x)$ by $(x - r)$ using synthetic division to obtain a depressed quotient polynomial $Q(x)$ of degree $n-1$:
This division process is repeated iteratively until the depressed polynomial is quadratic ($n = 2$), at which point standard quadratic methods solve the remaining factors. Perform polynomial divisions interactively with our Synthetic Division Calculator.
Comprehensive Worked Examples Across Degrees 2 Through 4
Here are detailed step-by-step solutions demonstrating different factoring methods:
Case 1: Quartic with Repeated Difference of Squares
Problem: Factor $P(x) = x^4 - 81$ completely over the real numbers.
Case 2: Cubic via Rational Root Theorem and Synthetic Division
Problem: Factor $P(x) = x^3 - 4x^2 - 7x + 10$ completely.
Case 3: Degree 4 Polynomial in Quadratic Form
Problem: Factor $x^4 - 5x^2 + 4$.
Root Multiplicity and Graphical Implications
When a factor repeats in the complete factorization, $P(x) = (x - r)^m \cdot Q(x)$, the exponent $m$ is termed the algebraic multiplicity of root $r$. The multiplicity dictates the geometric behavior of the polynomial's graph at the x-intercept:
Odd Multiplicity ($m = 1, 3, 5, \dots$)
The graph crosses directly through the x-axis. When $m = 1$, it cuts through linearly with a non-zero slope. When $m \ge 3$, it forms an inflection point, flattening as it crosses the axis.
Even Multiplicity ($m = 2, 4, 6, \dots$)
The graph touches the x-axis and turns around without crossing. The root represents a local extremum (tangency point), because $(x - r)^m \ge 0$ maintains the same sign on both sides of $r$.
Irreducibility Criteria over Rational and Real Fields
In advanced algebra, determining whether a polynomial can be factored without calculating its roots is facilitated by formal irreducibility tests:
- Eisenstein's Irreducibility Criterion: For $P(x) = a_n x^n + \dots + a_0$, if a prime $p$ divides $a_0, a_1, \dots, a_{n-1}$, does not divide $a_n$, and $p^2$ does not divide $a_0$, then $P(x)$ is irreducible over the rational numbers $\mathbb{Q}$.
- Quadratic Discriminant Test: A quadratic $ax^2 + bx + c$ with integer coefficients is factorable over $\mathbb{Q}$ if and only if its discriminant $\Delta = b^2 - 4ac$ is a non-negative perfect square.
Applications in Calculus, Physics, and Control Systems
Polynomial factorization is an indispensable tool across technical disciplines:
Common Analytical Pitfalls and Verification Strategies
Expressions such as $x^2 + 25$ cannot be factored into real linear factors like $(x + 5)(x + 5)$ or $(x - 5)(x + 5)$. Over the real numbers, $x^2 + a^2$ is strictly irreducible.
Use the mnemonic SOAP (Same, Opposite, Always Positive) to remember signs in $a^3 \pm b^3$: $(a \text{ [Same] } b)(a^2 \text{ [Opposite] } ab \text{ [Always Positive] } b^2)$.
When factoring non-monic polynomials like $2x^2 + 5x + 2$, writing $(x + 2)(x + 0.5)$ omits the leading coefficient. The proper integer factorization is $(x + 2)(2x + 1)$.
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.