Ma · Mathematics

Prove That the Square Root of Every Prime Is Irrational

Published By the 9to5Science editorial team

At a glance

  1. 1. Assume a fraction

    Suppose the square root of a prime p equals m/n, with m and n coprime integers and n positive.

  2. 2. Apply Euclid’s lemma

    Squaring shows p divides m squared, so the prime-divisor property gives p divides m.

  3. 3. Substitute and repeat

    Write m as p times an integer; the equation then implies p divides n squared, hence p divides n.

  4. 4. Reach a contradiction

    Both m and n are divisible by p, contradicting that the fraction was reduced.

Advertisement

Let pp be a prime number. The key fact is Euclid’s lemma: if a prime divides a product, it divides at least one of the factors. Applying this fact twice shows that a fraction equal to p\sqrt{p} cannot be in lowest terms, which proves that p\sqrt{p} is irrational.

Euclid’s lemma

For a prime pp and integers a,ba,b, the lemma states

p∣ab⟹p∣a or p∣b.p\mid ab \quad\Longrightarrow\quad p\mid a\text{ or }p\mid b.

Here p∣ap\mid a means that aa is an integer multiple of pp. One way to justify the lemma is to consider the case where p∤ap\nmid a. Since pp is prime, its only positive divisors are 11 and pp, so pp and aa have greatest common divisor 11. Bézout’s identity then gives integers x,yx,y such that xa+yp=1xa+yp=1. Multiplying by bb gives

xab+ypb=b.xab+ypb=b.

If p∣abp\mid ab, then pp divides both terms on the left, and therefore divides bb. Thus either p∣ap\mid a or p∣bp\mid b, as claimed. In particular, if p∣a2=a⋅ap\mid a^2=a\cdot a, then p∣ap\mid a.

Proof that p\sqrt{p} is irrational

Assume, to the contrary, that p\sqrt{p} is rational. Then it can be written as a fraction in lowest terms:

p=mn,\sqrt{p}=\frac{m}{n},

where m,nm,n are integers, n>0n>0, and gcd⁡(m,n)=1\gcd(m,n)=1. Squaring and clearing the denominator gives

m2=pn2.m^2=pn^2.

The right-hand side is divisible by pp, so p∣m2p\mid m^2. Since m2=m⋅mm^2=m\cdot m, Euclid’s lemma implies p∣mp\mid m. Write m=pkm=pk for some integer kk. Substituting this into the equation yields

p2k2=pn2,pk2=n2.\begin{aligned} p^2k^2&=pn^2,\\ pk^2&=n^2. \end{aligned}

The second line follows by cancelling the nonzero integer pp. It shows that p∣n2p\mid n^2. Applying Euclid’s lemma again gives p∣np\mid n.

We have proved that pp divides both mm and nn. That contradicts gcd⁡(m,n)=1\gcd(m,n)=1, because a fraction in lowest terms has no common divisor greater than 11. The assumption that p\sqrt{p} is rational must therefore be false. Hence the square root of every prime number is irrational.

Example: why 7\sqrt{7} is irrational

Suppose 7=m/n\sqrt{7}=m/n for coprime integers m,nm,n with n>0n>0. Squaring gives m2=7n2m^2=7n^2, so 7∣m27\mid m^2 and therefore 7∣m7\mid m. Put m=7km=7k. Then 49k2=7n249k^2=7n^2, or n2=7k2n^2=7k^2, so 7∣n27\mid n^2 and therefore 7∣n7\mid n. This says that both numerator and denominator are divisible by 77, contradicting that the fraction was reduced.

The same argument works for any prime: the number 77 has no special role beyond being prime.

Common mistakes

  • Starting with an arbitrary fraction without reducing it. A number can have many fraction representations, including ones whose numerator and denominator share factors. Choose a representation in lowest terms so that finding a common prime divisor creates a contradiction.
  • Assuming every divisor of a square divides its square root. That does not hold for arbitrary divisors. The argument uses the fact that pp is prime: from p∣m⋅mp\mid m\cdot m, Euclid’s lemma gives p∣mp\mid m.
  • Forgetting the second application of the lemma. Showing p∣mp\mid m is not yet a contradiction. Substituting m=pkm=pk into the equation is what establishes p∣np\mid n, producing a common divisor of the reduced fraction.
  • Trying to prove more than needed. The proof does not require pp to be odd. It also covers p=2p=2, so 2\sqrt{2} is included.

References

  1. Elementary Number Theory

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.