Advertisement

Rational zeros calculator

Enter 2 to 11 descending integer coefficients with magnitudes at most 1000000. The zero polynomial is excluded. Non-rational roots are not listed.

Calculator

Distinct rational candidates
-2, -1, 1, 2
Distinct actual rational roots
1, 2
Zero-root multiplicity
0.00000000
Candidate count
4.00000000

Advertisement

How this calculator works

For an integer polynomial, any reduced rational zero p/q has numerator dividing the constant coefficient and denominator dividing the leading coefficient. Remove zero roots first so a zero constant does not require an infinite divisor list. Every remaining candidate is checked by denominator-cleared Horner evaluation with exact integers. Actual nonzero roots are listed once, not with multiplicity.

Formula

If P(p/q) = 0 and gcd(p,q) = 1, p divides the constant and q divides the leading coefficient. Check q^n P(p/q) = 0 using integer arithmetic.

Worked example

For x^2 - 3x + 2, candidates are -2, -1, 1 and 2; direct substitution leaves roots 1 and 2. For 2x^2 - x = x(2x - 1), the roots are 0 and 1/2.

Advertisement

Frequently asked questions

Does this find every real root?

No. Irrational and non-real roots are outside the rational-root theorem.

Why require integer coefficients?

The divisibility theorem applies directly to integer coefficients. Clear fractional denominators before entering the polynomial.

Does a candidate always work?

No. Divisibility supplies possibilities, then exact substitution determines which are actual roots.

Sources

Advertisement