Let $a,c\in\Bbb R$ and $b,d \in \Bbb N$. Is there a way to determine if
$$a\sqrt b+c\sqrt d$$
can be written as
$$(e+f)^2,$$
with $e,f\in\Bbb R$? If so, is there a way to find what $e$ and $f$, given $a, b,c, $ and $d$?
For example, in my math textbook, it says that $$32-16\sqrt 3=(2\sqrt 6-2\sqrt 2)^2,$$ but they didn't explain how they got there. If someone can explain, that would be great. Thanks!
The question is, what form are $e$ and $f$ to take? Otherwise, the problem is trivially solved since we can write any positive real number $r$ as $(\sqrt r)^2=(1+s)^2$ for some suitable $s,$ for example.
If we take a cue from the example given in your text, then you probably want $e,\,f$ to be the square roots of rationals, so that the question reduces to finding out when a binomial quadratic surd is the square root of another. That is, we want to find conditions on rational $p,\,q$ such that $$\sqrt{\sqrt p\pm\sqrt q}=\sqrt m\pm\sqrt n,$$ for some rational $m,\,n,$ which is standard fare. Square both sides to obtain $$\sqrt p\pm\sqrt q=m+n\pm2\sqrt{mn}.$$ Then we must have one of $\sqrt p$ or $\sqrt q$ to be rational, clearly, and this must be equal to $m+n.$ Secondly we must have $\pm2\sqrt{mn}$ equal to the other summand on LHS. You may examine these conditions further to deduce finer restraints.