According to Fourier's theorem, any continuous, cyclic
function can be approximated by a series of cosine and sine functions called a Fourier Series:
By the use of Euler's identity,
a Fourier series can be expressed as an exponential:
For example, the square wave:
can be approximated by the following series: