Discrete Fourier transform

Digital Signal Processing · · dsp, dft

Contents

This typeset version was assembled by AI from my handwritten solutions. The handwritten PDF is the original source.

Problem 1400

Problem 1400 · CTU BE2M31DSPA exam

Write definition formula of forward Discrete Fourier Transform of signal x[n]x[n] from NN samples (DFT). What is the relationship between variable kk and real frequency ff when the signal is sampled by sampling frequency fsf_\mathrm{s}? (6 points)

DFT:

X[k]=∑n=0N−1x[n] e−j2πNk⋅nX[k] = \sum_{n=0}^{N-1} x[n]\,e^{-j\frac{2\pi}{N}k\cdot n}

For x[n]↔X[k]x[n] \leftrightarrow X[k]:

f[k]=k⋅fsNf[k] = k\cdot\frac{f_\mathrm{s}}{N}
  • f[k]f[k]: frequency at particular kk index, computed by fft function;
  • kk: index in the computed by fft;
  • fsf_\mathrm{s}: sampling frequency;
  • N=length(X)N = \mathrm{length}(X). Note: length of XX, because zero-padding may be used: X = fft(x, Nfft);

Problem 1400a

Problem 1400a · CTU BE2M31DSPA exam

Write definition formula of inverse Discrete Fourier Transform of signal x[n]x[n] with NN samples (IDFT). What is the relationship between variable kk and real frequency ff when the signal is sampled by sampling frequency fsf_\mathrm{s}? (6 points)

Inverse DFT:

x[k]=∑k=0N−1X[k] ej2πNknx[k] = \sum_{k=0}^{N-1} X[k]\,e^{j\frac{2\pi}{N}kn}f[k]=k⋅fsNf[k] = k\cdot\frac{f_\mathrm{s}}{N}

Same as above in (1400-eq).

Problem 1400b

Problem 1400b · CTU BE2M31DSPA exam

Write definition formula of forward Discrete-Time Fourier Transform of aperiodic discrete signal x[n]x[n] (IDFT). What is the relationship between variable θ\theta and real frequency ff when the signal is sampled by sampling frequency fsf_\mathrm{s}? (6 points)

DTFT:

X(ejθ)=∑n=−∞∞x[n] e−jθnX(e^{j\theta}) = \sum_{n=-\infty}^{\infty} x[n]\,e^{-j\theta n}θ=2πffs\theta = 2\pi\frac{f}{f_\mathrm{s}}

Problem 1401

Problem 1401 · CTU BE2M31DSPA exam

We have evaluated DFT spectrum of signal x[n]x[n] from NN samples. Give the index kk of the spectral sample X[k]X[k] containing major information about harmonic signal with frequency ff. Sampling frequency of analyzed signal is fsf_\mathrm{s}.

f=140f = 140 Hz, fs=4000f_\mathrm{s} = 4000 Hz, N=200N = 200 samples (6 points)

f[k]=k⋅fsN  ⇒  k=f[k]fs/N=1404000/200=7=kf[k] = k\cdot\frac{f_\mathrm{s}}{N} \;\Rightarrow\; k = \frac{f[k]}{f_\mathrm{s}/N} = \frac{140}{4000/200} = \boxed{7 = k}

kk starts from 0. In Matlab, it would be 8: indexing starts from k=1k = 1 in Matlab!

Problem 1401a

Problem 1401a · CTU BE2M31DSPA exam

We have evaluated DFT spectrum of signal x[n]x[n] from NN samples. Give the index kk of the spectral sample X[k]X[k] containing major information about harmonic signal with frequency ff. Sampling frequency of analyzed signal is fsf_\mathrm{s}.

f=40f = 40 Hz, fs=200f_\mathrm{s} = 200 Hz, N=1000N = 1000 samples (6 points)

Same procedure as in (1401-eq).

k=200k = 200 (in Matlab ⇒201\Rightarrow 201)

Problem 1401b

Problem 1401b · CTU BE2M31DSPA exam

We have evaluated DFT spectrum of signal x[n]x[n] from NN samples. Give the index kk of the spectral sample X[k]X[k] containing major information about harmonic signal with frequency ff. Sampling frequency of analyzed signal is fsf_\mathrm{s}.

