I'm confused as to what you mean by "rotating a point". Do you mean rotate around the origin? If you mean "rotate the point 2+ i 90 degrees about the origin", you don't need a formula for a general rotation. Rotating the x-axis 90 degrees takes it into the positive y-axis. Rotating the positive y-axis 90 degrees takes it into the negative x-axis. That is, the point (x,y) is rotated into the point (-y, x).
Cexy
Oct4-08, 07:21 AM
It sounds as though you're trying to rotate the complex plane around the point 2+i, rather than rotating the point 2+i around the origin. In this case you're doing the right thing: Given a complex number z, you first translate so that 2+i is at the origin (ie subtract 2+i) then you rotate by 90 degrees (ie multiply by i) and finally you translate back so that the point 2+i is back where it started. Step-by-step:
z -> z - (2+i)
z -> iz
z -> z + (2+i)
so if you combine all of these into a single mapping you get
z -> iz + 3 - i
You can check that plugging 2+i into this formula just gives you 2+i back.
If you wanted to rotate by an arbitrary angle theta, then you replace step 2 by