---
title: Magnetism and special relativity
heading: The magnetic force is the electric force, seen while moving
eyebrow: B5 · Lesson 12 · Magnetism and relativity · Optional
xp: 30
---

::: hook
A charge moves alongside a wire carrying current. In the lab, the wire is electrically neutral, so the charge feels only a magnetic force. Now ride along with the charge. In its frame, it isn't moving, so there can be no magnetic force on it at all, yet it still gets pushed. The resolution is relativity: in the moving frame, the wire's positive and negative charges are contracted by different amounts, and the wire is no longer neutral. What one observer calls magnetism, another calls electricity.

::: play
- The graph compares the magnetic and electric forces between two equal charges moving side by side at speed $v$, as a ratio.
- How big is the ratio at everyday speeds? At the speed of electrons drifting in a wire?
- At what speed would magnetism be as strong as electricity between them?
:::
:::

```sim plot
view: graph
x: v = 1e-6..1 log
y: r = 1e-30..2 log
plot: v^2 | label: F_magnetic ÷ F_electric (v as a fraction of c)
marker: x = 1e-4/3e8 | label: drift in a wire
marker: x = 30/3e8 | label: highway
marker: x = 0.1 | label: 0.1 c
```

::: predict
## Electrons drift through a wire at less than a millimeter per second, and relativistic effects go as $(v/c)^2$, about $10^{-25}$. How can magnetic forces between wires be large enough to notice?

- [ ] They aren't: magnetic forces are always negligible
- [x] The wire holds an enormous amount of charge, so a tiny relativistic imbalance still adds up
- [ ] Relativity doesn't apply to electrons
- [ ] Magnetic forces come from something else

::: reveal
Because the charges involved are enormous. A meter of copper wire carries about $10^4$ coulombs of free electrons, perfectly balanced by the same amount of positive charge. The electric forces between those charges, if unbalanced, would be colossal. A relativistic imbalance of one part in $10^{25}$ of that is still enough to give the millinewtons per meter you see between wires. Magnetism is a tiny correction to a huge, perfectly canceled electric force.
:::
:::

::: nameit
## Why magnetism and electricity are one thing

**The puzzle.** The Lorentz force $q\mathbf v \times \mathbf B$ depends on velocity, but velocity depends on who's measuring. In a frame moving with the charge, $\mathbf v = 0$ and the magnetic force vanishes. Physics can't depend on the observer, so something else must push the charge in that frame.

**The answer.** In the lab, a current-carrying wire has positive ions at rest and electrons drifting, at equal densities: neutral. In the charge's frame, both move, at different speeds, and special relativity contracts lengths by different amounts, $\gamma = 1/\sqrt{1 - v^2/c^2}$. The two densities no longer match, the wire carries a net charge, and its electric field pushes the charge with exactly the force the lab observer called magnetic.

**How big?** For two charges moving side by side at speed $v$, the magnetic attraction compared with the electric repulsion is

$$\frac{F_B}{F_E} = \frac{v^2}{c^2}$$

using $\mu_0\varepsilon_0 = 1/c^2$. At everyday speeds that's tiny, which is why magnetic forces between individual moving charges are rarely noticed. In wires it's different: the electric forces cancel exactly, leaving the small magnetic part as the only thing visible.

**What it means.** Electric and magnetic fields are two faces of one **electromagnetic field**. Which face you see depends on how you're moving. Einstein's 1905 paper on relativity was titled "On the Electrodynamics of Moving Bodies" and began with exactly this: a magnet and a coil, moving relative to each other. Maxwell's equations (course B7) were already correct in every frame, and that's what led to relativity in the first place.
:::

::: example
## Electrons drift at about 0.1 mm/s in a wire. How big is $v^2/c^2$ for them, and why are magnetic forces between wires noticeable at all?

::: solution
1. **The factor.**
   $$\begin{aligned} \frac{v^2}{c^2} &= \left(\frac{10^{-4}}{3 \times 10^8}\right)^2 \\ &= 1.1 \times 10^{-25} \end{aligned}$$
   an astonishingly small fraction.
2. **Why the force shows up at all.** The electric forces cancel perfectly, since wires are neutral, and the enormous number of moving electrons makes up for the tiny factor.

**Answer:** $v^2/c^2$ is about $1.1 \times 10^{-25}$; magnetic forces between wires show up only because the electric forces cancel and so many electrons move.
:::
:::

::: example
## Two electron beams run side by side at 0.1$c$. How much does their magnetic attraction cancel of their electric repulsion?

::: solution
1. **Ratio of the forces.**
   $$\begin{aligned} \frac{F_B}{F_E} &= \frac{v^2}{c^2} \\ &= 0.01 \end{aligned}$$
2. **Net force.** So 1% of the repulsion is canceled, and the net repulsion is 99% of the static value.
3. **Near the speed of light.** The cancellation becomes nearly complete, which is how high-energy beams stay focused.

**Answer:** the magnetic attraction cancels 1% of the electric repulsion, leaving 99% of it.
:::
:::

::: check
given: v = 3 | 30 | 3000 | 3e6
answer: (v/3e8)^2
tolerance: 1%

## Two charges move side by side at {v} m/s. What is the ratio of their magnetic attraction to their electric repulsion?

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

