---
title: "Splitting a polarization map into E and B modes"
description: "Rotate each Fourier mode of Q and U by twice its angle to get E and B. Derive why density waves make no B and how a mask or a wrong angle leaks E into B."
canonical_url: "https://sandboxphysics.com/stories/cmb-b-modes/splitting-a-polarization-map-into-e-and-b/"
language: "en"
page_type: "story"
alternate_languages:
  zh-CN: "https://sandboxphysics.com/zh/stories/cmb-b-modes/splitting-a-polarization-map-into-e-and-b/"
last_modified: "2026-11-14"
---

[CMB B-modes, dust and delensing](https://sandboxphysics.com/stories/cmb-b-modes/)

# Splitting a polarization map into E and B modes

Sandbox Physics · 2026-11-14

Write a polarization map as a sum of plane waves. For each wave, measure $Q$ and $U$ in axes lined up with the direction of the wave instead of the fixed map axes: the first number is $E$, the second is $B$. On a flat patch this is one rotation per wave, $E = Q\cos 2\varphi_\ell + U\sin 2\varphi_\ell$ and $B = -Q\sin 2\varphi_\ell + U\cos 2\varphi_\ell$. Density waves give rods lined up with or across their wave direction and so no $B$. This chapter derives the split, shows why a single density wave cannot make $B$, and works out how a small angle error or a mask leaks $E$ into $B$.

It builds on the [chapter on Stokes parameters](https://sandboxphysics.com/stories/cmb-b-modes/how-scattering-polarizes-the-microwave-background/), in particular the rule that $Q$ and $U$ turn with twice the angle of the axes.

## A map as a sum of plane waves

Take a square patch of side $S$, small enough to treat as flat, with the $x$ axis to the right and $y$ up. Any smooth map $Q(\mathbf{x})$ on it can be written as a sum of plane waves $e^{i\boldsymbol\ell\cdot\mathbf{x}}$, with complex amplitudes $Q(\boldsymbol\ell)$. The wavevector $\boldsymbol\ell$ has length $\ell$ and direction angle $\varphi_\ell$ measured from $x$. If $\mathbf{x}$ is measured in radians, the wave has angular wavelength $2\pi/\ell$, so $\ell$ is the flat-sky version of the multipole number: $\ell = 80$ corresponds to features about $2^\circ$ across, and $\ell = 1000$ to about $10$ arcminutes. On a periodic patch, $\boldsymbol\ell$ takes the values $(2\pi/S)(n_x, n_y)$ with whole numbers $n_x$ and $n_y$. The Lab's $16^\circ$ patch therefore has a smallest non-zero multipole of $360/16 = 22.5$.

This is a Fourier series. The only property used below is that every map equals the sum of its waves, and that a computer can go between the two with a fast Fourier transform.

## Natural axes for each wave

A single wave has one preferred direction, $\boldsymbol\ell$, along which its crests follow each other. Rotate the axes for that wave by $\theta = \varphi_\ell$. The rotation rule from the previous chapter gives the polarization measured along and across the wave:

$$
E(\boldsymbol\ell) = Q(\boldsymbol\ell)\cos 2\varphi_\ell + U(\boldsymbol\ell)\sin 2\varphi_\ell,\qquad B(\boldsymbol\ell) = -Q(\boldsymbol\ell)\sin 2\varphi_\ell + U(\boldsymbol\ell)\cos 2\varphi_\ell .
$$

$E$ is the part whose rods point along the wave direction or across it. $B$ is the part whose rods sit at $45^\circ$ to the wave direction. Because the rule is a rotation, it can be undone:

$$
Q(\boldsymbol\ell) = E\cos 2\varphi_\ell - B\sin 2\varphi_\ell,\qquad U(\boldsymbol\ell) = E\sin 2\varphi_\ell + B\cos 2\varphi_\ell .
$$

In complex form, $Q + iU = (E + iB)\,e^{2i\varphi_\ell}$. Lewis and Challinor write the same expansion with an extra minus sign, $Q + iU = -(E + iB)\,e^{2i\varphi_\ell}$. That flips the sign of both $E$ and $B$ and changes no power spectrum. The Lab and this course use the form without the minus sign.

Worked example. A wave travelling along $x$ has $\varphi_\ell = 0$, so $E = Q$ and $B = U$: rods along $x$ or $y$ are pure $E$, diagonal rods pure $B$. A wave travelling along the diagonal has $\varphi_\ell = 45^\circ$, so $E = U$ and $B = -Q$. The same map rod can be $E$ for one wave and $B$ for another. $E$ and $B$ describe how rods are arranged relative to their neighbours.

## Why a density wave makes no B

A single density wave on the last-scattering surface is symmetric under a mirror that contains its wave direction. Reflect the pattern across the line along $\boldsymbol\ell$: the crests map onto themselves. Under that reflection a rod at angle $\alpha$ from $\boldsymbol\ell$ goes to $-\alpha$. Measured in the wave's own axes, $Q \propto \cos 2\alpha$ is unchanged and $U \propto \sin 2\alpha$ changes sign. A pattern that is its own mirror image must therefore have $U = 0$ in the wave's axes, which is $B(\boldsymbol\ell) = 0$. Hu and White reach the same result by noting that a density wave gives a pure $Q$ field in coordinates tied to the wave.

Adding many density waves with different directions does not change this, because the split is done wave by wave. A sky made only of density waves has $B = 0$ everywhere, exactly.

A gravitational wave carries its own stretching axes, which need not line up with the direction in which its amplitude varies across the sky. Its pattern is not mirror symmetric about $\boldsymbol\ell$, so it gives both $E$ and $B$. Hu and White find that at short wavelengths it puts power into $B$ and $E$ in the ratio $8$ to $13$.

## Power spectra on a patch

For a statistically uniform sky, the average of $|E(\boldsymbol\ell)|^2$ depends only on $\ell$. Its value defines the angular power spectrum $C_\ell^{EE}$, and the same holds for $C_\ell^{BB}$. Plots usually show the band power

$$
D_\ell = \frac{\ell(\ell + 1)}{2\pi}C_\ell ,
$$

in $\mu\mathrm{K}^2$, which is roughly the variance contributed by multipoles near $\ell$. To estimate $C_\ell^{BB}$ from one patch, average $|B(\boldsymbol\ell)|^2$ over all waves with $\ell$ inside a band. A real map has $B(-\boldsymbol\ell)$ equal to the complex conjugate of $B(\boldsymbol\ell)$, so a band holding $N_b$ waves has only $N_b/2$ independent ones. The estimate then scatters by

$$
\frac{\sigma(\hat C_b)}{C_b} = \sqrt{\frac{2}{N_b}} .
$$

Worked example. On the Lab's patch the band $50 \le \ell < 110$ is a ring in the wavevector grid. Its area is $\pi(110^2 - 50^2) \approx 3.0\times10^4$ and each grid cell has area $22.5^2 \approx 506$, so it holds about 60 waves. The scatter is about $\sqrt{2/60} \approx 18$ percent of the band power. A faint B signal therefore needs a large patch as well as good detectors.

## How E leaks into B

The split is exact only if the rods are measured correctly over the whole patch. Three common errors move $E$ power into $B$.

A rotated instrument. If every detector angle is off by $\delta$, every rod turns by $\delta$ and $E$ and $B$ rotate into each other by $2\delta$. Starting from $B = 0$ the measured spectra are $C^{EE}\cos^2 2\delta$ and $C^{BB} = C^{EE}\sin^2 2\delta$. For $\delta = 2^\circ$ that is $\sin^2 4^\circ \approx 0.0049$ of the $E$ power, about the same as the lensing $B$ at $\ell = 80$, where the CAMB model gives $D^{BB}/D^{EE} \approx 0.0021/0.47 \approx 0.0044$.

The wrong angle factor. Rotating by $\varphi_\ell$ instead of $2\varphi_\ell$ treats rods as arrows. Half of the $E$ power then lands in $B$ on average. The tutorial script measures $B/E$ between $0.86$ and $1.16$ in its bands for exactly this mistake.

A mask. Real maps cover part of the sky, and a map multiplied by a mask is no longer a sum of the same waves: each wave is smeared over neighbouring wavevectors with different directions, and the rotation then mixes $E$ into $B$. The leak is worst on scales close to the size of the mask. In the tutorial, a pure-$E$ sky cut with a hard-edged square covering 47 percent of the patch shows $B/E$ of $0.37$ in the band $30 \le \ell < 60$ and $0.024$ at $450 \le \ell < 640$. Tapering the edges smoothly lowers the high-$\ell$ leak to $0.006$ but does not cure the largest scales. Real analyses separate pure $B$ on a cut sky with dedicated methods, such as the matrix purification used by BICEP/Keck.

## Lab tasks

1. Choose Lensing turns E into B. Switch between the E part and the B part and describe the difference in the rod patterns.
2. Predict how the B power changes if you halve the lensing strength, then check the spectrum chart.
3. In Gravitational waves alone, compare the E and B parts. Explain why both exist.
4. Explain why the Lab can show a B part with no leakage: which of the three errors above does it avoid, and why?

## Exercises

1. A plane wave has $\varphi_\ell = 30^\circ$, $Q = 1$ and $U = 0$ in arbitrary units. Find $E$ and $B$.
2. Show that $|E|^2 + |B|^2 = |Q|^2 + |U|^2$ for every wave.
3. An instrument angle error of $\delta = 0.5^\circ$ is applied to a sky with no $B$. What fraction of the $E$ power appears as $B$?
4. A band holds 1300 waves. By how much does a single-patch band power scatter?

Answers

1. $E = \cos 60^\circ = 0.5$ and $B = -\sin 60^\circ \approx -0.87$.
2. The map from $(Q, U)$ to $(E, B)$ is a rotation by $2\varphi_\ell$, so it preserves the sum of squares, as in exercise 2 of the previous chapter.
3. $\sin^2 1^\circ \approx 3.0\times10^{-4}$. That is about a fifteenth of the lensing $B$ fraction at $\ell = 80$.
4. $\sqrt{2/1300} \approx 0.039$, about 4 percent.

Sources: [Lewis and Challinor 2006, weak gravitational lensing of the CMB, equations 5.19 to 5.22](https://arxiv.org/abs/astro-ph/0601594v4), [Hu and White 1997, a CMB polarization primer, section 3](https://arxiv.org/abs/astro-ph/9706147v1), [BICEP/Keck 2021, BK18 constraints on primordial gravitational waves](https://arxiv.org/abs/2110.00483v1).

[Choose Lensing turns E into B, then switch between the E part and the B part.](https://sandboxphysics.com/labs/cmb-b-mode-dust-delensing/)

## Sources

1. [Lewis and Challinor 2006, weak gravitational lensing of the CMB, equations 5.19 to 5.22](https://arxiv.org/abs/astro-ph/0601594v4)
2. [Hu and White 1997, a CMB polarization primer, section 3](https://arxiv.org/abs/astro-ph/9706147v1)
3. [BICEP/Keck 2021, BK18 constraints on primordial gravitational waves](https://arxiv.org/abs/2110.00483v1)

## Keep reading

CMB B-modes, dust and delensing · Reading path

### From polarized light to E and B, dust, lensing and the BICEP/Keck limit

1. [Article **Can swirls in the microwave sky reveal the first gravitational waves?**](https://sandboxphysics.com/stories/cmb-b-modes/can-microwave-swirls-reveal-the-first-gravitational-waves/)
2. [Article **How scattering polarizes the microwave background**](https://sandboxphysics.com/stories/cmb-b-modes/how-scattering-polarizes-the-microwave-background/)
3. [You are here **Splitting a polarization map into E and B modes**](https://sandboxphysics.com/stories/cmb-b-modes/splitting-a-polarization-map-into-e-and-b/)
4. [Article **How dust and lensing add B-modes, and how to take them out**](https://sandboxphysics.com/stories/cmb-b-modes/how-dust-and-lensing-add-b-modes/)
5. [Article **Recompute an E/B split and a two-frequency dust cleaning**](https://sandboxphysics.com/stories/cmb-b-modes/recompute-an-e-b-split-and-dust-cleaning/)
6. [Article **How to read the BICEP/Keck BK18 limit on primordial gravitational waves**](https://sandboxphysics.com/stories/cmb-b-modes/reading-the-bicep-keck-bk18-limit/)
