---
title: Duration and bandwidth
heading: Why short pulses need wide spectra, and the rules of thumb that follow, from scope rise times to radar resolution
eyebrow: C9 · Lesson 17 · Duration and bandwidth
xp: 40
---

::: hook
Lesson 16's scaling property said that compressing a signal in time stretches its spectrum by the same factor. That one fact sets limits everywhere. An oscilloscope with 350 MHz of bandwidth can't show an edge faster than about 1 ns. A radar can't separate two targets closer than the speed of light divided by twice its bandwidth. A laser that makes 100 fs pulses can't have a narrow color. And no signal can be both brief and narrowband: the product of its duration and its bandwidth has a floor, the signal-processing form of the uncertainty principle.
:::

::: play
- The magnitude spectrum of a rectangular pulse of width $T$: $|T\,\text{sinc}(fT)|$, with sinc(x) = sin(πx)/(πx). Narrow the pulse and the spectrum spreads out; widen it and the spectrum tightens.
- The first null always sits at $1/T$ and the half-power point at $0.443/T$: the product of duration and bandwidth is fixed by the pulse's shape, not its size.
:::

```sim plot
view: graph
x: f = 0..5
y: X = 0..1.05
slider: T = 0.2..2 step 0.05 = 1
plot: abs(sinc(f*T))*T/2 | samples: 1000 | label: |X(f)|, scaled
marker: x = 1/T | label: first null
readout: first null in MHz, for T in µs = 1/T
readout: half-power bandwidth in MHz = 0.443/T
```

::: predict
## An oscilloscope's bandwidth is 100 MHz, set by a response like a single RC pole. What's the fastest 10 to 90% rise time it can display?

- [ ] 10 ns
- [x] 3.5 ns
- [ ] 1 ns
- [ ] 35 ns

::: reveal
3.5 ns. A single pole has a 10 to 90% rise time of $2.2RC$ and a 3 dB bandwidth of $1/(2\pi RC)$, so their product is $2.2/2\pi$ = 0.35. A scope shows an edge as the root-sum-square of the true rise time and its own, so to measure a 1 ns edge within a few percent it needs a rise time several times shorter: several gigahertz of bandwidth.
:::
:::

::: nameit
## Scaling

If $x(t) \leftrightarrow X(f)$ then $x(at) \leftrightarrow \frac{1}{|a|}X(f/a)$. Squeezing time by $a$ stretches frequency by $a$. Any measure of duration times any measure of bandwidth is therefore a constant for a given pulse shape.

## Products for common shapes

| Pulse | Duration | Bandwidth | Product |
|---|---|---|---|
| Rectangle, width $T$ | $T$ | first null $1/T$ | 1 |
| Rectangle | $T$ | half power $0.443/T$ | 0.443 |
| Gaussian | full width at half maximum | FWHM of power spectrum | 0.441 |
| Single-pole step | 10 to 90% rise $t_r$ | 3 dB $f_c$ | 0.35 |

## The uncertainty principle

Define an RMS duration $\sigma_t$ from $|x(t)|^2$ and an RMS bandwidth $\sigma_\omega$ from $|X(\omega)|^2$, both normalized by the energy. Then

$$\sigma_t\,\sigma_\omega \ge \frac12$$

with equality only for a Gaussian. No pulse can be arbitrarily well located in both time and frequency. The same inequality, with $\hbar$, is Heisenberg's.

## Consequences

