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)
Electric field sourced by charge density
II. No Magnetic Monopoles
Magnetic field lines never begin or end
III. Faraday's Law
Changing B induces curling E
IV. Ampere-Maxwell Law
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:
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:
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:
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)