---
title: Causality and the Kramers–Kronig relations
heading: Why a causal system's real and imaginary parts can't be chosen separately
eyebrow: A12 · Lesson 22 · Kramers–Kronig relations
xp: 40
---

::: hook
A filter with a perfectly flat passband, a vertical edge and zero phase shift would be lovely, and it can't be built. The reason isn't a practical limitation: no system can respond before its input arrives, and that single fact, **causality**, ties the real and imaginary parts of its frequency response together. Know one at every frequency and the other is fixed. These links are the **Kramers–Kronig relations**. They connect a material's absorption to its refractive index, a filter's magnitude to its phase, and a signal to its Hilbert transform, and they come straight from the principal values of lesson 18.
:::

::: play
- The real part of the response, R, is a brick wall: 1 in the band $\lvert\omega\rvert < \omega_c$ and 0 outside.
- The other curve is the imaginary part X that causality then requires: $X(\omega) = \frac1\pi\ln\left\lvert\frac{\omega_c - \omega}{\omega_c + \omega}\right\rvert$. It grows without limit at the band edges.
- Change $\omega_c$: X keeps its shape and stretches with the band. A sharp edge in one part always means a spike in the other.
:::

```sim plot
view: graph
x: w = -3..3
y: H = -1.5..1.5
slider: c = 0.3..2 step 0.05 = 1
plot: step(c - abs(w)) | label: R, the real part | samples: 600
plot: (1/pi)*ln(abs((c - w)/(c + w)) + 1e-9) | label: X, the imaginary part | color: ch3 | samples: 600
readout: X at half the band edge = (1/pi)*ln(1/3) | digits: 4
```

::: predict
## A causal system's frequency response has real part $R(\omega) = \frac{1}{1 + \omega^2}$. What can its imaginary part be?

- [ ] Anything, as long as it's odd in ω
- [x] Only $X = -\frac{\omega}{1 + \omega^2}$ (for a response that falls to zero at high frequency)
- [ ] Only zero
- [ ] $X = +\frac{\omega}{1 + \omega^2}$ or its negative, either one

::: reveal
Only $-\frac{\omega}{1 + \omega^2}$. That's the imaginary part of $\frac{1}{1 + j\omega}$, whose impulse response $e^{-t}u(t)$ starts at t = 0. The other sign belongs to $\frac{1}{1 - j\omega}$, whose impulse response $e^{t}u(-t)$ is all in the past: it's anticausal. Causality picks one.
:::
:::

::: nameit
## Causality and analyticity

