Fourier series
Trigonometric form
- - Periodic interval
- , This shows the periodicity
Determining Coefficients
by using Important Trig Identities, We can use the original integrated over a period of the periodic function and get the terms. here means one of all the terms.
\require{cancel} \begin{aligned} \int_0^T f(t) \cos(m\omega_0 t) \, dt = &\ \frac{a_0}{2} \cancel{\int_0^T \cos(m\omega_0 t) \, dt} \\ &+ \sum_{n=1}^{\infty} a_n \int_0^T \cos(n\omega_0 t) \cos(m\omega_0 t) \, dt \\ &+ \cancel{\sum_{n=1}^{\infty} b_n \int_0^T \sin(n\omega_0 t) \cos(m\omega_0 t) \, dt} \end{aligned}$$ Then after all $m \neq n$ terms cancel in middle one,\int_0^T f(t) \cos(m\omega_0 t) , dt = 0 + a_m \left(\frac{T}{2}\right) + 0
$\omega_0T = 2\pi$ Rearranging terms gives,a_m = \frac{2}{T} \int_0^T f(t) \cos\left(\frac{2\pi m t}{T}\right) dt
Similarly for all terms, $$\begin{aligned} a_0 &= \frac{2}{T} \int_{t_0}^{t_0+T} f(t) \, dt \\ a_m &= \frac{2}{T} \int_{t_0}^{t_0+T} f(t) \cos\left(m\omega t\right) dt \\ b_m &= \frac{2}{T} \int_{t_0}^{t_0+T} f(t) \sin\left(m\omega t\right) dt \end{aligned}Complex (Exponential) Form
The trigonometric form works, but it carries two separate coefficient sets (, ) and ugly integration. Rewriting it with complex exponentials collapses everything into one coefficient set and one integral.
Start from Euler's formula (, written in pure maths):
Substituting into the -th trig term:
So each real harmonic splits into a positive-frequency and a negative-frequency exponential. The DC term becomes , and the series is:
Note the sum now runs over all integers, negative included — that is what replaces the separate and series.
Coefficients of the Complex Form
The complex exponentials are orthogonal over one period:
Multiply by and integrate over a period — every term dies except :
One formula, no special case, no factors. Also it's valid for any period , not just -periodic functions.