Skip to content
Toolcroft

Math Calculators

Polynomial Solver - Roots of Degree 2, 3, and 4

Solve polynomial equations of degree 2, 3, or 4 instantly. Enter coefficients to find all real and complex roots using exact algebraic formulas (quadratic, Cardano, Ferrari).

Degree:

Enter coefficients (include 0 for missing terms):

Equation: x^2 − 5x + 6 = 0

Roots (2)

Root 1 - Real

x = 3

Root 2 - Real

x = 2

Loading chart…
Polynomial curve
xx^2 − 5x + 6
-0.50008.7500
0.16675.1944
0.83332.5278
1.50000.7500
2.1667-0.1389
2.8333-0.1389
3.50000.7500
4.16672.5278
4.83335.1944
5.50008.7500

What is a polynomial equation?

A polynomial equation is an expression of the form aₙxⁿ + aₙ₋₁xⁿ⁻¹ + … + a₁x + a₀ = 0, where the aᵢ are real-number coefficients. The degree is the highest power of x with a non-zero coefficient. Solving the equation means finding all values of x (called roots or zeros) that satisfy it.

Quadratic (degree 2)

For ax² + bx + c = 0 the quadratic formula gives roots x = (−b ± √(b² − 4ac)) / (2a). The term under the square root is the discriminant: positive -> two distinct real roots; zero -> one repeated real root; negative -> two complex conjugate roots.

Cubic (degree 3)

Cardano's formula (1545) provides an exact algebraic solution for all cubics. When the discriminant is negative, there are three distinct real roots; the tool uses the trigonometric (cosine) form to avoid the "casus irreducibilis" issue with cube roots of complex numbers.

Quartic (degree 4)

Ferrari's method reduces a quartic to a resolvent cubic, whose roots are used to split the quartic into two quadratics. Each quadratic is then solved with the quadratic formula, yielding all four roots.

Why degree 5+ is different

The Abel–Ruffini theorem (1824) proves that polynomials of degree 5 or higher have no general algebraic solution in terms of radicals. Galois theory later explained this in terms of the symmetry groups of the roots. Numerical solvers (Newton's method, Durand–Kerner, etc.) can approximate roots to any desired precision.

Worked examples

DegreeEquationDiscriminantRoots
2x² − 5x + 6 = 025 − 24 = 1 > 0x = 2, x = 3
2x² − 4x + 4 = 016 − 16 = 0x = 2 (repeated)
3x³ − 6x² + 11x − 6 = 0Δ > 0 (3 real)x = 1, 2, 3
4x&sup4; − 5x² + 4 = 0x = ±1, ±2

Complex root visualization

For polynomials with real coefficients, complex roots always appear in conjugate pairs a ± bi. This is a consequence of the complex conjugate root theorem. Geometrically, when the discriminant is negative the parabola (degree 2) does not cross the x-axis — the two complex conjugate roots correspond to where the parabola “would” cross if extended into the complex plane.

Numerical methods for degree 5+

Newton’s method starts from an initial guess x⊂0 and iterates x⊂n+1 = x⊂n − f(x⊂n)/f′(x⊂n) until convergence. It converges quadratically near a simple root but can diverge for poor starting guesses.

The Durand–Kerner algorithm simultaneously refines all n roots at once, making it robust for finding all roots of a degree-n polynomial. Both methods return approximate rather than exact answers because no algebraic closed form exists for degree ≥ 5.