Alexander Bass
This note is one of many taken during 2025

Complex Exponentials and Trigonometric functions

The value of the exponential function with an imaginary input is of interest.

eix=? e^{ix} = ?

Using the well known series expansion of the exponential function:

ex=n=0xnn! e^{x} = \sum_{n=0}^{\infty} \frac{x^{n}}{n!}

Substitute in imaginary constant

eix=n=0(i)nxnn! e^{ix} = \sum_{n=0}^{\infty} \frac{(i)^{n}x^n}{n!}

There is no direct way to simplify this expression as (i)n(i)^n doesn’t directly work out to anything nice. This expression is equivalent to a few other, more-useful ones.

eix=n=0(i)nxnn!=n=0(i)2nx2n(2n)!+(i)2n+1x2n+1(2n+1)!=n=0(i)4nx4n(4n)!+(i)4n+1x4n+1(4n+1)!+(i)4n+2x4n+2(4n+2)!+(i)4n+3x4n+3(4n+3)! \begin{aligned} e^{ix} &= \sum_{n=0}^{\infty} \frac{(i)^{n}x^n}{n!}\\ &= \sum_{n=0}^{\infty} \frac{(i)^{2n}x^{2n}}{(2n)!} + \frac{(i)^{2n+1}x^{2n+1}}{(2n+1)!}\\ &= \sum_{n=0}^{\infty} \frac{(i)^{4n}x^{4n}}{(4n)!} + \frac{(i)^{4n+1}x^{4n+1}}{(4n+1)!} + \frac{(i)^{4n+2}x^{4n+2}}{(4n+2)!} + \frac{(i)^{4n+3}x^{4n+3}}{(4n+3)!} \end{aligned}

Now the powers of ii can be simplified

i4n=i4n=1i4n+1=i4ni=ii4n+2=i4ni2=1i4n+3=i4ni3=i \begin{aligned} i^{4n} &= i^{4^n} = 1\\ i^{4n+1} &= i^{4n}i = i\\ i^{4n+2} &= i^{4n}i^2 = -1\\ i^{4n+3} &= i^{4n}i^3 = -i \end{aligned}

Back-substituting these into the above sum

eix=n=0x4n(4n)!+ix4n+1(4n+1)!x4n+2(4n+2)!ix4n+3(4n+3)! e^{ix} = \sum_{n=0}^{\infty}\frac{x^{4n}}{(4n)!}+i\frac{x^{4n+1}}{(4n+1)!}-\frac{x^{4n+2}}{(4n+2)!}-i\frac{x^{4n+3}}{(4n+3)!}

Remember the power series for sine and cosine

sin(x)=n=0x2n+1(1)n(2n+1)!cos(x)=n=0x2n(1)n(2n)! \begin{aligned} \sin(x) &=\sum_{n=0}^{\infty} \frac{x^{2n+1}(-1)^{n}}{(2n+1)!}\\ \cos(x) &=\sum_{n=0}^{\infty} \frac{x^{2n}(-1)^{n}}{(2n)!} \end{aligned}

Reorder series

eix=n=0x4n(4n)!x4n+2(4n+2)!+ix4n+1(4n+1)!ix4n+3(4n+3)! e^{ix} = \sum_{n=0}^{\infty}\frac{x^{4n}}{(4n)!} - \frac{x^{4n+2}}{(4n+2)!} + i \frac{x^{4n+1}}{(4n+1)!} - i\frac{x^{4n+3}}{(4n+3)!}

Split sums based on evens, and odds

eix=[n=0x4n(4n)!x4n+2(4n+2)!]+[in=0x4n+1(4n+1)!x4n+3(4n+3)!] \begin{aligned} e^{ix} &= \left[{\sum_{n=0}^{\infty}\frac{x^{4n}}{(4n)!} - \frac{x^{4n+2}}{(4n+2)!}}\right]\\ &+ \left[i\sum_{n=0}^{\infty} \frac{x^{4n+1}}{(4n+1)!} - \frac{x^{4n+3}}{(4n+3)!}\right] \end{aligned}

Notice the first sum is simply iterating over the even numbers, and the second is iterating over the odds. Simplify

eix=[n=0x2n(1)n(2n)!]+[in=0x2n+1(1)n(2n+1)!] \begin{aligned} e^{ix} &= \left[{\sum_{n=0}^{\infty}\frac{x^{2n}(-1)^n}{(2n)!}}\right]\\ &+ \left[i\sum_{n=0}^{\infty} \frac{x^{2n+1}(-1)^{n}}{(2n+1)!} \right] \end{aligned}

Notice

eix=cosx+isinx e^{ix} = \cos{x} + i\sin{x}

With Negatives

Recall these two properties of sine and cosine

sin(x)=sin(x)cos(x)=cos(x) \begin{aligned} \sin(-x) &= -\sin(x)\\ \cos(-x) &= \cos(x)\\ \end{aligned}

With that, use the exponential function with a negative imaginary number

eix=cosxisinx e^{-ix} = \cos{x} - i\sin{x}

We can now solve for cosine and sine using the exponential function.

eix+eix=2cosx e^{-ix} + e^{ix} = 2\cos{x}

cosx=eix+eix2 \cos{x} = \frac{e^{ix} + e^{-ix}}{2} eixeix=2sinx e^{ix} - e^{-ix} = 2\sin{x}

sinx=eixeix2 \sin{x} = \frac{e^{ix} - e^{-ix}}{2}
This note is one of many taken during 2025