Dulranga's Notes
Semester 3MathematicsDifferential EquationsFourier Transform

Fourier series

Trigonometric form

f(t)=a02+∑n=1∞ancos⁡(nωt)+∑n=1∞bnsin⁡(nωt)f(t) = \frac{a_0}{2} + \sum_{n=1}^{\infty} a_n \cos\left(n\omega t\right) + \sum_{n=1}^{\infty} b_n \sin\left(n\omega t\right)
  • TT - Periodic interval
  • ωT=2π\omega T = 2\pi , This shows the periodicity

Determining Coefficients

by using Important Trig Identities, We can use the original f(t)f(t) integrated over a period of the periodic function and get the a0,am,bma_0, a_m, b_m terms. here mm means one of all the nn 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 (ama_m, bmb_m) and ugly cos⁡/sin⁡\cos/\sin integration. Rewriting it with complex exponentials collapses everything into one coefficient set and one integral.

Start from Euler's formula (j=−1j = \sqrt{-1}, written ii in pure maths):

ejθ=cos⁡θ+jsin⁡θ⟹cos⁡θ=ejθ+e−jθ2,sin⁡θ=ejθ−e−jθ2je^{j\theta} = \cos\theta + j\sin\theta \qquad\Longrightarrow\qquad \cos\theta = \frac{e^{j\theta}+e^{-j\theta}}{2}, \quad \sin\theta = \frac{e^{j\theta}-e^{-j\theta}}{2j}

Substituting θ=nω0t\theta = n\omega_0 t into the nn-th trig term:

ancos⁡(nω0t)+bnsin⁡(nω0t)=an−jbn2⏟cnejnω0t+an+jbn2⏟c−ne−jnω0ta_n \cos(n\omega_0 t) + b_n \sin(n\omega_0 t) = \underbrace{\frac{a_n - j b_n}{2}}_{c_n} e^{jn\omega_0 t} + \underbrace{\frac{a_n + j b_n}{2}}_{c_{-n}} e^{-jn\omega_0 t}

So each real harmonic splits into a positive-frequency and a negative-frequency exponential. The DC term becomes c0=a0/2c_0 = a_0/2, and the series is:

f(t)=∑n=−∞∞cn ejnω0t,ω0=2πT\boxed{f(t) = \sum_{n=-\infty}^{\infty} c_n \, e^{jn\omega_0 t}}, \qquad \omega_0 = \frac{2\pi}{T}

Note the sum now runs over all integers, negative nn included — that is what replaces the separate cos⁡\cos and sin⁡\sin series.

Coefficients of the Complex Form

The complex exponentials are orthogonal over one period:

∫t0t0+Tejnω0t e−jmω0t dt={T,n=m0,n≠m\int_{t_0}^{t_0+T} e^{jn\omega_0 t} \, e^{-jm\omega_0 t} \, dt = \begin{cases} T, & n = m \\[4pt] 0, & n \neq m \end{cases}

Multiply f(t)f(t) by e−jmω0te^{-jm\omega_0 t} and integrate over a period — every term dies except n=mn = m:

∫t0t0+Tf(t) e−jmω0t dt=cmT\int_{t_0}^{t_0+T} f(t)\, e^{-jm\omega_0 t} \, dt = c_m T cn=1T∫t0t0+Tf(t) e−jnω0t dt\boxed{c_n = \frac{1}{T} \int_{t_0}^{t_0+T} f(t) \, e^{-jn\omega_0 t} \, dt}

One formula, no n=0n=0 special case, no 2/T2/T factors. Also it's valid for any period TT, not just 2π2\pi-periodic functions.

On this page