A complex number $u$ is given by $u = -1+(4\sqrt{3})i$. Find the two square roots of $u$.
Now, I know we have to compare the equation with $a+bi$ but my text book doesn't square both sides in the equation $-1+(4\sqrt{3})i = a+bi$. Only the latter is squared.
Can you explain why?
The fast way uses the remark that, if $z=a+ib$, then $|z|=\sqrt{|u|}$, or $|z|^2=|u|$. So you have the equations \begin{align} &a^2-b^2=-1 \tag{1}\\ &2ab =4\sqrt 3 \tag{2}\\ &a^2+b^2=\sqrt{(-1)^2+16\cdot 3}=7\tag{3} \end{align} Equations $(1)$ and $(3)$ yield instantly $$\begin{cases} 2a^2=6\\ 2b^2=8 \end{cases}\iff a=\pm\sqrt {3},\quad b=\pm2.$$ Using eq. $(2)$, you know $a$ and $b$ have the same sign. Hence $$z=\pm(\sqrt {3}+2i).$$