0 Hz–500 Hz–1 kHz–1.5 kHz–2 kHz–X
-2-1012-101t (ms)VTIME t-3-2-1012300.51f (kHz)X(f) (V·ms)FREQUENCY f
Coloured parts: what the current step is about; everything else rests in whiteBlocks: pulse generator, test-wave oscillator, multiplier, area adder and the spectrum memoryPlots: time (pulse, test wave, shaded product) and frequency (series lines, spectrum X(f), band)The test wave, the shaded area, the swept spectrum, the lines and the band all moveA 1 V pulse 1 ms long has the transform X(f) = sin(πfτ)/(πf): 1.000 V·ms at 0 Hz, 0.637 V·ms at 500 Hz, zero at ±1, ±2 and ±3 kHz. Rebuilt from the band |f| < B, the pulse overshoots near its edges. As B grows the overshoot does not die away: it settles near 9 % of the jump (0.0895 of it) instead of going to zero; here it is 11.0 % at B = 3 kHz. This is the Gibbs phenomenon. Widening B squeezes the ripples closer to the edges.

A signal with no period

  1. A generator makes one pulse: 1 V for 1 ms, centred on t = 0, and zero at every other time. It never repeats, so it has no period, and a Fourier series cannot describe it. The Fourier transform can.

Measuring one frequency

The whole spectrum

In code, and a rule of thumb

The working

# step 1/11 · pulse

x(t) = 1 V   for |t| < τ/2
       0     elsewhere
τ = 1 ms (the pulse width)

periodic signal  -> Fourier series:
  lines at f0, 2·f0, 3·f0 ...
one pulse        -> no period, no f0
                 -> the Fourier transform

The pulse (1 V, 1 ms) and the test frequencies are chosen examples. Frequencies are in hertz, f = 1/period, and X(f) is in volt-milliseconds (V·ms). Every curve and value in the figure is computed from this model. The multiplier and area adder are a way to picture the integral, not a lab instrument. A real spectrum analyser or a computer's FFT gets the same numbers by other means; the DFT and FFT have their own lessons.