Discrete-time Fourier transform
Defines the discrete-time Fourier transform, its 2π periodicity, properties, Parseval relation and link to the z-transform, with evaluation of short sequences and leakage.
Drafted with Aria, reviewed by the AiCanCode.org team. Spotted an error? Use Give Feedback at the bottom of the page.
Why it matters
Once a sensor signal has been sampled, every filter, spectrum estimate and frequency measurement in software works on sequences. The discrete-time Fourier transform (DTFT) is the exact spectrum of a sequence and the frequency response of a digital filter. The DFT/FFT that you actually compute is a sampled version of it, so understanding the DTFT is what lets you interpret an FFT plot correctly.
Key ideas
Definition. The DTFT X(e^(jω)) of a sequence x[n] is a continuous function of the digital frequency ω (rad/sample), even though x[n] is defined only at integers. Many books write it as X(ω) or X(Ω).
Periodicity. e^(−jωn) repeats when ω increases by 2π (n is an integer), so X(e^(jω)) is always periodic with period 2π. Only one interval, −π ≤ ω ≤ π (or 0 … 2π), carries information.
ω = 0is DC;ω = πis the highest frequency a sequence can have (it alternates +, −, +, −).- For a sequence obtained by sampling at
fs,ω = 2πf/fs, soω = πcorresponds tofs/2.
Existence. The DTFT converges if x[n] is absolutely summable (Σ|x[n]| < ∞); square-summable sequences converge in the mean-square sense. Sequences like 1, cos ω0n or u[n] need impulses in frequency.
Relation to the z-transform. X(e^(jω)) = X(z) evaluated on the unit circle z = e^(jω), provided the ROC includes the unit circle. That is why a stable LTI system always has a frequency response.
Symmetry for real sequences. X(e^(−jω)) = X*(e^(jω)): magnitude even, phase odd. Real and even x[n] ⇒ real and even X.
Properties
- Linearity; time shift
x[n − n0] ↔ e^(−jωn0) X(e^(jω)); frequency shifte^(jω0n) x[n] ↔ X(e^(j(ω − ω0))). - Convolution
x * h ↔ X·H— so an LTI system's output spectrum isY = H·X, withH(e^(jω))the frequency response. - Multiplication
x[n]·w[n] ↔ (1/2π)periodic convolution of the spectra — the origin of windowing and leakage. - Differentiation in frequency:
n·x[n] ↔ j dX/dω. - Value shortcuts:
X(e^(j0)) = Σ x[n],X(e^(jπ)) = Σ (−1)ⁿ x[n],x[0] = (1/2π) ∫ over 2π of X dω.
Truncation and leakage. Observing only N samples multiplies the signal by a window. A pure tone's spectral line becomes a sin(Nω/2)/sin(ω/2) shape with main-lobe width 4π/N and sidelobes. Longer records give narrower main lobes (better resolution); tapered windows trade a wider main lobe for lower sidelobes.
Formulas
X(e^(jω)) = Σ x[n] e^(−jωn)(n from −∞ to ∞) — analysis equation.x[n] = (1/2π) ∫ over any 2π interval of X(e^(jω)) e^(jωn) dω— synthesis equation.Σ |x[n]|² = (1/2π) ∫ over 2π of |X(e^(jω))|² dω— Parseval.aⁿ u[n] ↔ 1/(1 − a e^(−jω)),|a| < 1.δ[n − n0] ↔ e^(−jωn0).rectangular pulse, 1 for 0 ≤ n ≤ N − 1 ↔ e^(−jω(N−1)/2) · sin(Nω/2)/sin(ω/2).h[n] = sin(ωc n)/(πn)(withh[0] = ωc/π) — ideal low-pass filter of cut-offωc.ω = 2πf/fs = ΩTs— link between digital and analogue frequency.
Symbols: ω digital frequency (rad/sample); f analogue frequency (Hz); fs sampling rate (Hz); Ω analogue angular frequency (rad/s); Ts = 1/fs (s); a real or complex constant with |a| < 1; N length in samples; ωc cut-off (rad/sample).
Worked examples
Example 1 (standard). For x[n] = (0.5)ⁿ u[n], find |X| at ω = 0 and ω = π, and say what kind of spectrum this is.
X(e^(jω)) = 1/(1 − 0.5 e^(−jω)).- At
ω = 0:e^(−j0) = 1,X = 1/(1 − 0.5) = 2. - At
ω = π:e^(−jπ) = −1,X = 1/(1 + 0.5) = 0.667. - Check with the shortcuts:
Σ x[n] = 1/(1 − 0.5) = 2✓;Σ (−1)ⁿ (0.5)ⁿ = 1/(1 + 0.5) = 0.667✓. - |X| = 2 at DC and 0.667 at ω = π — a low-pass spectrum (a negative
awould give a high-pass one).
Example 2 (GATE level). x[n] = {1, 2, 1} for n = 0, 1, 2. Find X(e^(jω)), its value at ω = 0, π/2, π, and verify Parseval.
X = 1 + 2e^(−jω) + e^(−j2ω) = e^(−jω)(e^(jω) + 2 + e^(−jω)) = e^(−jω)(2 + 2cos ω).|X| = 2 + 2cos ω(never negative), phase−ω— linear phase, becausexis symmetric aboutn = 1.|X(e^(j0))| = 4,|X(e^(jπ/2))| = 2,|X(e^(jπ))| = 0(low-pass, with a null at the highest frequency).- Parseval:
Σ x² = 1 + 4 + 1 = 6;(1/2π) ∫ (2 + 2cos ω)² dω = (1/2π) ∫ (4 + 8cos ω + 4cos² ω) dω = (1/2π)(8π + 0 + 4π) = 6✓. - X(e^(jω)) = e^(−jω)(2 + 2cos ω): magnitudes 4, 2 and 0 at ω = 0, π/2, π; energy 6.
Common mistakes
- Treating the DTFT as discrete — it is continuous in
ω; the DFT is the discrete one. - Forgetting the 2π periodicity, for example looking for a feature at
ω = 1.5πinstead of−0.5π. - Mixing
ω(rad/sample) withΩ(rad/s). Convert withω = ΩTs. - Sign errors in
e^(−jωn):e^(−jπ) = −1,e^(−j3π/2) = +j. - Claiming that zero-padding improves resolution. It only samples the same DTFT more finely; resolution needs a longer record.
- Using the DTFT of
aⁿ u[n]for|a| ≥ 1— it does not converge.
For GATE IN
Expect: evaluating the DTFT of a short sequence at ω = 0, π/2 or π; Parseval or x[0] = (1/2π)∫X dω used to evaluate an integral; identifying low-pass/high-pass behaviour or linear phase from a short impulse response; ideal-filter impulse responses; and conversion between analogue and digital frequency. Practise the e^(−jω) factoring trick for symmetric sequences.
Quick check
- What is the DTFT of
δ[n − 2]? x[n] = {1, −1}(n = 0, 1). Is it low-pass or high-pass?- A 1 kHz tone sampled at 8 kHz — digital frequency?
(1/2π) ∫ X(e^(jω)) dωover one period equals what?- Period of every DTFT?
Answers: 1.
e^(−j2ω). 2. High-pass:X(0) = 0,|X(π)| = 2. 3.ω = 2π × 1/8 = π/4 rad/sample. 4.x[0]. 5.2π.
Interview questions
All Signals and Systems interview questionsTry answering each one aloud before you open it.
1.What is the Discrete-time Fourier Transform (DTFT)?Concept
The Discrete-time Fourier Transform (DTFT) is a mathematical transformation used to analyze the frequency content of discrete-time signals. It transforms a discrete-time signal, which is a sequence of numbers, into a continuous function of frequency. The DTFT is particularly useful for understanding how different frequency components contribute to the overall signal.
2.Explain the difference between DTFT and DFT.Concept
The DTFT is a continuous function of frequency and provides a complete representation of a discrete-time signal's frequency content. In contrast, the Discrete Fourier Transform (DFT) is a sampled version of the DTFT, providing frequency content at discrete frequency points. The DFT is typically used in practical applications because it can be computed using the Fast Fourier Transform (FFT) algorithm, which is efficient for digital computation.
3.Why is the DTFT important in signal processing?Application
The DTFT is important in signal processing because it allows engineers to analyze and understand the frequency characteristics of discrete-time signals. This analysis is crucial for designing filters, understanding signal behavior, and performing operations like modulation and demodulation. The DTFT provides insights into how different frequency components affect the signal, which is essential for effective signal manipulation and interpretation.
4.How does the DTFT handle periodic signals?Concept
For periodic signals, the DTFT results in a series of impulses in the frequency domain, known as spectral lines. These impulses occur at integer multiples of the fundamental frequency of the signal. This representation helps in identifying the harmonic content of the signal and is useful in applications like audio processing and communications.
5.What happens if a signal is not sampled properly before applying the DTFT?Application
If a signal is not sampled properly, it can lead to aliasing, where different frequency components become indistinguishable. This occurs when the sampling frequency is less than twice the highest frequency present in the signal, violating the Nyquist-Shannon sampling theorem. Aliasing distorts the frequency representation of the signal, leading to incorrect analysis and processing results.
6.Explain the concept of frequency resolution in the context of the DTFT.Concept
Frequency resolution is the ability to separate two closely spaced frequency components. With only N samples observed, each spectral line becomes a main lobe of width about 4π/N rad/sample (for a rectangular window), so two tones closer than roughly 2π/N cannot be resolved. A longer record (larger N, i.e. longer observation time N·Ts) narrows the lobes and improves resolution; zero-padding only interpolates the same spectrum and does not.
7.Why is windowing used when estimating a spectrum with the DTFT or DFT?Application
Observing a finite record multiplies the signal by a rectangular window, and its high sidelobes (about −13 dB) leak energy from strong components into other frequencies — spectral leakage. Tapered windows such as Hann or Hamming reduce the sidelobes sharply, so weak components near strong ones become visible. The price is a wider main lobe, i.e. slightly poorer resolution of two equal, closely spaced tones.
8.Calculate the DTFT of a discrete-time signal x[n] = δ[n], where δ[n] is the unit impulse function.Numerical
The DTFT of a unit impulse function δ[n] is 1 for all frequencies. This is because the impulse function contains all frequency components equally, resulting in a constant frequency spectrum.
9.What is the effect of zero-padding a signal before computing its DTFT?Application
Zero-padding a signal before computing its DTFT increases the number of frequency samples in the resulting spectrum, providing a finer frequency grid. However, it does not improve the actual frequency resolution. Zero-padding is often used to interpolate the DTFT for better visualization and analysis of the frequency content.
10.Given a discrete-time signal x[n] = {1, 2, 3, 4}, compute its DTFT at ω = π/2.Numerical
To compute the DTFT at ω = π/2, we use the formula X(ω) = Σ x[n]·e^(-jωn). For x[n] = {1, 2, 3, 4}, X(π/2) = 1·e^0 + 2·e^(-jπ/2) + 3·e^(-jπ) + 4·e^(-j3π/2). Calculating each term: 1 + 2(-j) + 3(-1) + 4j = 1 - 3 - 2j + 4j = -2 + 2j.
Finished this topic? Mark it so your progress, study plan and readiness keep up.
Stuck on something here?