Euler’s formula states that $latex e^{ix} =\cos{x}+ i \sin{x}$. When $latex x = \pi$, the formula becomes $latex e^{\pi} = -1$ known as Euler’s identity.
An easy derivation of Euler’s formula is given in [3] and [5]. According to Maclaurin series (a special case of taylor expansion $latex f(x)=f(a)+f'(a)(x-a)+\frac{f”(a)}{2!}(x-a)^2+\cdots$ when $latex a=0$),
$latex e^x=1+x+\frac{x^2}{2!}+\frac{x^3}{3!}+\frac{x^4}{4!}+\cdots &s=2$
Therefore, replacing $latex x$ with $latex ix$, we have
$latex e^{ix}=1+ix-\frac{x^2}{2!}-\frac{x^3}{3!}+\frac{x^4}{4!}+\frac{x^5}{5!}-\cdots &s=2$
By Maclaurin series, we also have
$latex \cos{x}=1-\frac{x^2}{2!}+\frac{x^4}{4!}-\frac{x^6}{6!} + \cdots \newline \sin{x}=x -\frac{x^3}{3!}+\frac{x^5}{5!}-\cdots&s=2$
Therefore, we can rewrite $latex e^{ix} &s=2$ as $latex e^{ix}=\cos{x}+i\sin{x} &s=2$
Intuitive understanding of $latex e^{ix}=\cos{x}+i\sin{x} &s=2$ is illustrated in [1] together with its own video [4], as well as in 3Blue1Brown’s two videos [6][7].
First, from a conventional view of coordinate system, $latex e^{ix}=\cos{x}+i\sin{x} &s=2$ means a point with x coordinate $latex \cos{x}$ and y coordinate $latex \sin{x}$ on a unit circle (centered at the origin with radius 1) in the complex plane.
Another view is that $latex e^{ix}$ describes the point that moves distance $latex x$ from (1,0) along the circumference of the unit circle.
The last view, which is similar to the second view, is that $latex e^{ix}$ specifies the point such that the degree between the x axis and the line connects that point to the origin is radiant x .
For example, $latex e^{i \cdot 1}$ viewed in x&y coordinates:
or viewed from the moving perspective:
or viewed from the radiant perspective:
As pointed out by [1], we can think of normal exponential as stretching an axis such that number 1 is stretched to a point denoting the exponential result. For example, $latex 2^3$ means 1 is stretched to 8, or 1 is stretched to 2 first, then that point is stretched to 4, then finally that point is stretched to 8. However, complex exponential $latex e^{ix}$ means to rotate from the point (1,0) at a constant rotation speed $latex x$. Therefore, Euler’s identity can be interpreted as starting from point (1,0), a point moves half of the circle (radiant $latex \pi$) and ends up at (-1, 0), therefore $latex e^{\pi}=-1$. A good diagram summarizing this intuition is as below:
Why understanding Euler’s formula as a point rotating on a unit circle helps? One example in which Euler’s formula is useful is Fourier transform. The goal of Fourier transform is to turning signals measured in time space into analyzable, frequency-based spectrum. Fourier transform is intuitively illustrated in BetterExplained [8, 3Blue1Brown’s [9], and Math StackExchange [16]. Below is notes taken based on [9].
A concrete example to apply Fourier transform is to analyze a signal which mixes two different signals, each of a constant frequency. In the example, suppose we can only measure the blended signal (green), while we want to tell posthumously that it actually composes of the pink signal (for example, 2Hz) and the yellow signal (for example, 3Hz).
The magic idea of Fourier transform is that if you transform the signal measured in the Pressure vs. Time space into a rotating motion in a 2D plane, it will looks like the diagram below:
Depending on the frequency of rotating motion, the diagram on the 2D plane may be different.
An important observation is that if you look at the center of mass of the diagram based on any rotating frequency, you will see that the center of mass is farthest away from the origin when the frequency of rotating motion matches the frequency of either individual signal (2Hz or 3Hz).
Therefore, to recover original signals, we need to try out every possible frequency of rotating motion and just obtain the location of the center of mass of the diagram for each frequency of rotating motion, then we would know what are the frequencies of the original individual signals.
The center of mass can be obtained by sampling and averaging of the data points on the diagram, while the diagram is mapped onto a 2D complex plane:
When the number of samples goes to infinite, it becomes integral.
Fourier transform, following this idea, is only different in that the integral is from negative infinity to positive infinity, and there is no final average over time ($latex \frac{1}{t_2-t_1}$ removed).
Here is an example [15] where Fourier transform is applied on $latex f(t)=\cos(2\pi st)$. The result is two Dirac Delta functions on the frequency domain.
The transform process is based on trigonometry. In the second to the last equation, when $latex u=\pm s$, $latex \int_{-\infty}^{\infty} \cos{(2\pi st)} \cos{(2\pi ut)} dt =\int_{-\infty}^{\infty} \cos^2{(2\pi st)} dt = \int_{-\infty}^{\infty} \frac{1}{2} dt + \frac{1}{2} \int_{-\infty}^{\infty} \cos{(4\pi st)} dt = \frac{1}{2} \cdot \infty + \frac{1}{2} \int_{-\infty}^{\infty} \cos{(4\pi st)} dt &s=2$
According to [10], although $latex \int_{-\infty}^{\infty} \cos{(4\pi st)} dt &s=2$ does not converge, I have seen many places [15, 18] treating $latex \int_{-\infty}^{\infty}\cos{(4\pi st)} dt=0 &s=2$. I don’t understand this, but I could think it in an intuitive way: although $latex \int_{-\infty}^{\infty}\cos{(4\pi st)} dt &s=2$ does not converge, its values is confined in a limited range ($latex \leq 2$). Compared to the infinity we obtain from $latex \int_{-\infty}^{\infty} \frac{1}{2} dt &s=2$, the value of $latex \int_{-\infty}^{\infty}\cos{(4\pi st)} dt &s=2$ is infinitely close to zero.
Another idea is to solve the integration based on Euler’s formula [17][20]. Based on Euler’s formula, we can get $latex \cos{(x)}=\frac{1}{2}(e^{ix} + e^{-ix}) &s=2$. Also, Dirac Delta function is defined as (its proof, which I don’t fully understand, can be found on [11, 12, 13]):
$latex \delta(x)= \frac{1}{2\pi} \int_{-\infty}^{\infty} e^{-jxt}dt &s=2$
Or equivalently, $latex \delta(x) =\int_{-\infty}^{\infty} e^{-j2\pi xt}dt &s=2$
Therefore, we can finally get (based on [17][20], with a little difference because they transform $latex \cos(\omega_0 t)$ rather than $latex \cos(2\pi st)$):
:
According to the linear property of Fourier transform [19], if a blended signal is the sum of several signals (for example, $latex \cos(2\pi st)+\cos(3\pi st)$, then the resultant Fourier transform is the sum of several Dirac functions. That’s how Fourier transform extracts individual signals from the mixed one! And the connection between Euler’s formula and Fourier transform is that the integration required by Fourier transform to obtain the center of mass of the rotation diagram, if connected to Euler’s formula, can be calculated very easily.
[14] is another illustrative video showing that any signal we can measure can be actually seen as a combination of an infinite number of sine waves. For repeating waves in time space, its Fourier transform may shown as discrete frequency spectrum (like several Dirac deltas). However, non-repeating waves in time space may result to continuous frequency spectrum after Fourier transform. This is interesting to know but I will not explore further within this article.
References
[1] https://betterexplained.com/articles/intuitive-understanding-of-eulers-formula/
[4] https://www.youtube.com/watch?v=qpOj98VNJi4
[5] https://en.wikipedia.org/wiki/Euler%27s_formula#Using_power_series
[6] https://www.youtube.com/watch?v=F_0yfvm0UoU
[7] https://www.youtube.com/watch?v=mvmuCPvRoWQ
[8] https://betterexplained.com/articles/an-interactive-guide-to-the-fourier-transform/
[9] https://www.youtube.com/watch?v=spUNpyF58BY
[10] https://www.wolframalpha.com/input/?i=integrate+cos(x)+from+-infinity+to+infinity
[11] http://fourier.eng.hmc.edu/e102/lectures/ExponentialDelta.pdf
[13] https://www.quora.com/Why-are-integrals-of-complex-exponentials-delta-functions
[14] https://www.youtube.com/watch?v=r18Gi8lSkfM
[15] https://www.astro.umd.edu/~lgm/ASTR410/ft_ref2.pdf
[16] https://math.stackexchange.com/questions/1002/fourier-transform-for-dummies
[17] https://www.youtube.com/watch?v=jPM76k-uNnA
[18] https://blog.mide.com/fourier-transform-basics
[19] https://en.wikipedia.org/wiki/Fourier_transform#Properties_of_the_Fourier_transform