Sub topic 10
Ampere's circuital law
This chapter assumes you can take a line integral of a simple function and use the right-hand rules. It also assumes you know the Biot-Savart result for a long straight wire, B = μ₀I/(2πr). The chapter states the law, shows where it comes from, and explains how to pick a loop. It also covers the mistakes that cost marks. Solenoids and toroids are in the next chapter.
The statement
Ampere's circuital law relates the magnetic field around a closed path to the current passing through that path:
∮ B · dl = μ₀ I_enc
- The integral runs once around any closed imaginary path, called the Amperian loop.
- B is the total magnetic field at each point of the loop. All currents in the universe contribute to it.
- dl is a small vector element along the loop. It points in the direction you are travelling.
- I_enc is the net current that passes through any surface bounded by the loop.
- μ₀ = 4π × 10⁻⁷ T m/A.
The left side is the circulation of B. It measures how much the field "wraps around" the loop. The law says that circulation depends only on the enclosed current, not on the loop's shape or size.
Sign convention
Choose a direction to travel around the loop. Curl the fingers of your right hand along that direction. A current is positive if it goes through the loop in the direction your thumb points, and negative if it goes the opposite way. Reversing the travel direction flips the sign of both sides, so the law stays consistent.
Why it holds for a straight wire
Take a long straight wire carrying current I, and a circular loop of radius r centred on the wire in a plane perpendicular to it. By symmetry, B is tangent to the circle and has the same magnitude everywhere on it. So B · dl = B dl, and
∮ B dl = B (2πr) = μ₀ I, which gives B = μ₀ I / (2πr).
This is the Biot-Savart result for the same wire. Ampere's law is the shortcut that reaches it in one line.
The law also works for a loop of any shape. Use polar coordinates around the wire. The component of B along the loop is B r dφ, where dφ is the small angle the loop sweeps around the wire. With B = μ₀I/(2πr), this gives
B · dl = (μ₀ I / 2π) dφ.
A loop that circles the wire once sweeps a total angle of 2π, so the circulation is μ₀I. A loop that does not enclose the wire sweeps forward and then back. Its net angle is zero, so the circulation is zero. The law is therefore not tied to circles.
Choosing the loop
Ampere's law is true for every closed loop. It is only useful for finding B when symmetry lets you pull B out of the integral. You need a loop where, on each segment, B is either constant and parallel to dl, or perpendicular to dl, or zero.
| Current distribution | Symmetry | Amperian loop | Result |
|---|---|---|---|
| Long straight wire | Cylindrical | Circle around the wire | B = μ₀I/(2πr) |
| Thick cylindrical wire | Cylindrical | Circle of radius r | Depends on I_enc(r) |
| Long solenoid | Uniform inside, zero outside | Rectangle | Next chapter |
| Toroid | Circular | Circle inside the core | Next chapter |
| Short wire or single loop | None | Not usable | Use Biot-Savart |
Worked example: a thick wire
A long cylindrical wire of radius R = 2 cm carries I = 10 A, spread uniformly over its cross-section. Find B at r = 1 cm (inside) and at r = 4 cm (outside).
Outside (r > R). The loop encloses all the current, so B (2πr) = μ₀I. At r = 4 cm:
B = (2 × 10⁻⁷)(10) / 0.04 = 5 × 10⁻⁵ T.
Inside (r < R). Current density is uniform, so the loop of radius r encloses only a fraction of the current:
I_enc = I · (πr²)/(πR²) = I r²/R².
Then B (2πr) = μ₀ I r²/R², which gives
B = μ₀ I r / (2πR²).
At r = 1 cm:
B = (2 × 10⁻⁷)(10)(0.01) / (0.02)² = 5 × 10⁻⁵ T.
The field rises linearly from zero at the axis, peaks at the surface, and then falls as 1/r. The two values coincide here by coincidence of the chosen numbers. At r = R the inside and outside formulas agree, as they must.
Checking the law numerically
The script below integrates B around a square loop for a wire along the z-axis. It tries three cases: the wire enclosed off-centre, the wire outside the loop, and the enclosing loop travelled in reverse.
import numpy as np
mu0 = 4 * np.pi * 1e-7
I = 5.0 # amperes, wire along +z through the origin
def b_wire(p):
"""Field of an infinite wire at points p of shape (n, 2)."""
x, y = p[:, 0], p[:, 1]
k = mu0 * I / (2 * np.pi * (x**2 + y**2))
return np.stack([-k * y, k * x], axis=-1)
def circulation(corners, n=20000):
"""Midpoint-rule line integral of B . dl around a closed polygon."""
total = 0.0
for a, b in zip(corners, np.roll(corners, -1, axis=0)):
t = (np.arange(n) + 0.5) / n
pts = a + t[:, None] * (b - a)
dl = (b - a) / n
total += np.sum(b_wire(pts) @ dl)
return total
enclosing = np.array([[-1.0, -1.0], [2.0, -1.0], [2.0, 1.0], [-1.0, 1.0]])
outside = np.array([[1.0, -1.0], [3.0, -1.0], [3.0, 1.0], [1.0, 1.0]])
print("mu0 * I :", mu0 * I)
print("enclosing, ccw :", circulation(enclosing))
print("enclosing, cw :", circulation(enclosing[::-1]))
print("wire outside :", circulation(outside))The first two results match μ₀I ≈ 6.283 × 10⁻⁶ T m, with the clockwise run giving the negative of that value. The third is zero to numerical precision. The loop is not symmetric about the wire, and B is not constant along it, yet the circulation is still exactly μ₀I.
What B and I_enc mean
The most frequent conceptual error is mixing up the two currents in the law.
- B on the left is the field from all sources, including currents outside the loop.
- I_enc on the right counts only currents that pass through the loop.
Consider two parallel wires, one inside the loop and one outside. The outside wire changes B at every point on the loop. It does not change the circulation, because its contribution integrates to zero. So you cannot read B off from I_enc alone unless symmetry says the outside currents contribute nothing, or you add their fields by superposition.
Two further points:
- Opposite currents cancel. If a loop encloses 3 A up and 1 A down, I_enc = 2 A in the "up" sense.
- Zero circulation is not zero field. If ∮ B · dl = 0, B may still be non-zero at every point, with contributions cancelling around the loop.
Comparison with Biot-Savart
| Row | Biot-Savart law | Ampere's circuital law |
|---|---|---|
| Gives | B at a point, from each current element | Circulation of B around a loop |
| Works for | Any current distribution | Any distribution, but only solvable with symmetry |
| Effort | Vector integral over the source | One algebraic step when symmetry exists |
| Typical use | Loops, finite wires, arcs | Long wires, solenoids, toroids |
For steady currents the two laws are equivalent. Ampere's law is the more compact statement, and Biot-Savart is the more general tool for computation.
Limits of the law
The form above holds for steady currents, meaning currents that do not change in time. When charge piles up, as on a capacitor plate while it charges, different surfaces bounded by the same loop can have different currents passing through them. The law then gives conflicting answers. Maxwell fixed this by adding a term, the displacement current, that depends on the changing electric flux. This is beyond the NEET syllabus. Every problem you will meet uses steady currents.
Common mistakes
- Using the full current inside a thick wire instead of I r²/R².
- Counting currents outside the loop in I_enc.
- Forgetting the sign of a current that goes through the loop the opposite way.
- Applying B · 2πr = μ₀I to a case with no cylindrical symmetry.
- Forgetting that B is tangent to the loop only when the loop follows the symmetry.
Exercise
A long straight wire carries 20 A. A circular loop of radius 3 cm is drawn around it. Another wire carrying 8 A in the opposite direction passes outside the loop. What is the circulation of B around the loop, and does the second wire change it?
Show answer
The circulation is μ₀ Ienc = (4π × 10⁻⁷)(20) ≈ 2.5 × 10⁻⁵ T m. The second wire passes outside the loop, so it is not part of Ienc and does not change the circulation. It does change B at individual points on the loop.
Exercise
A long cylindrical conductor of radius 5 cm carries 30 A uniformly. Find B at r = 2 cm from the axis.
Show answer
Ienc = 30 × (2/5)² = 4.8 A. B = μ₀ Ienc / (2πr) = (2 × 10⁻⁷)(4.8)/0.02 = 4.8 × 10⁻⁵ T. Equivalently, B = μ₀ I r/(2πR²) gives the same value.
Exercise
A loop encloses three wires carrying 4 A, 6 A, both out of the page, and 5 A into the page. The loop is travelled counterclockwise. What is ∮ B · dl?
Show answer
Counterclockwise travel makes currents out of the page positive. I_enc = 4 + 6 − 5 = 5 A, so the circulation is μ₀ × 5 = 4π × 10⁻⁷ × 5 ≈ 6.3 × 10⁻⁶ T m.