Skip to main content

How Fourier Transforms Work

To understand how Fourier transforms work β€œunder the hood”, we must start by recognising the similarities between the Continuous Fourier Transform (CFT) and the Discrete Fourier Transform (DFT). They serve the same purposeβ€”mapping a time-domain signal into its frequency-domain representationβ€”but operate on different types of signals:

  • CFT β†’ continuous-time signals
  • DFT β†’ discrete-time, finite-length signals

Despite these differences, their mathematics is closely related. Below are the core equations and a breakdown of their similarities and differences.

Continuous Fourier Transform (CFT) vs Discrete Fourier Transform (DFT)​

Definition​

  • CFT:
    X(f)=βˆ«βˆ’βˆžβˆžx(t) eβˆ’j2Ο€ft dtX(f) = \int_{-\infty}^{\infty} x(t)\, e^{-j 2\pi f t}\, dt
  • DFT:
    X[k]=βˆ‘n=0Nβˆ’1x[n] eβˆ’j2Ο€NknX[k] = \sum_{n=0}^{N-1} x[n]\, e^{-j \frac{2\pi}{N} k n}

Similarity: Both use complex exponentials to express the signal’s frequency content.

Domain of Input​

  • CFT: Continuous signal x(t)x(t)
  • DFT: Discrete sequence x[n]x[n] of length NN

Similarity: Both operate on time-domain signals (continuous or sampled).

Domain of Output​

  • CFT: Continuous function X(f)X(f)
  • DFT: Discrete frequency bins X[k]X[k]

Similarity: Both output complex-valued frequency components.

Exponential Kernel​

  • CFT: eβˆ’j2Ο€fte^{-j 2\pi f t}
  • DFT: eβˆ’j2Ο€Nkne^{-j \frac{2\pi}{N} k n}

Similarity: Both use complex exponentials (phasors) as basis functions.

Inverse Transform​

  • CFT:
    x(t)=βˆ«βˆ’βˆžβˆžX(f) ej2Ο€ft dfx(t) = \int_{-\infty}^{\infty} X(f)\, e^{j 2\pi f t}\, df
  • DFT:
    x[n]=1Nβˆ‘k=0Nβˆ’1X[k] ej2Ο€Nknx[n] = \frac{1}{N} \sum_{k=0}^{N-1} X[k]\, e^{j \frac{2\pi}{N} k n}

Similarity: Both perfectly reconstruct the original signal (given correct conditions).

Linearity​

Both transforms are linear.

Parseval’s Theorem​

Energy is preserved between time and frequency domains (with appropriate normalization).

Purpose​

Both analyse the frequency content of signals.

Periodicity (Key Concept)​

  • DFT: Assumes that x[n]x[n] is periodically extended with period NN.
  • CFT: No periodicity assumption.

This is why windowing and spectral leakage matter in the discrete case.

Exponential Kernels in Fourier Transforms​

Both the CFT and DFT use complex exponentials of the form:

  • eβˆ’j2Ο€fte^{-j 2\pi f t} for continuous signals
  • eβˆ’j2Ο€Nkne^{-j \frac{2\pi}{N} k n} for discrete signals

Even though these look different, the DFT kernel is simply the CFT kernel sampled at discrete times and discrete frequencies.

Deriving the relation ft=knNft = \frac{kn}{N}​

If:

  • sampling interval is TsT_s
  • sample index is nn, so t=nTst = n T_s
  • total duration is T=NTsT = N T_s
  • frequency samples are multiples of the fundamental frequency
    f0=1Tf_0 = \frac{1}{T}

then:

f=kf0=kNTsf = k f_0 = \frac{k}{N T_s}

Substituting into ftft:

ft=kNTs(nTs)=knNft = \frac{k}{N T_s} (n T_s) = \frac{kn}{N}

Thus the discrete kernel:

eβˆ’j2Ο€ft⟢eβˆ’j2Ο€knNe^{-j 2\pi f t} \quad\longrightarrow\quad e^{-j 2\pi \frac{kn}{N}}

This shows how the DFT kernel arises from the CFT kernel by sampling.

Why Do Fourier Transforms Use Complex Exponentials?​

Fourier transforms break a signal into sinusoidal components.
Using Euler’s formula:

ejθ=cos⁑θ+jsin⁑θe^{j\theta} = \cos\theta + j\sin\theta

a complex exponential represents:

  • a cosine (real part)
  • a sine (imaginary part)

in a single compact expression.

1. Sinusoids become phasors​

A sinusoid can be written as:

Acos⁑(ΞΈ+Ο•)=β„œ{Aej(ΞΈ+Ο•)}A \cos(\theta + \phi) = \Re\{A e^{j(\theta + \phi)}\}

This makes Fourier analysis algebraically simple because phasors rotate in the complex plane.

2. Polar form of complex numbers​

A complex exponential ejΞΈe^{j\theta} lies on the unit circle in the complex plane.
Fourier coefficients naturally contain:

  • magnitude (amplitude of sinusoid)
  • phase (angle)

which match perfectly with polar form.

3. Mathematical convenience​

Using exponentials:

  • differentiation ↔ multiplication by j2Ο€fj2\pi f
  • convolution ↔ multiplication
  • modulation ↔ frequency shifting

These properties make Fourier analysis powerful and computationally efficient.

Conclusion​

  • The CFT and DFT are built on the same idea:
    represent a signal as a sum of complex exponential components.
  • The DFT kernel is the CFT kernel evaluated at discrete times and discrete frequencies.
  • The DFT assumes periodicity; the CFT does not.
  • Euler’s formula converts sinusoids into complex exponentials, making Fourier transforms elegant and powerful.

This forms the foundation of how Fourier transforms work internally and why they appear everywhere in engineering, signal processing, and physics.