## Using i as an Exponent

Since we can find the square root of i, can we do other operations with $i$?  For instance, can we use $i$ as an exponent?  We sure can.

There is a relationship between imaginary numbers and trigonometry, which produces the multiplication formula

\begin{equation*} \left[r(\cos P+i\sin P)\right]\left[s(\cos Q+i\sin Q)\right]= rs\left[\cos(P+Q)+i\sin(P+Q)\right] \end{equation*}

This formula basically states that multiplication of complex numbers is related to addition of angles.

There is another situation in which multiplication turns into addition, which you may call from your beginning algebra days.  Exponent rules have the property that   $a^x a^y = a^{x+y}$.   So we might expect a connection between complex numbers and exponential functions.  And such a connection does exist!  It is not normally studied until calculus, because of the difficulties in the details.  But we won't let that stop us...

### A definition

In a (usually second semester) calculus course, relationships between functions and "infinite degree polynomials" are studied.  Such relationships are called series representations of the functions.  For our purpose, the important series representations are:

\begin{equation*} e^x = 1+x+\frac{x^2}{2!}+\frac{x^3}{3!}+\frac{x^4}{4!}+\frac{x^5}{5!}+\ldots \end{equation*} \begin{equation*} \cos x = 1-\frac{x^2}{2!}+\frac{x^4}{4!}-\frac{x^6}{6!}+\ldots \end{equation*} \begin{equation*} \sin x = x-\frac{x^3}{3!}+\frac{x^5}{5!}-\frac{x^7}{7!}+\ldots \end{equation*}

You should immediately notice that if the terms of the sine and cosine series were combined, and certain signs changed, that the exponential series would result.  In fact, by introducing the number $i$ into the mix, we can get the following result:

\begin{equation*} e^{ix} = 1+ix-\frac{x^2}{2!}-\frac{ix^3}{3!}+\frac{x^4}{4!}+\frac{ix^5}{5!}-\ldots = \cos x + i\sin x \end{equation*}

This result is often used as a the beginning of a definition of complex number exponents.

### Some examples

Let's substitute some numbers.

Using a value of 1 for $x$, we get   $e^i = \cos 1 + i\sin 1 \approx 0.5403+0.8415i$.

Using $\pi$ for the value of $x$, we get   $e^{i\pi} = \cos\pi + i\sin\pi =-1+0i=-1$.   This result is often written as   $e^{i\pi}+1=0$.   It is considered a quite remarkable relationship between five important numbers of mathematics: the additive identity 0, the multiplicative identity 1, the imaginary unit $i$, and the constants $e$ and $\pi$.

### Different bases

What if we want to raise other numbers to the power $i$?  We can use the following relationship:   $a^x = (e^{\ln a})^x = e^{x \ln a}$.

Using base $2$ and exponent $i$, we get   $2^i = e^{i\ln 2} = \cos\ln 2+i\sin\ln 2 \approx 0.7692+0.6390i$.   (This is actually the principal value of $2$ to the $i$ power, there are other values which are possible.)

Using base $i$ and exponent $i$, we get:   $i^i = e^{i\ln i} = e^{i\ln\left(\cos\frac{\pi}{2}+i\sin\frac{\pi}{2}\right)} = e^{i\ln e^{\frac{i\pi}{2}}} = e^{\frac{-\pi}{2}}$.   This is another amazing result.  An imaginary number to an imaginary power is a real number!  In this case, the number is approximately $0.2079$.  (Although this is also the principal value, one of many possible values.)

### General formula

Let's get a general formula for a complex number to a complex power.  (In the process, we will see why powers can have many answers.)  We begin with   $(a+bi)^{c+di} = e^{(c+di)\ln(a+bi)}$.   Then we can rewrite   $a+bi$   in trigonometric form, say   $r(\cos P+i\sin P)$.   But we found a relationship between trigonometry and complex exponentials, so this number also has a complex exponential form,   $re^{iP}$.   Substituting this form into the exponent of our original equation, we have   $(a+bi)^{c+di} = e^{(c+di)\ln re^{iP}}$.   This can be simplified to obtain   $(a+bi)^{c+di} = e^{(c\ln r-dP)+i(d\ln r+cP)}$.   The real and imaginary parts of this exponent can be simplified separately, to obtain the result:

\begin{equation*} (a+bi)^{c+di} = r^c e^{-dP}\left[\cos(d\ln r+cP)+i\sin(d\ln r+cP)\right] \end{equation*}

So why can this formula give many answers?  Because there are many ways to describe the angle $P$.  So we allow the variable $P$ in the above formula to vary by multiples of $2\pi$.   This gives our final result:

\begin{equation*} (a+bi)^{c+di} = r^c e^{-dP}\left[\cos(d\ln r+cP+2ck\pi)+i\sin(d\ln r+cP+2ck\pi)\right] \end{equation*}

### Epilogue

Once you have mastered imaginary exponents, you can do almost any function involving imaginary numbers.  Read on in Functions of Complex Numbers, where you will learn how to do logarithms, trigonometric, and hyperbolic functions, and their inverses.