---
title: Dipoles and the far field
heading: What a pair of opposite charges, or a small current loop, looks like from far away
eyebrow: A9 · Lesson 45 · Dipoles and the far field
xp: 40
---

::: hook
A water molecule carries no net charge, yet it pulls on its neighbors strongly enough to give water its high boiling point. A small current loop, a speaker coil or a compass needle, has no magnetic "charge" at all, yet it has a field that falls off with distance and a torque that turns it in another field. Seen from far away, both are **dipoles**: two equal and opposite sources close together. Their fields fall as $1/r^3$, one power faster than a single charge's, and they have the same shape for electric and magnetic dipoles alike. Lesson 44's potential makes the dipole easy: expand it, keep the first term that survives, and take the gradient.
:::

::: play
- The curves are the potential of charges $+q$ and $-q$ a distance $d$ apart, along their axis, against the distance $r$ from their midpoint, in units of $d$: the exact value and the dipole approximation $p/(4\pi\varepsilon_0r^2)$.
- Close in, the two disagree; by $r = 5d$ they differ by 1%, and farther out the dipole formula is all you need.
:::

```sim plot
view: graph
x: r = 0.6..10
y: V = 0.001..10 log
plot: 1/(r - 0.5) - 1/(r + 0.5) | label: exact, ±q
plot: 1/r^2 | dashed | label: dipole, 1/r²
readout: error at five separations, percent = 100*((1/4.5 - 1/5.5)*25 - 1) | digits: 3
```

::: predict
## A dipole's field, measured along its axis, is 8 mV/m at 1 m. What is it at 2 m?

- [ ] 4 mV/m
- [ ] 2 mV/m
- [x] 1 mV/m
- [ ] 0.5 mV/m

::: reveal
1 mV/m. A dipole's potential falls as $1/r^2$, so its field, the gradient, falls as $1/r^3$: doubling the distance divides it by 8. The two charges' fields nearly cancel far away, and what's left is the small difference between two $1/r^2$ fields from slightly different places, which falls one power faster.
:::
:::

::: nameit
## The electric dipole

Charges $+q$ and $-q$ separated by $\mathbf{d}$ (from $-q$ to $+q$) have the **dipole moment** $\mathbf{p} = q\mathbf{d}$. At distance $r \gg d$, at angle $\theta$ from $\mathbf{p}$,

$$V \approx \frac{p\cos\theta}{4\pi\varepsilon_0r^2} = \frac{\mathbf{p}\cdot\hat{\mathbf{r}}}{4\pi\varepsilon_0r^2}$$

