The DTFT and DFT
On a bin one spike, off a bin leakage
Above is a length-N=16 discrete cosine x[n] = cos(ω₀n). Below, the gold curve is its DTFT magnitude, the true spectrum swept continuously over ω, and the blue stems are that curve sampled at the N DFT bins ω = 2πk/N. The dashed line is the signal’s true frequency ω₀. Move the ω₀ slider so that ω₀ lands exactly on one blue bin, making a clean spike where only that bin rises and the rest fall to 0. Fall between bins and the energy leaks into the neighbors.
The spectrum seen on the unit circle
The DTFT of a discrete signal x[n] is X(e^(jω)) = Σₙ x[n] e^(−jωn). This is exactly the z-transform of E3, X(z) = Σ x[n] z⁻ⁿ, with z set to z = e^(jω) on the unit circle. So the DTFT is the spectrum seen around one trip on the z-plane’s unit circle, and it is the system’s frequency response. One feature stands out: periodicity. Since e^(−jωn) repeats with period 2π in ω, the DTFT repeats identically every 2π. This is another face of E1’s fact that sampling copies the spectrum every fs. So one interval from −π to π is all you need for a discrete signal’s spectrum.
The DFT a computer can compute
The DTFT is continuous in ω, so it has infinitely many values. A computer cannot compute infinity, so it picks out values only at ω = 2πk/N (k=0..N−1), dividing one period 2π into N. This is the DFT X[k] = Σₙ x[n] e^(−j2πkn/N), taking N finite inputs to N finite outputs — the DTFT curve sampled at N bins. Computing the DFT directly costs N² multiplications, but the 1965 Cooley–Tukey FFT cut it to N log N, making all of digital signal processing practical. Convolution in time becomes multiplication in the DFT domain, so even a long filter runs fast through the FFT.
Leakage from an off-bin frequency
When you take only a finite N samples of a signal, that cut-off window gives the DTFT a peak with width (a main lobe) and a row of smaller peaks beside it (side lobes). If the signal frequency ω₀ lands exactly on a bin 2πk/N, that bin sits on top of the main lobe while the others land exactly on the zeros between side lobes, giving a clean single spike. But if ω₀ falls between bins, every bin samples a side lobe and the energy leaks across many bins — spectral leakage. To reduce it, a window function (Hann, Hamming, and others) that tapers the ends smoothly when you cut lowers the side lobes, so leakage drops but the main lobe widens, weakening the power to tell two close frequencies apart. It is a trade-off between resolution and leakage.
Back to the first screen
With a single length-N discrete cosine, you watched its spectrum. The gold DTFT curve was the true spectrum swept continuously over ω, and the blue DFT stems were that curve sampled at N bins. Landing the signal frequency ω₀ exactly on a bin 2πk/N gave a clean single spike, one bin raised and the rest at 0. Moving it between bins showed the leakage as energy spread across many bins. The DFT is only a sampling of the DTFT, and the DTFT is the z-transform seen on the unit circle. The chain that began at signal basics, through time, convolution, Fourier, Laplace, and sampling, closes its loop here at the discrete spectrum.
Here the toolkit for analyzing signals and systems is complete. We have learned to view things in time, to transform with Fourier, Laplace, and z, and to sample them for digital handling. Now, in the final chapter, the direction turns from analysis to design. The next unit, stability and the Routh test, makes the first question how to keep a system stable. Without solving for the poles, you build a Routh table from the coefficients of the characteristic equation alone to decide whether all poles lie in the left half-plane. Even for high-order systems whose poles are hard to solve, you judge stability by hand, and then go on to design controllers with the root locus and Bode plots.