Maxwell's Equations
What is a field?
A field is a physical quantity that has a value at every point in space. Imagine a weather map showing temperature everywhere: that is a temperature field. An electric field $\mathbf{E}$ is similar, except at each point it has both a direction and a strength (it is a vector). It represents the force that a charged particle would feel if placed at that point. The magnetic field $\mathbf{B}$ is the analogous quantity for magnetic forces, like those felt by a compass needle.
In 1865, James Clerk Maxwell achieved one of the greatest intellectual feats in the history of physics: he distilled all of electricity and magnetism into four elegant equations. These equations didn't just summarize known phenomena, they predicted entirely new ones, most spectacularly that light itself is an electromagnetic wave. Maxwell's equations are the prototype for every unified field theory that followed, from Einstein's general relativity to the Standard Model of particle physics.
Before Maxwell, electricity and magnetism were understood as related but separate phenomena. Coulomb had described the force between charges. Ampere had described the force between currents. Faraday had shown that changing magnetic fields produce electric fields. Maxwell's genius was to see that these separate laws were incomplete, and that completing them would reveal a unified whole of breathtaking beauty.
Maxwell's Equations (Differential Form)
All of classical electromagnetism is contained in four equations:
Charge density, current density, and constants
The symbol $\rho$ (rho) is the charge density: the amount of electric charge per unit volume at a given point. The symbol $\mathbf{J}$ is the current density: the flow of charge through a surface per unit time and per unit area. Think of $\rho$ as the "concentration" of stationary charges, and $\mathbf{J}$ as the "current" of moving charges. The constant $\varepsilon_0$ (the permittivity of free space) measures how easily empty space transmits electric forces, and $\mu_0$ (the permeability of free space) plays the same role for magnetic forces.
Let's understand each equation, not just what it says mathematically, but what it means physically and why it must be true.
Gauss's Law: Electric Charges Create Electric Fields
What is flux?
Flux measures "how much" of a field passes through a surface. Imagine holding a fishing net in a river: the flux of water through the net depends on the speed of the water, the size of the net, and its orientation relative to the current. Similarly, the flux of the electric field through a surface depends on the strength of $\mathbf{E}$ and the angle between the field and the surface.
The first equation, $\nabla \cdot \mathbf{E} = \rho/\varepsilon_0$, tells us that electric charge is the source of the electric field. The divergence $\nabla \cdot \mathbf{E}$ measures how much the field "spreads out" from a point. Where there is positive charge, field lines radiate outward; where there is negative charge, they converge inward.
Think of it this way: if you draw a tiny box around a point in space and count the net flux of electric field lines leaving the box, that flux is proportional to the charge inside. No charge inside? The same number of field lines enter as leave.
In integral form, Gauss's law becomes:
$$\oint \mathbf{E} \cdot d\mathbf{A} = \frac{Q_{\text{enc}}}{\varepsilon_0}$$The total electric flux through any closed surface equals the enclosed charge divided by $\varepsilon_0$. This is remarkably powerful: no matter how complicated the charge distribution, the flux through a surrounding surface depends only on the total charge inside.
Gauss's Law for Magnetism: No Magnetic Monopoles
The second equation, $\nabla \cdot \mathbf{B} = 0$, is deceptively simple but profound. It says that magnetic field lines never begin or end. They always form closed loops. Unlike electric charges, there are no magnetic "charges" (monopoles) from which field lines emanate.
Every magnet has both a north and south pole. If you break a bar magnet in half, you don't get an isolated north pole and south pole. You get two smaller magnets, each with both poles. This is expressed mathematically by saying the divergence of $\mathbf{B}$ is zero everywhere.
In integral form:
$$\oint \mathbf{B} \cdot d\mathbf{A} = 0$$The net magnetic flux through any closed surface is always zero. Whatever flux enters must leave.
Divergence and Curl: The Language of Fields
Maxwell's equations use two differential operators. The divergence $\nabla \cdot \mathbf{F}$ measures whether field lines are created or destroyed at a point: it detects sources and sinks. The curl $\nabla \times \mathbf{F}$ measures whether the field circulates around a point: it detects vortices. Two equations constrain the divergence of $\mathbf{E}$ and $\mathbf{B}$; two constrain their curl. Together, they completely determine the fields.
Faraday's Law: Changing Magnetism Creates Electricity
The third equation, $\nabla \times \mathbf{E} = -\partial \mathbf{B}/\partial t$, encodes one of the most consequential discoveries in physics: a changing magnetic field produces an electric field. This is the principle behind every electric generator, transformer, and induction coil.
Faraday discovered this experimentally in 1831. When he pushed a magnet through a coil of wire, current flowed, not because of any battery, but because the changing magnetic field induced an electric field that pushed charges around the circuit.
The curl of $\mathbf{E}$ tells us how the electric field swirls. In regions where $\mathbf{B}$ is changing in time, the electric field forms closed loops around the changing flux. The minus sign is Lenz's law: the induced field opposes the change that creates it.
In integral form:
$$\oint \mathbf{E} \cdot d\mathbf{l} = -\frac{d\Phi_B}{dt}$$The electromotive force (EMF) around any closed loop equals minus the rate of change of magnetic flux through the loop.
The Ampere-Maxwell Law: Maxwell's Great Insight
The fourth equation is where Maxwell's genius shines. Ampere's original law stated that currents produce magnetic fields: $\nabla \times \mathbf{B} = \mu_0 \mathbf{J}$. But Maxwell realized this equation was inconsistent.
Here's the problem. Take the divergence of both sides of Ampere's law:
$$\nabla \cdot (\nabla \times \mathbf{B}) = \mu_0 \nabla \cdot \mathbf{J}$$The left side is identically zero (the divergence of any curl vanishes). So we need $\nabla \cdot \mathbf{J} = 0$, meaning current can never accumulate anywhere. But this contradicts charge conservation! When a capacitor charges, current flows in but doesn't flow out. Charge accumulates on the plate.
The continuity equation
The continuity equation expresses a simple idea: electric charge can neither appear nor disappear. If charge leaves a region, the amount of charge in that region decreases by exactly the same amount. It is like water in a bathtub: if water drains out ($\mathbf{J}$, the current), the water level ($\rho$, the charge density) drops proportionally.
The continuity equation for charge conservation is:
$$\nabla \cdot \mathbf{J} + \frac{\partial \rho}{\partial t} = 0$$The Displacement Current
Maxwell fixed Ampere's law by adding a term:
$$\nabla \times \mathbf{B} = \mu_0 \mathbf{J} + \mu_0 \varepsilon_0 \frac{\partial \mathbf{E}}{\partial t}$$The additional term $\mu_0 \varepsilon_0 \partial \mathbf{E}/\partial t$ is called the displacement current. A changing electric field produces a magnetic field, just as a current does. This seemingly small addition had enormous consequences: it made electromagnetic waves possible.
Now take the divergence of the corrected equation:
$$0 = \mu_0 \nabla \cdot \mathbf{J} + \mu_0 \varepsilon_0 \frac{\partial}{\partial t}(\nabla \cdot \mathbf{E}) = \mu_0 \nabla \cdot \mathbf{J} + \mu_0 \frac{\partial \rho}{\partial t}$$This gives us exactly the continuity equation $\nabla \cdot \mathbf{J} + \partial \rho/\partial t = 0$. The displacement current is not optional. It is required by charge conservation.
The Integral Forms
Maxwell's equations can also be written in integral form, which is often more intuitive and useful for problems with high symmetry:
| Law | Differential | Integral |
|---|---|---|
| Gauss (E) | $\nabla \cdot \mathbf{E} = \rho/\varepsilon_0$ | $\oint \mathbf{E} \cdot d\mathbf{A} = Q_{\text{enc}}/\varepsilon_0$ |
| Gauss (B) | $\nabla \cdot \mathbf{B} = 0$ | $\oint \mathbf{B} \cdot d\mathbf{A} = 0$ |
| Faraday | $\nabla \times \mathbf{E} = -\partial_t \mathbf{B}$ | $\oint \mathbf{E} \cdot d\mathbf{l} = -d\Phi_B/dt$ |
| Ampere-Maxwell | $\nabla \times \mathbf{B} = \mu_0 \mathbf{J} + \mu_0\varepsilon_0 \partial_t \mathbf{E}$ | $\oint \mathbf{B} \cdot d\mathbf{l} = \mu_0 I_{\text{enc}} + \mu_0\varepsilon_0 d\Phi_E/dt$ |
The differential forms are local statements: they tell you what happens at each point. The integral forms are global statements: they relate fields on boundaries to sources inside. The two are connected by the divergence theorem and Stokes' theorem.
The Beautiful Symmetry
Look at the structure of Maxwell's equations. There is a striking, almost-perfect symmetry between $\mathbf{E}$ and $\mathbf{B}$:
Faraday's law says a changing $\mathbf{B}$ creates a curling $\mathbf{E}$. The Ampere-Maxwell law says a changing $\mathbf{E}$ creates a curling $\mathbf{B}$. The two fields are locked in a mutual embrace: each generates the other when it changes.
The symmetry is not perfect, however. Electric charges exist ($\nabla \cdot \mathbf{E} = \rho/\varepsilon_0$) but magnetic charges do not ($\nabla \cdot \mathbf{B} = 0$). If magnetic monopoles were discovered, Maxwell's equations would become perfectly symmetric. Dirac showed in 1931 that if even a single magnetic monopole existed anywhere in the universe, it would explain why electric charge is quantized, one of the deepest unsolved puzzles in physics.
Charge Conservation: A Consequence
Maxwell's equations automatically enforce charge conservation. We've already seen this: the displacement current was required to make the equations consistent with the continuity equation:
$$\frac{\partial \rho}{\partial t} + \nabla \cdot \mathbf{J} = 0$$This says that if charge density decreases in some region ($\partial \rho/\partial t < 0$), there must be a net current flowing outward ($\nabla \cdot \mathbf{J} > 0$). Charge is never created or destroyed. It only moves. This conservation law is not an extra assumption; it is built into Maxwell's equations.
In integral form, charge conservation becomes:
$$\frac{dQ}{dt} = -\oint \mathbf{J} \cdot d\mathbf{A}$$The rate of change of charge inside any volume equals minus the current flowing out through the boundary.
The Unification
Before Maxwell, electricity and magnetism were separate subjects studied with separate laws. Maxwell showed they are two aspects of a single entity: the electromagnetic field. A purely electric field in one reference frame becomes a mixture of electric and magnetic fields in another (as we'll see in the relativistic formulation). The distinction between E and B is frame-dependent. The electromagnetic field is the fundamental object.
Maxwell's Equations in Matter
In materials, bound charges and currents modify the fields. We introduce auxiliary fields $\mathbf{D} = \varepsilon_0 \mathbf{E} + \mathbf{P}$ and $\mathbf{H} = \mathbf{B}/\mu_0 - \mathbf{M}$, where $\mathbf{P}$ is the polarization and $\mathbf{M}$ is the magnetization. Maxwell's equations become:
$$\nabla \cdot \mathbf{D} = \rho_f \qquad \nabla \cdot \mathbf{B} = 0$$ $$\nabla \times \mathbf{E} = -\frac{\partial \mathbf{B}}{\partial t} \qquad \nabla \times \mathbf{H} = \mathbf{J}_f + \frac{\partial \mathbf{D}}{\partial t}$$where $\rho_f$ and $\mathbf{J}_f$ are the free charge and current densities. The two Gauss's law equations are modified to involve only free charges, while Faraday's law retains its original form.
Key Insights
- Maxwell's four equations completely describe all classical electromagnetic phenomena
- Two equations (Gauss's laws) constrain the divergence of $\mathbf{E}$ and $\mathbf{B}$; two (Faraday and Ampere-Maxwell) constrain their curls
- The displacement current $\varepsilon_0 \partial \mathbf{E}/\partial t$ is required by charge conservation and makes electromagnetic waves possible
- There is a deep symmetry between $\mathbf{E}$ and $\mathbf{B}$, broken only by the absence of magnetic monopoles
- Electricity and magnetism are unified into a single electromagnetic field
- Charge conservation is not an extra postulate. It follows automatically from Maxwell's equations
- These four equations are the classical limit of quantum electrodynamics, the most precisely tested theory in all of science
Looking Ahead
Maxwell's equations have a spectacular prediction hidden inside them: electromagnetic waves that travel at the speed of light. In the next lesson, we'll derive the wave equation directly from these four equations and discover that light is an electromagnetic phenomenon, one of the most profound unifications in physics.
- Maxwell's four equations completely describe all classical electromagnetic phenomena using the divergence and curl of the electric and magnetic fields.
- Maxwell's addition of the displacement current ($\varepsilon_0 \partial \mathbf{E}/\partial t$) was required by charge conservation and made electromagnetic waves possible.
- Changing electric fields create magnetic fields and changing magnetic fields create electric fields, locking $\mathbf{E}$ and $\mathbf{B}$ in a mutual relationship.
- Electricity and magnetism are not separate forces but two aspects of a single unified electromagnetic field.