DSP 101
M5 · L2
Module 5 — The Discrete Fourier Transform
DFT Definition
and Interpretation

The DFT formula, frequency bins, the DFT as a matrix operation, and the circular nature that drives zero-padding and overlap-add filtering.

1 / 9
DSP 101
M5 · L2
The Formula
The DFT Definition

N time samples go in. N complex frequency values X[k] come out. Each bin encodes amplitude and phase at a discrete frequency.

DFT
X[k] = \sum_{n=0}^{N-1} x[n]\,e^{-j2\pi kn/N}
2 / 9
DSP 101
M5 · L2
The Inverse
IDFT — Perfect
Reconstruction

The IDFT recovers x[n] exactly. The only change: the exponent sign flips to +j and a 1/N normalization factor appears.

IDFT
x[n] = \frac{1}{N}\sum_{k=0}^{N-1} X[k]\,e^{j2\pi kn/N}
3 / 9
DSP 101
M5 · L2
Frequency Mapping
What Each Bin Means

Bin k → frequency f = k · fs/N Hz. Frequency resolution Δf = fs/N.

k = 0
DC (0 Hz)
k = N/2
Nyquist fs/2
Amplitude & Phase
|X[k]| = amplitude, ∠X[k] = phase at f = k·fs/N
4 / 9
DSP 101
M5 · L2
Linear Algebra View
DFT as a Matrix

X = WN x — the DFT is a change of basis. Each row of WN is a complex sinusoid. Direct computation: O(N²). The FFT exploits symmetry to reach O(N log N).

Twiddle Factor
W_N = e^{-j2\pi/N}, \quad [\mathbf{W}_N]_{k,n} = W_N^{kn}
5 / 9
DSP 101
M5 · L2
Key Property
The DFT is Circular

The DFT treats x[n] as periodic with period N. Index arithmetic is mod N. Consequence: multiplying spectra gives circular convolution, not linear convolution.

Fix
Zero-pad to length ≥ Lx + Lh − 1 before multiplying spectra to get linear convolution.
6 / 9
DSP 101
M5 · L2
Resolution vs Smoothness
Zero-Padding: Smoother
Not Sharper

Zero-padding interpolates the spectrum — the plot looks smoother. But true resolution requires more data, not more zeros. To resolve Δf Hz you need at least 1/Δf seconds of signal.

  • More zeros → finer sampling of DTFT → smoother curve
  • More samples → genuinely more frequency information
  • Two tones at Δf Hz apart need T ≥ 1/Δf seconds of data
7 / 9
DSP 101
Knowledge Check

Check what stuck

Four questions from this lesson. Answer to see why — the explanation appears whether you were right or wrong. Nothing is scored or saved.

Question 1 of 0
Score 0/0

8 / 9
DSP 101
M5 · L2
Key Takeaways
What You Learned
  • DFT: X[k] = Σ x[n] e−j2πkn/N; IDFT has +j and 1/N factor
  • Bin k ↔ frequency k·f_s/N Hz; resolution Δf = f_s/N
  • |X[k]| = amplitude, ∠X[k] = phase; real signals have conjugate symmetry
  • DFT = matrix multiplication X = WNx; O(N²) direct, O(N log N) via FFT
  • DFT is periodic (circular) — index arithmetic mod N
  • Spectral multiplication → circular convolution; zero-pad for linear convolution
  • Zero-padding smooths the spectrum plot but doesn't improve true resolution
Read full article →
9 / 9
1 / 8 muted