Electromagnetic Waves & the Spectrum · Guide · glidepathscience.org
GuideElectromagnetic Waves & the Spectrum
Contents
This Guide explains the ideas and equations behind every Walkthrough step, Concept Challenge question and Predict round, in the order a textbook takes them. Part 1 prepares the Intro track and Part 2 the Advanced track; each takes about a quarter of an hour to read. Each section ends with a worked example that is not one of the sim’s own problems.
Part 1 · The essentials
Math you’ll need: algebra, powers of ten and square roots; no calculus.
Light is a wave of electric and magnetic fields
Radio, the warmth of a fire, the colors of a rainbow, a sunburn, a dental X-ray and the gamma rays from a radioactive nucleus seem to have little in common. They are all the same thing: electromagnetic waves, ripples in the electric and magnetic fields that travel through empty space at the speed of light. What makes them different is only how often the fields oscillate, the frequency, and so how far apart the crests are, the wavelength.
This idea, one of the great unifications in physics, came from James Clerk Maxwell in the 1860s. Working from the laws of electricity and magnetism measured on laboratory benches, he found that they allow waves, and that those waves travel at the measured speed of light. Light, he concluded, is an electromagnetic wave. The rest of this Guide follows the waves from where they come from, through what they are, to what each kind does.
How charges make waves
A charge at rest has an electric field that points straight out from it in every direction. Suppose the charge is suddenly jerked sideways and then stops. Its field cannot rearrange itself everywhere at once: nothing, not even news that a charge has moved, travels faster than light. Close to the charge, where the news has already arrived, the field lines point to its new position. Far away, where the news has not yet arrived, they still point to where it used to be. Between the two regions is a thin shell where the field lines kink sideways to join the old pattern to the new one, and that shell moves outward at the speed of light, $c$ = 3.00 × 10⁸ m/s.
That traveling kink is electromagnetic radiation. Only an accelerating charge makes one: a charge at rest, or one moving at constant velocity, has a field that simply goes along with it. A common mistake is to think the field everywhere shifts at the instant the charge moves; another is to think the kink slows down as it spreads. It does neither. It keeps its speed $c$; what weakens with distance is its strength.
An antenna is a way to shake charges continuously. An oscillating current drives the charges in a wire up and down, so they accelerate all the time, and kink after kink leaves the wire. The result is a smooth wave whose frequency is exactly the frequency of the current: each cycle of the current makes one cycle of the wave. A receiver tuned to that frequency picks out that station from all the others.
Far from the antenna, the wave that arrives has a simple shape, and the next section looks at it closely.
E and B together
Far from its source, a small patch of an electromagnetic wave is a plane wave: its fields are the same everywhere across a flat front, and the fronts march forward. Three facts describe it. First, the electric field $\vec E$ and the magnetic field $\vec B$ are perpendicular to each other and both perpendicular to the direction of travel: the wave is transverse, like a wave on a rope and unlike sound. Second, the wave travels in the direction of $\vec E × \vec B$: point the fingers of your right hand along $\vec E$, curl them toward $\vec B$, and your thumb points the way the wave goes. If the wave travels along $+x$ and $\vec E$ points along $+y$, then $\vec B$ points along $+z$, because $\hat y × \hat z = \hat x$.
The usual drawing, two sine curves at right angles, needs one warning. A curve’s height is not a distance anything moves: it is the strength of the field at that point on the $x$ axis, drawn as an arrow’s length. Nothing in the wave swings up and down or sideways. The pattern of field strengths slides forward at $c$, and “transverse” describes the directions the fields point, not a motion.
Third, the two fields are in step: they reach their maximum together and pass through zero together. At every point and every instant their magnitudes are in a fixed ratio,
$E = cB$, so $B_0 = E_0/c$
where $E_0$ and $B_0$ are the amplitudes. Because $c$ is so large, $B$ is tiny in teslas, but that is a matter of units: the next sections show that the two fields carry equal shares of the wave’s energy. A frequent mistake is to imagine that $B$ is greatest when $E$ is zero, as energy swaps between a capacitor and an inductor in a circuit; in a traveling wave they peak together.
Where does that speed $c$ come from? Maxwell found it in two constants measured with charges and currents.
The speed of light, in vacuum and in matter
Two constants set the strength of electric and magnetic forces in SI units: the permittivity of free space, $ε_0$ = 8.854 × 10⁻¹² C²/(N·m²), which appears in Coulomb’s law, and the permeability of free space, $μ_0$ = 1.257 × 10⁻⁶ T·m/A, which appears in the force between currents. Maxwell’s equations predict waves traveling at
$c = 1/\sqrt{ε_0μ_0}$ = 2.998 × 10⁸ m/s
Nothing in that formula mentions light; it comes from experiments with charged spheres and current-carrying wires. That it matched the measured speed of light is how Maxwell knew what light is. (Since 2019 the meter has been defined so that $c$ = 299,792,458 m/s exactly.) Every electromagnetic wave, whatever its frequency, travels at this speed in vacuum, and it needs no medium: light from distant galaxies crosses billions of light-years of nearly empty space.
In a transparent material the wave slows to
$v = c/n$
where $n$, the index of refraction, is 1.33 for water and about 1.5 for glass. The frequency does not change at the surface: each crest that arrives at the boundary carries on into the material, so as many leave per second as arrive. With a lower speed and the same frequency, the wavelength must shrink: $λ = λ_0/n$, where $λ_0$ is the wavelength in vacuum. A common slip is to multiply by $n$ instead of dividing; another is to think the color changes. Color goes with frequency, which the material leaves alone.
In vacuum, then, the speed is fixed, and that ties wavelength and frequency together.
c = fλ
In one period $T$ of the oscillation, a crest moves forward exactly one wavelength. Its speed is therefore $λ/T$, and since the frequency is $f = 1/T$,
$c = fλ$, so $λ = c/f$ and $f = c/λ$
With $c$ fixed, wavelength and frequency are inversely proportional: double the frequency and the wavelength halves. Radio frequencies are usually given in megahertz (1 MHz = 10⁶ Hz) or gigahertz (1 GHz = 10⁹ Hz), and forgetting the prefix is the most common error in these problems: it gives answers off by a million or a billion.
Those two examples are eight thousand times apart in wavelength, and they are close neighbors in the full spectrum.
The electromagnetic spectrum
Arranged by frequency on a scale where each step is a factor of ten, electromagnetic waves form one continuous spectrum. The named bands are ranges of it, with edges set by convention (books differ by a factor of a few): radio waves longer than about 1 m; microwaves from 1 m to 1 mm; infrared from 1 mm to 750 nm; visible light from about 750 nm (red) to 380 nm (violet); ultraviolet from 380 nm to 10 nm; X-rays from 10 nm to about 10 pm; and gamma rays shorter still. X-rays and gamma rays overlap, and are properly named by their source: X-rays come from electrons, gamma rays from atomic nuclei.
It is tempting to think of X-rays as particles and radio waves as waves, or to think that higher frequencies travel faster. Neither is true: all of them are electromagnetic waves traveling at $c$, and all of them are absorbed and emitted as photons. What changes along the spectrum is how a wave is made and what it does in matter. Radio waves come from currents in antennas and carry broadcasts; microwaves come from electronic oscillators and carry Wi-Fi, phone calls and radar, and heat the water in food; infrared comes from anything warm and carries remote-control signals; visible light comes from hot objects and from atoms, and our eyes evolved to see the band where sunlight is brightest; ultraviolet from the Sun tans and burns the skin and sterilizes water; X-rays from tubes image bones; gamma rays from nuclei treat cancer.
The visible band is a tiny part of the whole, less than a factor of two in frequency within a spectrum that spans more than 10¹⁸. Its frequencies run from $c/750$ nm = 4.0 × 10¹⁴ Hz (400 THz) for red to $c/380$ nm = 7.9 × 10¹⁴ Hz (790 THz) for violet.
Why should frequency decide what a wave does to matter? The answer is that light arrives in packets.
Photons and what ionizes
Light delivers its energy to matter not continuously but in packets called photons, each carrying an energy proportional to the frequency,
$E = hf = hc/λ$
where $h$ = 6.626 × 10⁻³⁴ J·s is Planck’s constant. Photon energies are tiny in joules, so they are usually given in electron volts, the energy an electron gains crossing one volt: 1 eV = 1.602 × 10⁻¹⁹ J. A handy shortcut is $E$ (in eV) ≈ 1,240 / $λ$ (in nm), so visible photons carry about 1.7 eV (red) to 3.3 eV (violet), roughly the energy of a chemical bond.
An atom or molecule absorbs one photon at a time. Knocking an electron out of it, ionizing it, takes roughly 10 eV or more (the exact threshold is a convention; standards use 10 to 33 eV). That corresponds to a wavelength of 124 nm, in the far ultraviolet. Photons above it, far ultraviolet, X-rays and gamma rays, are ionizing radiation: one photon can break a molecule apart, including DNA. Photons below it cannot, however many there are. This is the key point and the most common misconception: the power of a beam does not make it ionizing. A brighter beam sends more photons per second, not stronger ones. A microwave oven delivers about a thousand watts, but each of its photons carries about a millionth of an ionizing energy; it heats food by making water molecules jostle, and it ionizes nothing.
Photon energy decides what a wave can do to one molecule; how much of the wave arrives decides how much it can do in all.
Intensity and the inverse-square law
The intensity $I$ of a wave is the power it carries through each square meter of area facing it, in watts per square meter. A small source that radiates power $P$ equally in every direction spreads it over spheres; a sphere of radius $r$ has area $4πr^2$, so
$I = P/(4πr^2)$
The intensity falls as $1/r^2$: twice as far away, the same power is spread over four times the area, so the intensity is a quarter. Comparing two distances from the same source, the power and the $4π$ cancel: $I_2 = I_1(r_1/r_2)^2$. The usual mistake is to divide by the distance ratio once instead of squaring it.
Sunlight reaches Earth with an intensity of 1,361 W/m², the solar constant; the planets farther out receive less, by the square of their distance. An antenna is not a lamp, though: it radiates more in some directions than others, and the Advanced part of this Guide works out its pattern.
Part 2 · Going further
Math you’ll need: vector calculus (divergence, curl and the Laplacian), partial derivatives, the cross product, and averages of sin² over a cycle.
Maxwell’s equations and the wave equation
In empty space, with no charges and no currents, Maxwell’s equations read
$\nabla·\vec E = 0$ $\nabla·\vec B = 0$
$\nabla × \vec E = −∂\vec B/∂t$ $\nabla × \vec B = μ_0ε_0\,∂\vec E/∂t$
The third is Faraday’s law: a changing magnetic field makes an electric field. The fourth is Ampère’s law with Maxwell’s addition, the displacement current $μ_0ε_0\,∂\vec E/∂t$. Maxwell added it so that Ampère’s law would agree with the conservation of charge while a capacitor charges, when current flows into a plate but not across the gap. Its consequence was far larger: a changing electric field makes a magnetic field, just as a changing magnetic field makes an electric one, and so the two can sustain each other with no charges anywhere.
Take the curl of Faraday’s law. On the left, $\nabla × (\nabla × \vec E) = \nabla(\nabla·\vec E) − \nabla^2\vec E = −\nabla^2\vec E$, using $\nabla·\vec E = 0$. On the right, the curl of $−∂\vec B/∂t$ is $−∂(\nabla × \vec B)/∂t = −μ_0ε_0\,∂^2\vec E/∂t^2$. Together,
$\nabla^2\vec E = μ_0ε_0\,∂^2\vec E/∂t^2$
the three-dimensional wave equation, whose solutions travel at $v = 1/\sqrt{μ_0ε_0} = c$. The same steps on the fourth equation give the same equation for $\vec B$. The speed is set by $μ_0$ and $ε_0$ alone, not by the source: a wave from a moving antenna travels at the same $c$, which is where special relativity begins.
Plane waves, transversality and B from E
The simplest solutions of the wave equation are plane waves, $\vec E = \vec E_0\sin(\vec k·\vec r − ωt)$, with the wave vector $\vec k$ pointing along the travel, the wavenumber $k = 2π/λ$ and the angular frequency $ω = 2πf$. Substituting into the wave equation gives $k^2 = μ_0ε_0ω^2$, so
$ω = ck$
which is $c = fλ$ in other symbols. Gauss’s law now constrains the direction of the field: $\nabla·\vec E = \vec k·\vec E_0\cos(\vec k·\vec r − ωt)$, which must vanish everywhere, so $\vec k·\vec E_0 = 0$. The electric field is perpendicular to the travel, and $\nabla·\vec B = 0$ makes the magnetic field perpendicular too. A longitudinal electromagnetic wave, like sound, is impossible in vacuum; that is why light can be polarized.
Faraday’s law fixes $\vec B$ once $\vec E$ is known. For a plane wave $\nabla ×$ acts as $\vec k ×$ and $∂/∂t$ as $−ω$ (on the cosine), so $\vec k × \vec E = ω\vec B$, or
$\vec B = (1/c)\,\hat k × \vec E$
This contains everything in the Intro section on E and B: the magnitudes in the ratio $c$, the two fields perpendicular, in phase, and arranged so that $\vec E × \vec B$ points along $\hat k$. The usual error is a sign: keep the order $\hat k × \vec E$.
Energy, the Poynting vector and intensity
The energy stored per unit volume in electric and magnetic fields is
$u = \tfrac12ε_0E^2 + B^2/(2μ_0)$
In a plane wave $B = E/c$, so $B^2/(2μ_0) = E^2/(2μ_0c^2) = \tfrac12ε_0E^2$: the two terms are equal at every point and instant, and $u = ε_0E^2$. The magnetic field, tiny in teslas, carries exactly half the energy. Averaged over a cycle, $\langle\sin^2\rangle = \tfrac12$, so $\langle u\rangle = \tfrac12ε_0E_0^2$.
The energy flows. The rate of flow per unit area, with its direction, is the Poynting vector
$\vec S = (1/μ_0)\,\vec E × \vec B$
which for a plane wave points along the travel with magnitude $EB/μ_0 = cu$: the energy density carried along at $c$. The intensity is its average,
$I = \tfrac12cε_0E_0^2 = c\langle u\rangle$
The ½ comes from the average of $\sin^2$; dropping it is the common error, and so is forgetting the magnetic half of $u$.
Momentum and radiation pressure
An electromagnetic wave carries momentum as well as energy: energy $U$ comes with momentum $p = U/c$, the relation $E = pc$ for a massless photon. When a beam of intensity $I$ falls squarely on a surface that absorbs it, the surface takes up momentum at the rate $IA/c$ through area $A$, a force, so the radiation pressure is $I/c$. A perfect mirror reverses the light’s momentum, taking twice as much: $2I/c$.
absorbed: $P = I/c$ reflected: $P = 2I/c$
Both are limits, for light arriving squarely. A real surface reflects only a fraction $R$ of the light and absorbs the rest, so it feels $(1 + R)I/c$, between the two. Tilt a mirror by an angle $θ_i$ from the beam and the push falls to $(2I/c)\cos^2θ_i$, along the mirror’s normal: one factor of $\cos θ_i$ because the tilted mirror intercepts less of the beam, and another because only the momentum along the normal is reversed.
These pressures are tiny, a few micropascals in full sunlight, but nothing in space resists them. A light sail exploits them: a large, thin, reflecting sheet pushed by sunlight. Since both sunlight’s intensity and the Sun’s gravity fall as $1/r^2$, their ratio is the same at every distance and depends only on the sail’s mass per area, $σ$. For a reflecting sail, light balances gravity when $2LA/(4πr^2c) = GMσA/r^2$, that is at $σ^* = L/(2πcGM)$ = 1.53 g/m² for the Sun; a sail lighter than that, released at rest, is pushed away.
Dipole radiation: the pattern, ω⁴, and the near field
A short antenna is an oscillating electric dipole, $p(t) = p_0\cos ωt$ along $z$. Its full electric field has three parts in $E_θ$, falling as $1/r^3$, $1/r^2$ and $1/r$; in units of the first, they are in the ratio $1 : kr : (kr)^2$. Close to the antenna, $kr ≪ 1$, the $1/r^3$ term dominates: it is just the static field of a dipole, following the charges as they slosh. Far away, $kr ≫ 1$, only the $1/r$ term survives, the radiation field. The near and far terms are equal at $kr = 1$, a distance $r = λ/2π$ from the antenna.
In the far field the wave is locally a plane wave with $E_θ ∝ \sinθ/r$, where $θ$ is measured from the antenna’s axis, so its intensity is
$I(r,θ) = (3P/8πr^2)\sin^2θ$ $P = p_0^2ω^4/(12πε_0c^3)$
The pattern is a doughnut: greatest broadside ($θ$ = 90°), zero along the axis, in proportion $\sin^2θ$ between, so $I(θ) ∝ \sin^2θ$; a common slip is to use $\sinθ$ for the intensity, or to measure $θ$ from the broadside direction. The total power grows as $P ∝ ω^4$ at a fixed dipole moment, because the radiated field is set by the charges’ acceleration, $ω^2$ times their displacement. That steep law is why small molecules scatter blue sunlight far more than red, and the sky is blue.
The near-field terms store energy and return it each cycle: they carry none away on average. The time-averaged energy flow through a sphere of any radius is the far-field $P$, which is why the Antenna Lab’s intensity follows $\sin^2θ/r^2$ even inside $kr = 1$.
Photons in a classical wave
A beam of power $P$ made of photons of energy $hf$ delivers
$N/t = P/(hf)$
photons per second. At the same power, a lower frequency means more photons, each weaker. For everyday beams the numbers are enormous, and the graininess of the light is far too fine to notice: the classical wave, with its smooth $\vec E$ and $\vec B$, describes the beam’s intensity, interference and pressure perfectly well. Photons matter when they are counted one at a time, or when a single photon’s energy decides the outcome, as in ionization and the photoelectric effect.
The impedance of free space, and waves in matter
In a plane wave the ratio of the electric field to $H = B/μ_0$ is a constant with the units of resistance, the impedance of free space,
$Z_0 = E/H = μ_0c = \sqrt{μ_0/ε_0}$ = 376.7 Ω
It lets the intensity be written like the power in a resistor, $I = E_0^2/(2Z_0)$. In a lossless, non-magnetic material with $ε = n^2ε_0$, the wave travels at $c/n$ and the impedance falls to $Z_0/n$. Matching impedances is what antenna design is about: a short dipole of length $ℓ$ presents a radiation resistance $R = (2πZ_0/3)(ℓ/λ)^2$ ≈ 789 $(ℓ/λ)^2$ Ω to the current that drives it, the resistance that would dissipate the same power the antenna radiates.
Reference
Common mistakes
Part 1
- Thinking a field changes everywhere the instant its charge moves: the change spreads at $c$.
- Treating X-rays as particles and radio waves as waves, or thinking higher frequencies travel faster: every band is a wave, comes in photons, and travels at $c$.
- Putting $\vec B$ along $\vec E$ or along the travel, or out of step with $\vec E$.
- Reading the drawn sine curves as something moving up and down: their heights are field strengths.
- Dropping a prefix: MHz is 10⁶ Hz, GHz 10⁹, nm 10⁻⁹ m.
- Multiplying by $n$ in a material, or thinking the frequency changes there.
- Thinking a powerful beam can ionize: only photons above about 10 eV can.
- Using $1/r$ for intensity: it falls as $1/r^2$.
Part 2
- Writing $\vec E × \hat k$ for $\hat k × \vec E$, and getting $\vec B$ backward.
- Forgetting the magnetic half of the energy density, or the ½ in the average.
- Using $I/c$ for a mirror: it is $2I/c$.
- Using $\sinθ$ for a dipole’s intensity, or measuring $θ$ from broadside.
- Taking the near–far crossover at one wavelength instead of $λ/2π$.
Equations
| Part 1 | |
|---|---|
| speed in vacuum | $c = 1/\sqrt{ε_0μ_0}$ = 2.998 × 10⁸ m/s |
| wave relation | $c = fλ$ |
| E and B | $B_0 = E_0/c$ |
| in a medium | $v = c/n$; $λ = λ_0/n$ |
| photon | $E = hf = hc/λ$ |
| point source | $I = P/(4πr^2)$; $I_2 = I_1(r_1/r_2)^2$ |
| Part 2 | |
|---|---|
| plane wave | $ω = ck$; $\vec B = (1/c)\,\hat k × \vec E$ |
| energy | $\langle u\rangle = \tfrac12ε_0E_0^2$; $\vec S = (1/μ_0)\,\vec E × \vec B$ |
| intensity | $I = \tfrac12cε_0E_0^2 = c\langle u\rangle$ |
| pressure | $I/c$ absorbed; $2I/c$ reflected |
| dipole | $I(θ) ∝ \sin^2θ$; $P ∝ ω^4$; near = far at $r = λ/2π$ |
| photons | $N/t = P/(hf)$ |
| impedance | $Z_0 = \sqrt{μ_0/ε_0}$ = 376.7 Ω |
$c$ = 299,792,458 m/s; $h$ = 6.626 × 10⁻³⁴ J·s; 1 eV = 1.602 × 10⁻¹⁹ J; $ε_0$ = 8.854 × 10⁻¹² F/m; $μ_0$ = 1.257 × 10⁻⁶ H/m; $f$ frequency, $λ$ wavelength, $n$ index, $I$ intensity, $P$ power, $θ$ angle from a dipole’s axis, $k = 2π/λ$, $ω = 2πf$.
The bands
| Band | Wavelength | Photon energy | Typical sources and uses |
|---|---|---|---|
| Radio | above 1 m | below 1.2 µeV | antennas; broadcasting, MRI coils |
| Microwave | 1 mm – 1 m | 1.2 µeV – 1.2 meV | oscillators; Wi-Fi, phones, radar, ovens |
| Infrared | 750 nm – 1 mm | 1.2 meV – 1.7 eV | warm bodies; remotes, thermal cameras, fiber links |
| Visible | 380 – 750 nm | 1.7 – 3.3 eV | the Sun, lamps, LEDs; sight |
| Ultraviolet | 10 – 380 nm | 3.3 – 124 eV | the Sun, lamps; sterilizing; ionizing below 124 nm |
| X-ray | 10 pm – 10 nm | 124 eV – 124 keV | X-ray tubes; imaging, crystallography |
| Gamma | below 10 pm | above 124 keV | nuclei; radiotherapy, sterilizing equipment |
Edges follow one convention; others differ. X-rays and gamma rays overlap and are properly named by their source.
Further reading
OpenStax, University Physics Volume 2, by Samuel J. Ling, Jeff Sanny and William Moebs, Chapter 16, “Electromagnetic Waves,” §16.1–16.5, CC BY-NC-SA 4.0, openstax.org: Maxwell’s equations, plane waves, energy and momentum, and the spectrum, at the level of Part 1 and the start of Part 2. For dipole radiation and the near field, D. J. Griffiths, Introduction to Electrodynamics (Cambridge), the chapter on radiation. The Field Manual (H) lists what this sim’s model includes and leaves out.
Electromagnetic Waves & the Spectrum v1.2 · © 2026 Dr. David Meier · CC BY-NC-SA 4.0 · glidepathscience.org