---
title: Maxwell's equations
heading: Four equations, and light falls out
eyebrow: A9 · Lesson 50 · Maxwell's equations
xp: 50
---

::: hook
Everything this course has built, divergence and curl, flux and circulation, the two big theorems, leads here: four equations that describe every electric and magnetic phenomenon in circuits, antennas, motors and light. Maxwell noticed that Ampère's law as written contradicts the conservation of charge when a capacitor charges, and fixed it with one extra term. With that term, the equations predict waves of electric and magnetic field traveling at $\frac{1}{\sqrt{\mu_0\varepsilon_0}}$, which comes out to the measured speed of light.
:::

::: play
- The curve is the electric field of a wave along a line at one instant, $E = \cos\left(2\pi\left(\frac{x}{\lambda} - \frac{t}{T}\right)\right)$.
- Move $t$ and watch the pattern slide along. The readout gives its speed, $\lambda/T$.
- In a vacuum, Maxwell's equations fix that speed at $c$, so the frequency fixes the wavelength.
:::
:::

```sim plot
view: graph
x: x = 0..3 m
y: E = -1.2..1.2
slider: f = 100..600 step 10 = 300 MHz
slider: t = 0..10 step 0.05 = 0 ns
plot: cos(2*pi*(x*f*1e6/2.998e8 - t*1e-9*f*1e6)) | label: E at time t | samples: 1500
readout: wavelength, m = 2.998e8/(f*1e6) | digits: 4
readout: speed, m/s = 2.998e8 | digits: 4
```

::: predict
## A capacitor is charging with current $I$. Ampère's law around the wire gives $\oint\mathbf{B}\cdot d\mathbf{l} = \mu_0I$. Take a surface that passes between the plates, where no charge flows. What must stand in for the current there?

- [ ] Nothing: the field is zero there
- [x] The changing electric field between the plates, $\varepsilon_0\frac{d\Phi_E}{dt}$
- [ ] The magnetic field of the plates
- [ ] The resistance of the gap

::: reveal
The changing electric field. As charge piles onto the plates, the field between them grows, and $\varepsilon_0\frac{d\Phi_E}{dt}$, the **displacement current**, equals exactly the current in the wire. Without it, Ampère's law would give different answers for different surfaces bounded by the same loop. With it, the equations are consistent and predict electromagnetic waves.
:::
:::

::: nameit
## The equations in a vacuum

| Name | Integral form | Differential form |
|---|---|---|
| Gauss (electric) | $\oint\mathbf{E}\cdot d\mathbf{A} = \frac{Q_\text{enc}}{\varepsilon_0}$ | $\nabla\cdot\mathbf{E} = \frac{\rho}{\varepsilon_0}$ |
| Gauss (magnetic) | $\oint\mathbf{B}\cdot d\mathbf{A} = 0$ | $\nabla\cdot\mathbf{B} = 0$ |
| Faraday | $\oint\mathbf{E}\cdot d\mathbf{l} = -\frac{d\Phi_B}{dt}$ | $\nabla \times \mathbf{E} = -\frac{\partial\mathbf{B}}{\partial t}$ |
| Ampère-Maxwell | $\oint\mathbf{B}\cdot d\mathbf{l} = \mu_0I + \mu_0\varepsilon_0\frac{d\Phi_E}{dt}$ | $\nabla \times \mathbf{B} = \mu_0\mathbf{J} + \mu_0\varepsilon_0\frac{\partial\mathbf{E}}{\partial t}$ |

The divergence theorem converts the first two between forms; Stokes's theorem converts the last two. The magnetic Gauss law says there are no magnetic charges: field lines of $\mathbf{B}$ never start or end.

## Displacement current

For a parallel-plate capacitor of area $A$ and gap $d$, $E = V/d$, so

$$I_d = \varepsilon_0A\frac{dE}{dt} = \frac{\varepsilon_0A}{d}\frac{dV}{dt} = C\frac{dV}{dt}$$

exactly the current flowing in the wires.

## Waves

In empty space ($\rho = 0$, $\mathbf{J} = 0$), take the curl of Faraday's law and use Ampère-Maxwell:

$$\nabla^2\mathbf{E} = \mu_0\varepsilon_0\frac{\partial^2\mathbf{E}}{\partial t^2}$$

the wave equation, with speed $c = \frac{1}{\sqrt{\mu_0\varepsilon_0}} = 2.998 \times 10^8$ m/s. In a material with relative permittivity $\varepsilon_r$ (and $\mu_r = 1$), waves travel at $\frac{c}{\sqrt{\varepsilon_r}}$: signals in a coax cable with polyethylene ($\varepsilon_r = 2.25$) move at two thirds of $c$. B7, C10 and S5 build on all of this.
:::

