---
title: The Fourier transform for systems
heading: Spectra of pulses, and what time operations do to them
eyebrow: C9 · Lesson 16 · The Fourier transform for systems
xp: 40
---

::: hook
A periodic signal has a spectrum of lines, its harmonics. A single pulse, a click, a radar burst or one bit on a wire, isn't periodic, but it still has a spectrum: a continuous spread of frequencies. The Fourier transform gives it. For systems work its value is in a handful of pairs and properties: why short pulses need wide bandwidth, why a delay only changes phase, and why a filter's effect is a multiplication.
:::

::: play
- The blue curve is the spectrum of a rectangular pulse of width T, scaled to 1 at zero frequency: $\lvert\operatorname{sinc}(fT)\rvert$. Its first null is at 1/T.
- The other curve is a decaying exponential pulse with time constant T/2. It has no sharp edges, so its spectrum has no ripples, but it falls slowly.
- Shorten T and watch both spectra spread out. A pulse half as long needs twice the bandwidth.
:::

```sim plot
view: graph
x: f = 0..5 kHz
y: X = 0..1.05
slider: T = 0.2..3 step 0.1 = 1 ms
plot: abs(sin(pi*f*T)/(pi*f*T + 0.000001)) | label: rectangle, width T
plot: 1/sqrt(1 + (pi*f*T)^2) | label: exponential, time constant T/2
readout: first null of the rectangle, kHz = 1/T | digits: 3
readout: half-power point of the exponential, kHz = 1/(pi*T) | digits: 3
```

::: predict
## A 1 µs pulse is shortened to 0.5 µs. What happens to the frequency of its spectrum's first null?

- [ ] It halves, to 0.5 MHz
- [ ] It stays at 1 MHz
- [x] It doubles, to 2 MHz
- [ ] It quadruples

::: reveal
It doubles. The first null of a rectangular pulse of width T is at 1/T: 1 MHz for 1 µs, 2 MHz for 0.5 µs. Time and frequency scale inversely, which is why faster data rates need wider channels.
:::
:::

::: nameit
## The transform pair

$$X(j\omega) = \int_{-\infty}^{\infty} x(t)e^{-j\omega t}dt, \qquad x(t) = \frac{1}{2\pi}\int_{-\infty}^{\infty} X(j\omega)e^{j\omega t}d\omega$$

It's the limit of the Fourier series as the period grows without bound: the harmonics crowd together into a continuum.

## Pairs worth knowing

| x(t) | X |
|---|---|
| $\delta(t)$ | 1 |
| rectangle of height 1 and width T, centered at 0 | $T\operatorname{sinc}(fT)$, with $\operatorname{sinc}(u) = \sin(\pi u)/(\pi u)$ |
| $e^{-at}u(t)$, a > 0 | $1/(a + j\omega)$ |
| $e^{-\pi t^2}$ | $e^{-\pi f^2}$ |
| $\cos(\omega_0 t)$ | impulses of area π at $\pm\omega_0$ |

## Properties

| Operation | Effect on the spectrum |
|---|---|
| delay by $t_0$ | multiply by $e^{-j\omega t_0}$: magnitude unchanged, phase $-\omega t_0$ |
| compress, x(at) | $\frac{1}{\lvert a\rvert}X(j\omega/a)$: a times wider |
| multiply by $\cos\omega_0 t$ | half the spectrum shifted up by $\omega_0$, half down |
| convolve, x * h | multiply, XH |
| multiply, xh | convolve, divided by 2π |
| differentiate | multiply by $j\omega$ |

**Parseval's relation** says the energy is the same counted either way:

$$E = \int\lvert x(t)\rvert^2dt = \frac{1}{2\pi}\int\lvert X(j\omega)\rvert^2d\omega = \int\lvert X(f)\rvert^2df$$

## Time and bandwidth

A signal can't be both short and narrow-band. Whatever measure of width is used, duration times bandwidth stays above a fixed constant, and the Gaussian pulse comes closest to the limit. Sharp edges spread energy far out in frequency, which is why digital links round their pulses off.
:::

