Cubic Equation Solver logo
Cubic Equation Solver

Cubic Equation Solver

Polynomial Factorization solver

Find real and complex roots, discriminant, and cubic graphs in seconds with our precision solver.

The Equation

Enter coefficients to decompose your cubic polynomial into its irreducible linear and quadratic factors.

f(x) = 0 = 0

Enter coefficients and solve to view the calculation, graph, and step-by-step explanation.

The Solution

Calculation: Polynomial Factorization Calculator

Polynomial Factorization Calculator

Enter your polynomial coefficients above and click "Factorize Polynomial" to see results.
Graph will appear here after you solve.

The Treatise

What isPolynomial Factorization Calculator?

  • For a school student: Factoring is breaking a big multiplication into its pieces. Just as 12 = 2 × 2 × 3, a polynomial like x² − 5x + 6 breaks into (x − 2)(x − 3). Each piece is simpler, and multiplying them gives you back exactly what you started with.
  • For a college student: The engine is the factor theorem: (x − r) is a factor of P(x) exactly when P(r) = 0. A cubic with leading coefficient a factors over the complex numbers as a(x − r₁)(x − r₂)(x − r₃). Over the rationals the process can stall at a linear factor times an irreducible quadratic, which is an honest and complete answer.
  • For the advanced reader: Factorization in Q[x] is unique up to order and units, the polynomial analogue of prime factorization in Z (Gauss's lemma). Whether a cubic splits completely is governed by its Galois group, and the discriminant distinguishes the cases: three distinct rational factors, a repeated factor, or one linear factor over an irreducible quadratic.
  • Why it matters in practice: Factored form hands you the roots for free, since each linear factor (x − r) contributes the root r. The standard pipeline is: list candidates with the rational root theorem, test them with synthetic division, and read off the values in our cubic roots calculator.

The Formula

Formula / Method

  • General form: P(x) = a(x − r₁)(x − r₂)(x − r₃), where each rᵢ is a root. The factor theorem behind it: (x − r) divides P(x) exactly when P(r) = 0.
  • Shortcut: Rational candidates come from ±(factors of the constant term) / (factors of the leading coefficient). Test each with the remainder theorem: a zero remainder means you found a factor.
  • Reading the result: Three linear factors means the cubic splits fully. A linear factor times an irreducible quadratic means one rational root and two complex ones, which the complex roots calculator handles.
  • A common trap: The leading coefficient a is part of the factorization. 2x³ − 4x² − 10x + 12 factors as 2(x − 3)(x − 1)(x + 2), not without the 2 in front.

The Method

How To Use

  1. Step 1. Enter the coefficients of your cubic in descending order, using 0 for any missing term.
  2. Step 2. Press "Factor". The tool tests rational candidates and divides out each factor it finds.
  3. Step 3. Read the factored form. Repeated factors appear with exponents, and irreducible quadratics are left as they are.
  4. Step 4. Verify by expanding, or divide the original by one factor with the long division calculator and confirm the remainder is zero.

Key Features

  • Finds every rational linear factor of your cubic automatically.
  • Shows the deflation steps, so you see how each factor was divided out.
  • Handles repeated roots cleanly, displaying them with exponents.
  • Detects irreducible quadratics and stops honestly instead of forcing an answer.
  • Connects each factor to its root, ready for further analysis.

The Illustration

Visual Diagram

ax³ + bx² + cx + d Find root r₁ Divide by (x - r₁) (x − r₁) (x − r₂)(x − r₃)
Example Concept
For x³ − 6x² + 11x − 6 = 0, rational candidates are ±1, ±2, ±3, ±6. Testing x = 1: 1 − 6 + 11 − 6 = 0, so (x − 1) is a factor. Dividing it out with synthetic division leaves x² − 5x + 6, which factors as (x − 2)(x − 3) since 2 + 3 = 5 and 2 · 3 = 6. Result: (x − 1)(x − 2)(x − 3). Check by expanding: (x − 1)(x − 2) = x² − 3x + 2, and (x² − 3x + 2)(x − 3) = x³ − 6x² + 11x − 6, the original polynomial.

The Deep Dive

Interactive Deep Dive

The factor theorem is the whole engine, and its proof is one line once you have the remainder theorem. Dividing P(x) by (x − r) leaves a constant remainder equal to P(r). A zero remainder means exact division, which is precisely what "is a factor" means. So (x − r) is a factor exactly when P(r) = 0. Every factoring strategy, from hand calculation to computer algebra, is organized around this equivalence.

Every cubic has at least one real linear factor, and the reason is topological. An odd-degree polynomial tends to −∞ on one side and +∞ on the other, so by the intermediate value theorem its graph must cross the x-axis somewhere. That crossing is a real root, hence a real linear factor. The leftover quadratic may or may not factor further over the reals: x³ − 2x² + x − 2 = (x − 2)(x² + 1) stops there because x² + 1 has no real zeros.

The standard hand pipeline has three stages. First, list rational candidates with the rational root theorem. Second, test each candidate with synthetic division, which doubles as the division that deflates the polynomial. Third, solve the remaining quadratic with the quadratic formula. This pipeline is complete: any rational factor of a cubic with integer coefficients will be found, because the candidate list is exhaustive by the theorem.

When the leftover quadratic refuses to factor, the discriminant explains why. A negative discriminant means one real root plus a complex conjugate pair, so the quadratic piece is genuinely irreducible over the reals. Example: x³ + x = x(x² + 1) has the single real root 0 and the complex pair ±i. Recognizing this case saves you from hunting rational roots that do not exist, and the complex roots calculator finishes the job.

"Irreducible" always needs a qualifier: irreducible over which numbers? x² + 1 is irreducible over Q and over R, but splits as (x − i)(x + i) over C. Gauss's lemma guarantees that factorization over Q matches factorization over Z, which is why integer-coefficient methods like the rational root test are theoretically complete. Unique factorization then promises there is only one correct answer, however you find it.

The Applications

Real-World Applications

🔎

Equation Solving

Factored form displays every root together with its multiplicity, so solving the equation reduces to reading. A double factor like (x - 1)² tells you the graph touches the axis there instead of crossing, a detail the raw expanded form hides completely.

📊

Simplifying Fractions

Rational expressions simplify dramatically once numerator and denominator are factored: common factors cancel before any evaluation. This avoids 0/0 indeterminate forms and keeps hand computation exact instead of approximate.

💻

Computer Algebra

Computer algebra systems factor first and ask questions later. Integration, differentiation, and series expansion all run termwise on factored forms, which is why factoring sits at the base of every symbolic computation stack.

🎨

Graph Sketching

Each linear factor marks an x-intercept, and its exponent controls the local shape: odd multiplicity crosses, even multiplicity touches. Combined with the graphing tool, factored form is the fastest route to an accurate sketch.

⚡

Partial Fractions Setup

Decomposing a rational function into partial fractions begins by factoring the denominator completely. Every distinct linear and irreducible quadratic factor becomes one term of the decomposition, usually after a long division step to make the fraction proper.

The Cautions

Common Mistakes to Avoid

MISTAKE Nº 1

Assuming every cubic factors over rationals: Many do not. The cubic x³ - 2 has the single real root ∛2 and no rational factor at all. Check the discriminant first so you know what to expect.

MISTAKE Nº 2

Missing the leading coefficient: The factors alone are not the whole story. Without the leading coefficient a out front, the product will not reproduce the original polynomial.

MISTAKE Nº 3

Not checking all rational candidates: The candidate list from the rational root theorem is finite, so there is no excuse for skipping entries. Test every one before concluding that no rational root exists.

MISTAKE Nº 4

Forgetting to deflate after finding a root: Each discovered factor must be divided out before hunting the next root. Working with the original cubic throughout wastes the simplification you already earned.

MISTAKE Nº 5

Stopping at linear times quadratic: Always check whether the leftover quadratic factors further. The quadratic x² - 5x + 6 splits into (x - 2)(x - 3), and quitting early leaves the job half done.

The Reference

Quick Reference Table

Quick Reference TableREF
Goala(x − r₁)(x − r₂)(x − r₃)
Sum of Cubesa³+b³ = (a+b)(a²−ab+b²)
Diff of Cubesa³−b³ = (a−b)(a²+ab+b²)
StrategyFind 1 root → divide → quadratic formula
VerificationExpand factors to confirm original polynomial

The Questions

Frequently Asked Questions

What does factored form tell me that expanded form does not? +

The roots, immediately, each with its multiplicity. Expanded form hides them; factored form displays them. For the numerical values, see our cubic roots calculator.

What if my cubic will not factor over rationals? +

Then its roots are irrational or complex, and no integer-coefficient method will find them. The discriminant tells you which case you are in.

Is factoring the same as solving? +

Nearly. Each linear factor (x - r) hands you the root r directly, so a fully factored cubic is a solved cubic.

Can a cubic have a repeated factor? +

Yes. For example (x - 1)²(x + 2) = x³ - 3x + 2 has the double root 1. A zero discriminant always signals a repeated factor.

Why does the leading coefficient matter? +

Because a(x - r₁)(x - r₂)(x - r₃) with a ≠ 1 is a different polynomial than the product of the factors alone. Dropping it changes every coefficient.

What is the fastest hand method for factoring a cubic? +

List rational candidates, test them with synthetic division, deflate to a quadratic, and finish with the quadratic formula.

How do complex roots appear in factored form? +

As an irreducible quadratic factor, which splits into conjugate linear factors over the complex numbers. The complex roots calculator finds them.

How do I verify a factorization? +

Multiply the factors back out. Every coefficient of the product must match the original polynomial exactly.