Skip to main content

Unit 12 · Topic 12.4

12.4 Ampère’s Law

Ampère's law connects the magnetic field around a closed loop to the current passing through it, ∮B⃗⋅dℓ⃗=μ0Ienc\oint \vec{B} \cdot d\vec{\ell} = \mu_0 I_{enc}. For symmetric currents it gives the field quickly: around and inside wires, inside solenoids and near current slabs. Maxwell's addition shows a changing electric field makes a magnetic field too.

Key terms

  • Ampère’s law
  • Amperian loop
  • enclosed current
  • solenoid
  • turns per unit length
  • superposition

The law

Pick any closed path, called an Amperian loop. Go around it, adding up the part of B⃗\vec{B} that points along the path times each small step: ∮B⃗⋅dℓ⃗\oint \vec{B} \cdot d\vec{\ell}. Ampère's law says this equals μ0\mu_0 times the enclosed current, the net current passing through any surface bounded by the loop: ∮B⃗⋅dℓ⃗=μ0Ienc\oint \vec{B} \cdot d\vec{\ell} = \mu_0 I_{enc}.

Signs come from the right-hand rule: curl your fingers the way you go around the loop, and current along your thumb counts as positive. Currents outside the loop count for nothing in the total, even though they do change the field along it.

Ampère's law is always true, but it only helps you find B when symmetry makes B constant along parts of the loop and either parallel or perpendicular to the path. This is the magnetic partner of Gauss's law (8.6).

Long straight wires and cylinders

For a long straight wire, choose a circle of radius r centered on the wire. B has the same size everywhere on the circle and points along it, so ∮B⃗⋅dℓ⃗=B(2πr)=μ0I\oint \vec{B} \cdot d\vec{\ell} = B(2\pi r) = \mu_0 I, giving B=μ0I2πrB = \dfrac{\mu_0 I}{2\pi r}.

Inside a solid wire of radius R with current spread evenly, the loop encloses only part of the current: Ienc=Ir2R2I_{enc} = I\dfrac{r^2}{R^2}. Then B=μ0Ir2πR2B = \dfrac{\mu_0 I r}{2\pi R^2}, which grows linearly from zero at the center to its maximum at the surface.

