ENع
←Fourier properties
Lesson 23 · Fourier series and the Fourier transform

Fourier properties: shift, scale and convolution

15 min9 steps5 questionsIntermediate
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.

You'll learn to

Tick what you feel confident about. These self-checks do not affect your lesson score.

Fig 23 · Interactive
01 / 09

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"
Loading figure…
or ← →
Read the lesson step by step
  1. 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"
  2. 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 after
  3. The 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"
  4. 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)
  5. 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-off
  6. The 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: Circuits
  7. In 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 t
  8. In 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|
  9. 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)

Quiz Unlocks after the last step.