Rational root theorem: Difference between revisions
imported>Bubba73 →See also: see also Polynomial root-finding |
imported>ChenSong4042 there is already an existing link for "rational number" |
||
| Line 4: | Line 4: | ||
with [[integer]] coefficients <math>a_i\in\mathbb{Z}</math> and <math>a_0,a_n \neq 0</math>. Solutions of the equation are also called [[root of a polynomial|roots]] or zeros of the [[polynomial]] on the left side. | with [[integer]] coefficients <math>a_i\in\mathbb{Z}</math> and <math>a_0,a_n \neq 0</math>. Solutions of the equation are also called [[root of a polynomial|roots]] or zeros of the [[polynomial]] on the left side. | ||
The theorem states that each | The theorem states that each rational solution {{tmath|1=x=\tfrac pq}} written in lowest terms (that is, {{math|''p''}} and {{math|''q''}} are [[relatively prime]]), satisfies: | ||
* {{math|''p''}} is an integer [[divisor|factor]] of the [[constant term]] {{math|''a''<sub>0</sub>}}, and | * {{math|''p''}} is an integer [[divisor|factor]] of the [[constant term]] {{math|''a''<sub>0</sub>}}, and | ||
* {{math|''q''}} is an integer factor of the leading [[coefficient]] {{math|''a<sub>n</sub>''}}. | * {{math|''q''}} is an integer factor of the leading [[coefficient]] {{math|''a<sub>n</sub>''}}. | ||
The rational root theorem is a special case (for a single linear factor) of [[Gauss's lemma (polynomial)|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 {{math|1=''a<sub>n</sub>'' = 1}}. | The rational root theorem is a special case (for a single linear factor) of [[Gauss's lemma (polynomial)|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 {{math|1=''a<sub>n</sub>'' = 1}}. | ||
==Application== | ==Application== | ||
| Line 18: | Line 18: | ||
The general [[cubic equation]] | The general [[cubic equation]] | ||
<math display="block">ax^3 + bx^2 + cx + d = 0</math> | <math display="block">ax^3 + bx^2 + cx + d = 0</math> | ||
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 [[algebraic expression|algebraically]] uses [[Cubic function|cube roots]]. But if the test finds a rational solution {{math|''r''}}, then factoring out {{math|(''x'' – ''r'')}} leaves a [[quadratic polynomial]] whose two roots, found with the [[quadratic formula]], are the remaining two roots of the cubic, avoiding cube roots. | 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 [[algebraic expression|algebraically]] uses [[Cubic function|cube roots]]. But if the test finds a rational solution {{math|''r''}}, then factoring out {{math|(''x'' – ''r'')}} leaves a [[quadratic polynomial]] whose two roots, found with the [[quadratic formula]], are the remaining two roots of the cubic, avoiding cube roots. | ||
==Proofs== | ==Proofs== | ||
| Line 76: | Line 76: | ||
Finally, only <math>P(2/3)</math> needs to be computed to verify that it is a root of the polynomial. | Finally, only <math>P(2/3)</math> needs to be computed to verify that it is a root of the polynomial. | ||
===Fourth=== | |||
If <math>a, b</math> and <math>\tfrac{a^2}{b} +\tfrac{b^2}{a}</math> are integers (<math>a\neq 0, b\neq 0</math>), then both <math>\tfrac{a^2}{b}</math> and <math>\tfrac{b^2}{a}</math> must be integer. | |||
Consider the [[quadratic equation]] whose roots are <math>\tfrac{a^2}{b}</math> and <math>\tfrac{b^2}{a}</math>: | |||
<math display="block">(x-\tfrac{a^2}{b})(x-\tfrac{b^2}{a})=x^2-(\tfrac{a^2}{b} +\tfrac{b^2}{a})x +\tfrac{a^2}{b}\cdot\tfrac{b^2}{a}.</math> | |||
Simplify the coefficients: | |||
* The coefficient of <math>x</math> is <math>m=-(\tfrac{a^2}{b} +\tfrac{b^2}{a}),</math> | |||
* The constant term is <math>n=\tfrac{a^2}{b}\cdot\tfrac{b^2}{a}=ab.</math> | |||
Thus, the equation becomes: <math display="block">x^2+mx+n=0,</math>where: | |||
* <math>m=-(\tfrac{a^2}{b} +\tfrac{b^2}{a})</math>, obviously integer, as negation of an integer, | |||
* <math>n=ab</math>, also integer, as the product of two integers. | |||
Apply the rational root theorem: | |||
<math>a, b</math> given to be integers (<math>a\neq 0, b\neq 0</math>), i.e. <math>\tfrac{a^2}{b}</math> and <math>\tfrac{b^2}{a}</math> are rational. If <math>\tfrac{p}{q}</math> is a rational root of the equation, then <math>q</math> is an integer factor of the <math>x^2</math> coefficient, i.e. of <math>1</math>. Thus, <math>q=1</math>. Thus, the rational root is an integer. Thus, <math>\tfrac{a^2}{b}</math> and <math>\tfrac{b^2}{a}</math> are integers. | |||
==See also== | ==See also== | ||
| Line 100: | Line 120: | ||
==External links== | ==External links== | ||
*{{MathWorld|urlname=RationalZeroTheorem|title=Rational Zero Theorem}} | *{{MathWorld|urlname=RationalZeroTheorem|title=Rational Zero Theorem}} | ||
* | *{{PlanetMath|RationalRootTheorem}} | ||
* [http://www.cut-the-knot.org/Generalization/RationalRootTheorem.shtml Another proof that n<sup>th</sup> roots of integers are irrational, except for perfect nth powers] by Scott E. Brodie | * [http://www.cut-the-knot.org/Generalization/RationalRootTheorem.shtml Another proof that n<sup>th</sup> roots of integers are irrational, except for perfect nth powers] by Scott E. Brodie | ||
*[http://www.purplemath.com/modules/rtnlroot.htm ''The Rational Roots Test''] at purplemath.com | *[http://www.purplemath.com/modules/rtnlroot.htm ''The Rational Roots Test''] at purplemath.com | ||
Latest revision as of 23:55, 8 October 2025
Template:Short description In algebra, the rational root theorem (or rational root test, rational zero theorem, rational zero test or Template:Math 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, Template:Math and Template:Math are relatively prime), satisfies:
- Template:Math is an integer factor of the constant term Template:Math, and
- Template:Math is an integer factor of the leading coefficient Template:Math.
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 Template:Math.
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 Template:Math is found, a linear polynomial Template:Math 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 Template:Math, then factoring out Template:Math 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 Template:Math for some coprime Template:Math:
To clear denominators, multiply both sides by Template:Math:
Shifting the Template:Math term to the right side and factoring out Template:Mvar on the left side produces:
Thus, Template:Mvar divides Template:Math. But Template:Mvar is coprime to Template:Mvar and therefore to Template:Math, so by Euclid's lemma Template:Mvar must divide the remaining factor Template:Math.
On the other hand, shifting the Template:Math term to the right side and factoring out Template:Mvar on the left side produces:
Reasoning as before, it follows that Template:Mvar divides Template:Math.[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 Template:Math, then it also factors in Template:Math as a product of primitive polynomials. Now any rational root Template:Math corresponds to a factor of degree 1 in Template:Math of the polynomial, and its primitive representative is then Template:Math, assuming that Template:Math and Template:Math are coprime. But any multiple in Template:Math of Template:Math has leading term divisible by Template:Math and constant term divisible by Template:Math, which proves the statement. This argument shows that more generally, any irreducible factor of Template:Math can be supposed to have integer coefficients, and leading and constant coefficients dividing the corresponding coefficients of Template:Math.
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, Template:Math is not a root. Moreover, if one sets Template:Math, one gets without computation that is a polynomial in Template:Mvar with the same first coefficient Template:Math and constant term Template:Math.[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 Template:Math and Template:Math.
To show that Template:Math is not a root, it suffices to remark that if then and are multiples of Template:Math, 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
References
- 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