We will prove this by contradiction. Assume
\(\sqrt{2}\) is rational. Then
\(\sqrt{2}=\frac{p}{q}\) with
\(p, q\in\mathbb{Z}, q\neq 0\text{.}\) We will additionally assume
\(p\) and
\(q\) have no common factors. [Note, this additional assumption just makes the proof simpler. You should convince yourself that it is reasonable to add this assumption--that given any fraction, we can always reduce so
\(p\) and
\(q\) have no common factors.]
Now, using algebra on the equation,
\begin{align*}
\sqrt{2}&=\frac{p}{q}\\
2&=\frac{p^2}{q^2}\\
2q^2&=p^2.
\end{align*}
Since
\(q^2\in\mathbb{Z}\text{,}\) \(p^2\) must be even. Then by
LemmaΒ 3.4.4,
\(p\) must be even.
Since \(p\) is even, \(p=2k\) for some \(k\in \mathbb{Z}\text{.}\) Thus, we can substitute into the above equation.
\begin{align*}
2q^2&=(2k)^2\\
2q^2&=4k^2\\
q^2&=2k^2.
\end{align*}
Since
\(k^2\in\mathbb{Z}\text{,}\) \(q^2\) must be even. Then by
LemmaΒ 3.4.4,
\(q\) must be even.
But now we have
\(p\) and
\(q\) both even, which means they both have a common factor of 2. This contradicts our assumption that
\(p\) and
\(q\) have no common factors. Since we reached a contradiction, we can conclude that
\(\sqrt{2}\) is irrational.