Prove or disprove: If $x$ is irrational, then $\sqrt{x}$ is irrational.
$p:\:x$ is irrational
$q: \:\sqrt{x}$ is irrational
Prove by contrapositive: $(p \Rightarrow q) \iff (\lnot q \Rightarrow \lnot p)$
Proof: Suppose $\sqrt{x}$ is rational, let $\sqrt{x}=\frac{m}{n}$ for some integer $m, n$, and $n \ne 0$.
Then, $x= (\sqrt{x})^2 = \frac{m^2}{n^2}$. Since $m, n$ are integers, then $\frac{m^2}{n^2}$, so, $x$ is rational. $\blacksquare$
What is wrong with this proof?
Someone gave a counterexample: let $x=-\sqrt{2}$, then $\sqrt{x}$ is not a real number. Hence, irrational. But, my contrapositive proof seems perfectly fine though.