Let h(t) be a stable impulse response with $h(t) = 0$ for $t < 0$, and $H(\omega) = \int_0^\infty h(t)e^{-j\omega t}dt$. For complex ω with $\text{Im}\,\omega < 0$, the factor $e^{-j\omega t}$ decays for t > 0, so the integral still converges and H is analytic throughout the lower half of the ω-plane. (In terms of s = jω, that's the right half-plane, where a stable system has no poles.)

## The relations

Integrate $\frac{H(\omega')}{\omega' - \omega}$ along the real axis and close in the lower half-plane. Nothing is inside, and the pole at ω on the path counts half (lesson 18), so for an H that falls to zero at high frequency, $H(\omega) = \frac j\pi\,\text{PV}\int_{-\infty}^{\infty}\frac{H(\omega')}{\omega' - \omega}d\omega'$. With $H = R + jX$:

$$X(\omega) = \frac1\pi\,\text{PV}\int_{-\infty}^{\infty}\frac{R(\omega')}{\omega' - \omega}d\omega', \qquad R(\omega) = -\frac1\pi\,\text{PV}\int_{-\infty}^{\infty}\frac{X(\omega')}{\omega' - \omega}d\omega'.$$

If H tends to a constant $R_\infty$ instead of 0, apply them to $H - R_\infty$.

## A sum rule

Put ω = 0 in the second relation. Since X is odd for a real h(t), $R(0) - R_\infty = \frac2\pi\int_0^\infty\frac{-X(\omega)}{\omega}d\omega$. A material's static response is fixed by how much it absorbs, weighted by $1/\omega$, at all frequencies.

## Hilbert transforms and phase

The same principal-value integral in time, $\hat x(t) = \frac1\pi\,\text{PV}\int\frac{x(\tau)}{t - \tau}d\tau$, is the **Hilbert transform**. It turns $\cos\omega_0t$ into $\sin\omega_0t$, and $x + j\hat x$ is the analytic signal whose size is the envelope. Applied to $\ln H = \ln\lvert H\rvert + j\arg H$ of a minimum-phase system, the relations give **Bode's gain–phase relation**: where the magnitude falls steadily at $20n$ dB per decade, the phase sits near $-90n°$.
:::

::: example
## Check the first relation on $H = \frac{1}{1 + j\omega}$.

::: solution
1. **Real and imaginary parts.** Here $R = \frac{1}{1 + \omega^2}$ and $X = -\frac{\omega}{1 + \omega^2}$.
2. **Lesson 18's integral.** It found
   $$\text{PV}\int\frac{dx}{(x - b)(x^2 + 1)} = -\frac{\pi b}{1 + b^2}$$
3. **Apply the relation.** With $b = \omega$:
   $$\begin{aligned} X(\omega) &= \frac1\pi\cdot\left(-\frac{\pi\omega}{1 + \omega^2}\right) \\ &= -\frac{\omega}{1 + \omega^2} \end{aligned}$$
   as it should.
4. **The sum rule.** It checks too:
   $$\begin{aligned} \frac2\pi\int_0^\infty\frac{1}{1 + \omega^2}d\omega &= \frac2\pi\cdot\frac\pi2 \\ &= 1 \\ &= R(0) \end{aligned}$$

**Answer:** the relation gives back $X(\omega) = -\frac{\omega}{1 + \omega^2}$, and the sum rule gives $1 = R(0)$.
:::
:::

::: example
## A filter's response has real part 1 for $\lvert\omega\rvert < \omega_c$ and 0 outside. If the filter is causal, what is its imaginary part at $\omega = \omega_c/2$?

::: solution
1. **Apply the relation.**
   $$\begin{aligned} X(\omega) &= \frac1\pi\,\text{PV}\int_{-\omega_c}^{\omega_c}\frac{d\omega'}{\omega' - \omega} \\ &= \frac1\pi\ln\left\lvert\frac{\omega_c - \omega}{\omega_c + \omega}\right\rvert \end{aligned}$$
   since the principal value skips the log's singularity symmetrically.
2. **At half the cutoff.** At $\omega = \omega_c/2$:
   $$\frac1\pi\ln\frac13 = -0.350$$
3. **What it means.** So a causal filter with this real part has a large imaginary part, and near the band edge it grows without limit.
4. **The brick wall.** A zero-phase brick wall would need X = 0, which causality forbids; its impulse response, a sinc, extends to $t = -\infty$.

**Answer:** the imaginary part at $\omega_c/2$ is −0.350.
:::
:::

::: example
## A material's susceptibility follows the Debye model, $\chi(\omega) = \frac{\chi_0}{1 + j\omega\tau}$. Check that its absorption alone gives back the static value $\chi_0$.

::: solution
1. **The absorption.**
   $$-\text{Im}\,\chi = \frac{\chi_0\omega\tau}{1 + \omega^2\tau^2}$$
   It peaks at $\omega = 1/\tau$.
2. **The sum rule.**
   $$\chi(0) = \frac2\pi\int_0^\infty\frac{\chi_0\tau}{1 + \omega^2\tau^2}d\omega$$
3. **Substitute $u = \omega\tau$.** The integral is
   $$\chi_0\int_0^\infty\frac{du}{1 + u^2} = \chi_0\frac\pi2$$
   and the factor $\frac2\pi$ leaves $\chi_0$.
4. **In practice.** This is the idea behind measuring a liquid's static permittivity from its microwave absorption: water absorbs strongly near 20 GHz, and that absorption band accounts for its large static permittivity.

**Answer:** the absorption alone gives back exactly $\chi_0$.
:::
:::

::: check
given: a = 1 | 2; w = 0.5 | 3
answer: -(w/a)/(1 + (w/a)^2)
tolerance: 0.5%

## A causal system has $R(\omega) = \frac{1}{1 + (\omega/\given{a})^2}$ and a response that vanishes at high frequency. What is $X(\omega)$ at ω = {w}?

::: right
Right. $X = -\frac{\omega/a}{1 + (\omega/a)^2}$, the imaginary part of $\frac{1}{1 + j\omega/a}$.
:::

::: misses
- [(w/a)/(1 + (w/a)^2)] That sign belongs to an anticausal response.
- [0] Causality forbids a zero imaginary part here.
- [any] Find the causal H with this real part.
:::
:::

::: check
given: f = 0.25 | 0.5 | 0.9
answer: (1/pi)*ln((1 - f)/(1 + f))
tolerance: 0.5%

## A causal filter's real part is 1 inside $\lvert\omega\rvert < \omega_c$ and 0 outside. What is its imaginary part at $\omega$ = {f}$\omega_c$?

::: right
Right. $\frac1\pi\ln\frac{1 - f}{1 + f}$, which runs off to −∞ at the band edge.
:::

::: misses
- [0] Zero phase isn't possible for a causal brick wall.
- [(1/pi)*log((1 - f)/(1 + f))] Use the natural logarithm.
- [any] $\frac1\pi\,\text{PV}\int_{-\omega_c}^{\omega_c}\frac{d\omega'}{\omega' - \omega}$.
:::
:::

::: check
given: A = 1 | 3 | 10
answer: 2*A/pi
tolerance: 0.5%

## A material's response vanishes at high frequency, and $\int_0^\infty\frac{-\text{Im}\,\chi(\omega)}{\omega}d\omega$ = {A}. What is its static susceptibility $\chi(0)$?

::: right
Right. $\chi(0) = \frac2\pi \times$ {A}.
:::

::: misses
- [A] Include the factor $\frac2\pi$.
- [any] The sum rule: $R(0) = \frac2\pi\int_0^\infty\frac{-X}{\omega}d\omega$.
:::
:::

::: check
given: n = 1 | 2 | 3
answer: -90*n
unit: °
tolerance: 1%

## A minimum-phase system's magnitude falls at {n} × 20 dB per decade over several decades on either side of some frequency. What is its phase there, approximately?

::: right
Right. About $-90n°$, by Bode's gain–phase relation.
:::

::: misses
- [-45*n] That's at a single corner, where the slope is still changing.
- [any] Each 20 dB per decade of steady slope brings −90°.
:::
:::

::: check
kind: parts
given: A = 2 | 5; f = 1 | 3

## A signal is $x(t) = \given{A}\cos(2\pi\given{f}t)$, with t in seconds.

::: part
answer: A*sin(2*pi*f*0.1)
tolerance: 0.5%

### What is its Hilbert transform $\hat x$ at t = 0.1 s?

::: misses
- [A*cos(2*pi*f*0.1)] That's x itself; the Hilbert transform shifts the phase by −90°.
- [-A*sin(2*pi*f*0.1)] Cosine goes to plus sine.
- [any] $\hat x = A\sin(2\pi ft)$.
:::
:::

::: part
answer: A
tolerance: 0.5%

### What is the envelope $\lvert x + j\hat x\rvert$?

::: misses
- [any] $\lvert Ae^{j2\pi ft}\rvert$.
:::
:::
:::

::: check
kind: choice

## Which of these responses can't belong to a causal system?

- [ ] A one-pole low-pass, $\frac{1}{1 + j\omega\tau}$
- [x] A brick-wall low-pass with zero phase at every frequency
- [ ] A pure delay, $e^{-j\omega T}$
- [ ] A Debye dielectric, $\frac{\chi_0}{1 + j\omega\tau}$

::: right
Right. Its impulse response is a sinc centered on t = 0, extending into the past. Zero phase everywhere would mean X = 0, while Kramers–Kronig demands a nonzero X.
:::

::: misses
- [1] Its impulse response $\frac1\tau e^{-t/\tau}$ starts at zero.
- [3] A delay responds only after T; it's causal, though its response doesn't fall to zero at high frequency.
- [4] The Debye model has the same form as a one-pole low-pass.
:::
:::

::: check
kind: derivation
vars: a = 0.5..3, w = -5..5

## $H = \frac{a}{a + j\omega}$.

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

### What is its real part R(ω)?
:::

::: step
answer: -a*w/(a^2 + w^2)

### What is its imaginary part X(ω)?
:::

::: right
Right. R is even and X is odd, as for any real h(t), and the Kramers–Kronig relations turn either one into the other.
:::
:::

::: explain
## Why does causality link the real and imaginary parts of a frequency response?

::: model
A causal impulse response is zero before t = 0. Split it into its even and odd parts: for t > 0 they're equal, and for t < 0 they're negatives of each other, so the odd part is the even part times the sign function. The real part of H is the transform of the even part, and the imaginary part comes from the odd part. Multiplying by the sign function in time is convolving with $\frac{1}{j\pi\omega}$ in frequency, which is exactly the principal-value integral. So the imaginary part is the Hilbert transform of the real part. Choosing them separately would give an even and an odd part that don't cancel for t < 0, and the system would respond before it was driven.
:::
:::

::: practice

::: check
given: a = 0.5 | 4; w = 1 | 2
answer: -(w/a)/(1 + (w/a)^2)
tolerance: 0.5%

## Causal X at ω = {w} for $R = \frac{1}{1 + (\omega/\given{a})^2}$?

::: misses
- [any] Imaginary part of $\frac{1}{1 + j\omega/a}$.
:::
:::

::: check
given: f = 0.1 | 0.25 | 0.5 | 0.75 | 0.9
answer: (1/pi)*ln((1 - f)/(1 + f))
tolerance: 0.5%

## Brick-wall X at {f}$\omega_c$?

::: misses
- [any] $\frac1\pi\ln\frac{1 - f}{1 + f}$.
:::
:::

::: check
given: A = 0.5 | 1 | 2 | 3 | 6 | 10
answer: 2*A/pi
tolerance: 0.5%

## Static χ from an absorption integral of {A}?

::: misses
- [any] $\frac{2A}{\pi}$.
:::
:::
:::
