Polynomial Roots Calculator

Enter a polynomial to find all of its roots, with repeated roots counted.

Use one variable, brackets and whole powers, up to degree 6.

Try

Result

You enteredx3−x=0x^{3} - x = 0

x=−1, x=0, x=1\displaystyle x = -1,\ x = 0,\ x = 1

Factored form

x(x−1)(x+1)\displaystyle x\left(x - 1\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−x=0\begin{aligned} P\left(x\right) &= x^{3} - x \\ &= 0 \end{aligned}
  2. Zero as a root

    Every term has a factor of xx, so it can be pulled out. The factor xx is 0 only when x=0x = 0, so 0 is a root.

    x3−x=x(x2−1)x^{3} - x = x\left(x^{2} - 1\right)
  3. 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 2 candidates, and substituting each shows that 2 are roots.

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

    p∣−1q∣1⇒±pq∈{−1, 1}\begin{gathered} p \mid -1 \\ q \mid 1 \\ \Rightarrow \\ \pm\frac{p}{q} \in \left\{-1,\ 1\right\} \end{gathered}
  4. 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.

    x2−1=(x+1)(x−1)x^{2} - 1 = \left(x + 1\right)\left(x - 1\right)
  5. 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.

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

    So the roots of PP are x=−1x = -1, x=0x = 0, x=1x = 1.

Worked examples