(-1)/1=1/(-1), take square root of both sides, so sqrt((-1)/1)=sqrt(1/(-1))

use sqrt(a/b)=srt(a)/sqrt(b) *, so i/1=1/i, implies i squared =1.

I think the problem is the part marked *, but I'm not sure in what circumstances this is valid. Can anybody help?