f=1000f = 1000 Hz, fs=8000f_\mathrm{s} = 8000 Hz, N=50N = 50 samples (6 points)

Same procedure as in (1401-eq).

k=6k = 6 (in Matlab ⇒7\Rightarrow 7)

Problem 1401c

Problem 1401c · CTU BE2M31DSPA exam

We have evaluated DFT spectrum of signal x[n]x[n] from NN samples. Give the index kk of the spectral sample X[k]X[k] containing major information about harmonic signal with frequency ff. Sampling frequency of analyzed signal is fsf_\mathrm{s}.

f=100f = 100 Hz, fs=200f_\mathrm{s} = 200 Hz, N=256N = 256 samples (6 points)

Same procedure as in (1401-eq).

k=100200/256=128k = \frac{100}{200/256} = 128

(in Matlab ⇒129\Rightarrow 129)

Problem 1402

Problem 1402 · CTU BE2M31DSPA exam

We have evaluated DFT spectrum of signal x[n]x[n] from NN samples. Which frequency ff is related to given index kk of spectral sample X[k]X[k]? Sampling frequency of analyzed signal is fsf_\mathrm{s}.

k=10k = 10, fs=200f_\mathrm{s} = 200 Hz, N=1000N = 1000 samples (6 points)

f[10]=10×2001000=2 Hzf[10] = 10\times\frac{200}{1000} = 2\ \text{Hz}

Problem 1402a

Problem 1402a · CTU BE2M31DSPA exam

We have evaluated DFT spectrum of signal x[n]x[n] from NN samples. Which frequency ff is related to given index kk of spectral sample X[k]X[k]? Sampling frequency of analyzed signal is fsf_\mathrm{s}.

k=21k = 21, fs=4000f_\mathrm{s} = 4000 Hz, N=200N = 200 samples (6 points)

f[21]=21⋅4000200=420 Hzf[21] = 21\cdot\frac{4000}{200} = 420\ \text{Hz}

Problem 1402b

Problem 1402b · CTU BE2M31DSPA exam

We have evaluated DFT spectrum of signal x[n]x[n] from NN samples. Which frequency ff is related to given index kk of spectral sample X[k]X[k]? Sampling frequency of analyzed signal is fsf_\mathrm{s}.

k=128k = 128, fs=16000f_\mathrm{s} = 16000 Hz, N=256N = 256 samples (6 points)

f[128]=128×16000256=8000 Hzf[128] = 128\times\frac{16000}{256} = 8000\ \text{Hz}

Problem 1402c

Problem 1402c · CTU BE2M31DSPA exam

We have evaluated DFT spectrum of signal x[n]x[n] from NN samples. Which frequency ff is related to given index kk of spectral sample X[k]X[k]? Sampling frequency of analyzed signal is fsf_\mathrm{s}.

k=100k = 100, fs=200f_\mathrm{s} = 200 Hz, N=4000N = 4000 samples (6 points)

f[100]=100×2004000=5 Hzf[100] = 100\times\frac{200}{4000} = 5\ \text{Hz}

Problem 1403

Problem 1403 · CTU BE2M31DSPA exam

We have evaluated DFT spectrum of signal x[n]x[n] from NN samples. Which components of such DFT spectrum X[k]X[k] (indexes k1÷k2k_1 \div k_2) are reprezenting frequency range f1÷f2f_1 \div f_2? Sampling frequency of analyzed signal is fsf_\mathrm{s}.

f1=140f_1 = 140 Hz, f2=2000f_2 = 2000 Hz, fs=4000f_\mathrm{s} = 4000 Hz, N=200N = 200 samples (6 points)

k1=f[k1]fs/N=1404000/200=7,k2=20004000/200=100k_1 = \frac{f[k_1]}{f_\mathrm{s}/N} = \frac{140}{4000/200} = 7, \qquad k_2 = \frac{2000}{4000/200} = 100

Problem 1404

Problem 1404 · CTU BE2M31DSPA exam

We have DFT spectrum of signal x[n]x[n] from NN samples where sampling frequency of analyzed signal is fsf_\mathrm{s}. Define frequency resolution of given DFT (the distance between neighbouring frequency components).

