I'm trying to learn more about mathematical proofs, what's allowed, what's not, etc. I remembered seeing a video about $\sqrt{i}$ and wanted to tackle the problem myself. Here's what I came up with:
$\sqrt{i} = i^{1/2} = e^{\ln(i^{1/2})}=e^{\frac12\ln(i)}=e^{\frac12*i\pi/2}=e^{i\frac{\pi}4}$
$e^{i\theta}=\cos(\theta)+i\sin(\theta)$. It follows that:
$ e^{i\frac{\pi}4}=\cos(\frac{\pi}4)+i\sin(\frac{\pi}4) = \frac{\sqrt2}2+i\frac{\sqrt2}2$.
Squaring this quantity does in fact result in $i$. However, the periodicity of trigonometric functions seems to imply further solutions. How can they be found? Also, how can I improve my proof?
Writing $\sqrt i$ is not a good idea, because you don't know which root you are talking about (there are two of them). With positive numbers, this is not an issue because we have the convention that $\sqrt a$ means the positive square root of the positive number $a$.
When looking for $z$ with $z^2=i$, we may write $z=re^{ it}$. Since $|i|=1$, we easily see that $r=1$. Then $$ z^2=e^{2it}. $$ So $z^2=i$ precisely when $2t=\frac\pi2+2k\pi$. We may rewrite this as $$t=\frac\pi4+k\pi.$$ Only two choices of $k$ will produce a different $z$, namely when $k$ is even or odd. So we may take $$t_1=\frac\pi4, \ \ t_2=\frac\pi4+\pi=\frac{5\pi}4.$$ This gives us the two roots $$ z_1=e^{i\pi/4},\ \ \ z_2=e^{5i\pi/4}. $$ We can write this more explicitly, since $\sin\pi/4=\cos\pi4=\sqrt2/2$, as $$ z_1=\frac{\sqrt2}2+i\frac{\sqrt2}2,\ \ \ z_2=-\frac{\sqrt2}2-i\frac{\sqrt2}2. $$ One can save a bit of work by noticing that if $z_1$ is a root of $z_0$, then $-z_1$ is also a root; and that every complex number has precisely two roots, given by the even/odd choice of $k$ as above.