Sub topic 7
Ampère's law and symmetry
This chapter assumes you know the Biot-Savart law, the field of a long straight wire, the right-hand rules, and how to take a line integral of a vector along a path.
The law
Ampère's circuital law relates the magnetic field around a closed loop to the current passing through that loop:
∮ B · dl = μ0 I_enc
Here the integral runs once around an imaginary closed path, called an Amperian loop. I_enc is the net current that crosses any surface bounded by that loop. The direction of the loop and the sign of each current follow the right-hand rule. Curl your fingers along the direction you traverse the loop, and your thumb points in the direction of positive current.
The law is always true for steady currents. It is only useful for finding B when symmetry lets you pull B out of the integral.
When symmetry makes it work
Choose a loop where, on each piece of the path, one of these holds:
- B is parallel to dl and has constant magnitude, so B · dl = B dl.
- B is perpendicular to dl, so B · dl = 0.
- B is zero.
The integral then reduces to B times a length, and you solve for B.
Worked example: long straight wire
A long wire carries current I. By symmetry, B circles the wire and has the same magnitude at every point at distance r. Take a circle of radius r around the wire as the loop.
- B is parallel to dl everywhere on the circle, so ∮ B · dl = B (2πr).
- The enclosed current is I.
So B (2πr) = μ0 I, which gives:
B = μ0 I / (2π r)
This matches the Biot-Savart result for an infinite wire, and it took one line instead of an integral over angles.
The same calculation numerically, for 10 A at 5 cm:
import math
MU0 = 4e-7 * math.pi
def amperian_wire_field(I, r):
# B * (2 pi r) = mu0 * I_enc
return MU0 * I / (2 * math.pi * r)
print(amperian_wire_field(10, 0.05)) # 4e-05 teslaCommon errors
- Using Ampère's law without symmetry. The law holds for any loop, but if B is not constant and parallel along the path you cannot solve for B.
- Counting the wrong current. I_enc counts only currents that pass through the loop. A current outside the loop adds nothing to the integral, though it still contributes to B at each point of the loop.
- Forgetting signs. Currents in opposite directions through the loop subtract. Two equal and opposite currents inside the loop give I_enc = 0.
- Assuming B = 0 when the integral is zero. ∮ B · dl = 0 only says that the net circulation vanishes. B itself can be nonzero.
Quick check on the choice of loop
| Situation | Symmetry | Loop |
|---|---|---|
| Long straight wire | B circles the wire | Circle around the wire |
| Solenoid | B is axial inside, near zero outside | Rectangle crossing the winding |
| Toroid | B circles the toroid's axis | Circle inside the toroid |
The next chapters use this method for thick conductors, solenoids and toroids.
Exercise
Three long parallel wires pass through a circular Amperian loop. They carry 6 A and 4 A into the page, and 3 A out of the page. A fourth wire carrying 10 A lies outside the loop. What is ∮ B · dl around the loop, in terms of μ0?
Show answer
Only the currents inside the loop count. Taking into the page as positive, I_enc = 6 + 4 − 3 = 7 A, so ∮ B · dl = 7 μ0 (with the loop traversed in the direction given by the right-hand rule for current into the page). The 10 A wire outside the loop contributes nothing to the integral.