Show solutionHide solution
We prove the statement by contradiction.
Suppose, on the contrary, that \(\sqrt{5}\) is rational. Then we can write
\[ \sqrt{5}=\frac{p}{q}, \]where \(p\) and \(q\) are integers, \(q\neq 0\), and the fraction is in lowest terms, so that \(p\) and \(q\) have no common factor other than \(1\).
Squaring both sides gives
\[ 5=\frac{p^{2}}{q^{2}}, \]and hence
\[ p^{2}=5q^{2}. \tag{1} \]From (1), \(5\) divides \(p^{2}\). Since \(5\) is prime, if a prime divides a square then it divides the number itself; therefore \(5\) divides \(p\). So we may write
\[ p=5m \]for some integer \(m\). Substituting into (1),
\[ (5m)^{2}=5q^{2} \quad\Rightarrow\quad 25m^{2}=5q^{2} \quad\Rightarrow\quad q^{2}=5m^{2}. \]Thus \(5\) divides \(q^{2}\), and again, because \(5\) is prime, \(5\) divides \(q\).
We have shown that \(5\) divides both \(p\) and \(q\). This contradicts the assumption that \(p\) and \(q\) have no common factor other than \(1\).
Therefore our supposition was false, and \(\sqrt{5}\) cannot be rational. Since \(\sqrt{5}\) is a real number, it must be irrational.
Hence \(\sqrt{5}\) is irrational. \(\blacksquare\)