Rational root theorem
Script error: No such module "Unsubst".Template:Short description In algebra, the rational root theorem (or rational root test, rational zero theorem, rational zero test or p/qScript error: No such module "Check for unknown parameters". theorem) states a constraint on rational solutions of a polynomial equation with integer coefficients and . Solutions of the equation are also called roots or zeros of the polynomial on the left side.
The theorem states that each rational solution Template:Tmath written in lowest terms (that is, pScript error: No such module "Check for unknown parameters". and qScript error: No such module "Check for unknown parameters". are relatively prime), satisfies:
- pScript error: No such module "Check for unknown parameters". is an integer factor of the constant term a0Script error: No such module "Check for unknown parameters"., and
- qScript error: No such module "Check for unknown parameters". is an integer factor of the leading coefficient anScript error: No such module "Check for unknown parameters"..
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 an = 1Script error: No such module "Check for unknown parameters"..
Application
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 x = rScript error: No such module "Check for unknown parameters". is found, a linear polynomial (x – r)Script error: No such module "Check for unknown parameters". 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.
Cubic equation
The general cubic equation with 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 rScript error: No such module "Check for unknown parameters"., then factoring out (x – r)Script error: No such module "Check for unknown parameters". leaves a quadratic polynomial whose two roots, found with the quadratic formula, are the remaining two roots of the cubic, avoiding cube roots.
Proofs
Elementary proof
Let with
Suppose P(p/q) = 0Script error: No such module "Check for unknown parameters". for some coprime p, q ∈ ℤScript error: No such module "Check for unknown parameters".:
To clear denominators, multiply both sides by qnScript error: No such module "Check for unknown parameters".:
Shifting the a0Script error: No such module "Check for unknown parameters". term to the right side and factoring out Template:Mvar on the left side produces:
Thus, Template:Mvar divides a0qnScript error: No such module "Check for unknown parameters".. But Template:Mvar is coprime to Template:Mvar and therefore to qnScript error: No such module "Check for unknown parameters"., so by Euclid's lemma Template:Mvar must divide the remaining factor a0Script error: No such module "Check for unknown parameters"..
On the other hand, shifting the anScript error: No such module "Check for unknown parameters". term to the right side and factoring out Template:Mvar on the left side produces:
Reasoning as before, it follows that Template:Mvar divides anScript error: No such module "Check for unknown parameters"..[1]
Proof using Gauss's lemma
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 Q[X]Script error: No such module "Check for unknown parameters"., then it also factors in Z[X]Script error: No such module "Check for unknown parameters". as a product of primitive polynomials. Now any rational root p/qScript error: No such module "Check for unknown parameters". corresponds to a factor of degree 1 in Q[X]Script error: No such module "Check for unknown parameters". of the polynomial, and its primitive representative is then qx − pScript error: No such module "Check for unknown parameters"., assuming that pScript error: No such module "Check for unknown parameters". and qScript error: No such module "Check for unknown parameters". are coprime. But any multiple in Z[X]Script error: No such module "Check for unknown parameters". of qx − pScript error: No such module "Check for unknown parameters". has leading term divisible by qScript error: No such module "Check for unknown parameters". and constant term divisible by pScript error: No such module "Check for unknown parameters"., which proves the statement. This argument shows that more generally, any irreducible factor of PScript error: No such module "Check for unknown parameters". can be supposed to have integer coefficients, and leading and constant coefficients dividing the corresponding coefficients of PScript error: No such module "Check for unknown parameters"..
Examples
First
In the polynomial any 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.
Second
In the polynomial the 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).
Third
Every rational root of the polynomial must be one of the 8 numbers These 8 possible values for Template:Mvar 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 all terms of Template:Mvar become negative, and their sum cannot be 0; so, every root is positive, and a rational root must be one of the four values
One has So, 1Script error: No such module "Check for unknown parameters". is not a root. Moreover, if one sets x = 1 + tScript error: No such module "Check for unknown parameters"., one gets without computation that is a polynomial in Template:Mvar with the same first coefficient 3Script error: No such module "Check for unknown parameters". and constant term 1Script error: No such module "Check for unknown parameters"..[2] The rational root theorem implies thus that a rational root of Template:Mvar must belong to and thus that the rational roots of Template:Mvar satisfy This shows again that any rational root of Template:Mvar is positive, and the only remaining candidates are 2Script error: No such module "Check for unknown parameters". and 2/3Script error: No such module "Check for unknown parameters"..
To show that 2Script error: No such module "Check for unknown parameters". is not a root, it suffices to remark that if then and are multiples of 8Script error: No such module "Check for unknown parameters"., while is not. So, their sum cannot be zero.
Finally, only needs to be computed to verify that it is a root of the polynomial.
Fourth
If and are integers (), then both and must be integer.
Consider the quadratic equation whose roots are and :
Simplify the coefficients:
- The coefficient of is
- The constant term is
Thus, the equation becomes: where:
- , obviously integer, as negation of an integer,
- , also integer, as the product of two integers.
Apply the rational root theorem:
given to be integers (), i.e. and are rational. If is a rational root of the equation, then is an integer factor of the coefficient, i.e. of . Thus, . Thus, the rational root is an integer. Thus, and are integers.
See also
Script error: No such module "Portal".
- Fundamental theorem of algebra
- Integrally closed domain
- Descartes' rule of signs
- Gauss–Lucas theorem
- Properties of polynomial roots
- Content (algebra)
- Eisenstein's criterion
- Polynomial root-finding
Notes
<templatestyles src="Reflist/styles.css" />
Script error: No such module "Check for unknown parameters".
References
<templatestyles src="Refbegin/styles.css" />
- Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1".
- Script error: No such module "citation/CS1".
External links
- Script error: No such module "Template wrapper".
- Rational root theorem at PlanetMath.
- Another proof that nth roots of integers are irrational, except for perfect nth powers by Scott E. Brodie
- The Rational Roots Test at purplemath.com