::: misses
- [v/3e8] Square it: the ratio goes as $(v/c)^2$.
- [any] Not yet. $F_B/F_E = v^2/c^2$.
:::
:::

::: check
given: v = 0.1 | 0.5 | 0.9
answer: 1/sqrt(1 - v^2)
tolerance: 0.5%

## What is the relativistic factor γ for a speed of {v} c?

::: right
Right. $\gamma = 1/\sqrt{1 - v^2/c^2}$ = {answer}.
:::

::: misses
- [sqrt(1 - v^2)] That's $1/\gamma$.
- [1/(1 - v^2)] Take the square root.
- [any] Not yet. $\gamma = 1/\sqrt{1 - v^2/c^2}$.
:::
:::

::: check
answer: 1/sqrt(8.854e-12*1.2566e-6)
unit: m/s
tolerance: 0.5%

## From $\varepsilon_0 = 8.854 \times 10^{-12}$ F/m and $\mu_0 = 1.2566 \times 10^{-6}$ T·m/A, what is $1/\sqrt{\mu_0\varepsilon_0}$?

::: right
Right. {answer}: the speed of light, hidden in the constants of electricity and magnetism.
:::

::: misses
- [1/(8.854e-12*1.2566e-6)] Take the square root.
- [any] Not yet. $c = 1/\sqrt{\mu_0\varepsilon_0}$.
:::
:::

::: check
kind: choice

## A charge sits at rest next to a wire carrying current, in the lab. What force does it feel?

- [x] None: it isn't moving, and the wire is neutral
- [ ] A magnetic force
- [ ] An electric force toward the wire
- [ ] It depends on the current's direction

::: right
Right. The magnetic force needs the charge to move, and the lab sees a neutral wire.
:::

::: misses
- [2] The magnetic force on a charge at rest is zero.
- [3] In the lab frame the wire is neutral.
- [4] At rest, there's no force either way.
:::
:::

::: check
kind: parts
given: I1 = 1 | 10 | 100; I2 = 1 | 5 | 50; d = 1 | 5 | 20

## Two long parallel wires {d} cm apart carry {I1} A and {I2} A in the same direction.

::: part
answer: 4*pi*1e-7*I1*I2/(2*pi*d*1e-2)*1e6
unit: µN
tolerance: 0.5%

### What force does each meter of one wire feel?

::: misses
- [4*pi*1e-7*I1*I2/(d*1e-2)*1e6] Include the $2\pi$: $\mu_0I_1I_2/(2\pi d)$.
- [any] Not yet. $F/L = \mu_0I_1I_2/(2\pi d)$.
:::
:::

::: right
Right. Parallel currents attract. Until 2019 this force defined the ampere: 2 × 10⁻⁷ N per meter for 1 A each, 1 m apart.
:::
:::

::: check
given: b = 0.1 | 0.5 | 0.9 | 0.99
answer: 1 - b^2
tolerance: 0.5%

## Two parallel beams of electrons move side by side at {b} times the speed of light. Their electric repulsion is partly cancelled by their magnetic attraction. What fraction of the electric force is the net force?

::: right
Right. The magnetic attraction is $v^2/c^2$ of the electric repulsion, so the net is $1 - v^2/c^2$ = {answer}: at low speed magnetism is a tiny relativistic correction to electrostatics.
:::

::: misses
- [b^2] That's the magnetic part. The net force is what's left of the repulsion.
- [1 - b] The magnetic force scales as $v^2/c^2$.
- [any] Not yet. $F_{net}/F_E = 1 - v^2/c^2$.
:::
:::

::: explain
## A charge moves alongside a current-carrying wire. The lab sees a magnetic force. Explain what an observer moving with the charge sees.

::: model
In the charge's own frame it's at rest, so it can't feel any magnetic force. But in that frame the wire's positive ions and its electrons are moving at different speeds, and relativistic length contraction changes their spacing by different amounts. The two charge densities no longer cancel, so the wire has a net charge and an electric field, which pushes on the charge with exactly the force the lab observer attributes to magnetism.
:::
:::

::: practice

::: check
given: k = 10 | 100 | 1000
answer: 1/k^2
tolerance: 1%

## Two charges move at {k} times less than the speed of light ($v = c/\given{k}$). What is $F_B/F_E$?

::: misses
- [1/k] Square it.
- [any] $(v/c)^2$.
:::
:::

::: check
kind: choice

## Which statement is correct?

- [ ] Electric and magnetic fields are unrelated
- [x] Whether a field looks electric or magnetic depends on the observer's motion
- [ ] Magnetism only exists at relativistic speeds
- [ ] Moving observers see no fields

::: right
Right. They're two aspects of one electromagnetic field.
:::

::: misses
- [1] They transform into each other between frames.
- [3] Magnetism is everywhere; it's a small effect made visible by perfect electric cancellation.
- [4] Fields are seen in every frame, just in different mixes.
:::
:::

::: check
given: v = 0.1 | 0.3 | 0.5 | 0.6 | 0.8 | 0.9 | 0.99
answer: sqrt(1 - v^2)
tolerance: 0.5%

## A rod moving at {v} c is contracted along its length. By what factor?

::: misses
- [1/sqrt(1 - v^2)] That's γ. Lengths shrink by $1/\gamma$.
- [any] $L = L_0\sqrt{1 - v^2/c^2}$.
:::
:::
:::
