Rational root theorem

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

In algebra, the rational root theorem (or rational root test, rational zero theorem, rational zero test or p/q theorem) states a constraint on rational solutions of a polynomial equation anxn+an1xn1++a0=0 with integer coefficients ai and a0,an0. Solutions of the equation are also called roots or zeros of the polynomial on the left side.

The theorem states that each rational solution x=pq written in lowest terms (that is, p and q 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 an = 1.

Application

[edit | edit source]

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 = r is found, a linear polynomial (xr) 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

[edit | edit source]

The general cubic equation ax3+bx2+cx+d=0 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 r, then factoring out (xr) leaves a quadratic polynomial whose two roots, found with the quadratic formula, are the remaining two roots of the cubic, avoiding cube roots.

Proofs

[edit | edit source]

Elementary proof

[edit | edit source]

Let P(x) = anxn+an1xn1++a1x+a0 with a0,,an,a0,an0.

Suppose P(p/q) = 0 for some coprime p, q: P(pq)=an(pq)n+an1(pq)n1++a1(pq)+a0=0.

To clear denominators, multiply both sides by qn: anpn+an1pn1q++a1pqn1+a0qn=0.

Shifting the a0 term to the right side and factoring out p on the left side produces: p(anpn1+an1qpn2++a1qn1)=a0qn.

Thus, p divides a0qn. But p is coprime to q and therefore to qn, so by Euclid's lemma p must divide the remaining factor a0.

On the other hand, shifting the an term to the right side and factoring out q on the left side produces: q(an1pn1+an2qpn2++a0qn1)=anpn.

Reasoning as before, it follows that q divides an.[1]

Proof using Gauss's lemma

[edit | edit source]

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], then it also factors in Z[X] as a product of primitive polynomials. Now any rational root p/q corresponds to a factor of degree 1 in Q[X] of the polynomial, and its primitive representative is then qxp, assuming that p and q are coprime. But any multiple in Z[X] of qxp has leading term divisible by q and constant term divisible by p, which proves the statement. This argument shows that more generally, any irreducible factor of P can be supposed to have integer coefficients, and leading and constant coefficients dividing the corresponding coefficients of P.

Examples

[edit | edit source]

First

[edit | edit source]

In the polynomial 2x3+x1, 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

[edit | edit source]

In the polynomial x37x+6 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

[edit | edit source]

Every rational root of the polynomial P=3x35x2+5x2 must be one of the 8 numbers ±1,±2,±13,±23. These 8 possible values for x can be tested by evaluating the polynomial. It turns out there is exactly one rational root, which is x=2/3.

However, these eight computations may be rather tedious, and some tricks allow to avoid some of them.

Firstly, if x<0, all terms of P become negative, and their sum cannot be 0; so, every root is positive, and a rational root must be one of the four values 1,2,13,23.

One has P(1)=35+52=1. So, 1 is not a root. Moreover, if one sets x = 1 + t, one gets without computation that Q(t)=P(t+1) is a polynomial in t with the same first coefficient 3 and constant term 1.[2] The rational root theorem implies thus that a rational root of Q must belong to {±1,±13}, and thus that the rational roots of P satisfy x=1+t{2,0,43,23}. This shows again that any rational root of P is positive, and the only remaining candidates are 2 and 2/3.

To show that 2 is not a root, it suffices to remark that if x=2, then 3x3 and 5x2 are multiples of 8, while 5x2 is not. So, their sum cannot be zero.

Finally, only P(2/3) needs to be computed to verify that it is a root of the polynomial.

Fourth

[edit | edit source]

If a,b and a2b+b2a are integers (a0,b0), then both a2b and b2a must be integer.

Consider the quadratic equation whose roots are a2b and b2a:

(xa2b)(xb2a)=x2(a2b+b2a)x+a2bb2a.

Simplify the coefficients:

  • The coefficient of x is m=(a2b+b2a),
  • The constant term is n=a2bb2a=ab.

Thus, the equation becomes: x2+mx+n=0,where:

  • m=(a2b+b2a), obviously integer, as negation of an integer,
  • n=ab, also integer, as the product of two integers.

Apply the rational root theorem:

a,b given to be integers (a0,b0), i.e. a2b and b2a are rational. If pq is a rational root of the equation, then q is an integer factor of the x2 coefficient, i.e. of 1. Thus, q=1. Thus, the rational root is an integer. Thus, a2b and b2a are integers.

See also

[edit | edit source]

Lua error in mw.title.lua at line 392: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').

Notes

[edit | edit source]
  1. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  2. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).

References

[edit | edit source]
  • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
[edit | edit source]