- **Resolution in time needs bandwidth.** A radar separates echoes $\Delta t$ apart only if its bandwidth $B \gtrsim 1/\Delta t$, giving a range resolution $c/2B$: 1.5 m for 100 MHz.
- **Resolution in frequency needs time.** Separating two tones $\Delta f$ apart needs a record of about $1/\Delta f$ (lesson 25's windows refine this).
- **Pulse compression.** A chirp sweeps its frequency during a long pulse, so it has both a long duration and a wide bandwidth, $TB \gg 1$; a matched filter (lesson 11) compresses it to a pulse of width $1/B$. Radars and sonars use it to get the energy of a long pulse with the resolution of a short one.
:::

::: example
## A 1 µs rectangular radar pulse: where is its spectrum's first null, its half-power bandwidth, and its range resolution?

::: solution
1. **First null.**
   $$1/T = 1\ \text{MHz}$$
2. **Half-power bandwidth.** One-sided, it's
   $$0.443/T = 443\ \text{kHz}$$
   The spectrum is symmetric about the carrier, so the RF signal occupies twice that.
3. **Range resolution.** Two echoes are resolved if they're separated by more than about the pulse width, 1 µs, which is
   $$c \times 1\text{ µs}/2 = 150\ \text{m}$$
   of range.
4. **Compare a chirp.** A 100 MHz chirp of the same length would resolve 1.5 m.

**Answer:** the first null is at 1 MHz, the half-power bandwidth is 443 kHz (one-sided), and the range resolution is 150 m.
:::
:::

::: example
## A laser emits Gaussian pulses 100 fs long (FWHM) at 800 nm. What's the narrowest spectral width they can have, in terahertz and in nanometers?

::: solution
1. **Narrowest bandwidth.** For a Gaussian, $\Delta t\,\Delta f$ = 0.441 at best, so
   $$\begin{aligned} \Delta f &= 0.441/100\ \text{fs} \\ &= 4.41\ \text{THz} \end{aligned}$$
2. **In wavelength.**
   $$\begin{aligned} \Delta\lambda &= \lambda^2\Delta f/c \\ &= \frac{(8 \times 10^{-7})^2 \times 4.41 \times 10^{12}}{3 \times 10^8}\ \text{m} \\ &= 9.4\ \text{nm} \end{aligned}$$
3. **Transform-limited.** An ultrafast laser is necessarily broadband; such a pulse is called transform-limited, and any chirp makes it wider in time than this.

**Answer:** at least 4.41 THz, which is 9.4 nm at 800 nm.
:::
:::

::: example
## A triangle pulse, $x(t) = 1 - |t|$ for $|t| \le 1$. How close does it come to the uncertainty bound?

::: solution
1. **Energy.**
   $$\begin{aligned} E &= \int(1 - |t|)^2dt \\ &= 2/3 \end{aligned}$$
2. **Spread in time.**
   $$\begin{aligned} \sigma_t^2 &= \int t^2(1 - |t|)^2dt/E \\ &= (1/15)/(2/3) \\ &= 1/10 \end{aligned}$$
3. **Spread in frequency.** Parseval gives $\sigma_\omega^2 = \int|x'(t)|^2dt/E$, and $|x'| = 1$ on the pulse, so
   $$\begin{aligned} \sigma_\omega^2 &= 2/(2/3) \\ &= 3 \end{aligned}$$
4. **The product.**
   $$\begin{aligned} \sigma_t\sigma_\omega &= \sqrt{3/10} \\ &= 0.548 \end{aligned}$$
   within 10% of the Gaussian's 0.5.
5. **What it shows.** A smooth, compact pulse is nearly optimal, while a rectangle, whose derivative is infinite at its edges, has an infinite RMS bandwidth.

**Answer:** its time-bandwidth product is $\sqrt{3/10} = 0.548$, within 10% of the bound of 0.5.
:::
:::

::: check
given: T = 0.1 | 0.5 | 2 | 10
answer: 1/T
unit: MHz
tolerance: 0.5%

## A rectangular pulse is {T} µs wide. Where is its spectrum's first null?

::: right
Right. $1/T$ = {answer}.
:::

::: misses
- [0.443/T] That's the half-power point; the first null is at $1/T$.
- [1/(2*T)] The sinc's first zero is at $fT = 1$.
- [any] Not yet. $\text{sinc}(fT) = 0$ first at $f = 1/T$.
:::
:::

::: check
given: B = 20 | 100 | 350 | 1000
answer: 0.35/B*1e3
unit: ns
tolerance: 1%

## A system with a single-pole response has a {B} MHz bandwidth. What is its 10 to 90% rise time?

::: right
Right. $t_r \approx 0.35/f_c$ = {answer}.
:::

::: misses
- [1/B*1e3] The product is 0.35, not 1.
- [1/(2*pi*B)*1e3] That's the time constant $RC$; the rise time is $2.2RC$.
- [any] Not yet. $t_r = 2.2RC$ and $f_c = 1/(2\pi RC)$.
:::
:::

::: check
given: B = 10 | 50 | 150 | 500
answer: 3e8/(2*B*1e6)
unit: m
tolerance: 0.5%

## A radar has {B} MHz of bandwidth. What's its range resolution?

::: right
Right. $c/(2B)$ = {answer}.
:::

::: misses
- [3e8/(B*1e6)] Divide by two: the echo travels out and back.
- [any] Not yet. $\Delta R = c/2B$.
:::
:::

::: check
given: dt = 10 | 50 | 100 | 500; lam = 800 | 1550
answer: lam^2*1e-18*0.441/(dt*1e-15)/3e8*1e9
unit: nm
tolerance: 1%

## A transform-limited Gaussian laser pulse is {dt} fs long (FWHM) at {lam} nm. What's its spectral width in nm?

::: right
Right. $\Delta f = 0.441/\Delta t$, and $\Delta\lambda = \lambda^2\Delta f/c$ = {answer}.
:::

::: misses
- [lam^2*1e-18/(dt*1e-15)/3e8*1e9] The Gaussian's product is 0.441, not 1.
- [any] Not yet. Find $\Delta f$ from 0.441, then convert with $\lambda^2/c$.
:::
:::

::: check
kind: parts
given: Tp = 10 | 50; B = 20 | 100

## A radar transmits a {Tp} µs chirp sweeping {B} MHz.

::: part
answer: Tp*B
tolerance: 0.5%

### What is its time-bandwidth product?

::: misses
- [Tp/B] Multiply duration by bandwidth.
- [any] Not yet. $TB$ with µs times MHz.
:::
:::

::: part
answer: 1/B*1e3
unit: ns
tolerance: 0.5%

### About how long is the pulse after the matched filter compresses it?

::: misses
- [Tp*1e3] Compression shrinks it to about $1/B$.
- [any] Not yet. About $1/B$.
:::
:::

::: right
Right. The compression ratio is the time-bandwidth product: a long pulse's energy with a short pulse's resolution.
:::
:::

::: check
kind: choice

## Which pulse shape achieves the smallest possible product of RMS duration and RMS bandwidth?

- [x] The Gaussian
- [ ] The rectangle
- [ ] The triangle
- [ ] Any pulse, if it's short enough

::: right
Right. $\sigma_t\sigma_\omega = \frac12$ only for a Gaussian. The triangle comes within 10%, and the rectangle's sharp edges make its RMS bandwidth infinite.
:::

::: misses
- [2] Its abrupt edges give it an infinite RMS bandwidth.
- [3] Close, at 0.548, but not the minimum.
- [4] Shortening a pulse widens its spectrum by the same factor; the product doesn't change.
:::
:::

::: check
kind: derivation
vars: R = 10..10000, C = 1e-12..1e-6

## Show that a single-pole low-pass has $t_rf_c \approx 0.35$.

::: step
answer: R*C*ln(9)

### The step response is $1 - e^{-t/RC}$. How long does it take to go from 10% to 90%?
:::

::: step
answer: ln(9)/(2*pi)

### Multiply by $f_c = 1/(2\pi RC)$.
:::

::: right
Right. $\ln 9/2\pi$ = 0.350, independent of R and C.
:::
:::

::: check
kind: python
given: a = 0.5 | 1 | 2

## Compute RMS duration and bandwidth numerically. For a signal sampled on a fine grid, $\sigma_t^2 = \int t^2|x|^2dt/E$ (with $t$ measured from the centroid) and, by Parseval, $\sigma_\omega^2 = \int|x'(t)|^2dt/E$. Write `rms_product(x, t)` for arrays `x`, `t` (use `numpy.gradient` for the derivative and `numpy.trapezoid` or sums for integrals). Evaluate it for a Gaussian $e^{-t^2/(2a^2)}$ with `a` = {a} on $|t| \le 12a$ with 200 001 points (`gauss`), and for the triangle $\max(0, 1 - |t|/a)$ on the same grid (`tri`).

```python starter
import numpy as np
def rms_product(x, t):
    return 0.5
t = np.linspace(-12 * a, 12 * a, 200001)
gauss = tri = 0.5
```

```python solution
import numpy as np
def rms_product(x, t):
    dt = t[1] - t[0]
    E = np.sum(x**2) * dt
    tc = np.sum(t * x**2) * dt / E
    st2 = np.sum((t - tc)**2 * x**2) * dt / E
    dx = np.gradient(x, dt)
    sw2 = np.sum(dx**2) * dt / E
    return np.sqrt(st2 * sw2)
t = np.linspace(-12 * a, 12 * a, 200001)
gauss = rms_product(np.exp(-t**2 / (2 * a**2)), t)
tri = rms_product(np.maximum(0, 1 - np.abs(t) / a), t)
```

```python tests
import numpy as np
assert abs(gauss - 0.5) < 1e-4, "The Gaussian should meet the bound, 0.5."
assert abs(tri - np.sqrt(0.3)) < 2e-3, "The triangle's product is √0.3 = 0.548."
t2 = np.linspace(-5, 5, 100001)
assert abs(rms_product(np.exp(-(t2 - 1)**2 / 2), t2) - 0.5) < 1e-3, "Measure time from the centroid, so a shifted Gaussian gives 0.5 too."
```

::: right
Right. The products don't depend on the width $a$, only on the shape, as scaling says they must.
:::
:::

::: explain
## A designer wants a radar with 1 m range resolution and enough energy per pulse to see distant targets, but the transmitter's peak power is limited. Explain why a short pulse can't deliver both, and how a chirp gets around it.

::: model
Range resolution needs bandwidth: separating echoes 1 m apart in range means separating them by 6.7 ns in time, which needs about 150 MHz of bandwidth. A plain pulse gets its bandwidth by being short, about 6.7 ns, so with limited peak power it carries little energy, and detection range depends on energy. A chirp sweeps its frequency across 150 MHz during a long pulse, say 10 µs, so it has the bandwidth of a short pulse and the energy of a long one: its time-bandwidth product is 1500 instead of about 1. In the receiver a matched filter delays each frequency by just the right amount to line them up, compressing the echo to about 1/B = 6.7 ns, so the resolution is set by the bandwidth while the energy is set by the long duration.
:::
:::

::: practice

::: check
given: tr = 0.1 | 0.7 | 3
answer: 0.35/tr
unit: GHz
tolerance: 1%

## About what bandwidth, in GHz, does a single-pole system with a {tr} ns rise time have?

::: misses
- [1/tr] The product is 0.35, not 1.
- [any] $f_c \approx 0.35/t_r$.
:::
:::

::: check
given: T = 0.1 | 0.25 | 0.5 | 1 | 2 | 4 | 10
answer: 0.443/T
unit: MHz
tolerance: 1%

## What's the half-power bandwidth of a {T} µs rectangular pulse?

::: misses
- [1/T] That's the first null.
- [any] $0.443/T$.
:::
:::
:::
