UnitCompiler
📉

Polynomial Solver

Solve quadratic, cubic, quartic and arbitrary degree polynomials with exact algebraic roots.

Enter Polynomial Equation

Type any polynomial in terms of x (e.g. x² + 5x + 6 or x⁴ - 16 = 0)

x^2 - 5x + 6

Polynomial Formulas

Quadratic Formula
ax² + bx + c = 0
x = (-b ± √(b² - 4ac)) / 2a
Higher Degree Equations
P(x) = a₀ + a₁x + ... + aₙxⁿ = 0
Symbolically factored or solved via algebraic algorithms where closed forms exist.

How This Calculation Works

A polynomial equation P(x) = aₙxⁿ + … + a₁x + a₀ = 0 equates a finite power series in one variable to zero. By the Fundamental Theorem of Algebra, every degree-n polynomial has exactly n complex roots counted with multiplicity. Quadratics solve in closed form via the discriminant Δ = b² − 4ac, while higher degrees combine factoring and numerical root finding.

Core Formulas & Identities

Quadratic Formula
x = (−b ± √(b² − 4ac)) / (2a)
Discriminant
Δ = b² − 4ac (Δ > 0: 2 real; Δ < 0: 2 complex)
Vieta’s Sum & Product
r₁ + r₂ = −b/a, r₁·r₂ = c/a

Variable Legend:a, b, c are real polynomial coefficients with leading term a ≠ 0; r₁ and r₂ denote equation roots.

Step-by-Step Worked Examples

Example1

Quadratic Equation: x² − 5x + 6 = 0

  1. Identify a = 1, b = −5, c = 6.
  2. Compute Δ = (−5)² − 4(1)(6) = 25 − 24 = 1.
  3. Apply x = (5 ± 1) / 2 to obtain x₁ = 3 and x₂ = 2.
Result:x = 2, x = 3
Example2

Quartic Root Equation: x⁴ − 16 = 0

  1. Factor as difference of squares: (x² − 4)(x² + 4) = 0.
  2. Solve x² = 4 → x = ±2.
  3. Solve x² = −4 → x = ±2i.
Result:x ∈ {−2, 2, −2i, 2i}

Practical Applications & Accuracy Tips

  • Always move all terms to one side (= 0) before reading coefficients a, b, and c.
  • When Δ < 0 with real coefficients, complex roots always appear as conjugate pairs u ± vi.
  • Check candidate roots by substituting directly back into the original equation.