Fourier Series

What is a Fourier series?

A Fourier series allows you to decompose a periodic function into a sum of complex sinusoidal waves of frequencies that is integer multiple of its fundamental frequency.

Introduction

Pasted image 20251122220856.png
We can express any closed function as a vector sum of rotating circles moving at different speeds, initial angle and amplitude.

Note

For a function en⋅2iπt. It is rotating n times about the origin within a span of 1s

So any function can be expressed as f(t), f:R↦C. Where f is a linear combination of rotating complex numbers in the form of reit where t∈[0,1]

f(t)=⋯+c−1e−1⋅2πit+c0e0⋅2πit+c1e1⋅2πit…

or more simply

f(t)=∑n=−∞∞cnen⋅2πit

In addition, since

∫eaxdx=1aeax,a≠0

thus

∫01en2πitdt=12πin[e2nπit]01=12πin(1−1)=0,n≠0

However, if n=0.

∫01e0⋅2πitdt=1

To find c0 we can take the integral of f(t) from 0 to 1.

c0=∫01f(t)dt=⋯+c−1∫01e−1⋅2πitdt+c0∫01e0⋅2πitdt+c1∫01e1⋅2πitdt+…=…0+0+c0+0+0⋯

In addition, to find c1, we can take the integral of f(t)⋅e−1⋅2πit from 0 to 1.

c1=∫01f(t)⋅e−1⋅2πitdt=⋯+c−1∫01e(−1−1)⋅2πitdt+c0∫01e(0−1)⋅2πitdt+c1∫01e(1−1)⋅2πitdt+…=c1

Thus, we essentially make the integral in the c1 expression equate to 1. More generally

cn=∫01f(t)e−n⋅2πitdt