One theory for radio, light and your phone
Hold a phone near a window. Sunlight is pouring through the glass; the phone is exchanging data with a mast a kilometre away; a radio in the next room is picking up a broadcast from a transmitter fifty kilometres off; the router on the shelf is filling the room with Wi-Fi. These look like four different things. They are one thing: electromagnetic waves, ripples in the electric and magnetic fields, differing only in their frequency.
That unity is a prediction, not an observation. In the 1860s James Clerk Maxwell took the laws of electricity and magnetism that Coulomb, Ampère and Faraday had found by experiment, noticed that one of them was inconsistent, repaired it with a single extra term, and found that the repaired equations allow a wave that travels through empty space at a speed he could compute from two numbers measured on a laboratory bench with capacitors and coils. The number came out equal to the measured speed of light. Twenty years later Heinrich Hertz made such waves with a spark gap and detected them across a room, and within another two decades they were carrying messages across the Atlantic.
Everything in the rest of this level rests on this lesson: transmission lines guide these waves along wires, antennas launch them into space, and modulation and coding load them with information. Here we meet the four laws, the missing term, the wave they predict, and a simulation of that wave in a few lines of NumPy.
Fields, flux and circulation
A field is a quantity defined at every point of space and time. The electric field tells you the force per unit charge a small test charge would feel: , measured in volts per metre. The magnetic field , measured in teslas, adds the force on a moving charge: . You met both in magnetism and motors, where a current in a magnetic field turned a motor.
Maxwell's equations do not tell you the field at a point directly. They ask two kinds of question about it, and it helps to have pictures for both.
- Flux through a surface: how much field passes through it. For a closed surface, like a balloon, the net flux out tells you whether the field is being produced inside (field lines start there) or absorbed (they end there).
- Circulation around a closed loop: how much the field pushes along the loop, added up all the way round. A field whose lines curl around something has circulation; a field that points straight out from a charge has none.
Analogy, not a formal construction
Think of the wind on a hillside. Flux is how much air blows through a hoop you hold up, or, for a closed tent, whether more air leaves than enters (only if something inside is producing air, like a fan). Circulation is how strongly the wind pushes a bead around a ring of wire: zero for a steady breeze from one direction, large inside a whirlwind.
With those two words, all four laws fit in a sentence each:
- Gauss's law. The electric flux out of any closed surface is proportional to the charge inside. Electric field lines start on positive charges and end on negative ones.
- Gauss's law for magnetism. The magnetic flux out of any closed surface is zero. Magnetic field lines never start or end: there are no magnetic charges (no "monopoles" have ever been found), so the lines close on themselves.
- Faraday's law. The circulation of around a loop equals minus the rate of change of the magnetic flux through it. A changing magnetic field makes a curling electric field: this is the induction behind every transformer and generator.
- The Ampère–Maxwell law. The circulation of around a loop is proportional to the current through it plus the rate of change of the electric flux through it. Currents make curling magnetic fields, and so do changing electric fields.
The words "plus the rate of change of the electric flux" are Maxwell's addition. Without them, there are no electromagnetic waves.
The four laws, precisely
Definition— flux and circulation
For a surface with a unit normal , the flux of a field through is . For a closed curve , the circulation of around is . When is the edge of , the direction round and the side points to are linked by the right-hand rule.
Definition— Maxwell's equations in vacuum, integral form
For any closed surface enclosing charge , and any loop bounding a surface through which a current flows:
Here F/m is the vacuum permittivity and N/A² the vacuum permeability.
Shrinking the surface and the loop to a point turns flux per unit volume into the divergence and circulation per unit area into the curl (the theorems of Gauss and Stokes from multivariable calculus). That gives the differential form, with charge density and current density :
| Law | In words | What it gives engineers |
|---|---|---|
| Gauss | charges are where lines begin and end | capacitance, the field near a charged conductor |
| Gauss (magnetism) | lines never begin or end | magnetic circuits in transformers and motors |
| Faraday | changing makes curling | generators, transformers, inductance, induced noise |
| Ampère–Maxwell | currents and changing make curling | electromagnets, inductance, and (with Faraday) waves |
Inside materials, engineers write the same laws with the displacement field and the magnetic field strength , where and absorb the material's response. In this lesson the materials are simple (linear, uniform, lossless), so you can read every formula with .
The missing term: displacement current
Ampère's law in its original form said only , where is the current crossing any surface whose edge is . Apply it to a capacitor being charged.
The circulation of around is one number: it depends only on the field along the loop. But Ampère's law gives two different answers for it. Through the flat disc the enclosed current is . Through the bag , which passes between the plates, it is zero, because no charge jumps the gap. One law, two surfaces with the same edge, two answers: the law is inconsistent whenever charge piles up somewhere.
Maxwell's repair was to notice what does cross . As charge builds up on the plates, the field in the gap grows: by Gauss's law the electric flux between the plates is , so
The quantity , the displacement current, is exactly equal to the conduction current in the wire. Add it to the right-hand side of Ampère's law and both surfaces give . The corrected law is consistent with conservation of charge for every surface, and that is the deeper reason it must be right: take the divergence of , use and Gauss's law, and out comes , the continuity equation.
Example— How big is a displacement current?
A 100 pF capacitor on a circuit board is charged at a rate of 1 V per nanosecond, a typical edge in fast digital logic. The current in its leads is A. The displacement current between its plates is the same 0.1 A: there is no conduction current there, but the field in the dielectric is changing, and it produces exactly the magnetic field that the missing current would have. This is why the magnetic field around a capacitor's leads does not stop abruptly at the plates.
From four laws to a wave
Take empty space: no charges, no currents. The equations become beautifully symmetric:
Theorem— The wave equation
In a region with no charge and no current, every Cartesian component of and of satisfies the wave equation
whose solutions travel at the speed .
Proof
Take the curl of Faraday's law and swap the order of the space and time derivatives:
using the Ampère–Maxwell law in the second step. The vector identity and Gauss's law turn the left side into , which gives the first equation. The same steps starting from the curl of the Ampère–Maxwell law give the second. In one dimension, is solved by and for any twice-differentiable shape (substitute and check), so a disturbance of any shape moves at speed without changing shape.
∎
Now compute the speed from the two constants, and the ratio that will turn out to relate to in a wave. The last columns convert some familiar frequencies to wavelengths and to the energy of one photon.
import math
mu0 = 1.25663706127e-6 # vacuum permeability, N/A^2 (CODATA 2022)
eps0 = 8.8541878188e-12 # vacuum permittivity, F/m (CODATA 2022)
h = 6.62607015e-34 # Planck constant, J s (exact since 2019)
e = 1.602176634e-19 # elementary charge, C (exact since 2019)
c = 1 / math.sqrt(mu0 * eps0)
eta0 = math.sqrt(mu0 / eps0)
print(f"c = 1/sqrt(mu0 eps0) = {c:,.1f} m/s")
print(f"eta0 = sqrt(mu0/eps0) = {eta0:.2f} ohm")
print()
print(f"{'source':26}{'frequency':>12}{'wavelength':>14}{'photon energy':>16}")
for name, f in [("AM broadcast", 0.6e6), ("FM broadcast", 98e6),
("Wi-Fi, microwave oven", 2.45e9), ("5G millimetre wave", 28e9),
("thermal camera (10 um)", c / 10e-6), ("green light (530 nm)", c / 530e-9),
("medical X-ray (0.02 nm)", c / 0.02e-9)]:
lam = c / f
print(f"{name:26}{f:12.3e}{lam:12.3e} m{h * f / e:13.2e} eV")The first line is the punchline Maxwell reached with far cruder numbers: two constants measured with static charges and steady currents combine into 299,792,458 m/s, the speed of light. The second line is the impedance of free space, , which we meet again in the next section and in antennas. In a material with relative permittivity (and ), the same derivation gives a speed : the refractive index is . A signal on a circuit board, in a dielectric with , travels at about half the speed of light, which matters a great deal in the next lesson.
Plane waves, polarisation and the Poynting vector
Far from the antenna or star that produced it, a wave looks the same over any small patch of a plane at right angles to its direction: a plane wave. Choose as the direction of travel. The simplest solution of Maxwell's equations is
with angular frequency and wavenumber . Substituting into Faraday's law confirms it: and agree because .
Three facts follow from Maxwell's equations and are worth remembering:
- The wave is transverse. , and the direction of travel are mutually perpendicular. (Gauss's laws forbid a field component along that varies only with .)
- and are in phase and in fixed ratio: , or in terms of , . That is why is called an impedance: it is the ratio of volts per metre to amperes per metre in a travelling wave.
- The wave carries energy in the direction of travel.
Definition— Poynting vector
The Poynting vector is the power per unit area carried by the fields, in W/m², pointing in the direction the energy flows. For the plane wave above it points along and its time average, the intensity, is
Example— The electric field in sunlight and near a phone
Sunlight arriving above the atmosphere has an intensity of about 1361 W/m². Solving for the amplitude gives V/m, with a magnetic amplitude T. Sunlight is of course a jumble of frequencies and polarisations; these are the values of a single wave carrying the same power.
A phone radiating 0.2 W, if it radiated equally in all directions, would spread that power over a sphere of area . At m the intensity is W/m², and the field amplitude about 3.5 V/m. Antennas do not radiate equally in all directions, and the antennas lesson makes this calculation properly.
Polarisation
The plane wave in the figure is linearly polarised: its always points along the same line. In general a wave travelling along has two independent components,
If or (or one amplitude is zero), the tip of moves back and forth along a line: linear polarisation. If and , the tip traces a circle: circular polarisation, right- or left-handed depending on the sign. Anything else traces an ellipse. Polarisation matters in practice: a vertically polarised antenna barely receives a horizontally polarised wave, satellite links (GPS among them) often use circular polarisation because the ionosphere rotates the plane of linear polarisation by an unpredictable amount, and mobile networks use pairs of cross-polarised antennas to carry two data streams at once.
Note
"Right-hand circular" is a convention, and two communities chose differently. The IEEE defines handedness looking along the direction of travel, away from the source; many optics books look back towards the source, which reverses the name. Before connecting two circularly polarised antennas, check which convention each datasheet uses.
The electromagnetic spectrum
Maxwell's equations put no limit on the frequency. Every wavelength from kilometres to far less than an atom is an electromagnetic wave, and engineering uses almost all of them.
| Region | Frequency | Wavelength | Engineering uses |
|---|---|---|---|
| Radio (LF, MF, HF) | 30 kHz – 30 MHz | 10 km – 10 m | navigation beacons, AM and shortwave broadcasting, RFID cards at 13.56 MHz |
| VHF and UHF | 30 MHz – 3 GHz | 10 m – 10 cm | FM radio, television, mobile phones, GPS, Bluetooth, 2.4 GHz Wi-Fi |
| Microwave (SHF, EHF) | 3 – 300 GHz | 10 cm – 1 mm | 5 and 6 GHz Wi-Fi, satellite links, radar, 5G millimetre wave |
| Terahertz and infrared | 0.3 – 400 THz | 1 mm – 750 nm | thermal cameras, remote controls, optical fibre at 1550 nm |
| Visible light | 400 – 750 THz | 750 – 400 nm | displays, lighting, cameras |
| Ultraviolet | 750 THz – 30 PHz | 400 – 10 nm | lithography for chips, sterilisation |
| X-rays and gamma rays | above about 30 PHz | below 10 nm | medical imaging, inspection, astronomy |
The boundaries are conventions. The radio part is organised by the International Telecommunication Union (ITU), whose Radio Regulations divide it into decade-wide bands (LF from 30 to 300 kHz, MF to 3 MHz, HF to 30 MHz, and so on up to EHF) and allocate them to services; the last lesson of this level returns to who decides.
The code above also printed the energy of one photon, , at each frequency. Breaking a chemical bond or knocking an electron off an atom takes from a few electronvolts to a few tens of electronvolts. A 2.45 GHz photon carries about eV, hundreds of thousands of times too little, which is why radio waves and microwaves are called non-ionising: their effect on the body is heating, and international guidelines such as those of ICNIRP limit exposure far below the level at which heating matters. Ultraviolet, X-rays and gamma rays are ionising; that is why sunburn and medical X-rays are taken seriously in a way that Wi-Fi is not.
Note
Two safety rules follow from the physics. High-power radio equipment, microwave ovens and radar are shielded and certified because concentrated radio power heats tissue, so never open or modify them. And lasers concentrate visible or infrared light into a narrow beam: never point one at anyone's eyes, including your own. Everything in this lesson can be explored safely by simulation.
Simulating a wave: 1-D FDTD
Most real electromagnetic problems (an antenna on a phone, a connector on a circuit board, a waveguide on a photonic chip) have no closed-form solution, and engineers solve Maxwell's equations numerically. The most direct method is finite-difference time-domain (FDTD), introduced by Kane Yee in 1966: chop space into cells and time into steps, and replace each derivative with a difference.
Consider a wave travelling along with fields and . In a material of permittivity , the two curl equations reduce to
Yee's insight was to stagger the grid: store at whole cells and whole time steps, at half cells and half time steps. Then every difference is centred, accurate to second order, and the update is a leapfrog: new from the curl of (Faraday), then new from the curl of (Ampère–Maxwell). Measuring in units of and writing the Courant number , the updates become
The program below runs these updates with , so a wave moves half a cell per step. A soft source adds a Gaussian pulse to the field at cell 30, launching one pulse each way. The left edge absorbs whatever reaches it (a value copied from two steps earlier, which works because a wave crosses one cell in exactly two steps); the right edge is a perfect conductor, where is forced to zero.
import numpy as np
# 1-D FDTD (Yee) in normalised units: H is measured in units of 1/eta0, so free space has
# impedance 1, and the Courant number S = c*dt/dz = 0.5: a wave moves half a cell per step.
N = 120 # cells; a perfect conductor (E = 0) sits at the right-hand end
S = 0.5
ex = np.zeros(N)
hy = np.zeros(N)
left_history = [0.0, 0.0] # E at cell 1, two steps ago and one step ago (absorbing left edge)
def show(step):
chars = []
for v in ex[::2]: # every second cell, so a line is 60 characters wide
chars.append("#" if v > 0.5 else "+" if v > 0.1 else "=" if v < -0.5 else "-" if v < -0.1 else ".")
print(f"step {step:3d} |" + "".join(chars) + "|")
for step in range(1, 401):
hy[:-1] -= S * (ex[1:] - ex[:-1]) # Faraday's law: dH/dt from the curl of E
ex[1:] -= S * (hy[1:] - hy[:-1]) # Ampere-Maxwell law: dE/dt from the curl of H
ex[30] += np.exp(-0.5 * ((step - 40) / 8) ** 2) # soft source: a Gaussian pulse added at cell 30
ex[0] = left_history.pop(0) # absorbing boundary, suited to S = 0.5
left_history.append(ex[1])
ex[-1] = 0.0 # perfect electric conductor
if step in (60, 120, 180, 230, 260, 300, 360):
show(step)
peak = np.argmax(np.abs(ex))
print("after 400 steps the largest field is", round(float(ex[peak]), 3), "at cell", int(peak))Read the picture from top to bottom. At step 60 two pulses leave the source. The left one is swallowed by the absorbing edge without a trace by step 120, while the right one marches on, about 60 cells in 120 steps: half a cell per step, as demands. At step 230 it is hitting the conductor, and from step 260 on it comes back upside down (= and - are negative). A perfect conductor cannot sustain a tangential electric field, so the reflected wave must cancel the incident one at the wall: the reflection coefficient for is . A pulse on a short-circuited cable does exactly the same, as we will see in transmission lines.
Now a quantitative test. Fill the right part of the grid with a dielectric of relative permittivity (refractive index ). At a boundary between free space and the dielectric, matching the tangential fields on both sides gives a reflection coefficient and a transmission coefficient for . Let us measure both. A probe behind the source records the left-going copy of the pulse (which is identical to the right-going one) and, much later, the reflection; a probe inside the dielectric records the transmitted pulse. Dividing the area under each pulse by the area of the incident one gives and ; areas are used rather than peak heights because numerical dispersion changes a pulse's shape but not its area.
import numpy as np
def slab_experiment(eps_r, N=400, steps=900, src=60, interface=200):
"""A pulse in free space meets a dielectric filling the cells from `interface` on.
Probe A (cell 20) sees the left-going copy of the pulse, then the reflection;
probe B (40 cells inside the dielectric) sees the transmitted pulse."""
S = 0.5
eps = np.ones(N)
eps[interface:] = eps_r
ex, hy = np.zeros(N), np.zeros(N)
hist = [0.0, 0.0]
probe_a, probe_b = [], []
for n in range(steps):
hy[:-1] -= S * (ex[1:] - ex[:-1])
ex[1:] -= S / eps[1:] * (hy[1:] - hy[:-1])
ex[src] += np.exp(-0.5 * ((n - 60) / 12) ** 2)
ex[0] = hist.pop(0)
hist.append(ex[1])
probe_a.append(ex[20])
probe_b.append(ex[interface + 40])
a, b = np.array(probe_a), np.array(probe_b)
incident = a[:400].sum() # the left-going copy, identical to the pulse sent right
reflected = a[400:].sum()
transmitted = b.sum()
return reflected / incident, transmitted / incident
print("eps_r n Gamma: sim theory tau: sim theory")
for eps_r in [1.0, 2.25, 4.0, 9.0]:
n = np.sqrt(eps_r)
gamma, tau = slab_experiment(eps_r)
gamma = round(gamma, 3) + 0.0 # + 0.0 turns -0.0 into 0.0
print(f"{eps_r:5.2f} {n:4.1f} {gamma:11.3f} {(1 - n) / (1 + n):7.3f} {tau:10.3f} {2 / (1 + n):7.3f}")The simulation agrees with the theory to three decimal places. With (roughly glass or circuit-board laminate at radio frequencies) a third of the field amplitude is reflected, inverted, and two thirds is transmitted.
Two thirds plus a third is not one, so where did the energy go? Nowhere: intensity is proportional to , not , because the wave impedance of the dielectric is . The reflected fraction of the power is and the transmitted fraction is . They add up to one, as they must.
The professional view
Engineers rarely write Maxwell's equations down at work, but they are behind almost every design decision above a few hundred megahertz.
- Computational electromagnetics. FDTD, as above but in three dimensions, suits broadband and transient problems and runs well on GPUs; open-source examples are Meep and openEMS. The finite element method handles curved, detailed geometry such as connectors and packages, and the method of moments solves for currents on metal surfaces, which suits wire antennas and reflectors. Commercial suites bundle all three.
- Electromagnetic compatibility (EMC). A product must neither emit too much radio noise nor be upset by its neighbours'. Limits are set by international committees (CISPR, part of the IEC) and national regulators, and products are tested in shielded, absorber-lined chambers. Faraday's law is the usual culprit: a fast-changing current loop on a circuit board is a small transmitting antenna.
- Exposure and safety. Phones are tested for the specific absorption rate (SAR), the power absorbed per kilogram of tissue, against limits derived from the ICNIRP guidelines or national equivalents.
- Higher frequencies, same equations. The photonic chips and optical interconnects of photonics obey the same Maxwell's equations at a wavelength of about a micrometre, and are designed with the same solvers.
A short history
Michael Faraday discovered induction in London in 1831 and pictured "lines of force" filling space, without equations. James Clerk Maxwell turned the pictures into mathematics between 1861 and 1865, added the displacement current, and concluded in his 1865 paper that light is an electromagnetic disturbance. His version had twenty equations in twenty unknowns; in the 1880s Oliver Heaviside, a self-taught telegraph engineer, recast them as the four vector equations used today.
Heinrich Hertz generated and detected radio waves in Karlsruhe in 1887–88. In Kolkata in the mid-1890s, Jagadish Chandra Bose worked with waves only millimetres to centimetres long, building horn antennas still recognisable today. Alexander Popov in Russia and Guglielmo Marconi in Italy and Britain turned the waves into telegraphy, and Marconi's company sent signals across the Atlantic in 1901. Einstein's special relativity (1905) began from the fact that Maxwell's equations give the same for every observer.
Common misconceptions
Misconception
"In an electromagnetic wave, E and B are 90° out of phase, trading energy back and forth like a pendulum." In a travelling plane wave in free space they are in phase: both peak at the same place and time, and the energy flows steadily forward. The quarter-period trading picture describes standing waves, such as those in a cavity or on a shorted line, where the electric and magnetic energy do swap back and forth.
Misconception
"The displacement current is a current of charges hopping across the capacitor." No charge crosses the gap. The displacement current is a changing electric field, which produces the same magnetic field a real current would. It exists in perfect vacuum, which is exactly what lets light cross empty space.
Misconception
"Electromagnetic waves need a medium to travel in." Nineteenth-century physicists looked for that medium, the aether, and the Michelson–Morley experiment (1887) and its successors failed to find it. The fields themselves are the wave; nothing else needs to move.
Misconception
"Higher-frequency radio waves are dangerous in the same way as X-rays." What makes radiation ionising is the energy of a single photon, and a 28 GHz photon carries about eV against the several electronvolts needed to break chemical bonds. Radio waves can heat tissue at high intensity, which is what exposure limits guard against; they cannot ionise it at any intensity.
Exercises
1. Maxwell's equations and electromagnetic waves
Warm-upHumanSuppose an experiment found a magnetic monopole: a particle from which magnetic field lines point outwards in every direction, the way electric field lines leave a positive charge. Which of Maxwell's equations would have to change?
2. Maxwell's equations and electromagnetic waves
Warm-upHumanSome Wi-Fi and drone video links use a carrier near 5.8 GHz. What is its wavelength in free space, in millimetres, rounded to the nearest whole number? Use m/s.
3. Maxwell's equations and electromagnetic waves
CoreHumanA parallel-plate capacitor has square plates 10 cm by 10 cm, separated by 1 mm of air (). The voltage across it is rising at V/s. What is the displacement current between the plates, in microamperes, to the nearest whole number? Use F/m and ignore fringing.
4. Maxwell's equations and electromagnetic waves
CoreHumanFar from a broadcast transmitter, the signal is a plane wave with an average intensity of 0.5 mW/m². What is the amplitude of its electric field, in millivolts per metre, to the nearest whole number? Use .
5. Maxwell's equations and electromagnetic waves
CoreHumanFor a plane electromagnetic wave travelling through empty space, which statements are true? Select all that apply.
6. Maxwell's equations and electromagnetic waves
CoreComputationalA wave travelling along has components and , with amplitudes (not both zero) and phase difference in radians.
Write polarisation(a, b, phi) that returns "linear", "circular" or "elliptical". Remember that phases are only defined modulo , and compare floating-point numbers with a small tolerance (say ), not with ==.
7. Maxwell's equations and electromagnetic waves
StretchComputationalComplete the FDTD program from the lesson. The function fdtd_pulse(n_cells, n_steps, src, S) should, at every time step:
- update
hy[:-1]from the differences of neighbouringexvalues (Faraday's law), then - update
ex[1:]from the differences of neighbouringhyvalues (the Ampère–Maxwell law),
using the normalised Yee updates with Courant number S in free space (). The source and the perfect-conductor ends are already written. The tests check that pulses move at S cells per step in both directions, that the result is symmetric about the source, and that a pulse comes back inverted from a conductor.
Further reading and resources
- A Dynamical Theory of the Electromagnetic Field · James Clerk Maxwell · 1865The paper in which Maxwell assembled the field equations and identified light as an electromagnetic wave.
- The Feynman Lectures on Physics, Volume II · Richard P. Feynman, Robert B. Leighton and Matthew SandsFree online. Chapters 1–4, 18 and 20–21 are a beautiful companion to this lesson.
- Numerical solution of initial boundary value problems involving Maxwell's equations in isotropic media · Kane S. Yee · 1966The staggered-grid scheme behind every FDTD solver, including the one in this lesson.
- NIST: CODATA values of the fundamental physical constantsThe recommended values of µ₀, ε₀ and the rest, with their uncertainties.
- MeepA free, open-source FDTD package from MIT, used in research on photonics and antennas.
- openEMSAn open-source FDTD solver aimed at antennas, circuit boards and RF engineering.
- ICNIRPThe international commission whose guidelines set the exposure limits for radio waves used by many countries.