Fourier properties: shift, scale and convolution
About this lesson
Three rules make the Fourier transform useful in practice. Follow one 1 V pulse 1 ms wide, whose spectrum is X(f) = T·sinc(fT). Delay it and the size of its spectrum stays the same while each frequency turns by an angle −360°·f·t0. Squeeze it and the spectrum spreads out: x(at) ↔ X(f/a)/|a|, so short in time means wide in frequency. Then pass it through an RC filter: the convolution y = x ∗ h in time becomes a plain multiplication Y(f) = X(f)·H(f) in frequency, which you check in Python with numpy. It builds on the lessons on the Fourier transform and on convolution and the impulse response, and the Circuits lessons on phasors and Bode plots.
A pulse and its spectrum
Start with a 1 V pulse 1 ms wide, centred on t = 0. Its Fourier transform is X(f) = T·sinc(fT): tallest at 0 Hz, where it equals the pulse's area (1.000 V·ms), and zero at every multiple of 1 kHz.
x(t) = 1 V for |t| < 0.5 ms, else 0
X(f) = ∫ x(t)·e^(−j2πft) dt
= T·sinc(fT), sinc(u) = sin(πu)/(πu)
X(0) = T = 1.000 V·ms (the area)
X(0.5 kHz) = 2/π = 0.637 V·ms
X(f) = 0 at f = ±1, ±2, ±3 kHz
t in ms, f in kHz (1/ms)
the transform itself: "The Fourier transform"Read the lesson step by step
A pulse and its spectrum
Start with a 1 V pulse 1 ms wide, centred on t = 0. Its Fourier transform is X(f) = T·sinc(fT): tallest at 0 Hz, where it equals the pulse's area (1.000 V·ms), and zero at every multiple of 1 kHz.
x(t) = 1 V for |t| < 0.5 ms, else 0 X(f) = ∫ x(t)·e^(−j2πft) dt = T·sinc(fT), sinc(u) = sin(πu)/(πu) X(0) = T = 1.000 V·ms (the area) X(0.5 kHz) = 2/π = 0.637 V·ms X(f) = 0 at f = ±1, ±2, ±3 kHz t in ms, f in kHz (1/ms) the transform itself: "The Fourier transform"Delay it: the size stays
Now delay the pulse: slide it right by t0, up to 0.5 ms. Watch the spectrum's size |X(f)|: it does not move at all. A delay changes when the signal happens, not which frequencies it contains or how strong they are.
x(t − t0): the same pulse, t0 later t0 = 0 -> 0.5 ms |spectrum of x(t − t0)| = |X(f)| for every t0 |X(0.5 kHz)| = 0.637 V·ms before |X(0.5 kHz)| = 0.637 V·ms afterThe delay hides in the angle
Each X(f) is a complex number: a size and an angle. A delay multiplies it by e^(−j2πf·t0), turning frequency f by −360°·f·t0: −90° at 0.5 kHz when t0 = 0.5 ms. The real part twists; the size stays.
x(t − t0) <-> X(f)·e^(−j2πf·t0) |e^(−j2πf·t0)| = 1 size unchanged angle = −360°·f·t0 grows with f t0 = 0.5 ms: f = 0.5 kHz -> −90° f = 1 kHz -> −180° plotted: the real part X(f)·cos(2πf·t0) inside the size |X(f)| phasors: Circuits, "Phasors"Squeeze time, spread frequency
Now play the pulse twice as fast: x(2t) is only 0.5 ms wide. Its spectrum becomes X(f/2)/2: twice as wide and half as tall. The first zero moves from 1 kHz to 2 kHz. Short events need high frequencies.
x(a·t) <-> X(f/a) / |a| a = 2: width 1 ms -> 0.5 ms first zero 1 kHz -> 2 kHz height X(0) 1.000 -> 0.500 V·ms the area under x halves, and the area is X(0)Short in time, wide in frequency
Stretch it instead, x(t/2), and the spectrum gets narrower and taller. Width times first-zero frequency stays 1 for every a. No signal is both very short in time and very narrow in frequency.
a = 2 -> 0.5 a width first zero product 2 0.5 ms 2 kHz 1 1 1 ms 1 kHz 1 0.5 2 ms 0.5 kHz 1 (T/a)·(a/T) = 1 the time-bandwidth trade-offThe filter: h(t) and H(f)
Now the RC filter, RC = 1 ms. Its impulse response is h(t) = e^(−t/RC)/RC. Its Fourier transform, the frequency response, is H(f) = 1/(1 + j2πf·RC): 1 at 0 Hz, smaller at higher f. Half power at 159 Hz.
R = 1 kΩ, C = 1 µF, RC = 1 ms h(t) = (1/RC)·e^(−t/RC) for t ≥ 0 H(f) = 1/(1 + j2πf·RC) |H(f)| = 1/√(1 + (2πf·RC)²) |H(0)| = 1 |H(159 Hz)| = 1/√2 (half power) |H(0.5 kHz)| = 0.303 h(t) from "Convolution and the impulse response"; Bode plots: CircuitsIn time: convolve
Feed the delayed pulse (0 to 1 ms) into the filter. The output is a convolution, y = x ∗ h: each instant of x adds a decaying copy of h. The edges round off; y peaks at 0.632 V at t = 1 ms.
y(t) = ∫ x(τ)·h(t − τ) dτ 0 ≤ t < 1: y = 1 − e^(−t) t ≥ 1: y = (1 − e^(−1))·e^(−(t − 1)) y(1 ms) = 1 − e^(−1) = 0.632 V (the peak) an integral for every single tIn frequency: multiply
In frequency there is no integral: Y(f) = X(f)·H(f), one multiplication per frequency. At 0.5 kHz, |X| = 0.637 and |H| = 0.303, so |Y| = 0.193 V·ms. The filter keeps low frequencies and shrinks the rest.
x ∗ h <-> X(f)·H(f) |Y(f)| = |X(f)|·|H(f)| f = 0.5 kHz: |X| = 0.637 V·ms |H| = 0.303 |Y| = 0.637 × 0.303 = 0.193 V·ms the delay only adds an angle, so |X| is the centred pulse's |X|Check it in Python
numpy samples every 0.002 ms. np.convolve gives y; np.fft.rfft times the step gives spectra. At 0.5 kHz, |FFT of y| = 0.193 and |FFT of x| × |FFT of h| = 0.193: convolution in time is multiplication in frequency.
import numpy as np t = np.arange(4000) * 0.002 x = np.where(t < 1, 1.0, 0.0) h = np.exp(-t) y = np.convolve(x, h)[:4000] * 0.002 F = lambda s: np.fft.rfft(s) * 0.002 >>> f = np.fft.rfftfreq(4000, 0.002) >>> print(f[4]) # kHz 0.5 >>> print(round(abs(F(y)[4]), 3)) 0.193 >>> print(round(abs(F(x)[4] * F(h)[4]), 3)) 0.193 (Python 3 with numpy; t in ms, f in kHz)
5 quick questions
Choose one answer per question. You can change your choices before checking them.
01You delay a signal by 2 ms. What happens to the size |X(f)| of its spectrum?
x(t − t0) ↔ X(f)·e^(−j2πf·t0). The factor e^(−j2πf·t0) has size 1, so |X(f)| is unchanged; only the angle changes, by −360°·f·t0.
02A delay of t0 = 0.5 ms turns the component at 0.5 kHz by what angle?
The angle is −360°·f·t0 = −360° × 0.5 kHz × 0.5 ms = −90°. Higher frequencies turn further: −180° at 1 kHz.
03The 1 ms pulse has its first spectral zero at 1 kHz. Where is the first zero of x(4t), a pulse 0.25 ms wide?
x(at) ↔ X(f/a)/|a|: with a = 4 the spectrum is four times as wide, so the zero moves from 1 kHz to 4 kHz (and the peak drops to 0.25 V·ms).
04y = x ∗ h in time. What is Y(f)?
The convolution theorem: convolution in time becomes multiplication in frequency, one multiplication per frequency.
05At 0.5 kHz, |X| = 0.637 V·ms and the RC filter has |H| = 0.303. What is |Y| there?
|Y| = |X|·|H| = 0.637 × 0.303 = 0.193 V·ms. The filter passes only about 30% of the 0.5 kHz component.
Glossary
- Spectrum X(f)
- The Fourier transform of a signal: one complex number per frequency f, with a size |X(f)| and an angle.
- sinc
- The function sinc(u) = sin(πu)/(πu), with sinc(0) = 1. It is zero at every non-zero whole number u. A rectangular pulse of width T has spectrum T·sinc(fT).
- Time-shift property
- Delaying a signal by t0 multiplies its spectrum by e^(−j2πf·t0): the size stays the same, the angle changes by −360°·f·t0.
- Scaling property
- x(at) ↔ X(f/a)/|a|. Squeezing a signal in time (a > 1) stretches its spectrum in frequency, and the other way round.
- Time-bandwidth trade-off
- A signal cannot be both very short in time and very narrow in frequency: for the pulse, width × first-zero frequency is always 1.
- Frequency response H(f)
- The Fourier transform of a system's impulse response h(t). It says how much the system scales and turns each frequency.
- Convolution theorem
- The Fourier transform of x ∗ h is X(f)·H(f): convolution in time is multiplication in frequency.
Notes and sources
- The pulse (1 V, 1 ms), the delay (0.5 ms) and the RC filter (1 kΩ, 1 µF, RC = 1 ms) are chosen example values. Every curve and number in the figure is computed from the formulas in this lesson's model, and the tests check them against separate numerical integrals.
- Time is in ms and frequency in kHz (cycles per ms), so a spectrum like X(f) has units of V·ms. The convention is X(f) = ∫ x(t)·e^(−j2πft) dt, with f in cycles per unit time; books that use ω = 2πf write the same properties with ω.
- np.fft.rfft is a sum, not an integral, so it is multiplied by the step 0.002 ms to approximate X(f). The full np.convolve output has 7999 values; [:4000] keeps the ones that line up with t. Sampling and the DFT get their own lessons later in this course.
- A. V. Oppenheim, A. S. Willsky, S. H. Nawab, Signals and Systems, 2nd ed., Pearson (ch. 4: The Continuous-Time Fourier Transform, properties and the convolution property)
- B. P. Lathi, R. A. Green, Linear Systems and Signals, 3rd ed., Oxford University Press, 2018 (Internet Archive record)
- MIT OpenCourseWare RES.6-007 Signals and Systems (A. V. Oppenheim), Lecture 9: Fourier Transform Properties
- MIT OpenCourseWare 6.003 Signals and Systems (D. Freeman, Fall 2011), Lecture 16: Fourier Transform
- Fourier transform (Wikipedia): time shifting, time scaling and convolution properties, ordinary-frequency convention
- Convolution theorem (Wikipedia): continuous and DFT (circular) forms
- Sinc function (Wikipedia): normalised sinc, zeros at the non-zero integers, transform of the rectangular function
- RC circuit (Wikipedia): H(s) = 1/(1 + RCs), cutoff f_c = 1/(2πRC), impulse response
- NumPy documentation: numpy.fft.rfft
- NumPy documentation: numpy.fft.rfftfreq
- NumPy documentation: numpy.convolve (full mode, length N + M − 1)
Quiz Unlocks after the last step.