Playing with Maple, I noticed that it gives the square root of $c = 1+\frac{\sqrt3}{2}$ as equal to $a = \frac{1}{2}+\frac{\sqrt3}{2}$.
Indeed it checks out. But I got curious: how can I find that value, or more generally any square root of numbers of the form $x+y\sqrt{k}$?
I was able to do it the following way: the square of $z = x+y\sqrt{k}$ is also of the same form. Therefore, I can suppose there is a number of that form whose square is equal to $z$.
In my case, I want to find $(x,y)$ such that $(x+y\sqrt3)^2 = 1+\frac{\sqrt3}{2}$. I developed, which yields $(x^2+3y^2) + 2xy\sqrt3 = 1+\frac{\sqrt3}{2}$. Then I matched the coefficients of $1$ and of $\sqrt3$ on both sides, to get the system:
$x^2+3y^2 = 1$
$2xy = \frac{1}{2}$
Solving for $x$ and $y$, I got $x = ±\frac{1}{2}$ and $y = ±\frac{1}{2}$ (there is another pair of solutions that compute to the same number). QED.
Is my method correct? Is there any more efficient way? Is it possible to prove that a solution of the form $z = x+y\sqrt{k}$ always exist and if not, when?
Thanks.