this is something that came up when working with one of my students today and it has been bothering me since. It is more of a maths question than a pedagogical question so i figured i would ask here instead of MESE.
Why is $\sqrt{-1} = i$ and not $\sqrt{-1}=\pm i$?
With positive numbers the square root function always returns both a positive and negative number, is it different for negative numbers?
In fact, there are two complex square roots of -1. i and -i. So in fact the answer to your question that it is equal to +i or -i..