::: example
## Compute $\frac{1}{\sqrt{\mu_0\varepsilon_0}}$.

::: solution
1. **The two constants.**
   $$\begin{aligned} \mu_0 &= 4\pi \times 10^{-7} \\ &= 1.2566 \times 10^{-6} \\ \varepsilon_0 &= 8.854 \times 10^{-12} \end{aligned}$$
2. **Their product.**
   $$\mu_0\varepsilon_0 = 1.1126 \times 10^{-17}$$
3. **Inverse square root.**
   $$\frac{1}{\sqrt{\mu_0\varepsilon_0}} = 2.998 \times 10^8\ \text{m/s}$$
   the speed of light, from two constants measured with coils and capacitors.

**Answer:** $\frac{1}{\sqrt{\mu_0\varepsilon_0}} = 2.998 \times 10^8$ m/s, the speed of light.
:::
:::

::: example
## A capacitor with plates of 1 cm² and a 0.1 mm gap has its voltage rising at $10^6$ V/s. What is the displacement current between the plates?

::: solution
1. **Capacitance.**
   $$\begin{aligned} C &= \frac{\varepsilon_0A}{d} \\ &= \frac{8.854 \times 10^{-12} \times 10^{-4}}{10^{-4}} \\ &= 8.85\ \text{pF} \end{aligned}$$
2. **Displacement current.**
   $$\begin{aligned} I_d &= C\frac{dV}{dt} \\ &= 8.85\ \text{µA} \end{aligned}$$
   the same as the current in the leads.

**Answer:** the displacement current is 8.85 µA, the same as the current in the leads.
:::
:::

::: example
## A plane wave has a peak electric field of 100 V/m. Find its magnetic field and its intensity.

::: solution
1. **Magnetic field.** In a plane wave $B$ is in phase with $E$ and perpendicular to it:
   $$\begin{aligned} B &= E/c \\ &= \frac{100}{2.998 \times 10^8} \\ &= 334\ \text{nT} \end{aligned}$$
2. **Average intensity.**
   $$\begin{aligned} I &= \frac{E^2}{2\eta_0} \\ &= \frac{100^2}{2 \times 376.7} \\ &= 13.3\ \text{W/m}^2 \end{aligned}$$
   about 1% of sunlight at the ground.
3. **Impedance of free space.** The ratio $E/H = \eta_0 = 377$ Ω is the impedance of free space.

**Answer:** the magnetic field peaks at 334 nT, and the average intensity is 13.3 W/m².
:::
:::

::: check
given: er = 2.25 | 4 | 9
answer: 2.998e8/sqrt(er)
unit: m/s
tolerance: 0.5%

## How fast does an electromagnetic wave travel in a material with $\varepsilon_r$ = {er}?

::: right
Right. $\frac{c}{\sqrt{\varepsilon_r}}$ = {answer}.
:::

::: misses
- [2.998e8/er] The speed goes as $\frac{1}{\sqrt{\varepsilon}}$: take the square root.
- [any] Not yet. $\frac{1}{\sqrt{\mu_0\varepsilon_r\varepsilon_0}}$.
:::
:::

::: check
given: A = 1 | 4; d = 0.1 | 0.5; dV = 1e5 | 1e6
answer: 8.854e-12*A*1e-4/(d*1e-3)*dV*1e6
unit: µA
tolerance: 0.5%

## A capacitor has plates of {A} cm² separated by {d} mm, and its voltage is rising at {dV} V/s. What is the displacement current between the plates?

::: right
Right. $\varepsilon_0\frac{A}{d}\frac{dV}{dt}$ = {answer}.
:::

::: misses
- [8.854e-12*A*1e-4/(d*1e-3)*1e6] Multiply by the rate of change of voltage.
- [any] Not yet. $I_d = C\frac{dV}{dt}$.
:::
:::

::: check
given: f = 100 | 2400 | 50
answer: 2.998e8/(f*1e6)
unit: m
tolerance: 0.5%

## What is the wavelength of a {f} MHz wave in a vacuum?

::: right
Right. $\lambda = c/f$ = {answer}.
:::

::: misses
- [f*1e6/2.998e8] Upside down: higher frequency means shorter waves.
- [any] Not yet. $c/f$.
:::
:::

::: check
kind: choice

## Which of Maxwell's equations says there are no magnetic charges?

