Maxwell's Equations: Charge, Field & Wave

Four equations bind charge, the electric field and the magnetic field into one object — the electromagnetic field. Here it is in three dimensions, computed and drawn as it really is: drag any scene to orbit it. The radial field of a charge, the closed loops of magnetism with no source, the way a changing field of one kind manufactures the other, and the self-sustaining ripple that falls out — light — moving at exactly \(c=1/\sqrt{\mu_0\varepsilon_0}\).

Gauss · Ampère · Faraday 1831 · Maxwell 1865 · Heaviside 1884 · Hertz 1887 (waves confirmed)
HONESTY TIER  A · DIRECT  real 3-D WebGL fields — arrows are the sampled vector field, loops are integrated field lines, the wave is the exact solution
4
equations, one field
3-D
drag to orbit · live
2.998×10⁸
c = 1/√(μ₀ε₀) m/s
E⊥B
the wave that results
 ›  Electromagnetism  ›  Maxwell's Equations: Charge, Field & Wave

Before Maxwell, electricity and magnetism were two subjects. His achievement was to write them as four statements about a single field and notice that, together, they are inconsistent unless one term is added — the displacement current. Put it in, and the equations stop merely describing fields pinned to charges: they describe a disturbance that can let go of its source and travel, at a speed built from two constants measured with magnets and capacitors. That speed came out equal to the speed of light. Every scene below is a real 3-D field you can rotate with a drag; scroll through them and the argument builds from a single charge to light itself.

What is real here. Each scene is live WebGL: the arrows are the genuine vector field sampled in space, the loops are streamlines integrated along it, the wave is the exact plane‑wave solution. Because a screen is flat, charges and wires are drawn as their honest counterparts (a point/line charge, an infinite straight wire) for which Gauss's and Ampère's laws hold exactly — the flux through the Gaussian sphere and the circulation around the Amperian loop, recomputed each frame, really do equal \(Q_{\text{enc}}/\varepsilon_0\) and \(\mu_0 I_{\text{enc}}\). Drag to orbit; scroll, pan and use the sliders.

The four equations · in vacuum, SI

Gauss (electric)
\(\nabla\!\cdot\!\mathbf{E}=\dfrac{\rho}{\varepsilon_0}\)
charge makes E · § I
Gauss (magnetic)
\(\nabla\!\cdot\!\mathbf{B}=0\)
no magnetic charge · § II
Faraday
\(\nabla\!\times\!\mathbf{E}=-\dfrac{\partial \mathbf{B}}{\partial t}\)
changing B makes E · § III
Ampère–Maxwell
\(\nabla\!\times\!\mathbf{B}=\mu_0\mathbf{J}+\mu_0\varepsilon_0\dfrac{\partial \mathbf{E}}{\partial t}\)
current & changing E make B · § II–III
EQUATION I · SOURCES OF E

Charge Makes a Field — Gauss's Law

TIER A · DIRECT
The law
\(\displaystyle\oint_S \mathbf{E}\cdot d\mathbf{A}=\frac{Q_{\text{enc}}}{\varepsilon_0}\), equivalently \(\nabla\!\cdot\!\mathbf{E}=\rho/\varepsilon_0\). Electric field diverges from charge.
In plain words
The flux of \(\mathbf{E}\) out of any closed surface counts the charge inside, and nothing else. Grow or move the sphere — wrap the same charge, get the same number.
In the 3-D scene
The true field as arrows in space + streamlines. Grow the translucent Gaussian sphere; the panel sums \(\oint\mathbf{E}\cdot d\mathbf{A}\) over it and reports \(Q_{\text{enc}}/\varepsilon_0\). Add a second charge for a dipole.
◐ drag to orbit · scroll to zoom
E field · 3-D
Qenc = +2.0 nC
Qenc/ε₀ = 226 V·m
∮E·dA = 226 V·m
The sphere is a Gaussian surface. The panel samples the field over it and sums \(\mathbf{E}\cdot\hat{n}\,dA\): the total tracks \(Q_{\text{enc}}/\varepsilon_0\) and snaps to zero the moment the sphere no longer contains a charge, even though the field there is far from zero. Flux sees enclosed charge, not nearby field — that is the whole law.
EQUATION II · NO MAGNETIC CHARGE

