In algebra, the rational root theorem (or rational root test, rational zero theorem, rational zero test or theorem) states a constraint on rational solutions of a polynomial equationwith integer coefficients
ai\inZ
a0,an ≠ 0
The theorem states that each rational solution, written in lowest terms so that and are relatively prime, satisfies:
The rational root theorem is a special case (for a single linear factor) of Gauss's lemma on the factorization of polynomials. The integral root theorem is the special case of the rational root theorem when the leading coefficient is .
The theorem is used to find all rational roots of a polynomial, if any. It gives a finite number of possible fractions which can be checked to see if they are roots. If a rational root is found, a linear polynomial can be factored out of the polynomial using polynomial long division, resulting in a polynomial of lower degree whose roots are also roots of the original polynomial.
The general cubic equationwith integer coefficients has three solutions in the complex plane. If the rational root test finds no rational solutions, then the only way to express the solutions algebraically uses cube roots. But if the test finds a rational solution, then factoring out leaves a quadratic polynomial whose two roots, found with the quadratic formula, are the remaining two roots of the cubic, avoiding cube roots.
Let
P(x) = anxn+an-1xn-1+ … +a1x+a0
a0,\ldots,an\inZ.
Suppose for some coprime :
To clear denominators, multiply both sides by :
Shifting the term to the right side and factoring out on the left side produces:
Thus, divides . But is coprime to and therefore to, so by Euclid's lemma must divide the remaining factor .
On the other hand, shifting the term to the right side and factoring out on the left side produces:
Reasoning as before, it follows that divides .[1]
Should there be a nontrivial factor dividing all the coefficients of the polynomial, then one can divide by the greatest common divisor of the coefficients so as to obtain a primitive polynomial in the sense of Gauss's lemma; this does not alter the set of rational roots and only strengthens the divisibility conditions. That lemma says that if the polynomial factors in, then it also factors in as a product of primitive polynomials. Now any rational root corresponds to a factor of degree 1 in of the polynomial, and its primitive representative is then, assuming that and are coprime. But any multiple in of has leading term divisible by and constant term divisible by, which proves the statement. This argument shows that more generally, any irreducible factor of can be supposed to have integer coefficients, and leading and constant coefficients dividing the corresponding coefficients of .
In the polynomialany rational root fully reduced should have a numerator that divides 1 and a denominator that divides 2. Hence the only possible rational roots are ±1/2 and ±1; since neither of these equates the polynomial to zero, it has no rational roots.
In the polynomialthe only possible rational roots would have a numerator that divides 6 and a denominator that divides 1, limiting the possibilities to ±1, ±2, ±3, and ±6. Of these, 1, 2, and –3 equate the polynomial to zero, and hence are its rational roots (in fact these are its only roots since a cubic polynomial has only three roots).
Every rational root of the polynomialmust be one of the 8 numbersThese 8 possible values for can be tested by evaluating the polynomial. It turns out there is exactly one rational root, which is
However, these eight computations may be rather tedious, and some tricks allow to avoid some of them.
Firstly, if
x<0,
One has
P(1)=3-5+5-2=1.
Q(t)=P(t+1)
To show thet is not a root, is suffices to remark that is
x=2,
3x2
5x-2
-rx2
Finally, only
P(2/3)