Primer · The language of fields
Flux, circulation, divergence, curl
Two operators carry all of electromagnetism.
Maxwell’s equations are statements about two vector fields defined over space and time: the electric field \(\vE(\vr,t)\), in volts per metre, and the magnetic field \(\vB(\vr,t)\), in teslas. Each is a map \(\mathbb{R}^3\times\mathbb{R}\to\mathbb{R}^3\). The sources are a scalar charge density \(\rho\) and a vector current density \(\vJ\). A separate law, the Lorentz force, says what the fields do to a charge \(q\) moving with velocity \(\vv\):
\[\mathbf{F}=q\left(\vE+\vv\times\vB\right)\]Maxwell’s equations say what the fields are, given the sources. They are built from two differential operators, divergence and curl, and both are easiest to understand through linear algebra.
Divergence and curl are pieces of the Jacobian
At any point, a smooth field \(\vF\) has a Jacobian matrix \(J_{ij}=\partial F_i/\partial x_j\), the best linear approximation of how \(\vF\) changes nearby. Split it into symmetric and antisymmetric parts:
\[J=\underbrace{\tfrac12\left(J+J^{\mathsf T}\right)}_{\text{stretch}}+\underbrace{\tfrac12\left(J-J^{\mathsf T}\right)}_{\text{rotation}}\]The divergence is the trace of the Jacobian, so it measures expansion:
\[\nabla\cdot\vF=\operatorname{tr}J=\frac{\partial F_x}{\partial x}+\frac{\partial F_y}{\partial y}+\frac{\partial F_z}{\partial z}\]The antisymmetric part has three independent entries, and they are the components of the curl. For any vector \(\mathbf{u}\), \(\tfrac12(J-J^{\mathsf T})\mathbf{u}=\tfrac12(\nabla\times\vF)\times\mathbf{u}\). The curl measures local rotation: a tiny paddle wheel placed in the flow spins with angular velocity \(\tfrac12\nabla\times\vF\).
The integral meaning
Divergence is outward flux per unit volume, and each component of the curl is circulation per unit area, in the limit of a shrinking region:
\[\nabla\cdot\vF=\lim_{V\to0}\frac{1}{V}\oint_{\partial V}\vF\cdot\dA,\qquad \vn\cdot(\nabla\times\vF)=\lim_{A\to0}\frac{1}{A}\oint_{\partial A}\vF\cdot\dl\]Add up those local statements over a finite region and you get the two theorems that convert every Maxwell equation between its differential and integral forms:
\[\underbrace{\int_V\nabla\cdot\vF\,dV=\oint_{\partial V}\vF\cdot\dA}_{\text{divergence theorem}}\qquad\underbrace{\int_S(\nabla\times\vF)\cdot\dA=\oint_{\partial S}\vF\cdot\dl}_{\text{Stokes’ theorem}}\]Interactive · Lab 0
Divergence and curl explorer
Set the matrix \(M\) and the field becomes \(\vF(\vr)=M\vr\), a linear field in the plane. Drag the dashed circle, or drag its square handle to resize it. For a linear field, flux ÷ area always equals \(\operatorname{tr}M\) and circulation ÷ area equals \(M_{21}-M_{12}\), wherever you put the circle. Try Shear: the flow lines are straight, yet the curl is not zero.
The green tracers follow \(\dot{\vr}=M\vr\), so the same matrix also gives the phase portrait from your differential equations course. The last two presets are not linear. They are the 2D field of a line charge and of a current filament, and their flux and circulation jump between 0 and \(2\pi\) depending on whether the circle encloses the origin. That is Gauss’s law and Ampère’s law in miniature.
Grid spacing is 1 unit. Keyboard: focus the plot, then arrow keys move the circle and + / − resize it.
Three identities that shape the equations
\[\nabla\cdot(\nabla\times\vF)=0,\qquad \nabla\times(\nabla\varphi)=\mathbf{0},\qquad \nabla\times(\nabla\times\vF)=\nabla(\nabla\cdot\vF)-\nabla^2\vF\]Curls have no divergence, and gradients have no curl. Helmholtz’s theorem adds the decisive fact: a field that falls off fast enough at infinity is determined uniquely by its divergence and its curl. In linear-algebra language, square-integrable fields split into two orthogonal subspaces, gradients (curl-free) and curls (divergence-free). That is why Maxwell’s equations come as two divergence equations and two curl equations. Together they pin down \(\vE\) and \(\vB\).
Counting equations. Two scalar divergence equations plus two vector curl equations make eight scalar equations for six unknown field components. The system is not overdetermined. Take the divergence of the curl equations and the divergence equations turn out to be preserved in time, provided charge is conserved. They act as constraints on the initial data, and the curl equations do the time stepping. Chapter IV makes this precise.
Chapter I · Divergence of E
Gauss’s law
Electric charge is the source of the electric field.
- \(\rho\)
- charge density, C/m³
- \(Q_{\text{enc}}\)
- total charge inside the closed surface \(S\)
- \(\varepsilon_0\)
- vacuum permittivity, 8.854 187 8188 × 10⁻¹² F/m (CODATA 2022)
Background
Charles-Augustin de Coulomb measured the force between charged spheres with a torsion balance in 1785 and found the inverse-square law. Carl Friedrich Gauss recast it as a statement about flux; he formulated the law in 1835, and it was published in 1867. The divergence theorem it rests on goes back to Lagrange (1762), Gauss (1813) and Ostrogradsky (1826).
The picture: field lines start on positive charge and end on negative charge. The net number of lines leaving a closed surface counts the charge inside. The shape of the surface does not matter, and a charge outside the surface contributes as many lines going in as coming out.
From Coulomb to Gauss
A point charge \(q\) at the origin has field \(\vE=q\,\hat{\mathbf r}/(4\pi\varepsilon_0 r^2)\). Away from the origin its divergence is zero: in spherical coordinates, \(\frac{1}{r^2}\frac{\partial}{\partial r}\left(r^2E_r\right)=0\). Yet the flux through any sphere around the origin is \(q/\varepsilon_0\). All of it comes from the origin, so the divergence is a delta function:
\[\nabla\cdot\frac{\hat{\mathbf r}}{r^2}=4\pi\,\delta^3(\vr)\quad\Longrightarrow\quad\nabla\cdot\vE=\frac{q}{\varepsilon_0}\,\delta^3(\vr)\]Write any charge distribution as a superposition of point charges, \(\rho(\vr)=\int\rho(\vr')\,\delta^3(\vr-\vr')\,d^3r'\), and linearity gives \(\nabla\cdot\vE=\rho/\varepsilon_0\).
Gauss’s law does not determine \(\vE\) by itself, since a divergence-free field can still swirl. In electrostatics the missing piece is \(\nabla\times\vE=\mathbf 0\), so \(\vE=-\nabla\varphi\), and Gauss’s law becomes Poisson’s equation:
\[\nabla^2\varphi=-\frac{\rho}{\varepsilon_0}\]Discretize the Laplacian on a grid and Poisson’s equation becomes a linear system \(A\boldsymbol{\varphi}=\mathbf b\), with \(-A\) sparse, symmetric and positive definite. Capacitance extractors, semiconductor device simulators and electrostatic field solvers are, at their core, fast solvers for that system.
Interactive · Lab I
Gauss’s law in cross-section
Each dot is a long line charge running perpendicular to the screen, carrying ±1 nC/m. The dashed circle is the cross-section of a Gaussian cylinder. The lab integrates the outward normal component of \(\vE\) around the circle numerically (1440 samples) and compares the result with \(\lambda_{\text{enc}}/\varepsilon_0\). The arrows on the circle show the integrand \(\vE\cdot\vn\); copper means outward, grey inward. Field lines are copper; faint grey curves are equipotentials.
Drag charges or the circle; drag the circle’s edge or square handle to resize. Drop a charge outside the frame to delete it.
Worked examples
Charge \(Q\) is spread uniformly through a ball of radius \(R\). Symmetry makes \(\vE\) radial with a magnitude that depends only on \(r\). On a spherical Gaussian surface of radius \(r\), \(4\pi r^2E(r)=Q_{\text{enc}}/\varepsilon_0\), where \(Q_{\text{enc}}=Q r^3/R^3\) inside and \(Q\) outside:
\[E(r)=\begin{cases}\dfrac{Q\,r}{4\pi\varepsilon_0R^3}, & r\lt R\\[2ex]\dfrac{Q}{4\pi\varepsilon_0 r^2}, & r\ge R\end{cases}\]The field grows linearly inside. Outside, the ball looks like a point charge.
A large sheet with surface charge \(\sigma\): a pillbox straddling the sheet gives \(2EA=\sigma A/\varepsilon_0\), so \(E=\sigma/2\varepsilon_0\) on each side, independent of distance. Sheets carrying \(+\sigma\) and \(-\sigma\) reinforce between the plates and cancel outside, giving \(E=\sigma/\varepsilon_0\) in the gap. With \(V=Ed\) and \(Q=\sigma A\):
\[C=\frac{Q}{V}=\frac{\varepsilon_0A}{d}\]Plates of 1 cm² separated by 0.1 mm: \(C=8.85\) pF. Fill the gap with a dielectric of relative permittivity \(\varepsilon_r\) and \(C\) grows by that factor.
In electrostatic equilibrium the field inside a conductor is zero; otherwise free charges would keep moving. Gauss’s law on any small surface inside the metal then gives \(\rho=0\), so net charge lives on the surface. A pillbox through the surface gives the field just outside:
\[\vE_{\text{outside}}=\frac{\sigma}{\varepsilon_0}\,\vn\]A closed conducting shell around an empty cavity is a Faraday cage: no arrangement of external charge can produce a static field inside the cavity.
This is the geometry of the lab. A cylinder of radius \(r\) and length \(L\) around a line charge \(\lambda\) has flux only through its curved side: \(E\cdot2\pi rL=\lambda L/\varepsilon_0\), so
\[E=\frac{\lambda}{2\pi\varepsilon_0 r}\]Per metre of cylinder, the flux is \(\lambda/\varepsilon_0\). For \(\lambda=1\) nC/m that is 112.9 V, the step size you see in the lab.
Applications
Capacitance and parasitics
Field solvers extract the capacitance of PCB traces, connectors and IC interconnect by solving Poisson’s equation over the geometry.
Electrostatic shielding
Enclosures and screened rooms work because surface charge rearranges to cancel the interior field. At high frequency the shield must also handle magnetic fields, which brings in Faraday’s law.
Semiconductor junctions
The depletion region of a p–n junction is solved with Gauss’s law in one dimension. The field profile is a triangle, and the built-in voltage sets its width.
High-voltage design
Charge crowds onto sharp points, where surface curvature is high, so the local field rises and drives corona and breakdown. Designers round edges and add grading rings.
Electrostatic discharge
ESD models store charge \(Q=CV\) on a body or device; protection design is about where that charge goes and how fast.
Laser printing and coating
Printers write a charge pattern on a photoconductive drum, and toner follows the resulting field. Electrostatic spray painting uses the same idea.
Check yourself
A thin spherical shell of radius \(R\) carries charge \(Q\). What is the field at \(r\lt R\)?
Zero. A concentric Gaussian sphere inside the shell encloses no charge, and symmetry makes \(E\) radial and uniform over it, so \(4\pi r^2E=0\).
A coaxial line has inner radius \(a\), outer radius \(b\), and charge \(\lambda\) per metre on the inner conductor. Find the capacitance per metre.
Between the conductors \(E=\lambda/(2\pi\varepsilon r)\). Integrating, \(V=\frac{\lambda}{2\pi\varepsilon}\ln(b/a)\), so
\[C'=\frac{2\pi\varepsilon}{\ln(b/a)}\]With \(b/a=3.5\) and polyethylene (\(\varepsilon_r=2.25\)), \(C'\approx100\) pF/m, close to a typical 50 Ω cable.
Chapter II · Divergence of B
Gauss’s law for magnetism
There are no magnetic charges, so magnetic field lines never end.
Background
William Gilbert’s De Magnete (1600) recorded that a magnet broken in two gives two complete magnets, each with a north and a south pole. Nobody has isolated a single pole since. In 1931 Paul Dirac showed that if even one magnetic monopole existed anywhere, electric charge would have to be quantized, which made the search attractive. Dedicated searches in cosmic rays, in old rock, and at colliders, most recently the MoEDAL experiment at CERN’s Large Hadron Collider, have found none. In Maxwell’s equations, that absence is the zero on the right-hand side where Gauss’s law has \(\rho/\varepsilon_0\).
In the field-line picture, B lines have nowhere to start or stop. They close on themselves or run off to infinity, and every line that enters a closed surface also leaves it.
Three consequences
A vector potential exists. On all of \(\mathbb R^3\), a divergence-free field is the curl of something (a form of the Poincaré lemma). So we can write
\[\vB=\nabla\times\vA\]\(\vA\) is not unique. Adding any gradient leaves \(\vB\) unchanged because \(\nabla\times\nabla\chi=\mathbf 0\). In linear-algebra terms, the curl operator has a null space (the gradients), and \(\vA\) is only defined modulo that null space. Choosing a representative is called fixing a gauge.
Flux through a loop is well defined. Take two different surfaces \(S_1\) and \(S_2\) spanning the same closed curve. Together they bound a volume, so the net flux out is zero and the flux through each is the same. That is what makes “the magnetic flux through a circuit” meaningful in Faraday’s law.
The normal component is continuous. A thin pillbox across an interface between two materials gives \(B_{1n}=B_{2n}\). Magnetic flux crosses boundaries without loss, which is the basis of magnetic-circuit analysis.
Interactive · Lab II
The flux of B is always zero
Now the dots are long straight wires carrying 1 A out of the screen (⊙) or into it (⊗). The default pair is the cross-section of a current loop. The blue curves are field lines, drawn as contours of the vector potential \(A_z\): in two dimensions \(\vB=\nabla\times(A_z\hat{\mathbf z})\), so the level sets of \(A_z\) are exactly the field lines, and they always close. Wherever you place the circle and whatever it encloses, the outward flux stays at zero.
Drag wires or the circle; drag the edge to resize. Small triangles show the direction of B. Drop a wire outside the frame to delete it.
Worked examples
Could \(\vB=\frac{B_0}{L}(x,\,y,\,0)\) be a magnetic field? Its divergence is \(2B_0/L\neq0\), so no. What about \(\vB=\frac{B_0}{L}(-y,\,x,\,0)\)? Its divergence is zero, so yes. Its curl is \(\frac{2B_0}{L}\hat{\mathbf z}\), and Ampère’s law (Chapter IV) says it is produced by a uniform current density \(\vJ=\frac{2B_0}{\mu_0L}\hat{\mathbf z}\), as inside a thick wire.
A toroidal iron core (\(\mu_r=2000\), mean path \(l=0.2\) m) has a gap \(g=1\) mm and a 200-turn winding carrying 1 A. Because \(\nabla\cdot\vB=0\), the flux through every cross-section is the same, and normal continuity makes \(B\) in the gap equal \(B\) in the iron. Ampère’s law in matter, \(\oint\vH\cdot\dl=NI\), gives
\[B\left(\frac{l}{\mu_0\mu_r}+\frac{g}{\mu_0}\right)=NI\;\Rightarrow\;B=\frac{\mu_0NI}{g+l/\mu_r}\approx0.228\ \text{T}\]The 1 mm gap has ten times the reluctance of 200 mm of iron (1 mm versus 0.1 mm effective). Inductor designers add gaps on purpose to store energy and avoid saturation.
Far from any small current loop with magnetic moment \(\mathbf m\), the field approaches
\[\vB(\vr)=\frac{\mu_0}{4\pi}\,\frac{3(\mathbf m\cdot\hat{\mathbf r})\hat{\mathbf r}-\mathbf m}{r^3}\]You can check that this is divergence-free for \(r\neq0\). Earth’s field is close to a dipole with \(|\mathbf m|\approx8\times10^{22}\) A·m², giving roughly 25 to 65 μT at the surface. There is no “magnetic charge” at the poles; the dipole is a current distribution in the liquid outer core.
Applications
Transformer and inductor cores
Flux continuity is the magnetic analogue of Kirchhoff’s current law. Reluctance networks model cores, gaps and leakage paths.
Magnetic shielding
Flux cannot vanish, so a low-frequency shield works by offering it an easier path. High-permeability alloys divert B around a sensitive region.
MRI magnet design
Main and gradient coils are designed through vector or scalar potentials that satisfy \(\nabla\cdot\vB=0\) by construction.
Numerical electromagnetics
Discretizations that violate \(\nabla\cdot\vB=0\) produce spurious forces. Yee’s FDTD grid preserves the discrete divergence exactly; MHD codes use divergence cleaning.
Magnetic flux leakage testing
Inspection tools magnetize a steel pipe wall. Where corrosion thins the wall, flux is forced out of the metal and Hall sensors detect it.
Monopole searches
A monopole passing through a superconducting loop would cause a step change in its current. Induction detectors and collider experiments set ever-tighter limits.
Check yourself
A uniform field \(B_0\hat{\mathbf z}\) passes through a hemisphere of radius \(R\) sitting on the \(xy\)-plane. What is the flux through the curved surface?
\(\pi R^2B_0\). The curved surface and the flat disk together form a closed surface with zero net flux. Flux \(\pi R^2B_0\) enters through the disk, so the same amount leaves through the dome.
Could \(\vB=B_0\,e^{-x^2/a^2}\,\hat{\mathbf x}\) exist in a region with no magnetic material?
No. \(\nabla\cdot\vB=\partial B_x/\partial x=-\frac{2x}{a^2}B_0e^{-x^2/a^2}\neq0\). Field lines would have to start and stop, which requires magnetic charge.
Chapter III · Curl of E
Faraday’s law of induction
A changing magnetic field makes a circulating electric field.
Background
On 29 August 1831, Michael Faraday wound two coils on opposite sides of an iron ring. Closing a switch on one coil made a galvanometer on the other flick and then return to zero; opening the switch made it flick the other way. Steady current did nothing. Only change produced current. Joseph Henry found the same effect independently in the United States.
In 1834 Heinrich Lenz gave the sign rule: the induced current opposes the change that produced it. That is the minus sign, and it is energy conservation. With the opposite sign, an induced current would reinforce the change that created it and grow without limit.
Field law and flux rule
For a stationary loop, Stokes’ theorem turns the differential form directly into the integral form: the EMF around the loop equals the rate of decrease of magnetic flux through it. For a loop that moves or deforms, \(\mathcal E=-d\Phi_B/dt\) still holds, but part of the EMF now comes from the magnetic force \(\vv\times\vB\) on charges in the moving wire. The local statement \(\nabla\times\vE=-\partial\vB/\partial t\) is the more fundamental one.
Voltage is no longer path-independent
When \(\vB\) changes, \(\vE\) has curl, so it is not the gradient of a scalar. In terms of potentials,
\[\vE=-\nabla\varphi-\frac{\partial\vA}{\partial t}\]The line integral of \(\vE\) between two points depends on the path, so “the voltage between A and B” needs a path to mean anything. Route an oscilloscope probe’s ground lead through changing magnetic flux and the scope reads a voltage that exists only in the loop formed by the probe tip and its ground lead. This is the physics behind short ground springs on probes, twisted pairs, and minimal loop area in circuit layout.
Interactive · Lab III
A rotating-coil generator
A rectangular coil of \(N\) turns and area \(A\) spins at frequency \(f\) in a uniform field \(B\). The flux linkage is \(\lambda(t)=NBA\cos\omega t\) and the EMF is its negative derivative, \(NBA\,\omega\sin\omega t\). The two traces are 90° apart. The EMF peaks when the coil plane is parallel to \(\vB\), where the flux is passing through zero and changing fastest. The animation runs slowly so you can follow it; the readout also gives the value at 60 Hz.
Coil in a uniform field
Last 2.5 periods (EMF scaled against f = 2 Hz)
Worked examples
With \(N=100\), \(B=0.5\) T, \(A=0.01\) m² and \(f=60\) Hz (\(\omega=377\) rad/s), the peak EMF is
\[\mathcal E_{\max}=NBA\omega=100\times0.5\times0.01\times377\approx188\ \text{V}\]These are the lab’s default settings at mains frequency.
A rod of length \(L\) slides at speed \(v\) along rails joined by a resistor \(R\), in a field \(B\) perpendicular to the circuit. The enclosed area grows at rate \(Lv\), so \(\mathcal E=BLv\) and \(I=BLv/R\). The magnetic force on the rod, \(ILB=B^2L^2v/R\), opposes the motion. The mechanical power you supply, \(B^2L^2v^2/R\), equals the \(I^2R\) dissipated. With \(B=1\) T, \(L=0.5\) m, \(v=2\) m/s and \(R=1\ \Omega\): \(\mathcal E=1\) V, \(I=1\) A, and the drag force is 0.5 N.
A long solenoid of radius \(R\) has a uniform field \(B(t)\) inside and none outside. Symmetry makes the induced \(\vE\) azimuthal. On a circle of radius \(r\), \(2\pi rE_\varphi=-\frac{d\Phi_B}{dt}\):
\[E_\varphi(r)=\begin{cases}-\dfrac{r}{2}\dfrac{dB}{dt}, & r\lt R\\[2ex]-\dfrac{R^2}{2r}\dfrac{dB}{dt}, & r\gt R\end{cases}\]The electric field outside is not zero even though \(\vB\) is zero there. A winding around the solenoid feels the full EMF however far out it sits, which is how a transformer secondary and a current clamp work.
A 10 cm² cable loop near a switching circuit sees the field through it change by 1 mT in 1 μs:
\[\mathcal E\approx A\frac{\Delta B}{\Delta t}=\frac{10^{-3}\ \text{m}^2\times10^{-3}\ \text{T}}{10^{-6}\ \text{s}}=1\ \text{V}\]One volt of noise from a single edge. This is why EMC work focuses on loop area and edge rates.
Applications
Generators and alternators
Every power station turns mechanical rotation into EMF through changing flux linkage.
Transformers
Two windings share one core flux, so \(V_2/V_1=N_2/N_1\). Grid voltage steps up for transmission and down for distribution.
Induction motors
A rotating stator field induces currents in the rotor bars, and the force on those currents turns the rotor.
Wireless power and NFC
Coupled coils share flux: Qi chargers run around 100 to 200 kHz, NFC and RFID at 13.56 MHz.
Eddy currents
Induction cooktops, magnetic brakes on trains and rides, and eddy-current crack inspection all rely on currents induced in bulk conductors.
Current and field probes
Rogowski coils, current transformers and near-field loop probes measure \(d\Phi/dt\) and integrate it to recover current or field.
Pickups and sensors
Guitar pickups, MRI receive coils and the inductive vehicle loops under traffic lights all read a changing flux.
Check yourself
A 50-turn coil of area 4 cm² sits perpendicular to a field that falls uniformly from 0.2 T to zero in 10 ms. What is the average EMF?
\(\mathcal E=N A\,\Delta B/\Delta t=50\times4\times10^{-4}\times0.2/0.01=0.4\) V.
Why does an ideal transformer satisfy \(V_2/V_1=N_2/N_1\)?
The same core flux \(\Phi\) links every turn of both windings. Faraday’s law gives \(V_1=N_1\,d\Phi/dt\) and \(V_2=N_2\,d\Phi/dt\) (ignoring winding resistance and leakage flux). Divide one by the other.
Chapter IV · Curl of B
The Ampère–Maxwell law
Currents and changing electric fields make a circulating magnetic field.
- \(\mu_0\)
- vacuum permeability, 1.256 637 061 27 × 10⁻⁶ N/A² (CODATA 2022). Close to 4π × 10⁻⁷, but measured rather than exact since the 2019 SI redefinition.
- \(\varepsilon_0\,\partial\vE/\partial t\)
- displacement current density, A/m²
Background
In 1820 Hans Christian Ørsted saw a compass needle swing when current flowed in a nearby wire, the first link between electricity and magnetism. Within months André-Marie Ampère had worked out the forces between current-carrying wires, and Biot and Savart had a formula for the field of a current element. The magnetostatic law \(\nabla\times\vB=\mu_0\vJ\) held in every steady experiment.
Maxwell found a flaw in it in 1861. The divergence of a curl is always zero, so taking the divergence of Ampère’s law forces \(\nabla\cdot\vJ=0\). But charge conservation says
\[\frac{\partial\rho}{\partial t}+\nabla\cdot\vJ=0\]and \(\nabla\cdot\vJ\) is not zero wherever charge is piling up, such as on a capacitor plate. Gauss’s law gives \(\rho=\varepsilon_0\nabla\cdot\vE\), so \(\nabla\cdot\left(\vJ+\varepsilon_0\,\partial\vE/\partial t\right)=0\) always. Replacing \(\vJ\) with that combination makes the equation consistent:
\[\nabla\cdot(\nabla\times\vB)=\mu_0\left(\nabla\cdot\vJ+\frac{\partial\rho}{\partial t}\right)=0\]Maxwell called \(\varepsilon_0\,\partial\vE/\partial t\) the displacement current. It is tiny in most circuits and could not be measured directly in his day, but it lets a changing electric field create a magnetic field. Paired with Faraday’s law, that closes the loop that produces waves (Chapter V). Maxwell published the complete theory in 1865, and Heinrich Hertz generated and detected radio waves in 1887–88.
The constraints, made precise. Take the divergence of Faraday’s law: \(\partial_t(\nabla\cdot\vB)=0\). Take the divergence of Ampère–Maxwell and use continuity: \(\partial_t(\nabla\cdot\vE-\rho/\varepsilon_0)=0\). If the two divergence equations hold at \(t=0\), the curl equations keep them true forever.
Interactive · Lab IV-a
Circulation counts enclosed current
The same wires, now with the circulation \(\oint\vB\cdot\dl\) around the dashed loop. It equals \(\mu_0\) times the net current through the loop, and wires outside it bend the field without changing the total. Try the Coax preset: a centre conductor carrying +1 A inside eight return wires carrying −⅛ A each. Put the loop outside the shield and the enclosed current is zero, so the circulation is zero. With a continuous shield, symmetry then makes the field itself zero outside, which is why an ideal coax neither radiates nor picks up magnetic fields.
The arrows on the loop show the tangential component \(\vB\cdot\hat{\mathbf t}\); blue is counterclockwise, grey clockwise.
Interactive · Lab IV-b
Maxwell’s capacitor puzzle
A capacitor charges with current \(I\). The dashed loop around the wire is fixed, and the field around it is \(\oint\vB\cdot\dl=\mu_0I\) by symmetry with the rest of the wire. Ampère’s law lets you choose any surface with that loop as its edge. A flat disk is pierced by the wire. A bag that bulges between the plates is pierced by nothing, but the electric field through it is growing. Switch off Maxwell’s term to see the contradiction he resolved.
Plate area 1 cm². The bag passes over the plate edge and through the gap without touching any conductor.
- Conduction current through surface
- Displacement current through surface
- dE/dt between plates
- Law predicts ∮B·dl
- Actual ∮B·dl around the loop
Worked examples
Symmetry makes \(\vB\) azimuthal with constant magnitude on a circle of radius \(r\): \(B\cdot2\pi r=\mu_0I\).
\[B=\frac{\mu_0I}{2\pi r}\]10 A at 1 cm gives 200 μT, about four times Earth’s field. That is enough to deflect a compass, which is what Ørsted saw.
Take a rectangular loop with one side inside the solenoid (length \(\ell\)) and one outside. Only the inside side contributes: \(B\ell=\mu_0 n\ell I\).
\[B=\mu_0nI\]1000 turns per metre carrying 2 A gives 2.51 mT, uniform across the interior.
A wire of radius \(R\) carries \(I\) with uniform current density. A circle of radius \(r\lt R\) encloses \(I r^2/R^2\):
\[B(r)=\frac{\mu_0Ir}{2\pi R^2}\]The field rises linearly from zero at the axis to its maximum at the surface, then falls as \(1/r\).
Circular plates of radius \(R\) charge with current \(I\). The total displacement current in the gap equals \(I\). A circle of radius \(r\lt R\) in the gap encloses the fraction \(r^2/R^2\) of it:
\[B(r)=\frac{\mu_0Ir}{2\pi R^2}\]With \(I=1\) A and \(R=1\) cm, \(B=20\) μT at the plate edge, the same as next to the wire. The magnetic field does not notice that the conduction current stopped.
Applications
Electromagnets and actuators
Relays, solenoid valves and MRI main magnets are sized with \(B=\mu_0nI\), multiplied by \(\mu_r\) when there is a core.
Motors and loudspeakers
Ampère’s law sets the field, and the Lorentz force on the current in that field produces torque or cone motion.
Clamp-on current meters
A ring around a conductor measures \(\oint\vB\cdot\dl\), which is \(\mu_0I\) wherever the wire sits in the jaw.
Coax, twisted pair and return paths
Keeping return current close to signal current makes the enclosed current near zero for any loop drawn around both, so the external field cancels. PCB designers route return paths directly under signal traces for this reason.
Antennas
In a dipole antenna the conduction current stops at the tips. Displacement current carries it on through the surrounding space, and that is what lets the antenna radiate.
Busbars and fault forces
Ampère’s law gives the field around each conductor, and with it the large forces between busbars during a short-circuit fault.
Check yourself
A toroid of \(N\) turns, inner radius \(a\) and outer radius \(b\), carries current \(I\). Find \(B\) inside the windings and outside the toroid.
Inside, a circle of radius \(r\) threads all \(N\) turns: \(B=\mu_0NI/(2\pi r)\) for \(a\lt r\lt b\). Outside (and in the central hole), the net enclosed current is zero and symmetry gives \(B=0\).
The field between 1 cm² capacitor plates rises at \(10^{15}\) V/(m·s). What is the displacement current?
\(I_d=\varepsilon_0A\,dE/dt=8.854\times10^{-12}\times10^{-4}\times10^{15}\approx0.885\) A.
Chapter V · Synthesis
Light from four equations
Faraday’s law and the displacement current feed each other, and a wave travels at 1/√(μ₀ε₀).
The wave equation
Go to empty space: \(\rho=0\), \(\vJ=\mathbf 0\). Take the curl of Faraday’s law and substitute Ampère–Maxwell:
\[\nabla\times(\nabla\times\vE)=-\frac{\partial}{\partial t}(\nabla\times\vB)=-\mu_0\varepsilon_0\frac{\partial^2\vE}{\partial t^2}\]Expand the left side with \(\nabla\times(\nabla\times\vE)=\nabla(\nabla\cdot\vE)-\nabla^2\vE\) and use \(\nabla\cdot\vE=0\):
\[\nabla^2\vE=\mu_0\varepsilon_0\frac{\partial^2\vE}{\partial t^2},\qquad\nabla^2\vB=\mu_0\varepsilon_0\frac{\partial^2\vB}{\partial t^2}\]That is the wave equation, and it fixes the speed:
\[c=\frac{1}{\sqrt{\mu_0\varepsilon_0}}\]With the CODATA values above, this page computes \(c=\) 299,792,458 m/s. In 1862 Maxwell made the same calculation using Weber and Kohlrausch’s 1856 electrical measurements, got roughly 310,000 km/s, and noticed it agreed with Fizeau’s measured speed of light, roughly 315,000 km/s. He concluded that light is an electromagnetic wave.
Plane waves are an eigenvalue problem
Look for solutions \(\vE=\vE_0\,e^{i(\vk\cdot\vr-\omega t)}\). Each \(\nabla\) becomes \(i\vk\) and each \(\partial/\partial t\) becomes \(-i\omega\), so the four equations become algebra:
\[\vk\cdot\vE_0=0,\qquad\vk\cdot\vB_0=0,\qquad\vk\times\vE_0=\omega\vB_0,\qquad\vk\times\vB_0=-\frac{\omega}{c^2}\vE_0\]Write \(\vk\times\) as the skew-symmetric matrix
\[[\vk]_\times=\begin{pmatrix}0&-k_z&k_y\\k_z&0&-k_x\\-k_y&k_x&0\end{pmatrix},\qquad\text{eigenvalues }0,\ \pm i|\vk|\]The zero eigenvector is \(\vk\) itself, a longitudinal wave, and the divergence equations rule it out. That leaves a two-dimensional space of transverse polarizations. Combining the curl equations gives \([\vk]_\times^2\vE_0=-(\omega^2/c^2)\vE_0\), and on the transverse subspace \([\vk]_\times^2=-|\vk|^2\), so
\[\omega=c\,|\vk|\]This is the dispersion relation of light in vacuum: every frequency travels at the same speed. The relations also give \(|\vB_0|=|\vE_0|/c\), with \(\vE\), \(\vB\) and \(\vk\) forming a right-handed triad, which is the picture at the top of this page.
Why the waves neither grow nor decay
Stack the fields into one state vector \(u=(\vE,\vB)\). The curl equations read
\[\frac{\partial u}{\partial t}=\mathcal L u,\qquad\mathcal L=\begin{pmatrix}0&c^2\,\nabla\times\\-\nabla\times&0\end{pmatrix}\]Use the energy inner product \(\langle u,u\rangle=\int\left(\varepsilon_0|\vE|^2+|\vB|^2/\mu_0\right)dV\). The curl is self-adjoint for fields that vanish at infinity, and \(\varepsilon_0c^2=1/\mu_0\), so \(\mathcal L\) is skew-adjoint. Its spectrum lies on the imaginary axis, exactly like a linear ODE \(\dot x=Ax\) with \(A=-A^{\mathsf T}\): solutions oscillate and propagate, and the norm, the field energy, is conserved.
Energy and the Poynting vector
Where there are currents, energy can leave the fields as work on charges. The local balance is Poynting’s theorem:
\[\frac{\partial u}{\partial t}+\nabla\cdot\mathbf S=-\vJ\cdot\vE,\qquad u=\tfrac12\left(\varepsilon_0|\vE|^2+\frac{|\vB|^2}{\mu_0}\right),\qquad\mathbf S=\frac{1}{\mu_0}\vE\times\vB\]Sunlight above the atmosphere carries about 1361 W/m². Setting \(\langle S\rangle=c\varepsilon_0E_{\text{rms}}^2\) gives \(E_{\text{rms}}\approx716\) V/m.
Interactive · Lab V
A one-dimensional FDTD solver
This is the finite-difference time-domain scheme Kane Yee published in 1966. \(E_z\) and \(H_y\) live on interleaved grids, offset by half a cell in space and half a step in time, and each update is a centred difference of one curl equation:
\[H_y\big|^{n+\frac12}_{i+\frac12}=H_y\big|^{n-\frac12}_{i+\frac12}+\frac{\Delta t}{\mu_0\Delta x}\left(E_z\big|^{n}_{i+1}-E_z\big|^{n}_{i}\right),\quad E_z\big|^{n+1}_{i}=E_z\big|^{n}_{i}+\frac{\Delta t}{\varepsilon\Delta x}\left(H_y\big|^{n+\frac12}_{i+\frac12}-H_y\big|^{n+\frac12}_{i-\frac12}\right)\]The Courant number \(S=c\Delta t/\Delta x=1\), at which the scheme is exact in vacuum, and both ends absorb outgoing waves. When the pulse reaches the slab, part reflects with \(\Gamma=(1-n)/(1+n)\), which is negative, so the reflection comes back inverted. The rest transmits and slows to \(c/n\). The blue curve is \(\eta_0H\), signed so that a rightward wave sits on top of \(E\); for the reflected wave the curves flip, because \(\vE\times\vH\) now points left. Add loss to turn the slab into an absorbing shield.
- Refractive index n = √εr
- Reflection coefficient Γ = (1 − n)/(1 + n)
- Transmission coefficient τ = 2/(1 + n)
- Reflected power |Γ|²
- Speed in slab c/n
- Time step
Applications
Radio, radar and wireless
Every link budget, from broadcast radio to 5G and radar returns, is a solution of these wave equations with antennas as sources.
Optics and photonics
Lenses, thin-film coatings and optical fibre are boundary-value problems for the same equations at much higher frequency.
Radiated emissions and immunity
EMC testing in anechoic chambers measures field strength in V/m. Field levels, antenna factors and shielding effectiveness all come from this chapter.
Computational electromagnetics
FDTD, finite-element and method-of-moments solvers discretize Maxwell’s equations directly to design antennas, enclosures and high-speed interconnect.
Microwave heating
At 2.45 GHz, lossy dielectrics such as water absorb energy from the field, which is \(\vJ\cdot\vE\) in Poynting’s theorem.
Transmission lines
Guided waves on coax and PCB traces obey the same physics; reflections at impedance steps follow the \(\Gamma\) you see in the lab.
Check yourself
A plane wave in vacuum has electric amplitude 10 V/m. Find the magnetic amplitude and the average intensity.
\(B_0=E_0/c\approx33.4\) nT, and \(\langle S\rangle=\tfrac12c\varepsilon_0E_0^2\approx0.133\) W/m².
Light passes from air into glass with \(\varepsilon_r=2.25\) at normal incidence. What are the speed in the glass and the reflection coefficient?
\(n=1.5\), so \(v=c/1.5\approx2.0\times10^8\) m/s. \(\Gamma=(1-1.5)/(1+1.5)=-0.2\), and the reflected power is \(\Gamma^2=4\%\), the familiar reflection from an uncoated window. Set εr to 2.25 in the lab to see it.
Reference
Summary sheet
The equations in other forms, the boundary conditions, and the constants.
The four equations at a glance
| Law | Differential | Integral | Physical content |
|---|---|---|---|
| I · Gauss | \(\nabla\cdot\vE=\rho/\varepsilon_0\) | \(\oint_S\vE\cdot\dA=Q_{\text{enc}}/\varepsilon_0\) | Charge sources E |
| II · Gauss (magnetism) | \(\nabla\cdot\vB=0\) | \(\oint_S\vB\cdot\dA=0\) | No magnetic charge |
| III · Faraday | \(\nabla\times\vE=-\partial_t\vB\) | \(\oint_{\partial S}\vE\cdot\dl=-\frac{d}{dt}\Phi_B\) | Changing B curls E |
| IV · Ampère–Maxwell | \(\nabla\times\vB=\mu_0\vJ+\mu_0\varepsilon_0\partial_t\vE\) | \(\oint_{\partial S}\vB\cdot\dl=\mu_0I_{\text{enc}}+\mu_0\varepsilon_0\frac{d}{dt}\Phi_E\) | Current and changing E curl B |
Engineering convention. Physics texts often use \(e^{-i\omega t}\), which flips the sign of every \(j\omega\).
Constants
| Quantity | Symbol | Value (CODATA 2022) | Note |
|---|---|---|---|
| Speed of light | \(c\) | 299 792 458 m/s | Exact by definition of the metre |
| Vacuum permittivity | \(\varepsilon_0\) | 8.854 187 8188 × 10⁻¹² F/m | Measured |
| Vacuum permeability | \(\mu_0\) | 1.256 637 061 27 × 10⁻⁶ N/A² | Measured; ≈ 4π × 10⁻⁷ |
| Impedance of free space | \(\eta_0=\sqrt{\mu_0/\varepsilon_0}\) | 376.730 Ω | Ratio |E|/|H| in a plane wave |
Further reading
- Feynman Lectures on Physics, Vol. II, Chapter 18: The Maxwell Equations · free online; the clearest physical intuition available.
- David J. Griffiths, Introduction to Electrodynamics · the standard undergraduate text, at the level of this page.
- John David Jackson, Classical Electrodynamics · the graduate reference, with Green’s functions, radiation and waveguides.
- Allen Taflove and Susan Hagness, Computational Electrodynamics: The Finite-Difference Time-Domain Method · for building on Lab V.
- A Dynamical Theory of the Electromagnetic Field (1865) · background on Maxwell’s original paper.