Educerie

Educerie · AP · Physics C: Electricity and Magnetism

AP Physics C: Electricity and Magnetism 12.4

Ampère’s Law

What makes a magnetic field, what does it do to charges and currents, and how do you find it for a wire, a loop or a solenoid?

What you will learn

  • Understand Ampère's law and that only the current enclosed by the Amperian loop appears in it.
  • Know how to choose a loop that matches the symmetry of a long wire, a solenoid, a cylinder or a slab.
  • Understand that fields from several currents add as vectors.
  • Know that a changing electric field produces a magnetic field, as Maxwell's addition says.

You must be able to

  1. Derive the field of a long straight wire and of a long solenoid from Ampère's law.
  2. Find the enclosed current by integrating a current density that depends on radius.
  3. Derive the field inside and outside a cylinder and say where the peak is.
  4. Sketch the field against distance from the axis with a continuous curve.
  5. Add the fields of two wires at a point, with the correct directions.
  6. Explain why Ampère's law cannot be solved for B in a case without symmetry.

In the exam. Section I multiple choice: the field of a long wire, of a solenoid or inside a thick conductor, or the combined field of two or more wires. In Section II, Ampère's law is a standard Mathematical Routines part: derive BB inside and outside a cylinder with a current density that changes with radius, then sketch BB against rr. Marks are often lost for the wrong Amperian loop, for using the total current inside the loop when only part of it is enclosed, and for a graph that is not continuous.

1Ampère's law

∮B⃗⋅dℓ⃗=μ0Ienc\oint \vec B\cdot d\vec\ell = \mu_0 I_{\text{enc}}

This is on the sheet. The left side is the sum of B⃗⋅dℓ⃗\vec B\cdot d\vec\ell round a closed loop. The right side is μ0\mu_0 times IencI_{\text{enc}}, the current that passes through the surface bounded by the loop.

  • The loop is a mathematical path. It need not follow any real object.
  • Only current inside the loop counts. Current outside it does not appear on the right, although it still contributes to B⃗\vec B on the loop.
  • Direction sets the sign. Curl the fingers of your right hand round the loop. A current along your thumb is positive and the opposite one is negative.

The method mirrors Gauss's law for E⃗\vec E.

  1. Pick an Amperian loop on which B⃗\vec B is parallel to dℓ⃗d\vec\ell with constant size, perpendicular to it, or zero.
  2. Evaluate ∮B⃗⋅dℓ⃗\oint\vec B\cdot d\vec\ell.
  3. Find IencI_{\text{enc}}.
  4. Solve for BB.

2A long straight wire

A long straight wire carries current II. Symmetry says the field is tangent to circles round the wire, and the same size at every point on one circle. Choose a circle of radius rr as the loop.

  • B⃗\vec B is parallel to dℓ⃗d\vec\ell all the way round, and has the same size BB.
  • The enclosed current is II.
∮B⃗⋅dℓ⃗=B (2πr)=μ0I  ⇒  B=μ0I2πr\oint \vec B\cdot d\vec\ell = B\,(2\pi r) = \mu_0 I \;\Rightarrow\; B = \frac{\mu_0 I}{2\pi r}

This matches the long-wire limit of Topic 12.3. The field falls as 1/r1/r. It circles the wire, with the direction given by the thumb along the current.

3A long solenoid

A solenoid is a long coil. The course says to assume all solenoids are very long, with a uniform field inside and a negligible field outside, unless the question says otherwise.

Figure 1. A long solenoid in side view with a rectangular Amperian loop: one side inside, one side outside, and the two short sides crossing the wall of the solenoid B ℓ Amperian loop
Figure 1 · A long solenoid in side view with a rectangular Amperian loop: one side inside, one side outside, and the two short sides crossing the wall of the solenoid

Read Figure 1 in this order.

  • The turns are drawn as crosses (current into the page) on the lower side and dots (current out of the page) on the upper side.
  • The field inside points along the axis, to the right here. It is uniform.
  • The Amperian loop is a rectangle of length ℓ\ell. One long side lies inside the solenoid, along the field. The other lies outside, where the field is negligible.
  • The two short sides are perpendicular to the field, so they add nothing. Where the field is zero, outside, nothing adds either.

Only the inside side contributes to the integral: BℓB\ell. The loop encloses N=nℓN = n\ell turns, where nn is the number of turns per unit length. Each turn carries II, so Ienc=nIℓI_{\text{enc}} = nI\ell.

B ℓ=μ0 (nℓ) I  ⇒  Bsol=μ0nIB\,\ell = \mu_0\,(n\ell)\,I \;\Rightarrow\; B_{\text{sol}} = \mu_0 n I

The field depends on the current and the turns per length. It does not depend on the radius of the solenoid, or on where inside you are.

Worked example 1: a solenoid. A long solenoid has 800 turns per metre and carries 2.5 A2.5\ \text{A}.

B=μ0nI=(4π×10−7)(800)(2.5)=2.5×10−3 TB = \mu_0 n I = (4\pi\times10^{-7})(800)(2.5) = 2.5\times10^{-3}\ \text{T}

