for $z^2=-1$. we have $z^2=e^{i(\pi +2k\pi)}$=>$z=e^{i(\frac{\pi}{2}+k\pi)}=cos(\frac{\pi}{2}+k\pi))+i sin(\frac{\pi}{2}+k\pi))$,
we have here two roots . for $k =0$ we have $z=i$, And for $k=1, z=-i$
did I miss something here in terms of roots.?
for $z^2=-1$. we have $z^2=e^{i(\pi +2k\pi)}$=>$z=e^{i(\frac{\pi}{2}+k\pi)}=cos(\frac{\pi}{2}+k\pi))+i sin(\frac{\pi}{2}+k\pi))$,
we have here two roots . for $k =0$ we have $z=i$, And for $k=1, z=-i$
did I miss something here in terms of roots.?
Yes you missed something: the simplest way to solve this equation. Recall that if two complex numbers $a$ and $b$ satisfy $a^2=b^2$ then $a=b$ or $a=-b$. Now: $$z^2=-1=i^2\iff z=i\textbf{ or } z=-i$$ and it is over.