Magnetism Has No Source — Closed Loops & Ampère

TIER A · DIRECT
The law
\(\displaystyle\oint_S \mathbf{B}\cdot d\mathbf{A}=0\) always \((\nabla\!\cdot\!\mathbf{B}=0)\); a steady current circulates \(\mathbf{B}\): \(\displaystyle\oint_C \mathbf{B}\cdot d\boldsymbol{\ell}=\mu_0 I_{\text{enc}}\).
In plain words
No "magnetic charge" exists for lines to start on, so every \(\mathbf{B}\) line is a closed loop. Magnetism answers not to a source-point but to a current threading a loop.
In the 3-D scene
The field \(B=\mu_0 I/2\pi r\) of a straight wire, drawn as the nested closed rings it really forms — orbit to see they never end. The Amperian ring reports \(\oint\mathbf{B}\cdot d\boldsymbol\ell=\mu_0 I\).
◐ drag to orbit · scroll to zoom
B field · 3-D
B at ring = 17 µT
∮B·dℓ = 7.5 µT·m = μ₀I
flux ∮B·dA = 0
The circulation around the ring is \(\mu_0 I\) — independent of the ring's radius, because \(B\propto 1/r\) exactly cancels the \(2\pi r\) of the path. Slide the ring out past the wire and it falls to zero. The net flux of \(\mathbf{B}\) through any closed surface is always zero: as many lines enter as leave, because there is no magnetic charge to end on.
EQUATIONS III & IV · THE COUPLING

Each Field Manufactures the Other

TIER A · DIRECT
The law
Faraday: \(\nabla\!\times\!\mathbf{E}=-\partial\mathbf{B}/\partial t\). Maxwell's new term: \(\nabla\!\times\!\mathbf{B}=\mu_0\varepsilon_0\,\partial\mathbf{E}/\partial t\) even with no current — the displacement current.
In plain words
A magnetic field that changes in time drives a circulating electric field; a changing electric field drives a circulating magnetic field. Neither needs a charge or a wire — only change.
In the 3-D scene
A bar magnet swings through a coil: the changing flux drives an induced current, \(\text{EMF}=-d\Phi_B/dt\), reversing with the magnet's motion (Lenz). Switch to the charging capacitor to watch the displacement current curl \(\mathbf{B}\) where no wire runs.
◐ drag to orbit · scroll to zoom
magnet + coil · 3-D
dΦ_B/dt = 0.0
induced EMF = 0.0
This mutual manufacture is the hinge of the subject. Faraday's law alone runs every generator and transformer. Add Maxwell's symmetric partner — the displacement current \(\varepsilon_0\,\partial\mathbf{E}/\partial t\), the term needed so charge stays conserved across a capacitor gap — and the two laws close into a feedback loop: changing \(\mathbf{E}\) makes changing \(\mathbf{B}\) makes changing \(\mathbf{E}\)… A disturbance no longer needs its source. It can regenerate and leave.
EQUATION IV · THE PAYOFF

The Field Lets Go — Electromagnetic Waves

