Originally posted by ...
hahaha..err..ok, but be careful, u'll probably die laughting at my stupidity..
Don't be afraid to ask questions - asking a question to help improve your understanding is never a stupid thing to do. In any case, I understand the problem now, so let me explain further.
I started out by saying to express -i in mod-arg form. This you do by the method describe by martin310015 above, ie:
|-i| = 1
arg(-i) = - arg(i) = -pi / 2
So, -i = cos(-pi/2) + isin(-pi/2)
In the statement that you quoted, I went on to say:
So, z<sup>2</sup> = cos(-pi/2) + isin(-pi/2) = cos(2k * pi - pi/2) + isin(2k * pi - pi/2), where k is any integer.
This is a statement about the values of z<sup>2</sup>, not the values of z, and I have not (at that point) applied De Moivre's Theorem. This I do in going to the next line, which I'll now do showing all the working:
z<sup>2</sup> = cos(2k * pi - pi/2) + isin(2k * pi - pi/2), where k is any integer
So, by square rooting, z = [cos(2k * pi - pi/2) + isin(2k * pi - pi/2)]<sup>1/2</sup>
= cos[(2k * pi - pi/2) * (1 / 2)] + isin[(2k * pi - pi/2) * (1 / 2)], applying De Moivre's theorem
= cos[(2k * pi) * (1 / 2) - (pi / 2) * (1 / 2)] + isin[(2k * pi) * (1 / 2) - (pi / 2) * (1 / 2)]
= cos(k * pi - pi/4) + isin(k * pi - pi/4)
We can now take any integer values of k we like, but we only need to take two consecutive values, as all others will just be repeats of previous answers. I chose k = 0 and k = 1 for convenience, but you could have used any to consecutive integers.
This then produces the two answers z = cos(-pi/4) + isin(-pi/4) = (1 / sqrt(2)) + i * (-1 / sqrt(2)) = (1 - i) / sqrt(2)
and z = cos(3pi/4) + isin(3pi/4) = (-1 / sqrt(2)) + i * (1 / sqrt(2)) = (-1 + i) / sqrt(2).
Ask again if this still isn't clear
Ragerunner, k can be any integer, and you are getting confused about principal arguments. We usually try to choose k values such that the argument satisifies (-pi, pi] - indeed, this is why I took k = 0 and k = 1 - but it is the argument - in this case (k * pi - pi/4) - that we restrict, not k. As ryan.cck has noted, you can always adjust to be a principal argument later, if you choose values of k poorly.