MathorynMathematical Formula Database

Algebra

Rational Root Theorem

For a polynomial anxn+⋯+a1x+a0a_nx^n+\cdots+a_1x+a_0 with integer coefficients, every rational root p/qp/q in lowest terms has pp dividing the constant term and qq dividing the leading coefficient. Use it to list the finitely many candidate roots before testing them with the factor theorem.

P ⁣(pq)=0, gcd⁡(p,q)=1 ⇒ p∣a0 and q∣anP\!\left(\tfrac{p}{q}\right)=0,\ \gcd(p,q)=1\ \Rightarrow\ p\mid a_0\ \text{and}\ q\mid a_n
LaTeXP\!\left(\tfrac{p}{q}\right)=0,\ \gcd(p,q)=1\ \Rightarrow\ p\mid a_0\ \text{and}\ q\mid a_n

Variables

ana_n
leading coefficient (integer, nonzero)
a0a_0
constant term (integer)
p/qp/q
a rational root in lowest terms

Example

Find the rational roots of 2x3−3x2−3x+22x^3-3x^2-3x+2.

  1. Divisors of a0=2a_0=2: ±1,±2\pm1,\pm2; divisors of an=2a_n=2: 1,21,2.
  2. Candidates: ±1, ±2, ±12\pm1,\ \pm2,\ \pm\tfrac12.
  3. Testing gives P(2)=16−12−6+2=0P(2)=16-12-6+2=0, P(−1)=0P(-1)=0 and P(12)=0P(\tfrac12)=0.

Answer: The roots are 2, −12,\ -1 and 12\tfrac12.

Related formulas