Electrostatics is the world of stationary charges. Magnetism is what charges do when they move. Together they become electromagnetism, and the bridge between them is what makes radio possible.
2.1 Biot-Savart law
A current element at position creates a tiny magnetic field at observation point :
The cross product gives the field direction: thumb along the current, fingers curl in the direction of . The constant H/m is the permeability of free space, the magnetic counterpart of .
The Biot-Savart integral lets you compute the field of any current distribution, just as Coulomb's law (integrated) lets you compute the field of any charge distribution. In practice we use it for awkward geometries; for symmetric ones we reach for Ampere's law.
2.2 Ampere's law
The magnetic counterpart of Gauss's law:
Add up the magnetic field component along any closed loop and you get the total current piercing that loop. Useful symmetric examples:
- Long straight wire (radius , current ): at distance .
- Solenoid (turns per unit length , current ): inside, , outside, .
- Toroid (mean radius , turns): inside the toroid, .
The relation uses the permeability , with the relative permeability of the material. Air has . Iron, around 1000. Mu-metal (used to shield magnetically sensitive instruments and TEMPEST-resistant rooms), tens of thousands. The high of iron is the reason transformer cores are iron: the field is funneled and contained, drastically increasing inductance and coupling.
2.3 The magnetostatic Maxwell equations
Two of Maxwell's four equations are the magnetic equivalents of what we just used.
- . There are no magnetic monopoles. Magnetic field lines have no beginning or end; they always close on themselves into loops.
- . Currents create circulating fields.
The first of these is the deepest. We have never observed a magnetic monopole. Every magnet has a north and a south, and breaking a magnet in two gives you two smaller magnets, not a north and a south by themselves.
2.4 Lorentz force
A charge moving with velocity through electric and magnetic fields experiences
This single law makes:
- Hall sensors work. Current passes through a thin slab in a perpendicular magnetic field; the Lorentz force on the moving carriers pushes them sideways, producing a voltage across the slab proportional to . Used in everything from ABS wheel-speed sensors to DC current probes.
- Cathode-ray tube and old-school oscilloscope deflection plates work.
- Mass spectrometers separate ions of different mass-to-charge ratios.
- Cyclotrons accelerate particles in spirals.
2.5 Inductance and stored magnetic energy
Self-inductance relates the flux through a coil to the current driving it: . The energy stored in the resulting field is
with energy density
Both and have the same form, and . The symmetry is real and runs through everything that follows.
2.6 Faraday's law: changing fields beget electric fields
A time-varying magnetic flux through a loop induces an EMF around that loop:
In differential form,
The minus sign is Lenz's law: the induced EMF tries to oppose the change in flux. Push a magnet into a coil, the induced current creates a field opposing your push, and you feel a drag force. This is how generators, transformers, induction cooktops, wireless chargers, and eddy-current brakes all work.
It is also how a near-field EM probe steals secrets. Hold a small loop antenna near a chip, and any time-varying magnetic field from the chip's switching currents induces a voltage across the loop. That voltage, sampled by an oscilloscope, is a direct readout of the chip's switching activity, often correlated tightly with the data being processed. This is the workhorse measurement of side-channel and TEMPEST attacks, and Faraday is the physics behind it.
2.7 Displacement current: Maxwell's masterpiece
The original Ampere's law, , is incomplete. Imagine a capacitor charging up. Current flows into one plate from the wire, but no continuous current flows between the plates. If you draw an Amperian loop around the wire, . If you draw the same loop around the gap between the plates, . Same loop, two answers. Something is wrong.
Maxwell's fix was to recognize that the changing electric field between the plates plays the role of a current. He defined the displacement current density
and updated Ampere's law:
This addition was not just a bookkeeping fix. It introduced the symmetry between and that makes electromagnetic waves possible. A changing creates (Faraday). A changing creates (displacement current). Each begets the other; a self-sustaining wave can propagate through empty space without any wires or charges to support it. Light itself is one such wave. Maxwell predicted this in 1861, and Hertz confirmed it in 1887 with the first deliberate generation and detection of radio waves.
2.8 The four Maxwell equations
Putting it all together, in differential form:
In integral form:
Memorize these. Tape them above your desk. Every other equation in the rest of this chapter, and most of the rest of this curriculum's RF and high-speed-digital content, is a consequence of these four lines.
2.9 Boundary conditions at material interfaces
When a wave hits a boundary between two media (free space to PCB substrate, dielectric to conductor, etc.), Maxwell's equations applied to a thin pillbox or a small loop straddling the interface yield four matching rules:
- Tangential is continuous across the boundary.
- Normal has a jump equal to the surface charge density .
- Tangential has a jump equal to the surface current density (zero for non-conductors).
- Normal is continuous across the boundary.
These conditions are what determine reflection coefficients, refraction angles, and the modes of waveguides. Without them, you cannot solve a single waveguide problem, antenna problem, or PCB stack-up problem properly.
2.10 The vector and scalar magnetic potentials
For some problems it is useful to introduce a magnetic vector potential defined by . The condition is automatically satisfied by this definition. In current-free regions, you can also write where is a scalar magnetic potential, useful in some magnetic-circuit problems. We will not use either heavily, but you will see them in advanced texts and in antenna analysis (Chapter 13).