Maths WorkshopMaths problems with full solutions
Exercise 1026Number theory › IrrationalityL1Added 3 Nov 2026

Rational root theorem and irrationality

#rational root theorem#algebraic#irrationality

Statement

Let P(X)=anXn+⋯+a0∈Z[X]P(X)=a_nX^n+\cdots+a_0\in\mathbb{Z}[X] with an≠0a_n\neq0. Show that any rational root of PP is of the form p/qp/q with p∣a0p\mid a_0 and q∣anq\mid a_n.

Hint

Write P(p/q)=0P(p/q)=0 and multiply by qnq^n; reduce modulo pp and modulo qq.

Show solutionHide solution

Solution

Setup. P(p/q)=0P(p/q)=0, gcd⁡(p,q)=1\gcd(p,q)=1.

Multiply. anpn+an−1pn−1q+⋯+a0qn=0a_np^n+a_{n-1}p^{n-1}q+\cdots+a_0q^n=0.

p∣a0p\mid a_0. Mod pp: a0qn≡0(modp)a_0q^n\equiv0\pmod p. Since gcd⁡(p,q)=1\gcd(p,q)=1, p∣a0p\mid a_0.

q∣anq\mid a_n. Mod qq: anpn≡0(modq)a_np^n\equiv0\pmod q. Since gcd⁡(p,q)=1\gcd(p,q)=1, q∣anq\mid a_n.

Conclusion. Any rational root has the stated form.

Corollary. If PP is monic (an=1a_n=1), any rational root is an integer dividing a0a_0.