If the current density varies with r, find the enclosed current with the integral from 11.1, Ienc=∫0rJ(r′) 2πr′ dr′I_{enc} = \displaystyle\int_0^r J(r')\,2\pi r'\,dr', then use B(2πr)=μ0IencB(2\pi r) = \mu_0 I_{enc}.

Solenoids and slabs

A solenoid is a long coil of wire. Inside a long solenoid the field is nearly uniform and points along the axis; outside it's nearly zero. A rectangular Amperian loop with one side inside gives Bℓ=μ0(nℓ)IB\ell = \mu_0 (n\ell) I, so B=μ0nIB = \mu_0 nI, where n is the number of turns per unit length (N/ℓ). The field doesn't depend on the radius or on where you are inside.

For a wide flat conducting slab carrying a current density, the field outside is uniform, parallel to the slab and perpendicular to the current, pointing opposite ways on the two sides. Use a rectangular loop of length ℓ\ell that straddles the slab, with its long sides parallel to the slab. Only those two sides add to ∮B⃗⋅dℓ⃗\oint \vec{B} \cdot d\vec{\ell}, and the enclosed current is the current density times the cross-sectional area the loop surrounds. For a slab of thickness d carrying a uniform current density J, 2Bℓ=μ0Jdℓ2B\ell = \mu_0 Jd\ell, so outside B=μ0Jd2B = \dfrac{\mu_0 Jd}{2}, the same at any distance. Inside, at distance x from the slab's middle plane, the loop encloses only a thickness 2x, so B=μ0JxB = \mu_0 Jx.

Superposition and Maxwell's addition

When several currents are present, find each one's field at the point and add the vectors. For two parallel wires, the fields add between the wires when the currents are opposite and partly cancel when the currents are the same.

Maxwell realized the law needed one more piece: a changing electric field also creates a magnetic field. That's why a magnetic field circles the gap between the plates of a charging capacitor, even though no charge crosses the gap. You need this idea only qualitatively. With it, Ampère's law joins Gauss's laws and Faraday's law (13.2) as one of Maxwell's equations.

Worked examples

Try each one yourself first, then open the solution.

  1. Example 1Calculator allowed

    Inside and outside a thick wire

    A long straight wire of radius 2.0 mm carries 10 A spread evenly over its cross section. Find the magnetic field 1.0 mm from the center and 4.0 mm from the center.

    Show the solution
    1. Step 1: Inside (r = 1.0 mm): the loop encloses Ir2R2=10×14=2.5 AI\dfrac{r^2}{R^2} = 10 \times \dfrac{1}{4} = 2.5\text{ A}. Then B=μ0Ienc2πr=(4π×10−7)(2.5)2π(1.0×10−3)=5.0×10−4 TB = \dfrac{\mu_0 I_{enc}}{2\pi r} = \dfrac{(4\pi \times 10^{-7})(2.5)}{2\pi(1.0 \times 10^{-3})} = 5.0 \times 10^{-4}\text{ T}.
    2. Step 2: Outside (r = 4.0 mm): the loop encloses all 10 A, so B=(4π×10−7)(10)2π(4.0×10−3)=5.0×10−4 TB = \dfrac{(4\pi \times 10^{-7})(10)}{2\pi(4.0 \times 10^{-3})} = 5.0 \times 10^{-4}\text{ T}.
    3. Step 3: The two answers match by coincidence of the chosen distances. The field peaks at the surface, 1.0 × 10⁻³ T, and falls off on both sides.

    Answer: 5.0 × 10⁻⁴ T at both points

  2. Example 2Calculator allowed

    Field inside a solenoid (classic trap)

    A solenoid 0.30 m long has 600 turns and carries 2.0 A. Find the magnetic field inside it.

    Show the solution
    1. Step 1: Turns per unit length: n=Nℓ=6000.30=2000 turns/mn = \dfrac{N}{\ell} = \dfrac{600}{0.30} = 2000\text{ turns/m}.
    2. Step 2: B=μ0nI=(4π×10−7)(2000)(2.0)≈5.0×10−3 TB = \mu_0 nI = (4\pi \times 10^{-7})(2000)(2.0) \approx 5.0 \times 10^{-3}\text{ T}.
    3. Step 3: The trap is putting N = 600 in place of n, which gives 1.5 × 10⁻³ T. The formula needs turns per meter, not total turns.

    Answer: About 5.0 × 10⁻³ T, along the solenoid's axis

  3. Example 3Calculator allowed

    Current density that varies with radius

    A long cylindrical wire of radius R carries a current density J=αrJ = \alpha r, where α is a constant. Find B inside the wire at distance r from the axis.

    Show the solution
    1. Step 1: Enclosed current: Ienc=∫0rαr′ (2πr′) dr′=2παr33I_{enc} = \displaystyle\int_0^r \alpha r'\,(2\pi r')\,dr' = \frac{2\pi\alpha r^3}{3}.
    2. Step 2: Ampère's law with a circle of radius r: B(2πr)=μ02παr33B(2\pi r) = \mu_0\dfrac{2\pi\alpha r^3}{3}.
    3. Step 3: Solve: B=μ0αr23B = \dfrac{\mu_0\alpha r^2}{3}, circling the axis by the right-hand rule.

    Answer: B=μ0αr23B = \dfrac{\mu_0\alpha r^2}{3}

Common mistakes

  • Using the total current when the Amperian loop is inside the wire. Only the enclosed current counts.
  • Using total turns N instead of turns per unit length n in the solenoid formula.
  • Thinking currents outside the loop don't affect B. They don't change the loop's total, but they do change the field at each point, which is why you need symmetry to solve for B.
  • Using Ampère's law for a short wire segment or a single loop, where B isn't constant along any convenient path. Use the Biot–Savart law there.

On the exam

  • A common free-response task: graph B against r for a wire or a coaxial cable, inside and outside. Show B rising linearly inside a uniform wire and falling as 1/r outside.
  • When you use Ampère's law, say why you chose your loop: B has constant size along it and points along it by symmetry. That justification often earns a point.

Connected topics

Videos

Check yourself

4 questions on 12.4 Ampère’s Law. Pick an answer to see if you got it, and why.

Question 1 of 4Calculator allowed

A long straight wire carries a current of 8.0 A. What is the magnitude of the magnetic field 2.0 cm from the wire?

Question 2 of 4Calculator allowed

A long solenoid is 25 cm long, has 500 turns and carries a current of 3.0 A. What is the magnitude of the magnetic field inside it, away from the ends?

Question 3 of 4Calculator allowed

A long solid cylindrical wire of radius R carries a current spread evenly over its cross section. What is the ratio of the magnetic field at r = R/2 (inside the wire) to the field at r = 2R (outside the wire)?

Question 4 of 4Calculator allowed

A long cylindrical wire of radius R carries a current whose density points along the wire and has magnitude J=αrJ = \alpha r, where α is a constant. What is the magnitude of the magnetic field at a distance r < R from the axis?

0 of 4 answered