Skip to main content

Fourier Transform

Jia-YinAbout 2 min

Fourier Series

Given a signal s(t)s(t) with period PP, as mentioned earlier, it can be expanded into a Fourier series:

s(t)=a02+n=1(ancos(2πntP)+bnsin(2πntP)) s(t) = \frac{a_0}{2} + \sum_{n=1}^{\infty} (a_n\cos(\frac{2\pi n t}{P}) + b_n\sin(\frac{2\pi n t}{P}))

where

an=2PP/2P/2s(t)cos(2πntP) dt a_n = \frac{2}{P}\int_{-P/2}^{P/2} s(t)\cos(\frac{2\pi n t}{P})\ dt

bn=2PP/2P/2s(t)sin(2πntP) dt b_n = \frac{2}{P}\int_{-P/2}^{P/2} s(t)\sin(\frac{2\pi n t}{P})\ dt

Concept of Coordinates

In fact, cos(2πnt/P)\cos(2\pi n t / P) and sin(2πnt/P)\sin(2\pi n t / P) can be considered as orthogonal vectors in the interval [0,P][0,P], with all non-zero vectors forming a basis. The coefficients ana_n and bnb_n can be considered as a set of coordinates of the function s(t)s(t) under this basis, and the values of ana_n and bnb_n are the projections of s(t)s(t) on each basis vector, or the results of the inner product.

Complex Form

Using Euler's formula

ejωt=cos(ωt)+jsin(ωt) e^{j\omega t} = \cos(\omega t) + j \sin(\omega t)

and converting the cos\cos and sin\sin functions into complex form, we get the complex form of the Fourier series:

s(t)=n=cnej2πnf0t s(t) = \sum_{n=-\infty}^{\infty} c_n e^{j 2 \pi n f_0 t}

where

f0=1P,  cn=1PP/2P/2s(t)ej2πnf0tdt f_0 = \frac{1}{P}, \ \ c_n = \frac{1}{P} \int_{-P/2}^{P/2} s(t) e^{-j 2 \pi n f_0 t} \, dt

Concept of Coordinates

In fact, {ej2πnf0t,nZ}\{e^{-j 2 \pi n f_0 t}, n\in Z\} can be considered as orthogonal vectors in the interval [0,P][0,P], forming a basis. The coefficient cnc_n can be considered as a set of coordinates of the function s(t)s(t) under this basis, and the value of cnc_n is the projection of s(t)s(t) on each basis vector, or the result of the inner product.

Fourier Transform

Letting the period PP of s(t)s(t) go to infinity, s(t)s(t) can be seen as an aperiodic function. The frequency interval between Fourier series terms 1/P1/P approaches 0, becoming a continuous spectrum. This leads to the derivation of the Fourier transform pair for s(t)s(t):

s(t)=S(f)ej2πftdf s(t) = \int_{-\infty}^{\infty} S(f) e^{j 2 \pi f t} \, df

S(f)=s(t)ej2πftdt S(f) = \int_{-\infty}^{\infty} s(t) e^{-j 2 \pi f t} \, dt

where s(t)s(t) can be seen as the time domain form of the signal, and S(f)S(f) as the frequency domain form. The Fourier transform pair is a tool for converting between time and frequency domains. Typically, the Fourier transform of s(t)s(t) is written as F{s(t)}=S(f)\mathcal{F}\{s(t)\} = S(f), and the inverse Fourier transform of S(f)S(f) is written as F1{S(f)}=s(t)\mathcal{F}^{-1}\{S(f)\} = s(t).

Convolution

The convolution of s1(t)s_1(t) and s2(t)s_2(t) is defined as

s1(t)s2(t)=s1(τ)s2(tτ)dτ s_1(t) * s_2(t) = \int_{-\infty}^{\infty} s_1(\tau) s_2(t - \tau) \, d\tau

Then

F{s1(t)s2(t)}=F{s1(t)}F{s2(t)}=S1(f)S2(f) \begin{align*} \mathcal{F}\{s_1(t)*s_2(t)\} &= \mathcal{F}\{s_1(t)\}\mathcal{F}\{s_2(t)\} \\ &= S_1(f)S_2(f) \end{align*}

F{s1(t)s2(t)}=F{s1(t)}F{s2(t)}=S1(f)S2(f) \begin{align*} \mathcal{F}\{s_1(t)s_2(t)\} &= \mathcal{F}\{s_1(t)\}*\mathcal{F}\{s_2(t)\} \\ &= S_1(f)*S_2(f) \end{align*}


Exercise 1

Many places in the explanation on this page do not detail the derivation process. Please use generative AI to find the derivation process and carefully check to ensure the derivation is correct. You can copy the process down or directly share the interaction link with the generative AI.