---
title: The time-bandwidth tradeoff
heading: Short in time means wide in frequency
eyebrow: A10 · Lesson 13 · The time-bandwidth tradeoff
xp: 40
---

::: hook
Why does a faster data link need more bandwidth? Why can't a spectrum analyzer tell two close frequencies apart instantly? Why does a scope with more bandwidth show sharper edges? All three are the same fact: a signal can't be both short in time and narrow in frequency. Squeeze it in one domain and it spreads in the other. There's a hard limit to how well you can do both, and it shows up everywhere from radar to quantum mechanics.

::: play
- The top panel shows a smooth pulse, a Gaussian, with time spread $\sigma_t$. The bottom panel is its spectrum.
- Make the pulse shorter. What does the spectrum do?
- The readouts give each width and their product. Does the product change as you move the slider?
:::
:::

```sim plot
view: spectrum
x: t = 0..20m s
y: v = -0.2..1.2 V
samples: 2048
freq: f = 0..3k Hz
slider: st = 0.1..2 step 0.05 = 0.5 ms
plot: exp(-(t - 0.01)^2/(4*(st/1000)^2)) | label: pulse
readout: time spread σt = st ms
readout: frequency spread σf = 1000/(4*pi*st) Hz
readout: σt × σf = 1/(4*pi) | digits: 4
```

::: predict
## A data link sends pulses 1 µs long. You make them 10 times shorter, to send 10 times faster. What happens to the bandwidth the link needs?

- [ ] It stays the same
- [x] It goes up about 10 times
- [ ] It goes up about 100 times
- [ ] It goes down

::: reveal
It goes up about 10 times. The spectrum of a pulse of width τ reaches out to around $1/\tau$, so pulses 10 times shorter need 10 times the bandwidth. That's why data rate and bandwidth go together, and why faster links need better cables, wider radio channels or cleverer ways of packing bits.
:::
:::

::: nameit
## Time and frequency spread

**The tradeoff.** Measure how spread out a signal's energy is in time, $\sigma_t$ (the root-mean-square width of $|x(t)|^2$), and how spread out it is in frequency, $\sigma_f$ (the same for $|X(f)|^2$). For any signal,

$$\sigma_t\,\sigma_f \ge \frac{1}{4\pi}$$

The Gaussian pulse, $e^{-t^2/4\sigma_t^2}$, is the one shape that meets the limit exactly, which is why it shows up in optics, radar and communications whenever both widths matter. Every other shape does worse. The same mathematics gives Heisenberg's uncertainty principle in quantum mechanics (course B9).

**Rules of thumb** (each is the tradeoff for a particular shape and definition of "width"):

| Situation | Rule |
|---|---|
| a pulse of width τ | needs bandwidth of about $1/\tau$ (its first null) |
| a first-order edge | rise time $t_r \approx 0.35/B$ (A8.6) |
| telling two tones $\Delta f$ apart | listen for at least $T \approx 1/\Delta f$ |
| symbols through a channel of bandwidth $B$ | at most $2B$ symbols per second (Nyquist) |