::: example
## A rectangular pulse is 1 µs long and 1 V high. What is X(0), where is the first null, and what fraction of its energy lies below that null?

::: solution
1. **X(0).** It's the pulse's area:
   $$\begin{aligned} X(0) &= \int x\,dt \\ &= 1\ \text{V·µs} \end{aligned}$$
2. **First null.** It's at 1/T = 1 MHz.
3. **Energy below the null.** Integrating $\operatorname{sinc}^2$ numerically from −1 MHz to 1 MHz gives 90.3% of the energy.
4. **What a link needs.** A link needs roughly 1/T of bandwidth to pass most of a pulse of width T, and much more to keep its square corners.

**Answer:** X(0) = 1 V·µs, the first null is at 1 MHz, and 90.3% of the energy lies below it.
:::
:::

::: example
## A signal is delayed by 2 ms. What happens to its spectrum at 1 kHz and at 250 Hz?

::: solution
1. **Magnitude.** The magnitude is unchanged everywhere.
2. **Phase.** The phase changes by
   $$-\omega t_0 = -2\pi f t_0$$
3. **At 1 kHz.** Two full turns:
   $$-2\pi \times 1000 \times 0.002 = -4\pi\ \text{rad}$$
4. **At 250 Hz.** The phase changes by −π rad.
5. **Linear phase.** The phase shift grows in proportion to frequency, and that linear phase is exactly what a pure delay looks like.

**Answer:** the magnitude is unchanged; the phase shifts by −4π rad (two full turns) at 1 kHz and by −π rad at 250 Hz.
:::
:::

::: example
## $x(t) = e^{-t}u(t)$ goes through $H(j\omega) = 1/(2 + j\omega)$. Find the output by multiplying spectra.

::: solution
1. **Multiply the spectra.**
   $$\begin{aligned} Y &= \frac{1}{(1 + j\omega)(2 + j\omega)} \\ &= \frac{1}{1 + j\omega} - \frac{1}{2 + j\omega} \end{aligned}$$
2. **Back to time.**
   $$y(t) = (e^{-t} - e^{-2t})u(t)$$
   the same answer convolution gave in lesson 7, found with algebra instead of an integral.
3. **Energy.** By Parseval's relation, or directly in time:
   $$\begin{aligned} E &= 1/2 - 2/3 + 1/4 \\ &= 1/12 \end{aligned}$$

**Answer:** $y(t) = (e^{-t} - e^{-2t})u(t)$, with an energy of 1/12.
:::
:::

::: check
kind: parts
given: A = 1 | 2 | 5; T = 0.5 | 2 | 10

## A rectangular pulse is {A} V high and {T} µs wide.

::: part
answer: A*T
unit: V·µs
tolerance: 0.5%

### What is its spectrum at zero frequency?

::: misses
- [any] The pulse's area.
:::
:::

::: part
answer: 1/T
unit: MHz
tolerance: 0.5%

### Where is the first null?

::: misses
- [1/(2*T)] The first null is at 1/T, not 1/2T.
- [any] 1/T.
:::
:::
:::

::: check
kind: parts
given: a = 10 | 100 | 1000; w = 10 | 100 | 1000

## $x(t) = e^{-\given{a}t}u(t)$.

::: part
answer: 1/sqrt(a^2 + w^2)
tolerance: 0.5%

### What is $\lvert X(j\omega)\rvert$ at ω = {w} rad/s?

::: misses
- [1/(a + w)] Add in quadrature: $\lvert a + j\omega\rvert$.
- [any] $1/\sqrt{a^2 + \omega^2}$.
:::
:::

::: part
answer: -asin((w/a)/sqrt(1 + (w/a)^2))*180/pi
unit: °
tolerance: 0.5%

### What is its phase there?

::: misses
- [any] $-\arctan(\omega/a)$.
:::
:::
:::

::: check
kind: parts
given: B = 3 | 10 | 20; a = 2 | 4 | 0.5

## A signal occupies {B} kHz. It's played back {a} times as fast: x({a}t).

::: part
answer: a*B
unit: kHz
tolerance: 0.5%

### What bandwidth does it occupy now?

