Computer Systems Modelling · Section 5.7 · Interactive lab

The Fourier transform and its properties

A Fourier series describes an eternal periodic signal. To describe an aperiodic signal, we let the period grow without limit, and the series becomes the Fourier transform. This lab follows Section 5.7: the limit itself, the standard pairs of Table 5.2 (including the ones with impulses), the properties that let us compute new transforms from old ones, and the convolution property that makes transforms worth the trouble.

How it works and what to try

How it works: In four tabs. (1) From series to transform: stretch the period of Example 5.10’s pulse train and watch the scaled coefficients fill in τ sinc(ωτ/2), with optional OFDM neighbours placed on its zeros. (2) Transform pairs: for each row of Table 5.2, damp the signal by e−ε|t| and watch its transform sharpen into impulses as ε → 0. (3) Properties: apply linearity, time shifting, time scaling, duality or differentiation and compare the predicted transform with one computed directly, in magnitude and phase. (4) Convolution: vary the system and input of Example 5.18 and compare the transform method with the convolution integral. Python code for each tab updates as you go.

Try this: Shrink ε for a constant and see 2πδ(ω) emerge. Slide a delay and see the magnitude stay put while the phase tilts. Halve the speed of a pulse and see its transform’s zero crossings move twice as close together. Check that differentiating a rectangular pulse gives two impulses whose transform is jω times the original.

Section, example, table and equation numbers refer to Chapter 5 of S. Keshav, Mathematical Foundations of Computer Networking, Addison-Wesley, 2012.

A single pulse is a pulse train with an infinite period

Go back to the pulse train of Example 5.9 (see the last tab of the Fourier Series Lab) and keep the width τ fixed while the spacing T0 grows. The coefficients ck sit under the curve (τ/T0) sin(ωτ/2)/(ωτ/2), spaced ω0 = 2π/T0 apart. As T0 → ∞ the pulse train becomes a single pulse and the samples crowd together until they fill the curve. Taking the same limit of EQ 5.33 for a general signal defines its Fourier transform:

X(jω) = ∞∫−∞ x(t)e−jωt dt,    x(t) ↔ X(jω)(EQ 5.37, 5.38)

Why X(jω) and not X(ω)? The transform depends only on the real frequency ω, so X(ω) would be just as correct. Writing X(jω) is a convention that links it to the Laplace transform of Section 5.8, X(s) = ∫x(t)e−stdt with s = σ + jω: the Fourier transform is X(s) evaluated on the imaginary axis, s = jω, when that axis lies in the region of convergence. So a transfer function such as H(s) = 1/(s + 2) becomes H(jω) = 1/(jω + 2) just by substitution. The convention is only notation: an impulse in frequency still has a real argument, as in δ(ω − ω0), and some properties look awkward in it, such as time scaling, X(jω/a), and duality, X(jt) ↔ 2πx(−ω).

|X(jω)| tells us how much of the signal is at frequency ω; X(0) is the DC component. Each T0ck is exactly X(jkω0) for one pulse, which is why scaling by T0 keeps the samples on a fixed curve. For the pulse of height 1 and width τ centred on the origin, rect(t/τ), Example 5.10 finds

X(jω) = τ sin(ωτ/2)ωτ/2 = τ sinc(ωτ/2)(EQ 5.39)

It peaks at τ and is zero at ω = 2kπ/τ, k ≠ 0. A signal has no energy at its zero crossings, so another narrow-band signal placed there does not interfere with it. This is the idea behind orthogonal frequency division multiplexing (OFDM), used in 4G and WiFi.

1.00
3
1.5τa single pulse (T₀ → ∞)

Readings

ω₀ = 2π/T₀
—
samples in the main lobe
—
X(0) = τ
—
first zero, 2π/τ
—
—
The signal
T0ck against ω = kω0samples; τ sinc(ωτ/2), EQ 5.39 (dashed)
Python · EQ 5.37 for a single pulse

    

What to notice

Without the scaling, every coefficient shrinks towards zero as T0 grows, because a single pulse is a vanishing fraction of an infinitely long period. Multiplying by T0 undoes this, and the samples then sit on one fixed curve that does not depend on T0. The transform is that curve.

A Fourier series has a value only at the harmonics kω0; a Fourier transform has a value at every frequency. An aperiodic signal has no fundamental frequency, so it needs them all.

Turn on the OFDM neighbours. Each neighbour is the spectrum of the same pulse shifted to a new frequency, 2π/τ away. Its peak falls exactly on a zero of the original, and vice versa, so a receiver sampling at each peak sees only one of them.

Try these

  1. With τ = 1, compute X(jω) at ω = π by hand. Then check it against the curve and the Python output.
    Show answer
    X(jπ) = sin(π/2)/(π/2) = 2/π ≈ 0.6366. At half the first zero crossing, the transform has fallen to about 64% of its peak.
  2. Turn off the scaling and stretch the period. Why does c0 go to zero, while X(0) stays at τ?
    Show answer
    c0 = τ/T0 is the average of the signal over one period, which goes to zero as the period becomes infinite. X(0) = ∫x(t)dt is the total area of the pulse, which stays at τ. The transform measures totals where the series measured averages.
  3. For OFDM, symbols of length τ = 1 ms are sent on several subcarriers. How far apart must the subcarrier frequencies be, in hertz?
    Show answer
    The zero crossings are 2π/τ rad/s apart, which is 1/τ Hz. So the subcarriers must be spaced by multiples of 1/(1 ms) = 1 kHz. Shorter symbols need wider spacing, which is another view of the trade-off between duration and bandwidth.