Rational Root Theorem
calculator.
List every possible rational root of a polynomial, then test each one exactly.
- Candidates tested
- 12
- Roots, with repeats
- 3 of 3
- Left over
- Nothing
These roots, counted with repeats, account for all 3 of the degree, so P(x) has no other roots.
Graph with the candidates
P(x) = 2x³ + x² − 13x + 6. The curve meets the x-axis at the rational roots −3, 0.5, 2. The smaller points on the axis are the candidates that failed.
Working
- 1p is a factor of the constant, 6±1, ±2, ±3, ±6
- 2q is a factor of the leading coefficient, 2±1, ±2
- 3Build every p over q in lowest terms12 candidates, listed in the table
- 4This candidate gives 0, so it is a rootx =−3.
- 5This candidate gives 0, so it is a rootx =12.
- 6This candidate gives 0, so it is a rootx =2.
- 7Factored as far as rational numbers allow(x + 3)(2x − 1)(x − 2)
- 8Check: put each root back into P(x)2(−3)3+(−3)2−13(−3)+6=02(12)3+(12)2−13(12)+6=02(2)3+(2)2−13(2)+6=0
Every candidate tested
| Candidate | Value of P | Root? | |
|---|---|---|---|
| −6Decimal −6 | −6 | −312 | No |
| −3Decimal −3 | −3 | 0 | Yes |
| −2Decimal −2 | −2 | 20 | No |
| −32Decimal −1.5 | −1.5 | 21 | No |
| −1Decimal −1 | −1 | 18 | No |
| −12Decimal −0.5 | −0.5 | 252 | No |
| 12Decimal 0.5 | 0.5 | 0 | Yes |
| 1Decimal 1 | 1 | −4 | No |
| 32Decimal 1.5 | 1.5 | −92 | No |
| 2Decimal 2 | 2 | 0 | Yes |
| 3Decimal 3 | 3 | 30 | No |
| 6Decimal 6 | 6 | 396 | No |
Coefficient list
Reads as 2x³ + x² − 13x + 6
How it's worked out
A rational zero is a root you can write as a fraction. For a polynomial with whole-number coefficients, the theorem limits what that fraction can be, once it is in lowest terms.
Here p must divide the constant term, the number with no x, and q must divide the leading coefficient, the number on the highest power. Each one can be positive or negative. So an endless search shrinks to a short list.
The reason is short. Put the fraction into the polynomial and multiply through by the bottom raised to the degree, so everything is a whole number. Every term but the constant term then holds a factor of p. Since p shares no factor with q, it has to divide the constant. The same argument at the other end gives the rule for q.
The theorem lists candidates only, and any of them can still fail. This tool tests each one with exact whole-number arithmetic, so a root is never missed or invented by rounding. It then divides out each root it finds, and repeats, to count how many times each one divides.
Worked examples
Kai factors a cubic from his precalculus homework
Kai's constant is 6, with factors 1, 2, 3 and 6, and his leading coefficient is 2, with factors 1 and 2. That makes 12 candidates. Three of them give 0: −3, 1 over 2, 2.
So the polynomial factors as (x + 3)(2x − 1)(x − 2). A degree 3 polynomial has only 3 roots, so he can stop looking.
Mei tackles a quartic with a lead of 6
With a constant of 3 and a lead of 6, Mei gets 12 candidates, including thirds, halves and sixths. Testing them by hand would take a while, and a slip would be easy to make. Four of them work: −1, −1 over 3, 1, 3 over 2.
Those account for the whole degree, so the factored form is (x + 1)(3x + 1)(x − 1)(2x − 3).
Theo proves the cube root of 2 is not a fraction
The cube root of 2 is a root of x³ − 2. The only candidates are ±1 and ±2, and all 4 give something other than 0. So this polynomial has no rational roots, and its real root, about 1.2599, cannot be written as a fraction.
Reading your result
Multiplicity says how many times a root divides. In x³ − 3x + 2, the roots are −2, 1 (twice). The curve touches the axis at the repeated root and crosses at the other.
The leftover factor holds the rest. For x³ − 2x² − 2x + 4, the one rational root is 2, and x² − 2 is left. Its real roots, about −1.4142 and 1.4142, are irrational. A quadratic like this one goes to the quadratic solver for an exact answer.
Sign changes bound the search. Descartes' rule of signs counts sign changes in the coefficients. 2x³ + x² − 13x + 6 has 2 changes, so it has 2 positive roots or 2 fewer. Putting −x in place of x gives 1 change, so it has 1 negative root.
The list grows with the divisors. 12x⁴ + 30 has 8 candidates once its common factor of 6 is out, because the tool takes that out first. None is a root, since the polynomial is never 0 for a real x.
Common mistakes
- Using it with decimals or fractions. The theorem needs whole-number coefficients. Multiply through by the common denominator first. That does not move the roots, because the whole polynomial scales by one number.
- Applying it when the constant is 0. Every whole number divides 0, so the list would never end. Take out x first. For x³ − 3x² + 2x, that gives the roots 0, 1, 2.
- Stopping at the first root without dividing. The same root can repeat, so test it again on what is left after you divide it out.
- Thinking no rational root means no root. It only rules out fractions. The polynomial can still have irrational or complex roots, and any polynomial of odd degree has a real one.