Ampère's law says $\oint\vec{B}\cdot d\vec{\ell} = \mu_0I_{\text{enc}}$, where $I_{\text{enc}}$ is the current through any surface bounded by the path. Try it on a wire feeding a charging capacitor, and it breaks. Fixing it was Maxwell's great step, and it led straight to light.
💡 Why it works
Draw a circle around the wire near the capacitor. A flat disk bounded by that circle is pierced by the wire: $I_{\text{enc}} = I$. Now stretch the surface into a bag that passes between the plates, still bounded by the same circle. No charge crosses the gap, so $I_{\text{enc}} = 0$. Same path, two different answers: the law as written cannot be right. What does pass through the bag is a growing electric field. Between the plates $E = \dfrac{q}{\varepsilon_0A}$, so $\varepsilon_0\dfrac{d\Phi_E}{dt} = \varepsilon_0A\dfrac{dE}{dt} = \dfrac{dq}{dt} = I$: exactly the missing current.
🔑 Key idea
The displacement current $I_d = \varepsilon_0\dfrac{d\Phi_E}{dt}$ makes magnetic field just as a real current does:
$$\oint\vec{B}\cdot d\vec{\ell} = \mu_0\left(I_{\text{enc}} + \varepsilon_0\frac{d\Phi_E}{dt}\right).$$
In a charging capacitor, $I_d$ in the gap equals the current in the wires.
An Ampère loop around a charging capacitor. With the displacement current counted, the loop gives the same answer whether its surface is pierced by the wire or passes through the gap.
Worked examples
✏️ Worked example: How fast the field grows
A capacitor with circular plates of radius $10\ \text{cm}$ is charged by a current of $2.0\ \text{A}$. How fast does the field between the plates grow?
"Charge flows across the gap of a charging capacitor." No charge crosses an ideal capacitor's gap: charge piles up on one plate and drains from the other. What fills the gap is a changing electric field, and that change acts like a current in producing a magnetic field. Check: if charge crossed, the capacitor would not charge at all.
Maxwell added this term in the 1860s, partly on grounds of consistency. It meant that a changing electric field makes a magnetic field and a changing magnetic field makes an electric field, so each can keep the other going through empty space: an electromagnetic wave. Heinrich Hertz made and detected such waves in the late 1880s.
Practice
Pass with 3 right answers, the last 2 in a row. Each right answer earns 3 XP.