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.
Detailed Derivations of Maxwell's Equations
Derivation: Maxwell's Equations in Vacuum โ Full Justification
Starting from experimental laws and mathematical consistency requirements, we derive all four Maxwell equations.
Step 1: Gauss's Law โ from Coulomb's law and superposition
$$\mathbf{E}(\mathbf{r}) = \frac{1}{4\pi\epsilon_0}\int \frac{\rho(\mathbf{r}')(\mathbf{r}-\mathbf{r}')}{|\mathbf{r}-\mathbf{r}'|^3}d\tau'$$
Taking the divergence and using $\nabla \cdot \left(\frac{\hat{\mathbf{r}}}{r^2}\right) = 4\pi\delta^3(\mathbf{r})$:
$$\nabla \cdot \mathbf{E} = \frac{1}{\epsilon_0}\int \rho(\mathbf{r}')\delta^3(\mathbf{r}-\mathbf{r}')d\tau' = \frac{\rho}{\epsilon_0}$$
Step 2: No Magnetic Monopoles โ from the Biot-Savart law
$$\mathbf{B} = \frac{\mu_0}{4\pi}\int \frac{\mathbf{J} \times \hat{\boldsymbol{\mathscr{r}}}}{\mathscr{r}^2}d\tau' = \nabla \times \mathbf{A}$$
Since B is the curl of A, its divergence vanishes identically:
$$\nabla \cdot \mathbf{B} = \nabla \cdot (\nabla \times \mathbf{A}) = 0$$
Step 3: Faraday's Law โ from experimental observation (see Chapter 8)
$$\nabla \times \mathbf{E} = -\frac{\partial \mathbf{B}}{\partial t}$$
Derived from $\oint \mathbf{E} \cdot d\boldsymbol{\ell} = -d\Phi_B/dt$ via Stokes' theorem.
Step 4: Ampere-Maxwell Law โ Ampere's law plus displacement current
$$\nabla \times \mathbf{B} = \mu_0\mathbf{J} + \mu_0\epsilon_0\frac{\partial \mathbf{E}}{\partial t}$$
The displacement current term is required for mathematical consistency (see next derivation).
Step 5: Summary โ the four equations in vacuum
$$\boxed{\nabla \cdot \mathbf{E} = \frac{\rho}{\epsilon_0}, \quad \nabla \cdot \mathbf{B} = 0, \quad \nabla \times \mathbf{E} = -\frac{\partial \mathbf{B}}{\partial t}, \quad \nabla \times \mathbf{B} = \mu_0\mathbf{J} + \mu_0\epsilon_0\frac{\partial \mathbf{E}}{\partial t}}$$
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:
Derivation: The Displacement Current from Charge Conservation
Starting from the inconsistency of Ampere's law with charge conservation, we derive Maxwell's displacement current correction.
Step 1: Take the divergence of Ampere's law (pre-Maxwell)
$$\nabla \cdot (\nabla \times \mathbf{B}) = \mu_0 \nabla \cdot \mathbf{J}$$
Step 2: The left side is identically zero (divergence of a curl)
$$0 = \mu_0 \nabla \cdot \mathbf{J}$$
This implies $\nabla \cdot \mathbf{J} = 0$, but the continuity equation requires $\nabla \cdot \mathbf{J} = -\partial\rho/\partial t$. Contradiction!
Step 3: Use Gauss's law to express โฯ/โt in terms of E
$$\frac{\partial\rho}{\partial t} = \epsilon_0 \frac{\partial}{\partial t}(\nabla \cdot \mathbf{E}) = \epsilon_0 \nabla \cdot \frac{\partial \mathbf{E}}{\partial t}$$
Step 4: The continuity equation becomes
$$\nabla \cdot \mathbf{J} + \epsilon_0 \nabla \cdot \frac{\partial \mathbf{E}}{\partial t} = 0 \implies \nabla \cdot \left(\mathbf{J} + \epsilon_0 \frac{\partial \mathbf{E}}{\partial t}\right) = 0$$
Step 5: Replace J with J + J_d in Ampere's law to restore consistency
$$\nabla \times \mathbf{B} = \mu_0\left(\mathbf{J} + \epsilon_0 \frac{\partial \mathbf{E}}{\partial t}\right)$$
Step 6: Verify โ take the divergence of the corrected equation
$$\nabla \cdot (\nabla \times \mathbf{B}) = \mu_0\nabla \cdot \mathbf{J} + \mu_0\epsilon_0\nabla \cdot \frac{\partial \mathbf{E}}{\partial t} = \mu_0\left(-\frac{\partial\rho}{\partial t} + \frac{\partial\rho}{\partial t}\right) = 0 \;\checkmark$$
Step 7: Define the displacement current density
$$\boxed{\mathbf{J}_d = \epsilon_0 \frac{\partial \mathbf{E}}{\partial t}}$$
This is not a real current of moving charges โ it is a time-varying electric field that acts as a source of magnetic field.
Derivation: The Continuity Equation from Maxwell's Equations
Starting from the Ampere-Maxwell law and Gauss's law, we derive the continuity equation expressing local charge conservation.
Step 1: Take the divergence of the Ampere-Maxwell law
$$\nabla \cdot (\nabla \times \mathbf{B}) = \mu_0 \nabla \cdot \mathbf{J} + \mu_0\epsilon_0 \frac{\partial}{\partial t}(\nabla \cdot \mathbf{E})$$
Step 2: The left side vanishes identically
$$0 = \mu_0 \nabla \cdot \mathbf{J} + \mu_0\epsilon_0 \frac{\partial}{\partial t}(\nabla \cdot \mathbf{E})$$
Step 3: Apply Gauss's law: โยทE = ฯ/ฮตโ
$$0 = \mu_0 \nabla \cdot \mathbf{J} + \mu_0\epsilon_0 \frac{\partial}{\partial t}\left(\frac{\rho}{\epsilon_0}\right)$$
Step 4: Simplify (the ฮตโ cancels)
$$0 = \mu_0\left(\nabla \cdot \mathbf{J} + \frac{\partial\rho}{\partial t}\right)$$
Step 5: Since ฮผโ โ 0, we obtain the continuity equation
$$\boxed{\frac{\partial\rho}{\partial t} + \nabla \cdot \mathbf{J} = 0}$$
Charge conservation is not an independent assumption โ it is built into Maxwell's equations automatically.
Derivation: Maxwell's Equations in Matter
Starting from the vacuum equations, we separate bound and free charges/currents to obtain the macroscopic Maxwell equations in terms of D and H.
Step 1: Decompose charge and current into free and bound contributions
$$\rho = \rho_f + \rho_b, \quad \mathbf{J} = \mathbf{J}_f + \mathbf{J}_b + \mathbf{J}_p$$
where $\rho_b = -\nabla \cdot \mathbf{P}$, $\mathbf{J}_b = \nabla \times \mathbf{M}$, $\mathbf{J}_p = \partial\mathbf{P}/\partial t$
Step 2: Substitute into Gauss's law
$$\nabla \cdot \mathbf{E} = \frac{1}{\epsilon_0}(\rho_f - \nabla \cdot \mathbf{P}) \implies \nabla \cdot (\epsilon_0\mathbf{E} + \mathbf{P}) = \rho_f$$
Step 3: Define the electric displacement field D
$$\mathbf{D} = \epsilon_0\mathbf{E} + \mathbf{P} \implies \nabla \cdot \mathbf{D} = \rho_f$$
Step 4: Substitute bound current into the Ampere-Maxwell law
$$\nabla \times \mathbf{B} = \mu_0\left(\mathbf{J}_f + \nabla \times \mathbf{M} + \frac{\partial\mathbf{P}}{\partial t}\right) + \mu_0\epsilon_0\frac{\partial\mathbf{E}}{\partial t}$$
Step 5: Rearrange, grouping โD/โt = ฮตโโE/โt + โP/โt
$$\nabla \times \left(\frac{\mathbf{B}}{\mu_0} - \mathbf{M}\right) = \mathbf{J}_f + \frac{\partial\mathbf{D}}{\partial t}$$
Step 6: Define the auxiliary magnetic field H
$$\mathbf{H} = \frac{\mathbf{B}}{\mu_0} - \mathbf{M} \implies \nabla \times \mathbf{H} = \mathbf{J}_f + \frac{\partial\mathbf{D}}{\partial t}$$
Step 7: The complete Maxwell equations in matter
$$\boxed{\nabla \cdot \mathbf{D} = \rho_f, \quad \nabla \cdot \mathbf{B} = 0, \quad \nabla \times \mathbf{E} = -\frac{\partial\mathbf{B}}{\partial t}, \quad \nabla \times \mathbf{H} = \mathbf{J}_f + \frac{\partial\mathbf{D}}{\partial t}}$$
Only free charges and currents appear as sources โ bound sources are absorbed into D and H.
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.
Derivation: The Wave Equation from Maxwell's Equations
Starting from Maxwell's equations in vacuum, we derive the electromagnetic wave equation by eliminating B.
Step 1: Write down Faraday's law and the Ampere-Maxwell law in vacuum
$$\nabla \times \mathbf{E} = -\frac{\partial \mathbf{B}}{\partial t}, \qquad \nabla \times \mathbf{B} = \mu_0\epsilon_0\frac{\partial \mathbf{E}}{\partial t}$$
Step 2: Take the curl of Faraday's law
$$\nabla \times (\nabla \times \mathbf{E}) = -\frac{\partial}{\partial t}(\nabla \times \mathbf{B})$$
Step 3: Substitute the Ampere-Maxwell law for โรB on the right
$$\nabla \times (\nabla \times \mathbf{E}) = -\mu_0\epsilon_0\frac{\partial^2 \mathbf{E}}{\partial t^2}$$
Step 4: Apply the vector identity โร(โรE) = โ(โยทE) - โยฒE
$$\nabla(\nabla \cdot \mathbf{E}) - \nabla^2\mathbf{E} = -\mu_0\epsilon_0\frac{\partial^2 \mathbf{E}}{\partial t^2}$$
Step 5: In vacuum, โยทE = 0 (Gauss's law with ฯ = 0), so the first term vanishes
$$-\nabla^2\mathbf{E} = -\mu_0\epsilon_0\frac{\partial^2 \mathbf{E}}{\partial t^2}$$
Step 6: The electromagnetic wave equation for E
$$\boxed{\nabla^2\mathbf{E} = \mu_0\epsilon_0\frac{\partial^2 \mathbf{E}}{\partial t^2}}$$
Step 7: Repeat the procedure (take curl of Ampere-Maxwell, substitute Faraday) to get the identical equation for B
$$\nabla^2\mathbf{B} = \mu_0\epsilon_0\frac{\partial^2 \mathbf{B}}{\partial t^2}$$
Both E and B satisfy the same wave equation, propagating at speed $v = 1/\sqrt{\mu_0\epsilon_0}$.
Derivation: The Speed of Light from Fundamental Constants
Starting from the wave equation, we identify the propagation speed and compute it numerically.
Step 1: The general wave equation has the form
$$\nabla^2 f = \frac{1}{v^2}\frac{\partial^2 f}{\partial t^2}$$
where $v$ is the propagation speed.
Step 2: Comparing with the EM wave equation, identify the speed
$$\frac{1}{v^2} = \mu_0\epsilon_0 \implies v = \frac{1}{\sqrt{\mu_0\epsilon_0}}$$
Step 3: Substitute the SI values of the fundamental constants
$$\mu_0 = 4\pi \times 10^{-7}\;\text{Tยทm/A}, \qquad \epsilon_0 = 8.854 \times 10^{-12}\;\text{C}^2/(\text{Nยทm}^2)$$
Step 4: Compute the product ฮผโฮตโ
$$\mu_0\epsilon_0 = (4\pi \times 10^{-7})(8.854 \times 10^{-12}) = 1.113 \times 10^{-17}\;\text{s}^2/\text{m}^2$$
Step 5: Take the square root of the reciprocal
$$v = \frac{1}{\sqrt{1.113 \times 10^{-17}}} = \frac{1}{1.054 \times 10^{-8.5}} \approx 2.998 \times 10^8\;\text{m/s}$$
Step 6: This equals the measured speed of light!
$$\boxed{c = \frac{1}{\sqrt{\mu_0\epsilon_0}} = 2.998 \times 10^8\;\text{m/s}}$$
Maxwell concluded: "light is an electromagnetic disturbance propagated through the field according to electromagnetic laws." This was the great unification of optics and electromagnetism.
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)
Historical Note: Maxwell's Prediction of Light
In 1865, James Clerk Maxwell published "A Dynamical Theory of the Electromagnetic Field", showing that electric and magnetic disturbances propagate as waves at speed $c = 1/\sqrt{\mu_0\epsilon_0}$. When he computed this from the known values of $\mu_0$ and $\epsilon_0$, he obtained$c \approx 3.1 \times 10^8$ m/s โ remarkably close to the measured speed of light.
Maxwell wrote: "The agreement of the results seems to show that light and magnetism are affections of the same substance, and that light is an electromagnetic disturbance propagated through the field according to electromagnetic laws."
This was one of the greatest unifications in the history of physics โ electricity, magnetism, and optics were revealed to be different manifestations of a single electromagnetic theory. Heinrich Hertz confirmed Maxwell's prediction experimentally in 1887 by generating and detecting radio waves.
Video Lectures & Demonstrations
3Blue1Brown โ Beautiful visual intuition behind Maxwell's equations and the wave equation derivation.
Khan Academy โ Step-by-step walkthrough of all four Maxwell's equations with physical interpretation.
Fortran Implementation
1D FDTD (Finite-Difference Time-Domain) solver for Maxwell's equations in vacuum. Propagates a Gaussian pulse using the Yee scheme with absorbing boundary conditions.
1D FDTD Maxwell Solver
FortranFinite-Difference Time-Domain solver propagating a Gaussian pulse using the Yee scheme
Click Run to execute the Fortran code
Code will be compiled with gfortran and executed on the server
Griffiths Problem Solutions
Video walkthroughs of Griffiths problems on multipole expansion, boundary conditions, and advanced potential theory.
Problem 3.19
Problem 3.20
Problem 3.21
Problem 3.22
Problem 3.23
Problem 3.24