fs=8000f_\mathrm{s} = 8000 Hz, N=256N = 256 samples (6 points)

1 sec  −  8000 samplesT  −  256 samplesT=0.032 s \begin{aligned} 1\ \text{sec} &\;-\; 8000\ \text{samples} \\ T &\;-\; 256\ \text{samples} \end{aligned} \qquad T = 0.032\ \text{s} freq. res.=1T=31.25,i.e.=fsN=8000256=31.25 Hz\text{freq. res.} = \frac{1}{T} = 31.25, \quad\text{i.e.}\quad = \frac{f_\mathrm{s}}{N} = \frac{8000}{256} = 31.25\ \text{Hz}

Problem 1407

Problem 1407 · CTU BE2M31DSPA exam

How many spectral lines are in DFT spectrum in the band between the frequencies f1÷f2f_1 \div f_2. Sampling frequency of the signal is fsf_\mathrm{s} and the order of DFT is NN.

f1=500f_1 = 500 Hz, f2=1500f_2 = 1500 Hz, fs=4000f_\mathrm{s} = 4000 Hz, N=200N = 200 samples (6 points)

k1=5004000/200=25,k2=15004000/200=75k_1 = \frac{500}{4000/200} = 25, \qquad k_2 = \frac{1500}{4000/200} = 75spectral lines=k2−k1+1=51\text{spectral lines} = k_2 - k_1 + 1 = 51

Problem 1407a

Problem 1407a · CTU BE2M31DSPA exam

How many spectral lines are in DFT spectrum in the band between the frequencies f1÷f2f_1 \div f_2. Sampling frequency of the signal is fsf_\mathrm{s} and the order of DFT is NN.

f1=30f_1 = 30 Hz, f2=50f_2 = 50 Hz, fs=200f_\mathrm{s} = 200 Hz, N=100N = 100 samples (6 points)

k1=30200/100=15,k2=50200/100=25k_1 = \frac{30}{200/100} = 15, \qquad k_2 = \frac{50}{200/100} = 25k2−k1+1=11k_2 - k_1 + 1 = 11

Problem 1408

Problem 1408 · CTU BE2M31DSPA exam

The amplitude and phase spectra of a signal are in the following figures. Determine, if the analyzed signal is real or complex. Explain it! (6 points)

The amplitude (∣X[k]∣|X[k]|) and phase (∠X[k]\angle X[k]) figures, k=0…20k = 0 \dots 20, are on page 6 of the scan.

Amplitude spectrum: even symmetry. Phase spectrum: odd symmetry. ⇒\Rightarrow Real

The function ff is real-valued iff the FT of ff is Hermitian (conjugate symmetric).

ff is Hermitian iff:

a) real part of ff is even;
b) imaginary part of ff is odd.

Summary: for a function ff to be real:

a) amplitude spectrum must have even symmetry;
b) phase spectrum must have odd symmetry.

Problem 1408a

Problem 1408a · CTU BE2M31DSPA exam

The amplitude and phase spectra of a signal are in the following figures. Determine, if the analyzed signal is real or complex. Explain it! (6 points)

The amplitude (∣X[k]∣|X[k]|) and phase (∠X[k]\angle X[k]) figures, k=0…20k = 0 \dots 20, are on page 6 of the scan.

Amplitude spectrum: even symmetry. Phase spectrum: odd symmetry. ⇒\Rightarrow Real

Problem 1408b

Problem 1408b · CTU BE2M31DSPA exam

The amplitude and phase spectra of a signal are in the following figures. Determine, if the analyzed signal is real or complex. Explain it! (6 points)

The amplitude (∣X[k]∣|X[k]|) and phase (∠X[k]\angle X[k]) figures, k=0…20k = 0 \dots 20, are on page 8 of the scan.

Amplitude spectrum: neither odd nor even. Phase spectrum: neither odd nor even. ⇒\Rightarrow Complex

© 2026 Giorgi Aptsiauri. All rights reserved. Do not copy or republish this text or its figures without permission. Online version: https://giorgiaptsiauri.com/notes/dsp-ctu/03-dft/