Cubic Equation Calculator

Enter the four coefficients of a cubic equation to find all three roots.

The number in front of x³. It cannot be 0.

The number in front of x².

The number in front of x.

The number with no x.

Try

Result

You enteredx3−6x2+11x−6=0x^{3} - 6x^{2} + 11x - 6 = 0

x=1, x=2, x=3\displaystyle x = 1,\ x = 2,\ x = 3

Factored form

(x−3)(x−2)(x−1)\displaystyle \left(x - 3\right)\left(x - 2\right)\left(x - 1\right)
Show the work
  1. Roots of a polynomial

    A root of PP is a number that makes P(x)=0P(x) = 0. A polynomial of degree 3 has 3 roots when each is counted as often as it repeats, and complex roots come in pairs.

    P(x)=x3−6x2+11x−6=0\begin{aligned} P\left(x\right) &= x^{3} - 6x^{2} + 11x - 6 \\ &= 0 \end{aligned}
  2. Rational root theorem

    If a polynomial with whole-number coefficients has a rational root pq\frac{p}{q} in lowest terms, then pp divides the constant term and qq divides the leading coefficient. Here that gives 8 candidates, and substituting each shows that 3 are roots.

    Using x=±pqx = \pm\frac{p}{q}

    p∣−6q∣1⇒±pq∈{−6, −3, −2, −1, 1, 2, 3, 6}\begin{gathered} p \mid -6 \\ q \mid 1 \\ \Rightarrow \\ \pm\frac{p}{q} \in \left\{-6,\ -3,\ -2,\ -1,\ 1,\ 2,\ 3,\ 6\right\} \end{gathered}
  3. Synthetic division

    Because P(1)=0P\left(1\right) = 0, the expression x−1x - 1 is a factor. Dividing by it leaves a polynomial of lower degree.

    x3−6x2+11x−6=(x−1)(x2−5x+6)x^{3} - 6x^{2} + 11x - 6 = \left(x - 1\right)\left(x^{2} - 5x + 6\right)
  4. Synthetic division

    Because P(2)=0P\left(2\right) = 0, the expression x−2x - 2 is a factor. Dividing by it leaves a polynomial of lower degree.

    x2−5x+6=(x−2)(x−3)x^{2} - 5x + 6 = \left(x - 2\right)\left(x - 3\right)
  5. Synthetic division

    Because P(3)=0P\left(3\right) = 0, the expression x−3x - 3 is a factor. Dividing by it leaves a polynomial of lower degree.

    x−3=(x−3)x - 3 = \left(x - 3\right)
  6. Result

    So the roots of PP are x=1x = 1, x=2x = 2, x=3x = 3.

Worked examples