- [ ] Gauss's law for $\mathbf{E}$
- [x] $\nabla\cdot\mathbf{B} = 0$
- [ ] Faraday's law
- [ ] Ampère-Maxwell

::: right
Right. Zero divergence everywhere means no sources or sinks: magnetic field lines always close on themselves.
:::

::: misses
- [3] Faraday's law is about circulation of $\mathbf{E}$.
- [4] That's about circulation of $\mathbf{B}$.
- [any] Which equation is about the divergence of $\mathbf{B}$?
:::
:::

::: check
given: er = 2.25 | 4; L = 1 | 5
answer: L*sqrt(er)/2.998e8*1e9
unit: ns
tolerance: 0.5%

## A coax cable {L} m long has a dielectric with $\varepsilon_r$ = {er}. How long does a signal take to travel its length?

::: right
Right. At $\frac{c}{\sqrt{\varepsilon_r}}$, the delay is $\frac{L\sqrt{\varepsilon_r}}{c}$ = {answer}.
:::

::: misses
- [L/2.998e8*1e9] That's in vacuum; the dielectric slows the signal.
- [any] Not yet. Distance over speed.
:::
:::

::: check
given: E0 = 10 | 50 | 100 | 300 | 500 | 1000
answer: E0/2.998e8*1e6
unit: µT
tolerance: 0.5%

## A plane wave in vacuum has electric field amplitude {E0} V/m. What is its magnetic field amplitude?

::: right
Right. In a plane wave $B = E/c$ = {answer}.
:::

::: misses
- [E0*2.998e8] Divide by $c$.
- [any] Not yet. Faraday's law in a plane wave gives $E = cB$.
:::
:::

::: check
kind: parts
given: E = 10 | 100 | 1000

## A plane wave has a peak electric field of {E} V/m.

::: part
answer: E/2.998e8*1e9
unit: nT
tolerance: 0.5%

### What is its peak magnetic field?

::: misses
- [any] $B = E/c$.
:::
:::

::: part
answer: E^2/(2*376.7)
unit: W/m²
tolerance: 0.5%

### What is its average intensity?

::: misses
- [E^2/376.7] Average over a cycle: divide by $2\eta_0$.
- [any] $\frac{E^2}{2\eta_0}$.
:::
:::
:::

::: check
kind: derivation
vars: A = 1e-5..1e-3, d = 1e-5..1e-3, r = 1e3..1e7

## A capacitor with plate area $A$ and gap $d$ (vacuum) has its voltage rising at $r$ V/s.

::: step
answer: 8.854e-12*A/d

### What is its capacitance?
:::

::: step
answer: 8.854e-12*A/d*r

### What displacement current flows between the plates?
:::

::: right
Right. $I_d = C\frac{dV}{dt}$, the same as the conduction current in the wires.
:::
:::

::: explain
## Why did Maxwell add the displacement current term to Ampère's law?

::: model
Ampère's law says the circulation of $\mathbf{B}$ around a loop equals $\mu_0$ times the current through any surface bounded by the loop. Around the wire of a charging capacitor, a flat surface is pierced by the wire's current, but a surface bulging between the plates is pierced by no current at all, so the law gave two answers for the same loop. Charge conservation requires the two to agree. Adding $\varepsilon_0\frac{d\Phi_E}{dt}$, the rate of change of electric flux, fixes it: between the plates the growing field supplies exactly the missing current. That term is also what lets a changing electric field make a magnetic field, the half of the cycle that makes waves possible.
:::
:::

::: practice

::: check
given: f = 1 | 2.4 | 5 | 10 | 28 | 60 | 77
answer: 2.998e8/(f*1e9)*1000
unit: mm
tolerance: 0.5%

## What is the wavelength of a {f} GHz wave in a vacuum?

::: misses
- [any] $c/f$.
:::
:::

::: check
given: er = 2.1 | 2.25 | 3.6 | 4 | 4.4 | 9 | 10
answer: 1/sqrt(er)
tolerance: 0.5%

## A signal in a dielectric with $\varepsilon_r$ = {er} travels at what fraction of $c$?

::: misses
- [1/er] Square root.
- [any] $\frac{1}{\sqrt{\varepsilon_r}}$.
:::
:::

::: check
given: C = 10 | 100; dV = 1e3 | 1e5
answer: C*dV*1e-12*1e6
unit: µA
tolerance: 0.5%

## A {C} pF capacitor's voltage rises at {dV} V/s. What displacement current flows between its plates?

::: misses
- [any] $C\frac{dV}{dt}$.
:::
:::
:::
