Euler's formula
and using Euler's formula to convert to exponentials,