With a core. If the inside is filled with a material of permeability μ\mu, replace μ0\mu_0 by μ\mu (Topic 12.1). A ferromagnetic core makes the field much larger for the same current.

4A cylinder with a current density

A long straight cylinder of radius aa carries a current along its axis. The current density JJ is the current per unit area. If JJ is not uniform, integrate to find the enclosed current.

Ienc=∫J⃗⋅dA⃗I_{\text{enc}} = \int \vec J\cdot d\vec A

For a current density that depends on the distance rr from the axis, use thin rings. A ring of radius rr and thickness drdr has area dA=2πr drdA = 2\pi r\,dr.

Worked example 2: a current density that grows with r2r^2. A long cylinder of radius aa carries current along its axis with J=kr2J = k r^2. Here kk is a constant. Find BB inside and outside.

Inside (r<ar < a). Choose a circle of radius rr as the Amperian loop.

Ienc=∫0r(kr′2)(2πr′) dr′=2πk r44=πkr42I_{\text{enc}} = \int_0^r (k r'^2)(2\pi r')\,dr' = 2\pi k\,\frac{r^4}{4} = \frac{\pi k r^4}{2}
B (2πr)=μ0 πkr42  ⇒  B=μ0k r34B\,(2\pi r) = \mu_0\,\frac{\pi k r^4}{2} \;\Rightarrow\; B = \frac{\mu_0 k\,r^3}{4}

Outside (r>ar > a). The loop encloses the whole current, I=πka4/2I = \pi k a^4/2.

B (2πr)=μ0 πka42  ⇒  B=μ0k a44rB\,(2\pi r) = \mu_0\,\frac{\pi k a^4}{2} \;\Rightarrow\; B = \frac{\mu_0 k\,a^4}{4r}

Check: at r=ar = a both results give μ0ka3/4\mu_0 k a^3/4. The field must be continuous at the surface.

Figure 2. The field of the cylinder in the worked example against distance from its axis: rising as the cube of r inside, falling as 1/r outside, with its peak at the surface 1 2 3 0.5 1 0 B / Ba r / a inside: r3 outside: 1/r
Figure 2 · The field of the cylinder in the worked example against distance from its axis: rising as the cube of r inside, falling as 1 ÷ r outside, with its peak at the surface

Read Figure 2 in this order.

  • Inside, BB rises as r3r^3. It starts at zero on the axis, where no current is enclosed.
  • It reaches its peak at r=ar = a, the surface.
  • Outside, BB falls as 1/r1/r, as for any long wire.
  • The two curves meet at the surface with no jump.

If the current density were uniform, J=I/(πa2)J = I/(\pi a^2), the enclosed current would be Ir2/a2I r^2/a^2, and the field inside would rise linearly: B=μ0Ir/(2πa2)B = \mu_0 I r/(2\pi a^2).

A slab. Take a flat conductor much larger than its thickness 2d2d, carrying a uniform JJ. Use a rectangular loop that straddles the slab's midplane.

At a distance xx from the midplane inside the slab, B=μ0JxB = \mu_0 J x. Outside the slab it is constant at μ0Jd\mu_0 J d.

5Superposition

The field at a point from several currents is the vector sum of the fields of each one. Find each field alone, with its direction, then add.

Worked example 3: two wires. Two long parallel wires are 0.20 m0.20\ \text{m} apart. They carry 6.0 A6.0\ \text{A} each, in opposite directions. Find the field at the midpoint.

  • Each wire is 0.10 m0.10\ \text{m} from the midpoint. Each makes a field of μ0I/(2πr)=(2×10−7)(6.0)/0.10=1.2×10−5 T\mu_0 I/(2\pi r) = (2\times10^{-7})(6.0)/0.10 = 1.2\times10^{-5}\ \text{T}.
  • Between the wires, the two fields point the same way. With opposite currents, the fields add.
B=2(1.2×10−5)=2.4×10−5 TB = 2(1.2\times10^{-5}) = 2.4\times10^{-5}\ \text{T}

If the currents were in the same direction, the two fields at the midpoint would be opposite and cancel to zero.

The same method works for loops, segments and cylinders. The field of a solenoid, wire and loop can all be added.

6Maxwell's addition

Maxwell's equations describe all of electricity and magnetism. Gauss's law for E⃗\vec E is the first. Gauss's law for B⃗\vec B is the second. Faraday's law is the third (Topic 13.2). The fourth is Ampère's law with Maxwell's addition.

  • A current makes a magnetic field. This is Ampère's law.
  • A changing electric field also makes a magnetic field, in the same way that a moving charge does. This is Maxwell's addition.

The full law has an extra term on the right:

∮B⃗⋅dℓ⃗=μ0Ienc+μ0ε0 dΦEdt\oint\vec B\cdot d\vec\ell = \mu_0 I_{\text{enc}} + \mu_0\varepsilon_0\,\frac{d\Phi_E}{dt}

The course does not ask you to use the second term in a calculation. You do need to say that a changing electric field generates a magnetic field.

Example: between the plates of a charging capacitor there is no current, but the electric field is changing, so there is a magnetic field.

Practice questions

30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.