**Frequency resolution.** An FFT of a record $T$ long has bins $1/T$ apart (A10.7's spectrum sim had a 10 ms window and 100 Hz bins). To resolve 1 Hz you need at least a second of signal, and no amount of computing gets around it. Spectrum analyzers call this the resolution bandwidth: a narrower one shows finer detail but takes longer to sweep.

**Engineering consequences.** A scope's bandwidth limits the fastest edge it can show. A radar's pulse length limits how close two targets can be and still be told apart, and its bandwidth sets the same limit from the other side. A filter with a very sharp cutoff (narrow in frequency) has an impulse response that rings for a long time.
:::

::: example
## You need to see edges that rise in 1 ns. What scope bandwidth do you need?

::: solution
1. **Use the rise-time rule.**
   $$\begin{aligned} B &\approx \frac{0.35}{t_r} \\ &= \frac{0.35}{1\ \text{ns}} \\ &= 350\ \text{MHz} \end{aligned}$$
2. **Why it matters.** A slower scope shows its own rise time instead of the signal's.

**Answer:** about 350 MHz.
:::
:::

::: example
## Two tones are 0.5 Hz apart and you sample at 1 kHz. How many samples do you need to tell them apart?

::: solution
1. **The record length.** The record must last at least
   $$\begin{aligned} T &= \frac{1}{\Delta f} \\ &= \frac{1}{0.5\ \text{Hz}} \\ &= 2\ \text{s} \end{aligned}$$
2. **The number of samples.** At 1 kHz that's
   $$1000\ \text{s}^{-1} \times 2\ \text{s} = 2000$$
3. **What helps.** A faster sample rate wouldn't help: only a longer record does.

**Answer:** 2000 samples, a record 2 s long.
:::
:::

::: example
## An RC low-pass has $\tau$ = 1 µs. What are its rise time and bandwidth, and their product?

::: solution
1. **The rise time.** The 10–90% rise time is
   $$\begin{aligned} t_r &= \tau\ln 9 \\ &= 2.2\ \text{µs} \end{aligned}$$
2. **The bandwidth.** The 3 dB bandwidth is
   $$\begin{aligned} B &= \frac{1}{2\pi\tau} \\ &= 159\ \text{kHz} \end{aligned}$$
3. **Their product.** The $\tau$ cancels, so it's independent of $\tau$:
   $$\begin{aligned} t_rB &= \frac{\ln 9}{2\pi} \\ &= 0.35 \end{aligned}$$
4. **Where the rule comes from.** That's where the rule $t_r \approx \frac{0.35}{B}$ comes from: it's exact for a single pole and close for most other low-pass responses.

**Answer:** a rise time of 2.2 µs and a bandwidth of 159 kHz, whose product is 0.35 whatever $\tau$ is.
:::
:::

::: check
given: tau = 0.5 | 2 | 4 | 5
answer: 1/tau
unit: GHz
tolerance: 0.5%

## A link sends pulses {tau} ns long. About how much bandwidth do they need (to their first spectral null)?

::: right
Right. About $1/\tau$ = {answer}.
:::

::: misses
- [tau] Bandwidth goes as one over the pulse width.
- [1/(2*tau)] Out to the first null it's $1/\tau$.
- [any] Not yet. A pulse of width τ spreads out to about $1/\tau$.
:::
:::

::: check
given: df = 0.1 | 0.5 | 2 | 10
answer: 1/df
unit: s
tolerance: 0.5%

## You need an FFT to separate two tones {df} Hz apart. At least how long a record must you capture?

::: right
Right. The bins are $1/T$ apart, so $T \ge 1/\Delta f$ = {answer}.
:::

::: misses
- [df] It's one over the spacing.
- [2/df] One record of $1/\Delta f$ gives bins exactly $\Delta f$ apart.
- [any] Not yet. Bin spacing is $1/T$.
:::
:::

::: check
given: B = 1 | 3 | 6 | 20
answer: 2*B
unit: Msym/s
tolerance: 0.5%

## A channel passes frequencies up to {B} MHz. What is the most symbols per second it can carry without them blurring into each other?

::: right
Right. Nyquist's limit: $2B$ = {answer}.
:::

::: misses
- [B] Nyquist's limit is twice the bandwidth.
- [B/2] It's $2B$, not $B/2$.
- [any] Not yet. At most $2B$ symbols per second.
:::
:::

::: check
given: st = 0.1 | 0.2 | 0.5 | 1
answer: 1/(4*pi*st*1e-3)
unit: Hz
tolerance: 0.5%

## A Gaussian pulse has a time spread of {st} ms. What is its frequency spread?

::: right
Right. A Gaussian meets the limit exactly: $\sigma_f = 1/(4\pi\sigma_t)$ = {answer}.
:::

::: misses
- [1/(st*1e-3)] For the rms widths the product is $1/(4\pi)$, not 1.
- [1/(2*pi*st*1e-3)] The minimum product is $1/(4\pi)$.
- [1/(4*pi*st)] Convert milliseconds to seconds.
- [any] Not yet. $\sigma_t\sigma_f = 1/(4\pi)$.
:::
:::

::: check
kind: choice

## A filter has an extremely sharp cutoff: it passes everything below 1 kHz and nothing above. What does its impulse response look like?

- [ ] A single short spike
- [x] A long ringing oscillation that dies away slowly
- [ ] A smooth exponential decay
- [ ] It has no impulse response

::: right
Right. Being narrow and sharp in frequency means being long in time: its impulse response is a sinc that rings for many cycles.
:::

::: misses
- [1] A short spike would have a wide, smooth spectrum.
- [3] That's a gentle first-order filter.
- [4] Every linear filter has one.
:::
:::

::: check
kind: parts
given: tau = 0.1 | 1 | 10

## An RC low-pass has $\tau$ = {tau} µs.

::: part
answer: tau*ln(9)
unit: µs
tolerance: 0.5%

### What is its 10–90% rise time?

::: misses
- [tau] That's to 63%.
- [any] $\tau\ln 9$.
:::
:::

::: part
answer: 1/(2*pi*tau)*1000
unit: kHz
tolerance: 0.5%

### What is its bandwidth?

::: misses
- [1/tau*1000] That's in rad/s ×1000; divide by $2\pi$.
- [any] $\frac{1}{2\pi\tau}$.
:::
:::
:::

::: check
kind: derivation
vars: tr = 0.1..10

## A scope must show edges with rise time $t_r$ (ns).

::: step
answer: 0.35/tr

### What bandwidth in GHz does the rule $B = \frac{0.35}{t_r}$ require?
:::

::: right
Right. A 1 ns edge needs 350 MHz; in practice you'd choose several times more so the scope's own rise time doesn't add.
:::
:::

::: explain
## Why does a shorter pulse need a wider range of frequencies?

::: model
To build a pulse out of sinusoids, they must add up where the pulse is and cancel everywhere else. Sinusoids whose frequencies are close together stay in step for a long time, so they can only cancel far away: they make long pulses. To cancel within a short time, the components must drift out of step quickly, which needs frequencies spread far apart. So the shorter the pulse, the wider the band of frequencies it takes.
:::
:::

::: practice

::: check
given: B = 10 | 50 | 100 | 500
answer: 0.35/B*1000
unit: ns
tolerance: 1%

## A scope has a {B} MHz bandwidth. Roughly what is the fastest rise time it can show?

::: misses
- [1/B*1000] The 10–90% rise time is about $0.35/B$.
- [any] $t_r \approx 0.35/B$.
:::
:::

::: check
given: R = 1 | 10 | 100
answer: R/2
unit: MHz
tolerance: 0.5%

## To send {R} Msymbols/s, what is the least bandwidth the channel needs?

::: misses
- [R] Nyquist allows $2B$ symbols per second, so $B = R/2$.
- [any] $B \ge R/2$.
:::
:::

::: check
given: k = 2 | 5 | 10; B = 1 | 3 | 7
answer: k*B
unit: MHz
tolerance: 0.5%

## A pulse needs about {B} MHz of bandwidth. You make it {k} times shorter. About how much does it need now?

::: misses
- [B/k] Shorter pulses need more bandwidth.
- [any] Bandwidth scales as one over the width.
:::
:::
:::
