href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&family=Plus+Jakarta+Sans:wght@400;600;700&display=swap" rel="stylesheet">

Polynomial Calculator

A polynomial is a sum of terms of the form axⁿ with whole-number exponents. This tool adds, subtracts, multiplies and divides polynomials, finds their degree and their roots, and shows each step so you can check the working rather than trust the answer.

Solve cubic equations (ax³ + bx² + cx + d = 0) instantly. Find all real and complex roots.

x³ + x² + x + = 0

Roots Found

Solutions for x

Understanding Polynomial Roots

Polynomial equations, specifically cubic (degree 3) equations, appear frequently in physics and engineering.

What is a Cubic Equation?

A cubic equation is a polynomial equation of degree 3, generally written as:

ax³ + bx² + cx + d = 0

How many roots does it have?

According to the Fundamental Theorem of Algebra, a cubic equation always has 3 roots. At least one root must be real. The other two can be real or a complex conjugate pair.

History: Cardano's Formula

Unlike quadratic equations which have a straightforward formula learned early in school, solving cubic equations algebraically is significantly more complex. The standard method for finding exact roots of a cubic polynomial without resorting to generic numerical approximations is known as Cardano’s Formula (published in 1545 by Gerolamo Cardano). This incredible piece of mathematical history involves first "depressing" the cubic equation—removing the x² term by making a substitution—and then applying complex algebra to find the discriminant of the resulting depressed cubic.

The Discriminant (Δ) of a Cubic Equation

Just like a parabola, a cubic polynomial has its own discriminant. This value helps us instantly predict the nature of the roots before we even calculate them fully. If the cubic discriminant is positive, the equation will harbor one real root and two complex conjugate roots. If the discriminant is exactly zero, all three roots are real, but at least two of them are identical (a repeated root). But the most fascinating case is when the discriminant is negative. Known historically as the Casus Irreducibilis, this scenario guarantees three distinct real roots, but finding them via Cardano's formula requires delving into complex numbers or using trigonometric identities!

Real-World Applications

Cubic polynomials aren't just for tests; they are vital tools in calculating volume, thermodynamics, and fluid dynamics. For example, equations of state (like the Van der Waals equation) use cubic polynomials to model the behavior of real gases, allowing engineers to determine molar volume under specific temperature and pressure conditions. Furthermore, in computer graphics and animation, cubic splines (smooth curves made of polynomial segments) are the industry standard for interpolating movement and designing sleek vector shapes. By utilizing our cubic equation solver, you can instantly find all real and complex roots without running through pages of manual algebra.

Worked example: solving x³ − 6x² + 11x − 6 = 0 by hand

  1. List rational candidates. The constant term is −6 and the leading coefficient is 1, so any rational root must be one of ±1, ±2, ±3, ±6.
  2. Test them. x = 1 gives 1 − 6 + 11 − 6 = 0, so (x − 1) is a factor.
  3. Divide. Synthetic division of 1, −6, 11, −6 by 1 leaves 1, −5, 6 with remainder 0: the quotient is x² − 5x + 6.
  4. Factor the quadratic. x² − 5x + 6 = (x − 2)(x − 3).
  5. Read the roots. (x − 1)(x − 2)(x − 3) = 0, so x = 1, 2, 3.

Check with Vieta: 1 + 2 + 3 = 6 = −b/a and 1 × 2 × 3 = 6 = −d/a. When no candidate works, the roots are irrational or complex and the calculator falls back on Cardano’s method — for example x³ − 1 = 0 has the single real root x = 1 and the conjugate pair x = (−1 ± i√3) / 2.

Frequently asked questions

How many real roots can a cubic equation have?

Either one or three (counting a repeated root as many times as it occurs). A cubic always has three roots in total; when only one is real, the other two are a complex conjugate pair such as 2 + 3i and 2 − 3i.

What is the rational root theorem?

If a polynomial with integer coefficients has a rational root p/q, then p divides the constant term and q divides the leading coefficient. It gives a short list of candidates to test — for x³ − 6x² + 11x − 6 the candidates are ±1, ±2, ±3 and ±6.

Can I use this calculator for a quadratic equation?

Yes: enter 0 as the coefficient of x³ and the equation becomes ax² + bx + c = 0. For step-by-step working on quadratics, the dedicated quadratic formula calculator is clearer.

Why does the calculator show complex roots?

Because the fundamental theorem of algebra guarantees exactly three roots for a cubic, and some of them may not be real. When the coefficients are real numbers, complex roots always appear in conjugate pairs, which is why you never see just one of them.

What does the sum and product of the roots tell me?

For ax³ + bx² + cx + d = 0 the roots always add up to −b/a and multiply to −d/a (Vieta’s formulas). They are a quick check on any answer: for x³ − 6x² + 11x − 6 = 0 the roots 1, 2 and 3 add to 6 = −(−6)/1 and multiply to 6 = −(−6)/1.

Related tools: the quadratic formula calculator for degree-2 equations, the factoring calculator, and the parabola graph calculator to see a quadratic drawn.