TIER A · DIRECT
The law
In empty space the four equations combine to \(\nabla^2\mathbf{E}=\mu_0\varepsilon_0\,\partial^2\mathbf{E}/\partial t^2\): a wave equation, speed \(c=1/\sqrt{\mu_0\varepsilon_0}\).
In plain words
A solution is a transverse ripple: \(\mathbf{E}\) and \(\mathbf{B}\) at right angles, in step, marching together. Their sizes are locked, \(E=cB\), moving at \(c\) — set only by \(\mu_0,\varepsilon_0\).
In the 3-D scene
The exact plane wave: red \(\mathbf{E}\) vertical, blue \(\mathbf{B}\) horizontal, both \(\propto\sin(kz-\omega t)\), streaming along \(z\) at \(c\). Orbit to see they are truly perpendicular. Slide across the spectrum; \(E_0/B_0\) stays pinned at \(c\).
◐ drag to orbit · scroll to zoom
EB · travels along z
λ = 500 nm
ν = 6.0×10¹⁴ Hz
E₀/B₀ = 2.998×10⁸ m/s = c
photon hν = 2.48 eV
Nothing here is a charge or a wire — it is pure field, each component regenerating the other as it goes. The speed is not an input: \(c=1/\sqrt{\mu_0\varepsilon_0}=2.998\times10^8\ \text{m/s}\), built from a magnetic and an electric constant. That it equals the measured speed of light was Maxwell's proof that light is an electromagnetic wave. The whole spectrum — radio to gamma — is this one solution at different frequencies.

Four lines, one field, and light for free

Read top to bottom, the page is one argument. Gauss's law says the electric field is sourced — it points away from charge, and the flux through any surface counts what is inside. Its magnetic twin says there is no such source for \(\mathbf{B}\): the lines close on themselves, and only currents — and, it turns out, changing electric fields — make them curl. Faraday and Ampère–Maxwell couple the two, and Maxwell's displacement current is the term that turns a pair of static rules into a self-propelling loop.

Strip away every charge and current and the four equations collapse into a wave equation whose speed is fixed by two lab constants:

\(\displaystyle c=\frac{1}{\sqrt{\mu_0\varepsilon_0}}=\frac{1}{\sqrt{(1.2566\times10^{-6})(8.8542\times10^{-12})}}=2.99792\times10^{8}\ \text{m/s}\)

That number is the speed of light, derived without ever mentioning light — two subjects that looked unrelated turn out to be one, and the union predicts a whole spectrum of radiation nobody had asked for. Everything downstream, from your phone to starlight to the photon, lives inside these four lines.

Boundary of validity

Gauss

The point/line‑charge field is exact; the numeric \(\oint\mathbf{E}\cdot d\mathbf{A}\) is a surface sum over the Gaussian sphere and matches \(Q_{\text{enc}}/\varepsilon_0\). Streamlines are integrated along the true field, not drawn by hand.

✓ flux = Q/ε₀, verified live
Ampère / ∇·B=0

\(B=\mu_0 I/2\pi r\) exact for a straight wire. Circulation \(\oint\mathbf{B}\cdot d\boldsymbol\ell\to\mu_0 I_{\text{enc}}\) and surface flux \(\to 0\), computed around the ring each frame.

✓ μ₀I and zero flux
Induction & wave

EMF \(=-d\Phi_B/dt\) is the exact derivative of the coil flux; the plane wave is the exact vacuum solution with \(E=cB\), \(\omega/k=c\). \(c,\lambda,\nu,h\nu\) recompute from \(\mu_0,\varepsilon_0,h\).

✓ exact solution, E/B = c
The 3-D slice

Vectors are sampled on a finite grid and streamlines are finite; both are honest samples of the continuous field, not the whole of it. Retardation and radiation‑zone falloff belong to the radiating‑charge entry.

△ sampled field, statics + plane wave
Constants

\(\varepsilon_0=8.8542\times10^{-12}\), \(\mu_0=1.25664\times10^{-6}\), \(h=6.626\times10^{-34}\) (CODATA). \(c\) and every wavelength/energy are derived on load — no stored lookups.

✓ CODATA, derived live
Honesty tier

Tier A throughout: arrows are the sampled vector field, loops are integrated streamlines, the wave is the analytic solution. No field‑line cartoon the mathematics does not put there.

✓ the picture is the computation

References

← Showcase