Let $m$ be a positive square-free integer, and a number $z\in Q(\sqrt{m})$ is given. How to find a square root of $z$, if it exists in $Q(\sqrt{m})$?
Here $Q$ is the field of rational numbers.
I am asking for a reference or an explanation of an algorithm. Of course, I can look for a square root in the form $x+y\sqrt{m}$, square this, and obtain a system of quadratic equations. But solving this system leads again to a question of the same kind. Namely, if $z=a+b\sqrt{m}$ I obtain: $$x^2+my^2=a,$$ $$2xy=b.$$ This is equivalent to a biquadratic equation $4x^4-4ax^2+mb^2=0$, and $x^2=(4a\pm\sqrt{16a^2-mb^2})/8$, so I am back to a problem of the same kind.
For example, for the $\sqrt{15/2+(5/2)\sqrt{5}}$. I can guess the answer, but I want to have an algorithm.