Multiply a signal by a turning arrow and its spectrum slides round a circle. Watch what slides off at come back at .
Slide the spectrum round the circle
x[n] = 0.8ⁿu[n] multiplied by e^{jΩ₁n}. The curve is the size of the product's spectrum.
Ω₁ = 0: nothing changes. The size peaks at 0, among the low frequencies: a low-pass shape.
Describe this picture
One panel for multiplied by : the size of the product’s spectrum, from 0 to 5.5, against from to rad/sample. The solid curve is the spectrum after the shift and the faint dashed curve is alone. A small downward triangle marks the peak, and a thin arc over the axis joins the two ends, labelled “same point (12.1)”. The readouts are the shift and where the peak is, both in the form “0.50π rad/sample”.
The clip lasts 13 s. It starts at , a low-pass shape peaking at 0, then eases to , where both readouts show 0.50π, and on to , where both show 1.00π and the peak sits at . While it eases the caption reads “Multiplying by e^{jΩ₁n} slides the whole curve right by Ω₁.” Once the clip has finished, dragging the curve sideways, or its peak marker, sets from to ; the arrow keys move it by , Page Up and Page Down by , and Home and End jump to the ends.
The rules that carry over
On the page Properties of the Fourier transform (8.2) you met one rule for each operation on a continuous signal. Most of them carry over to sampled signals with in place of , and each proof is one line. Here is the DTFT of , as on the page The DTFT (12.2), and is the digital frequency in rad/sample.
Linearity holds because the transform is a sum: . For a delay, put in the sum. The factor comes out in front:
The size of the spectrum does not change, and the phase turns by . Reversal, , replaces by in the sum, which gives . Conjugation gives . For a real signal, , so : the size is even in and the phase is odd, as in the 8.2 section “A real signal has a mirrored spectrum”.
The delay rule gives a first check. The centred 5-sample pulse, for , has the transform from 12.2. The causal pulse, for , is the same pulse delayed by 2 samples, so its transform is
Two things are new in discrete time, and each gets an instrument. The first is the frequency shift, where the spectrum slides round a circle. The second is the window, where multiplication in time turns into a new kind of convolution in frequency.
Slide the spectrum round the circle
Multiply a signal by and the sum changes to . Since , the sum is evaluated at . I call this the frequency shift, and is the shift in rad/sample:
It is the mirror of the delay: a delay in time multiplies the spectrum by an arrow, and a shift in frequency multiplies the signal by one. In discrete time there is a new feature. The frequency axis is a circle, as on the page Frequency in discrete time (12.1), so and are the same point. What slides off the edge at comes back in at , like a horse on a carousel that passes the gate and comes round again.
The picture at the top of the page applies this to . At nothing changes: the size peaks at 0, among the low frequencies, a low-pass shape. At the peak sits at , the same shape, only moved. At , where , what slid off at came back in at , and the peak sits at . Flipping every other sample’s sign turned low-pass into high-pass.
After the clip, drag the curve sideways, or its peak marker, to set yourself. Watch the height of the peak: it stays at 5 for every .
The height is the size of at its peak, . A shift moves a curve but does not change its shape, so the peak keeps its height wherever it lands. Look at the end of the clip. The multiplier is , so , and its size is 5 at and at .
The maths behind it · diagonal matrices
Multiplying by is a diagonal matrix acting on ; in frequency it becomes a shift. A delay is a shift in time and a diagonal in frequency. Each operation is simple in one of the two descriptions.
Cut a tone short, and its arrows spread
A real recording has a start and an end. Cutting a signal to samples multiplies it by the window , which is 1 for and 0 elsewhere. It is an envelope, as on the page Operations on amplitude (2.2). The window is a pulse like the one in 12.2, delayed by samples, so by the delay rule its transform is
A cosine is two arrows of half size, . By the shift rule, applied to each arrow,
Each arrow of the tone is replaced by a copy of centred on it. The central lump of is its main lobe. It runs from the first zero on one side of the centre to the first on the other, and has its zeros at multiples of , so the main lobe is wide.
The next picture cuts the tone to samples and doubles three times. Watch the lumps where the tone’s two arrows were.
Cut a tone short, and its arrows spread
cos(0.5πn) kept for N samples. Sizes are relative to N/2, the height at ±0.5π.
N = 4: one cycle kept. Each arrow has become a lump π wide, reaching from 0 to π.
Describe this picture
Two stacked panels for kept for samples. The time panel shows from −1.2 to 1.2 against the sample from 0 to 63: stems with dot heads for the samples that are kept, and small open circles on the axis, labelled “cut off”, for the rest. The spectrum panel shows the size divided by , from 0 to 1.2, against from to rad/sample. The solid curve is the spectrum of the cut tone. The endless tone’s two arrows are dashed vertical arrows of height 1 at , and a bracket under one lump between its first zeros is labelled “main lobe”. The readouts are the window length and the main lobe.
The clip lasts 14 s and steps through four window lengths, with a blank caption in the morphs between them. The readouts show and 1.00π rad/sample, then 8 and 0.50π, 16 and 0.25π, and 32 and 0.13π. Once the clip has finished, dragging the cut in the time panel sets from 4 to 64 in steps of 4; the arrow keys move it by 4 and Page Up and Page Down by 16. Between the held lengths the caption takes the form “N = 48: main lobe 0.08π rad/sample.”
At one cycle is kept, and each arrow has become a lump wide, reaching from 0 to . At , two cycles, the lumps are half as wide, , with small side lobes between them. At they are wide: the longer the window, the closer each lump comes to the tone’s arrow. At they are wide. Multiplying by the window in time replaced each arrow with a copy of the window’s spectrum: a periodic convolution.
After the clip, drag the cut in the time panel to set yourself, from 4 to 64.
Notice two things. The lumps narrow as grows, in step with . And their height, relative to , stays at 1. The relative axis is the reason: the unscaled lump grows with , since the window adds up samples, and dividing by shows the shape alone. At the size is exactly for each of these lengths, and at and it is 0.
This is the price of a short look at a signal. A handclap lasts a few samples, and its spectrum is one wide lump with no single pitch. A tone kept for a long time has a spectrum that is nearly a pair of arrows. At the side lobes peak at 0.272 of , at and . They are the first sign of leakage, which the pages Windowing and spectral leakage (15.1) and Window functions compared (15.2) take on.
Multiplication in time is periodic convolution in frequency
The window example is a case of a general rule. Multiply two signals and the spectrum of the product is
Slide one spectrum past the other and add up the overlap, over one period only. I call this periodic convolution. It is the convolution rule with time and frequency swapped, and the integral runs over because both spectra repeat every . For the tone, is two arrows, and the integral picks out one copy of at each of them.
The maths behind it · kernel smoothing
Smoothing a histogram with a kernel is a convolution that blurs it. A window does the same to a spectrum, and a wider window in time is a narrower kernel in frequency.
Convolution becomes multiplication
The rule from 8.2 returns unchanged. For the convolution of the page Discrete convolution (5.2),
The proof is the one from 8.2. The signal is a sum of arrows. Each arrow goes through a system with impulse response and comes out multiplied by one number, , as on the page Properties of LTI systems (5.4). So the output is the same sum of arrows, each scaled by .
Here is a check with two 3-point moving averages in a row, from Difference equations (6.1). One average has , and its transform is , and the factor does not change the size. The convolution of the average with itself is the triangle . Its size at , , and is 1, 0.444, 0 and 0.111. These are the squares of one average’s sizes, 1, 0.667, 0 and 0.333.
The rest of the table
Three more rules finish the set, and I check each on , whose transform is from 12.2.
Parseval. The energy of a signal, defined on the page How big is a signal (1.3), is the same in both descriptions:
In time, . Integrating numerically over gives the same value.
Differentiation in frequency. Differentiate with respect to . Each term brings down a factor , so . For this gives
At both sides agree: the sum is .
Symmetry. A real has an even size and an odd phase, as above. If is also even, , then is real. This is the even part of Decomposing signals (2.3), and it is why the centred pulse of 12.2, , is one real curve with no phase.
Where you’ll meet this
The frequency shift is how a sampled radio signal is moved down to a lower frequency before it is processed, and why turns a low-pass design into a high-pass one. Windowing is behind every spectrum you compute from a finite recording: the peak of a tone is never narrower than the main lobe of the window you used.
The next page, Frequency response of discrete-time systems (12.4), uses the convolution rule to give each system a response . Windows and leakage follow in 15.1 and 15.2, and linear phase, a pure delay in disguise, in Linear-phase systems (17.3).
Reference card
| Property | Time | Frequency |
|---|---|---|
| Linearity | ||
| Delay | ||
| Frequency shift | , round the circle | |
| Sign flip | : low and high swap | |
| Reversal | ||
| Conjugation | ; real : | |
| Convolution | ||
| Multiplication | (periodic convolution) | |
| Window, length | , | ; main lobe |
| Differentiation in frequency | ||
| Parseval |