How this calculation works
A zero constant can introduce a root at zero. Sign changes bound only strictly positive and strictly negative roots.
Count sign changes in f(x) and f(−x), skipping zerosA 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.
Reference: OpenStax Algebra and Trigonometry (opens in a new tab) ↗
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.
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.