AP Physics C: E&M · Unit 12 lecture · Part 8 of 10 · 9 min

12.4 Ampère's lawAmpère's law: symmetry does the work

Mr. Thompkins
Remember Gauss's law? With the right symmetry it turned a hard integral into one line. Ampère's law is its magnetic twin. Same strategy, same rewards, and the exam asks it almost every year.

Ampère's law: $\oint \vec B \cdot d\vec\ell = \mu_0 I_{enc}$. Walk around any closed loop (an "Amperian loop"), adding up the component of $\vec B$ along your path times each step. The total equals $\mu_0$ times the net current that passes through the loop. Sign rule: curl your right fingers along your walking direction; current along your thumb counts positive.

?Wait, how did Gauss's law work?
$\oint \vec E \cdot d\vec A = \frac{q_{enc}}{\varepsilon_0}$. You chose a closed surface where symmetry made E constant and perpendicular to the surface, so the integral became $E \times$ area, and you solved for E. Ampère's law uses a closed loop instead of a closed surface, and current instead of charge.

The law is always true, but it only finds B when symmetry lets you pull B out of the integral. On every part of your loop, B must be either constant in size and parallel to the path, or perpendicular to the path (or zero). For a long straight wire: by symmetry B circles the wire and has the same size all around a circle of radius r, so $\oint \vec B \cdot d\vec\ell = B(2\pi r) = \mu_0 I$, and $B = \frac{\mu_0 I}{2\pi r}$ in one line. Same answer as Biot-Savart, much less work.

?Wait, what does ∮ B · dℓ actually mean?
It's a line integral around a closed loop. Chop the loop into tiny steps $d\vec\ell$; at each step take $\vec B \cdot d\vec\ell = B\,d\ell\cos\theta$, the part of B along your step times the step; then add them all. If B is the same size and always along the path, the sum is just B times the loop's length.

The Ampère recipe

  1. Use symmetry to say which way B points and what it can depend on.
  2. Pick a loop that follows the field: a circle around a wire, a rectangle for a solenoid.
  3. Write $\oint \vec B \cdot d\vec\ell$ as B times the length where B runs along the loop (zero where B is perpendicular or zero).
  4. Find $I_{enc}$. If the current density varies, integrate $\int J\,dA$ over the part of the cross-section inside the loop.
  5. Solve for B and check it against a known limit, such as the surface.
Rinside loop: r < Rencloses part of Ioutside loop: r > Rencloses all of Icurrent out of the page, denser near the surface
Two Amperian circles around a thick wire: one inside (encloses only part of the current) and one outside (encloses all of it).
A wire with nonuniform current
A long cylindrical wire of radius R = 2.0 mm carries a total current I = 15 A out of the page, with current density $J = J_0\frac{r}{R}$ (zero at the axis, largest at the surface). (a) Find $J_0$ in terms of I and R. (b) Derive B inside the wire. (c) Derive B outside. (d) Evaluate B at r = 1.0 mm and r = 4.0 mm.
  1. (a) Total current: $I = \int_0^R J_0\frac{r}{R}\,2\pi r\,dr = \frac{2\pi J_0}{R}\cdot\frac{R^3}{3} = \frac{2}{3}\pi J_0R^2$, so $J_0 = \frac{3I}{2\pi R^2}$.
    Why?
    Thin rings of radius r and width dr have area $2\pi r\,dr$. That's the ring trick from Unit 11.
  2. (b) Symmetry: B circles the axis with the same size all around a circle of radius r. So $\oint \vec B \cdot d\vec\ell = B(2\pi r)$.
    Why?
    This symmetry sentence is a rubric point by itself. Write it every time.
  3. Inside ($r < R$): $I_{enc} = \int_0^r J_0\frac{r'}{R}\,2\pi r'\,dr' = \frac{2\pi J_0r^3}{3R} = I\frac{r^3}{R^3}$. So $B(2\pi r) = \mu_0 I\frac{r^3}{R^3}$ and $B = \frac{\mu_0 Ir^2}{2\pi R^3}$.
  4. (c) Outside ($r > R$): the loop encloses all of I, so $B = \frac{\mu_0 I}{2\pi r}$. Check: both give $\frac{\mu_0 I}{2\pi R}$ at the surface.
    Why?
    Matching at the boundary is the limit check graders like to see.
  5. (d) At 1.0 mm: $B = \frac{(4\pi \times 10^{-7})(15)(1.0 \times 10^{-3})^2}{2\pi(2.0 \times 10^{-3})^3} = 3.8 \times 10^{-4}$ T. At 4.0 mm: $B = \frac{(4\pi \times 10^{-7})(15)}{2\pi(4.0 \times 10^{-3})} = 7.5 \times 10^{-4}$ T.

Answer: (a) $J_0 = \frac{3I}{2\pi R^2}$ (b) $B = \frac{\mu_0 Ir^2}{2\pi R^3}$ (c) $B = \frac{\mu_0 I}{2\pi r}$ (d) $3.8 \times 10^{-4}$ T and $7.5 \times 10^{-4}$ T.

Stuck? Get a hint
  1. First find J₀ by making the total current come out to I.
  2. For the inside loop, $I_{enc}$ is the integral of J over rings from 0 to r, not to R.
  3. Set B(2πr) = μ₀I_enc and solve for B.
0123400.20.40.60.811.2r / R$B / B_{surface}$inside: $\propto r^2$outside: $\propto 1/r$surface
B for this wire, in units of its surface value: it rises as r² inside and falls as 1/r outside. With uniform J it would rise as r instead.
Pause and think
For the same wire, a circular loop is drawn entirely outside it but not around it (the wire doesn't pass through the loop). What is $\oint \vec B \cdot d\vec\ell$ for that loop? Is B zero on the loop?
I thought about it. Show me
The integral is zero, because no current passes through the loop. But B is not zero on it: the wire's field passes through that region. Its contributions along the loop just add up to zero, positive on one side and negative on the other.
Check yourself
A long wire of radius R carries current I spread uniformly over its cross-section. What is B at r = R/2?
  1. A$\frac{\mu_0 I}{4\pi R}$
  2. B$\frac{\mu_0 I}{\pi R}$
  3. C$\frac{\mu_0 I}{2\pi R}$
  4. D$\frac{\mu_0 I}{8\pi R}$
Show the answer

A. Uniform J: $I_{enc} = I\frac{r^2}{R^2} = \frac{I}{4}$. Then $B(2\pi\cdot\frac{R}{2}) = \mu_0\frac{I}{4}$ gives $B = \frac{\mu_0 I}{4\pi R}$, half the surface value. Choice B uses all of I at r = R/2, as if the loop enclosed everything.

  • $\oint \vec B \cdot d\vec\ell = \mu_0 I_{enc}$, with the right-hand sign rule.
  • It finds B only with symmetry: B constant along the loop, or perpendicular to it.
  • Inside a wire, $I_{enc}$ is only the current within the loop: integrate J over rings $2\pi r\,dr$.
  • A zero loop integral means zero net enclosed current, not zero field.