Maths & numbers

Descartes’ rule of signs for cubics calculator

Bound the counts of positive and negative roots of a cubic with real coefficients.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

A zero constant can introduce a root at zero. Sign changes bound only strictly positive and strictly negative roots.

THE FORMULACount sign changes in f(x) and f(−x), skipping zeros

A worked example

x³−6x²+11x−6 has three sign changes and permits three or one positive roots.

Good to know

Possible counts decrease from each bound by even numbers. Multiplicity counts.

Count sign transitions after omitting zero coefficients

For f(x) = x³ − 6x² + 11x − 6, the coefficient signs are positive, negative, positive and negative. There are three transitions. Descartes’ rule says the number of positive real roots, counted with multiplicity, can be three or one. Factoring this example as (x − 1)(x − 2)(x − 3) confirms three positive roots.

To bound negative roots, replace x by −x. The coefficients of f(−x) are −1, −6, −11 and −6, so there are zero transitions and no negative real roots. The SVG shows both sign rows side by side with their transition counts.

Three sign transitions for the cubic contrast with none after substituting minus xf(x)+−+−3 transitions → 3 or 1 positivef(−x)−−−−0 transitions → 0 negative
f(x) has signs + − + − and allows 3 or 1 positive roots. f(−x) has signs − − − − and no negative roots.

Read an upper bound without treating it as an exact count

The possible count decreases from the transition count by even integers. Three transitions permit three or one, while two permit two or zero. Coefficients equal to zero are skipped before comparing consecutive signs. A root at zero is outside both positive and negative counts.

Repeated roots count according to multiplicity. For example, (x − 1)²(x + 2) = x³ − 3x + 2 has two positive roots by multiplicity and one negative root. Omitting its zero quadratic coefficient gives signs positive, negative, positive and hence two transitions. The Cubic discriminant calculator supplies complementary information about distinct real roots and repeated roots. Sign changes alone do not locate the roots or establish their exact values.

A few questions, answered

Does a zero sign-change count prove absence?

Yes. Zero transitions in f(x) exclude positive roots. Zero transitions in f(−x) exclude negative roots.

Can I enter a quadratic here?

This tool requires a nonzero cubic coefficient. Its four fields describe a real cubic polynomial.

Find your calculator

Start typing to explore the library.