Descartes' Rule of Signs Calculator

Enter a polynomial to count its possible positive and negative real roots.

One variable, brackets and whole powers, such as x^4 - 1.

Try

Result

You enteredP(x)=x4−1P(x) = x^{4} - 1

Positive real roots: 1; negative real roots: 1\displaystyle \text{Positive real roots: } 1;\ \text{negative real roots: } 1

Sign changes in P(x)

1\displaystyle 1

Sign changes in P(-x)

1\displaystyle 1
Show the work
  1. Descartes' rule of signs

    Write the coefficients of P(x)P(x) from the highest power down, ignoring zeros, and count the sign changes VV. The number of positive real roots is VV, or less than VV by an even number. Negative roots are counted the same way on P(−x)P(-x).

    Using positive roots=V or V−2 or V−4 or …\text{positive roots} = V \text{ or } V - 2 \text{ or } V - 4 \text{ or } \ldots

    P(x)=x4−1P(x) = x^{4} - 1
  2. Sign changes in P(x)

    The signs of the non-zero coefficients, in order, are shown below. Each time the sign differs from the one before it, that is one change, so VV is 1.

    +, −  ⇒  V=1+,\ - \;\Rightarrow\; V = 1
  3. Sign changes in P(-x)

    Replacing xx by −x-x flips the sign of every odd-power term. The new polynomial and its signs give VV equal to 1.

    P(−x)=x4−1  ⇒  +, −  ⇒  V=1P(-x) = x^{4} - 1 \;\Rightarrow\; +,\ - \;\Rightarrow\; V = 1
  4. Result

    So there are 1 positive real root and 1 negative real root; the rest of the 4 roots are zero or not real.

    Positive real roots: 1; negative real roots: 1\text{Positive real roots: } 1;\ \text{negative real roots: } 1

Worked examples