Background: So, just for fun, I was trying to analyze the types of soultion one may recieve from a quadratic equation, the solutions from $\mathbb{Z},\mathbb{R},\mathbb{C}$ was all rather easy, but when it comes to solutions in $\mathbb{Q}$, I tried applying the rational root theorem but that one has a few criteria that wasn't especially well suited for my needs (or rather, I didn't find a way to apply it). So, here's my question:
Given a rational number $a/b$, when is its square root rational?
Please note that I'm not just asking about square roots of integers, but actually any rational number, such as $1/2$.
My attempt We have $Q = a/b : a,b \in \mathbb{Z}$ and thus: $$\sqrt{Q}=\sqrt{\frac{a}{b}} = \frac{\sqrt{a}}{\sqrt{b}} = \frac{\sqrt{ab}}{b}$$ hence we can deduct that if $a=b^{2k+1} \neq 0 : k \in \mathbb{Z}\rightarrow \sqrt{ab} \in \mathbb{Q}$, then the expression as a whole is rational. That is, since $b^{2k+1}\times b = b^{2m} : m,k \in \mathbb{Z}$ then $\sqrt{b^{2m}}=(b^{2m})^{\frac{1}{2}}=b^{m}$ which is clearly rational.
It seems reasonable that this would be a equivalent relation, but I can't figure out how to prove it.
Thanks in advance.