← Part III: Electrodynamics
Chapter 9

Maxwell's Equations

The complete set of equations governing all classical electromagnetic phenomena.

9.1 The Complete Maxwell Equations

Maxwell's genius was to add the displacement current$\epsilon_0 \partial\mathbf{E}/\partial t$ to Ampere's law, completing the system. The four equations in SI units (differential form):

I. Gauss's Law (E)

$$\nabla \cdot \mathbf{E} = \frac{\rho}{\epsilon_0}$$

Electric field sourced by charge density

II. No Magnetic Monopoles

$$\nabla \cdot \mathbf{B} = 0$$

Magnetic field lines never begin or end

III. Faraday's Law

$$\nabla \times \mathbf{E} = -\frac{\partial \mathbf{B}}{\partial t}$$

Changing B induces curling E

IV. Ampere-Maxwell Law

$$\nabla \times \mathbf{B} = \mu_0\mathbf{J} + \mu_0\epsilon_0\frac{\partial \mathbf{E}}{\partial t}$$

Currents and changing E source curling B

Together with the Lorentz force law $\mathbf{F} = q(\mathbf{E} + \mathbf{v}\times\mathbf{B})$, Maxwell's equations completely describe all classical electromagnetic phenomena — from the attraction of magnets to the propagation of light across the universe.

9.2 The Displacement Current

Ampere's law $\nabla \times \mathbf{B} = \mu_0\mathbf{J}$ is inconsistent with charge conservation when applied to a capacitor being charged. The divergence of$\nabla\times\mathbf{B}$ must be zero (curl is divergence-free), but$\nabla\cdot\mathbf{J} = -\partial\rho/\partial t \neq 0$ in general.

Maxwell added the displacement current to restore consistency:

$$\mathbf{J}_d = \epsilon_0 \frac{\partial \mathbf{E}}{\partial t}$$$$\nabla \cdot (\mathbf{J} + \mathbf{J}_d) = \nabla\cdot\mathbf{J} + \epsilon_0\nabla\cdot\frac{\partial\mathbf{E}}{\partial t} = -\frac{\partial\rho}{\partial t} + \frac{\partial\rho}{\partial t} = 0 \checkmark$$

9.3 The Wave Equation for Light

In vacuum ($\rho = 0$, $\mathbf{J} = 0$), taking the curl of Faraday's law and using Ampere-Maxwell:

$$\nabla \times (\nabla \times \mathbf{E}) = -\frac{\partial}{\partial t}(\nabla \times \mathbf{B}) = -\mu_0\epsilon_0\frac{\partial^2\mathbf{E}}{\partial t^2}$$$$\nabla(\underbrace{\nabla\cdot\mathbf{E}}_{=0}) - \nabla^2\mathbf{E} = -\mu_0\epsilon_0\frac{\partial^2\mathbf{E}}{\partial t^2}$$
$$\boxed{\nabla^2\mathbf{E} = \mu_0\epsilon_0\frac{\partial^2\mathbf{E}}{\partial t^2} = \frac{1}{c^2}\frac{\partial^2\mathbf{E}}{\partial t^2}}$$

This is the wave equation! The speed of propagation is$c = 1/\sqrt{\mu_0\epsilon_0} = 2.998\times10^8\,\text{m/s}$ — the speed of light. Maxwell identified light as an electromagnetic wave.

9.3.1 Potentials and Gauge

We write $\mathbf{B} = \nabla\times\mathbf{A}$ and$\mathbf{E} = -\nabla V - \partial\mathbf{A}/\partial t$. In the Lorenz gauge ($\nabla\cdot\mathbf{A} + \mu_0\epsilon_0\dot{V} = 0$), the potentials satisfy decoupled wave equations:

$$\Box^2 V \equiv \left(\nabla^2 - \frac{1}{c^2}\frac{\partial^2}{\partial t^2}\right)V = -\frac{\rho}{\epsilon_0}$$$$\Box^2 \mathbf{A} = -\mu_0\mathbf{J}$$

where $\Box^2$ is the d'Alembertian operator. These are inhomogeneous wave equations — the sources $\rho$ and $\mathbf{J}$ drive the potential waves.

Simulation: FDTD EM Wave Propagation

1D Finite-Difference Time-Domain (FDTD) simulation of Maxwell's equations, demonstrating Gaussian pulse propagation at speed $c$ and the correct dispersion relation $\omega = ck$.

Maxwell FDTD: EM Wave Propagation

1D FDTD simulation of Maxwell's equations: Gaussian pulse propagating at c, dispersion relation ω=ck.

Click Run to execute the Python code

First run will download Python environment (~15MB)