You're no doubt familiar with Euler's expression
exp(i x) = cos(x) + i sin(x)
You're probably also familiar that logarithms can be expressed in any base you'd like, like this:
loga x = ( logb x ) / ( logb] a )
For example, if your calculator has only log base 10, and you want to compute log2 16, you could enter
log10 16 / log10 2
We can put these facts together to good use.
To start with, let's try a simple one: express 2i in the a + bi form. We can express 2i as a power of e by solving this equation:
2i = ex
i ln 2 = x
We've just used the logarithm rule I described above in "reverse." So we've just changed the problem to expressing exp(i ln 2) in a + bi form. Now we can just apply Euler's identity, and we get
exp(i ln 2) = cos(ln 2) + i sin(ln 2).
Thus 2i = cos(ln 2) + i sin(ln 2), as we wished to find.
Now let's try 21 + i. I'm going to skip all the fanfare and just show the steps.
21+i = ex
(1+i) ln 2 = x
e(1+i) ln 2 = 21+i
eln 2 + i ln 2
eln 2 ei ln 2
2 ei ln 2
2 [ cos(ln 2) + i sin(ln 2) ]
2 cos(ln 2) + 2 i sin(ln 2)
Hope this helps.
- Warren