::: misses
- [B/a] Compressing time stretches frequency.
- [any] {a} × {B}.
:::
:::

::: part
answer: 1/a
tolerance: 0.5%

### By what factor does its energy change?

::: misses
- [any] $\int x(at)^2dt$ is $1/a$ of the original.
:::
:::
:::

::: check
kind: parts
given: t0 = 0.5 | 2 | 5; f = 100 | 250 | 1000

## A signal is delayed by {t0} ms.

::: part
answer: -360*f*t0/1000
unit: °
tolerance: 0.5%

### What phase shift does that add at {f} Hz?

::: misses
- [any] $-360°\cdot f t_0$.
:::
:::

::: part
answer: 1
tolerance: 0

### By what factor does the magnitude change?

::: misses
- [any] A delay changes only phase.
:::
:::
:::

::: check
kind: derivation
vars: a = 0.1..100, w = 0..1000

## Check Parseval's relation for $x(t) = e^{-at}u(t)$.

::: step
answer: 1/(2*a)

### What is its energy, from the time domain?
:::

::: step
answer: 1/(a^2 + w^2)

### What is $\lvert X(j\omega)\rvert^2$?
:::

::: step
answer: 1/(2*a)

### What does $\frac{1}{2\pi}\int\lvert X\rvert^2d\omega$ give, using $\int d\omega/(a^2 + \omega^2) = \pi/a$?
:::

::: right
Right. Both ways, 1/2a.
:::
:::

::: check
kind: choice

## A 1 kHz audio band is multiplied by $\cos(2\pi \cdot 100\text{ kHz}\cdot t)$. Where does its spectrum go?

- [ ] It stays at 0 to 1 kHz, scaled by the cosine
- [x] Two copies, at half the size, around +100 kHz and −100 kHz
- [ ] One copy at 100 kHz
- [ ] It spreads over 0 to 100 kHz

::: misses
- [1] Multiplying in time convolves in frequency.
- [3] A real cosine has two impulses, so there are two copies.
- [4] The copies are shifted, not smeared.
:::
:::

::: check
kind: parts
given: w1 = 100 | 1000; w2 = 300 | 5000; w = 200 | 2000

## Two first-order low-passes with corners {w1} and {w2} rad/s are in cascade.

::: part
answer: 1/sqrt(1 + (w/w1)^2)/sqrt(1 + (w/w2)^2)
tolerance: 0.5%

### What is the combined gain at {w} rad/s?

::: misses
- [any] The magnitudes multiply.
:::
:::

::: part
answer: 20*log(1/sqrt(1 + (w/w1)^2)/sqrt(1 + (w/w2)^2))
unit: dB
tolerance: 0.5%

### And in decibels?

::: misses
- [any] The decibels add.
:::
:::
:::

::: explain
## Why does sending data faster need more bandwidth?

::: model
Each bit is sent as a pulse, and faster signaling means shorter pulses. Compressing a signal in time by some factor stretches its spectrum by the same factor, because $x(at)$ has the transform $X(j\omega/a)/\lvert a\rvert$. A rectangular pulse of width T has its main lobe out to 1/T, so halving the pulse doubles the band it needs. No filtering trick avoids this: a signal can't be both short and narrow in frequency. What filtering can do is shape the pulses so that they overlap in time without interfering at the sampling instants, which is how links get close to the minimum bandwidth.
:::
:::

::: practice
::: check
given: T = 0.1 | 1 | 4
answer: 1/T
unit: MHz
tolerance: 0.5%

## Where is the first spectral null of a {T} µs rectangular pulse?

::: misses
- [any] 1/T.
:::
:::

::: check
given: t0 = 1 | 3; f = 50 | 400
answer: -360*f*t0/1000
unit: °
tolerance: 0.5%

## What phase does a {t0} ms delay add at {f} Hz?

::: misses
- [any] $-360 f t_0$.
:::
:::

::: check
given: a = 2 | 5 | 50
answer: 1/(2*a)
tolerance: 0.5%

## What is the energy of $e^{-\given{a}t}u(t)$?

::: misses
- [any] $1/2a$.
:::
:::
:::
