We proceed by contradiction. Suppose
\(\sqrt{2}\) is rational. Then there exists integers
\(p\) and
\(q\) , with
\(q \neq 0\) such that
\(\sqrt{2} = \frac{p}{q}\text{.}\) Note that we can arrange that the fraction is in lowest terms by canceling common factors, so without loss of generality assume that
\(p\) and
\(q\) have no common factors.
Squaring both sides of
\(\sqrt{2} = \frac{p}{q}\) yields
\(2 = \frac{p^2}{q^2}\text{.}\)
Multiplying both sides by
\(q^2\) we get
\(2q^2 = p^2\text{.}\) Because
\(q^2\) is an integer this means that
\(p^2\) is even. It follows with
ExampleΒ 1.4.3.2 that
\(p\) is even. So there exists an integer
\(k\) such that
\(p =2k\text{.}\)
With
\(p=2k\) we get
\(2q^2 = (2k)^2 = 4k^2\text{.}\) Dividing by
\(2\text{,}\) we obtain
\(q^2 =2k^2\) which implies that
\(q^2\) is even. Again, it follows with
ExampleΒ 1.4.3.2 that
\(q\) is even.
From our assumption that
\(\sqrt{2}\) is a rational number we have deduced that
\(p\) and
\(q\) must be even. This contradicts our assumption that
\(p\) and
\(q\) have no common factor.
Thus
\(\sqrt{2}\) cannot be a rational number, which means that
\(\sqrt{2}\) is irrational.