Where it comes from: $\frac{1}{|\mathbf{r} - \mathbf{d}/2|} \approx \frac{1}{r} + \frac{d\cos\theta}{2r^2}$ to first order (lesson 6's linearization, in vector form). The two charges' $1/r$ terms cancel and the first-order terms add.

Taking $\mathbf{E} = -\nabla V$ in spherical coordinates:

$$E_r = \frac{2p\cos\theta}{4\pi\varepsilon_0r^3} \qquad E_\theta = \frac{p\sin\theta}{4\pi\varepsilon_0r^3}$$

On the axis the field is twice as strong as at the same distance broadside.

## In an applied field

A dipole in a uniform field $\mathbf{E}$ feels no net force, since the two charges are pulled equally and oppositely, but it feels a **torque** and has an **energy**:

$$\boldsymbol{\tau} = \mathbf{p} \times \mathbf{E} \qquad U = -\mathbf{p}\cdot\mathbf{E}$$

It turns to line up with the field. In a nonuniform field there's also a net force, toward stronger field.

## The magnetic dipole

A small loop of current $I$ and area $A$ has the **magnetic moment** $\mathbf{m} = IA\,\hat{\mathbf{n}}$. Far away its field has exactly the electric dipole's shape, with $p/\varepsilon_0$ replaced by $\mu_0 m$:

$$B_r = \frac{\mu_0}{4\pi}\frac{2m\cos\theta}{r^3} \qquad B_\theta = \frac{\mu_0}{4\pi}\frac{m\sin\theta}{r^3}$$

and $\boldsymbol{\tau} = \mathbf{m} \times \mathbf{B}$: a compass needle, a motor coil and an MRI proton all turn this way.

## Why it matters in EE

Any neutral cluster of charges, an antenna element, a PCB current loop, a molecule in a dielectric, looks like a dipole from far enough away. Its field falling as $1/r^3$ is why a small loop's magnetic interference drops so quickly with distance, and why tightly twisted wires, two opposed loops in a row, cancel even faster.
:::

::: example
## A water molecule has a dipole moment of $6.2 \times 10^{-30}$ C·m. What field does it make 1 nm away along its axis? What is the largest torque on it in a 1 MV/m field?

::: solution
1. **Field on the axis.**
   $$\begin{aligned} E &= \frac{2p}{4\pi\varepsilon_0r^3} \\ &= \frac{2(6.2 \times 10^{-30})(8.99 \times 10^9)}{(10^{-9})^3} \\ &= 1.1 \times 10^8\ \text{V/m} \end{aligned}$$
   That's enormous on the scale of a molecule's neighbors, which is why water dissolves salts so well.
2. **Largest torque.** The torque is largest with the dipole broadside to the field:
   $$\begin{aligned} \tau &= pE \\ &= 6.2 \times 10^{-30} \times 10^6 \\ &= 6.2 \times 10^{-24}\ \text{N·m} \end{aligned}$$
3. **Scale it up.** It's tiny for one molecule, but summed over $10^{22}$ molecules per cubic centimeter it's what lets a microwave oven's field shake water.

**Answer:** the field 1 nm out on the axis is $1.1 \times 10^8$ V/m, and the largest torque is $6.2 \times 10^{-24}$ N·m.
:::
:::

::: example
## Charges $\pm q$ sit $d$ apart. How close to the dipole formula is the exact potential on the axis at $r = 5d$?

::: solution
1. **Exact potential.**
   $$\begin{aligned} V &= \frac{q}{4\pi\varepsilon_0}\cdot\frac{1}{r - d/2} \\ &\quad - \frac{q}{4\pi\varepsilon_0}\cdot\frac{1}{r + d/2} \\ &= \frac{q}{4\pi\varepsilon_0}\frac{d}{r^2 - d^2/4} \end{aligned}$$
2. **Dipole formula.**
   $$V_\text{dip} = \frac{qd}{4\pi\varepsilon_0r^2}$$
3. **Their ratio at $r = 5d$.**
   $$\begin{aligned} \frac{V}{V_\text{dip}} &= \frac{1}{1 - d^2/4r^2} \\ &= \frac{1}{1 - 1/100} \\ &= 1.0101 \end{aligned}$$
   The dipole formula is 1% low at five separations, 0.25% low at ten.
4. **Why it's so close.** The error shrinks as $(d/r)^2$, because the next term in the expansion, the quadrupole, vanishes on the axis for a symmetric pair.

**Answer:** at $r = 5d$ the dipole formula is 1% low (the exact potential is 1.0101 times it).
:::
:::

::: example
## A loop of radius 1 cm carries 1 A. What field does it make on its axis 10 cm away? Compare the dipole formula with the exact loop result.

::: solution
1. **Dipole moment.**
   $$\begin{aligned} m &= I\pi a^2 \\ &= 3.14 \times 10^{-4}\ \text{A·m}^2 \end{aligned}$$
2. **Dipole formula on the axis.** On the axis ($\theta = 0$):
   $$\begin{aligned} B &= \frac{\mu_0}{4\pi}\frac{2m}{z^3} \\ &= 10^{-7}\frac{2(3.14 \times 10^{-4})}{10^{-3}} \\ &= 62.8\ \text{nT} \end{aligned}$$
3. **Exact loop field.**
   $$\begin{aligned} B &= \frac{\mu_0Ia^2}{2(a^2 + z^2)^{3/2}} \\ &= 61.9\ \text{nT} \end{aligned}$$
4. **Compare.** The dipole formula is 1.5% high at ten radii, close enough for interference estimates and exact in the limit.

**Answer:** the loop makes 61.9 nT there; the dipole formula gives 62.8 nT, 1.5% high.
:::
:::

::: check
given: p = 1 | 6.2 | 20; r = 0.5 | 1 | 2; th = 30 | 45 | 60 °
answer: p*1e-30*cos(th°)/(4*pi*8.854e-12*(r*1e-9)^2)
unit: V
tolerance: 0.5%

## A molecule with dipole moment {p} × 10⁻³⁰ C·m: what is the potential {r} nm away, at {th} from its axis?

::: right
Right. $V = p\cos\theta/(4\pi\varepsilon_0r^2)$ = {answer}.
:::

::: misses
- [p*1e-30/(4*pi*8.854e-12*(r*1e-9)^2)] That's on the axis. Multiply by $\cos\theta$.
- [p*1e-30*cos(th°)/(4*pi*8.854e-12*(r*1e-9))] A dipole's potential falls as $1/r^2$, not $1/r$.
- [any] Not yet. Use $V = p\cos\theta/(4\pi\varepsilon_0r^2)$ with SI units.
:::
:::

::: check
given: E1 = 2 | 8 | 50; r1 = 1 | 2; k = 2 | 3 | 10
answer: E1/k^3
unit: mV/m
tolerance: 0.5%

## A dipole's field is {E1} mV/m at {r1} m. What is it, in mV/m, at {k} times that distance, in the same direction?

::: right
Right. A dipole's field falls as $1/r^3$: {k}³ times weaker.
:::

::: misses
- [E1/k^2] That's a single charge's $1/r^2$. A dipole's field falls one power faster.
- [E1/k] That's a line of charge's $1/r$.
- [any] Not yet. Divide by the distance ratio cubed.
:::
:::

::: check
kind: parts
given: k = 2 | 5 | 10 | 20

## Charges $\pm q$ are $d$ apart. On the axis at distance $r = \given{k}d$ from their midpoint:

::: part
answer: 1/(1 - 1/(4*k^2))
tolerance: 0.1%

### What is the exact potential divided by the dipole formula's?

::: misses
- [1 - 1/(4*k^2)] That's upside down: the exact potential is the larger.
- [1/(1 - 1/k^2)] The charges are $d/2$ either side of the midpoint, so the term is $(d/2r)^2$.
- [any] Not yet. Compare $\frac{d}{r^2 - d^2/4}$ with $\frac{d}{r^2}$.
:::
:::

::: part
answer: 100*(1/(1 - 1/(4*k^2)) - 1)
unit: %
tolerance: 1%

### By what percentage does the dipole formula fall short?

::: misses
- [any] Not yet. Subtract 1 from the ratio and convert to a percentage.
:::
:::

::: right
Right. The error falls as $(d/r)^2$: at ten separations it's a quarter of a percent.
:::
:::

::: check
given: I = 0.1 | 1 | 5; a = 0.5 | 1 | 2; z = 10 | 30 | 100
answer: 1e-7*2*I*pi*(a*1e-2)^2/(z*1e-2)^3
unit: T
tolerance: 0.5%

## A loop of radius {a} cm carries {I} A. Using the dipole formula, what field does it make on its axis {z} cm away?

::: right
Right. $m = I\pi a^2$ and $B = \frac{\mu_0}{4\pi}\frac{2m}{z^3}$ = {answer}.
:::

::: misses
- [1e-7*I*pi*(a*1e-2)^2/(z*1e-2)^3] On the axis the factor is $2\cos\theta = 2$.
- [1e-7*2*I*pi*a^2/z^3] Convert the centimeters to meters first.
- [any] Not yet. Find $m = I\pi a^2$, then use $B = 10^{-7} \times 2m/z^3$ in SI units.
:::
:::

::: check
kind: python
given: k = 1 | 2 | 3

## For charges $\pm1$ nC a distance $d = 1$ mm apart along $z$, compute the exact potential $V = \frac{q}{4\pi\varepsilon_0}\left(\frac{1}{|\mathbf{r} - \mathbf{d}/2|} - \frac{1}{|\mathbf{r} + \mathbf{d}/2|}\right)$ and the dipole formula at angles $\theta$ = 0°, 10°, …, 80° (skip 90°, where both vanish) for radii `r = np.linspace(1, 20, 191)` mm. Set `worst` to an array of the largest relative error over the angles at each radius, and `r1` to the smallest radius (mm) where `worst` is below `k`% ({k}%).

```python starter
import numpy as np
r = np.linspace(1, 20, 191)
worst = np.zeros_like(r)
r1 = r[0]
print(r1)
```

```python solution
import numpy as np
q, d, eps0 = 1e-9, 1e-3, 8.854e-12
kq = q / (4 * np.pi * eps0)
r = np.linspace(1, 20, 191)
th = np.radians(np.arange(0, 81, 10))
R, T = np.meshgrid(r * 1e-3, th, indexing="ij")
x, z = R * np.sin(T), R * np.cos(T)
exact = kq * (1 / np.hypot(x, z - d / 2) - 1 / np.hypot(x, z + d / 2))
dip = kq * d * np.cos(T) / R**2
worst = np.max(np.abs(exact / dip - 1), axis=1)
r1 = r[np.argmax(worst < k / 100)]
print(r1)
```

```python tests
import numpy as np
q, d, e0 = 1e-9, 1e-3, 8.854e-12
rr = np.linspace(1, 20, 191); tt = np.radians(np.arange(0, 81, 10))
R, T = np.meshgrid(rr * 1e-3, tt, indexing="ij")
ex = (1 / np.hypot(R * np.sin(T), R * np.cos(T) - d / 2) - 1 / np.hypot(R * np.sin(T), R * np.cos(T) + d / 2))
dp = d * np.cos(T) / R**2
w = np.max(np.abs(ex / dp - 1), axis=1)
assert np.shape(worst) == (191,) and np.allclose(worst, w, rtol=1e-9), "worst is, at each radius, the largest |exact/dipole − 1| over the angles."
assert abs(r1 - rr[np.argmax(w < k / 100)]) < 1e-12, f"The error first drops below {k}% at r = {rr[np.argmax(w < k / 100)]:.1f} mm."
```

::: right
Right. The worst angle is off the axis, where the dipole term weakens as $\cos\theta$ and the next correction doesn't. A few separations out, the dipole is accurate to a percent in every direction.
:::
:::

::: check
kind: derivation
vars: r = 2..10, d = 0.1..1, c = -1..1

## Expand the potential of $\pm q$ for $r \gg d$. Write $c$ for $\cos\theta$, and use $|\mathbf{r} \mp \mathbf{d}/2| \approx r \mp \frac{d}{2}c$.

::: step
answer: 1/r + d*c/(2*r^2)

### To first order in $d$, what is $1/(r - \frac{d}{2}c)$?
:::

::: step
answer: d*c/r^2

### Subtract the same expansion for $1/(r + \frac{d}{2}c)$. What's left?
:::

::: right
Right. Multiplying by $q/4\pi\varepsilon_0$ gives $p\cos\theta/(4\pi\varepsilon_0r^2)$ with $p = qd$: the $1/r$ terms cancel, and the dipole is what remains.
:::
:::

::: check
kind: choice

## Why does a dipole's field fall as $1/r^3$ rather than $1/r^2$?

- [x] The two charges' $1/r^2$ fields nearly cancel, leaving their difference, which is smaller by another factor of $d/r$
- [ ] Because a dipole has no net charge, so it has no field at all far away
- [ ] Because dipoles are three-dimensional
- [ ] Because the field is measured along the axis

::: right
Right. The difference between two nearly equal $1/r^2$ fields from points $d$ apart is about $d$ times their rate of change, $d/r^3$. Each further cancellation, quadrupoles and beyond, adds another power of $1/r$.
:::

::: misses
- [2] The net charge's field vanishes, but the separation leaves a smaller field that falls as $1/r^3$.
- [3] A single charge is three-dimensional too, and its field falls as $1/r^2$.
- [4] The $1/r^3$ holds in every direction; only the factor in front changes with angle.
:::
:::

::: explain
## Twisting the two wires of a signal pair reduces the magnetic interference it picks up and radiates. Explain why, in terms of dipoles.

::: model
An untwisted pair is one long, narrow current loop, a magnetic dipole with a moment equal to the current times the loop's area, so it couples to a changing field like a single-turn coil. Twisting the wires splits the loop into many small loops whose areas alternate in direction, so their moments cancel pairwise. Far away, each pair of opposite dipoles looks like a quadrupole, whose field falls as $1/r^4$ instead of $1/r^3$, and the overall coupling is limited to the leftover half twist. The tighter the twist, the smaller each loop and the better the cancellation.
:::
:::

::: practice

::: check
given: p = 2 | 6; E = 1 | 5
answer: p*1e-30*E*1e6
unit: N·m
tolerance: 0.5%

## A dipole of {p} × 10⁻³⁰ C·m sits broadside to a {E} MV/m field. What torque does it feel?

::: misses
- [0] Broadside, $\sin 90° = 1$: the torque is largest, $pE$.
- [any] $\tau = pE\sin\theta$ with $\theta = 90°$.
:::
:::

::: check
given: I = 1 | 2; a = 1 | 3
answer: I*pi*(a*1e-2)^2
unit: A·m²
tolerance: 0.5%

## What is the magnetic moment of a loop of radius {a} cm carrying {I} A?

::: misses
- [I*pi*a^2] Convert the radius to meters.
- [any] $m = I\pi a^2$.
:::
:::
:::
