Pure Mathematics

The Irrationality of the Square Root of 2

Could the square root of two be written as a ratio of whole numbers? A staple test of proof by contradiction.

solvedeasy1 min

A rational number is a ratio of two integers. A number that is not rational is irrational.

Prove that 2\sqrt{2} is irrational.

Reveal solutionHide solution

#Setup

Suppose the opposite. Then 2=ab\sqrt{2} = \tfrac{a}{b} for integers aa and bb with b0b \neq 0, and I may take this fraction in lowest terms, so gcd(a,b)=1\gcd(a, b) = 1. Squaring and clearing the denominator,

a2=2b2.(1)a^2 = 2\,b^2. \tag{1}

#A parity lemma

An odd integer squares to an odd integer, since (2k+1)2=2(2k2+2k)+1(2k+1)^2 = 2(2k^2 + 2k) + 1. Contrapositively, an even square forces an even root.

#The contradiction

The equation a2=2b2a^2 = 2\,b^2 makes a2a^2 even, so aa is even. Write a=2ca = 2c. Substituting gives 4c2=2b24c^2 = 2\,b^2, that is b2=2c2b^2 = 2\,c^2, so b2b^2 is even and bb is even as well. Now 2 divides both aa and bb, which contradicts gcd(a,b)=1\gcd(a, b) = 1.

The assumption was the only thing that could fail, so no such aa and bb exist and 2\sqrt{2} is irrational.

#A wider view

The contradiction is infinite descent in disguise. The step that took (a,b)(a, b) to (b,c)(b, c) produces a strictly smaller solution of the same equation, and no positive integers descend forever. Nothing used the number 2 beyond its being prime, because a prime dividing a square divides its root, so p\sqrt{p} is irrational for every prime pp. Splitting any non-square into primes carries this further, and m\sqrt{m} is irrational whenever mm is not a perfect square.