AP Physics C: Electricity and Magnetism · Magnetic fields and electromagnetism
Ampere's law
1The law
The line integral of $\vec{B}$ around any closed path equals μ₀ times the current passing through the surface bounded by the path:
$$\oint\vec{B}\cdot d\vec{l} = \mu_0I_{enc}$$
The sign of each current follows the right-hand rule: curl the fingers around the loop in the direction of integration; currents along the thumb are positive.
Like Gauss's law, it is always true but is useful for finding B only with enough symmetry (long wires, solenoids, toroids), where B is constant along an Amperian loop.
Check yourself
Ampere's law relates the line integral of B around a closed path to:
Show the answer
The current enclosed by the path
μ₀I_enc.
2Long straight wire
Amperian loop: a circle of radius r centred on the wire; B is tangent and constant.
$$B(2\pi r) = \mu_0I \quad\Rightarrow\quad B = \frac{\mu_0I}{2\pi r}$$
Inside a solid wire of radius R with uniform current density: $I_{enc} = I\frac{r^2}{R^2}$, so
$$B = \frac{\mu_0Ir}{2\pi R^2} \quad (r < R)$$
B rises linearly inside, peaks at the surface, then falls as 1/r.
Magnetic field inside and outside a current-carrying wire
Check yourself
Inside a long solid wire carrying a uniform current, the magnetic field is proportional to:
Show the answer
r
Enclosed current grows as r².
3Solenoid and toroid
Ideal solenoid (n turns per metre): a rectangular Amperian loop with one side of length L inside:
$$BL = \mu_0(nL)I \quad\Rightarrow\quad B = \mu_0nI$$
The field inside is uniform and parallel to the axis; outside it is approximately zero.
Toroid (N turns, at radius r inside the windings):
$$B(2\pi r) = \mu_0NI \quad\Rightarrow\quad B = \frac{\mu_0NI}{2\pi r}$$
Zero outside the toroid.
a solenoid with 1500 turns over 0.30 m carrying 2.0 A.
- n = 5000 m⁻¹; $B = (4\pi \times 10^{-7})(5000)(2.0) \approx 1.3 \times 10^{-2}$ T.
Check yourself
Doubling both the current and the number of turns per metre of a solenoid makes the field inside:
Show the answer
Four times larger
B = μ₀nI.
4Coaxial cable and current sheets
Coaxial cable: inner conductor carries +I, outer shell carries −I.
- Between the conductors: $B = \frac{\mu_0I}{2\pi r}$.
- Outside the cable: $I_{enc} = 0$, so B = 0.
Infinite current sheet (current per unit width K): $B = \frac{\mu_0K}{2}$, uniform on each side and in opposite directions.
If the current density varies, find the enclosed current by integration: $I_{enc} = \int J\,dA = \int_0^rJ(r')2\pi r'\,dr'$.
Check yourself
Outside a coaxial cable carrying equal and opposite currents, the magnetic field is:
Show the answer
Zero
Net enclosed current is zero.
5Going deeper: inside conductors, non-uniform currents and when the law helps
$$\oint\vec{B}\cdot d\vec{l} = \mu_0I_{\text{enc}}$$
The line integral of B around any closed loop equals $\mu_0$ times the net current threading the loop. Curl the right-hand fingers around the loop; currents along the thumb count as positive.
It is always true but useful only with symmetry: choose an Amperian loop along which B is constant in magnitude and parallel to the path (or perpendicular, contributing zero).
Long straight wire of radius R, uniform current
- Outside (r > R): $B(2\pi r) = \mu_0I$, so $B = \frac{\mu_0I}{2\pi r}$.
- Inside (r < R): the loop encloses $I\frac{r^2}{R^2}$, so $B = \frac{\mu_0Ir}{2\pi R^2}$.
- B rises linearly inside, peaks at the surface, then falls as $\frac{1}{r}$.
a wire of radius 2.0 mm carries 20 A uniformly.
- At the surface: $B = \frac{(4\pi \times 10^{-7})(20)}{2\pi(0.0020)} = 2.0 \times 10^{-3}$ T.
- At r = 1.0 mm (inside): half of that, 1.0 × 10⁻³ T.
- At r = 4.0 mm (outside): also 1.0 × 10⁻³ T.
Worked example (non-uniform current density): $J = J_0\frac{r}{R}$ in a wire of radius R.
- $I_{\text{enc}} = \int_0^r J_0\frac{r'}{R}(2\pi r'\,dr') = \frac{2\pi J_0r^3}{3R}$.
- $B(2\pi r) = \mu_0I_{\text{enc}}$, so $B = \frac{\mu_0J_0r^2}{3R}$ inside.
- As with Gauss's law, you must integrate to find what is enclosed when the density varies.
Coaxial cable (inner conductor carries I out, outer shell carries I back)
- Between the conductors: $B = \frac{\mu_0I}{2\pi r}$.
- Outside the cable: enclosed current is zero, so B = 0. Both the electric and magnetic fields are confined.
Hollow pipe carrying current: B = 0 everywhere inside the hollow, since no current is enclosed.
Solenoid (n turns per meter): a rectangular loop with one side inside and one outside gives $BL = \mu_0nLI$, so $B = \mu_0nI$, uniform inside and nearly zero outside.
Toroid (N turns): a circular loop inside the windings gives $B = \frac{\mu_0NI}{2\pi r}$; outside the toroid B = 0.
Worked example (solenoid): 2000 turns per meter, 3.0 A.
- $B = (4\pi \times 10^{-7})(2000)(3.0) = 7.5 \times 10^{-3}$ T.
- Independent of the solenoid's radius and of position inside.
Infinite current sheet (current per unit width K): $B = \frac{\mu_0K}{2}$ on each side, uniform, in opposite directions on the two sides; the magnetic counterpart of the infinite sheet of charge.
Parallels with Gauss's law
- Gauss: closed surface, enclosed charge, flux of E.
- Ampère: closed loop, enclosed current, circulation of B.
- Both need symmetry to give the field; both need an integral for the enclosed amount when density varies.
Common mistakes
- Using the total current when the loop is inside the wire.
- Saying B = 0 on a loop because it encloses no net current. Only the circulation is zero.
- Applying the law to a short wire or single loop, where symmetry is lacking.
- Sign errors with currents in opposite directions through the loop.
A limitation: Ampère's law in this form holds for steady currents. When fields change with time, Maxwell's displacement-current term must be added.
Check yourself
Inside a long straight wire carrying a uniformly distributed current, how does the magnetic field depend on distance r from the axis?
Show the answer
It is proportional to r
Enclosed current grows as r² while the loop length grows as r.
6For top marks
- State the symmetry and describe the Amperian loop.
- Explain why B is constant (or zero, or perpendicular) on each part of the loop.
- Find I_enc, integrating J if necessary.
- Give B in each region and sketch B against r.
Check yourself
Why is Ampere's law not convenient for finding the field of a short straight wire segment?
Show the answer
The field lacks the symmetry needed to take B out of the integral
Use Biot-Savart instead.
Now test yourself
This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.
Practise in Impera