I was tying to solve (1) $\sqrt{x} + \sqrt{-x} = 1$
$\sqrt(x)(1+i) = 1 \rightarrow \sqrt(x) = \frac{1}{1+i} \rightarrow x=-\frac{1}{2}i$
One can see that by symmetry $x=\frac{1}{2}i$ is also a solution.
Question1, Why doesnt solving (1) directly give two solutions?
Now check by filling in x in (1)
$x=\frac{1}{2}i$ can be written as $\frac{1}{2}e^{i\frac{1}{2}\pi}$
$x=-\frac{1}{2}i$ can be written as $\frac{1}{2}e^{i\frac{3}{2}\pi}$ or as $\frac{1}{2}e^{i\frac{-1}{2}\pi}$
$\sqrt{\frac{1}{2}e^{i\frac{1}{2}\pi}} + \sqrt{\frac{1}{2}e^{i\frac{-1}{2}\pi}} = \sqrt\frac{1}{2}.(e^{i\frac{1}{4}\pi}+e^{i\frac{-1}{4}\pi}) = \sqrt\frac{1}{2}.( (\sqrt\frac{1}{2}+i\sqrt\frac{1}{2})+ (\sqrt\frac{1}{2}-i\sqrt\frac{1}{2})) = 1$ OK
But using $\frac{1}{2}e^{i\frac{3}{2}\pi}$
$\sqrt{\frac{1}{2}e^{i\frac{1}{2}\pi}} + \sqrt{\frac{1}{2}e^{i\frac{3}{2}\pi}} = \sqrt\frac{1}{2}.(e^{i\frac{1}{4}\pi}+e^{i\frac{3}{4}\pi}) = \sqrt\frac{1}{2}.( (\sqrt\frac{1}{2} +i\sqrt\frac{1}{2})+ (-\sqrt\frac{1}{2}+i\sqrt\frac{1}{2})) = i$ NOT OK
Question2, What am i doing wrong here, this probably has someting to do with "primitive roots". But I dont see it.
Both (1) and (2) have the same explanation: The definition of $\sqrt{a}$ for complex $a$ depends on a choice of branch, and your computation assumes a particular choice. For another choice, we would have $\sqrt{-1} = -i$. Analyzing all the possibilities gives two solutions, $x = \pm \frac{i}2$.