Skip to main content
United StatesPhysics C: Electricity and MagnetismSyllabus dot point

How does Ampere's law use symmetry to find the magnetic field of a current distribution?

Topic 12.4 Ampere's Law: apply Ampere's law with a chosen Amperian loop to find the field of wires, solenoids and toroids.

A calculus-based answer to AP Physics C E&M Topic 12.4, covering Ampere's law as a line integral, choosing an Amperian loop, and deriving the field of a long wire, a solenoid and a toroid.

Generated by Claude Opus 4.811 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this topic is asking
  2. Ampere's law
  3. Choosing an Amperian loop
  4. The three standard cases
  5. Try this

What this topic is asking

The College Board (Topic 12.4) wants you to apply Ampere's law to find the magnetic field of current distributions with enough symmetry: a long straight wire, a solenoid, and a toroid. Ampere's law is the magnetic counterpart of Gauss's law, trading a hard Biot-Savart integral for a one-line calculation when the symmetry is right.

Ampere's law

The law is always valid, but it is useful for finding BB only when symmetry lets you pull BB out of the integral. Where it applies, it is far quicker than the Biot-Savart integral, just as Gauss's law shortcuts the Coulomb integral.

Choosing an Amperian loop

The skill is choosing a closed loop, the Amperian loop, matched to the symmetry so that on each part either:

  • B\vec{B} is constant in magnitude and parallel to the loop (so Bd=Bd\vec{B}\cdot d\vec{\ell} = B\,d\ell and the integral is B×lengthB\times\text{length}), or
  • B\vec{B} is perpendicular to the loop (so Bd=0\vec{B}\cdot d\vec{\ell} = 0 on that part).

This turns Bd\oint\vec{B}\cdot d\vec{\ell} into B×(path length with field)=μ0IencB\times(\text{path length with field}) = \mu_0 I_{enc}, which you solve for BB.

The three standard cases

Geometry Amperian loop Field result
Long straight wire Circle of radius rr B=μ0I2πrB = \dfrac{\mu_0 I}{2\pi r} (outside)
Solenoid (nn turns/m) Rectangle through the wall B=μ0nIB = \mu_0 n I (uniform inside)
Toroid (NN turns) Circle of radius rr inside B=μ0NI2πrB = \dfrac{\mu_0 N I}{2\pi r}

For the solenoid, the field outside is negligible and the interior field is uniform; this is the standard way to make a strong, controllable magnetic field.

Try this

Q1. State Ampere's law in symbols. [1 point]

  • Cue. Bd=μ0Ienc\oint\vec{B}\cdot d\vec{\ell} = \mu_0 I_{enc}.

Q2. A solenoid has n=1500n = 1500 turns/m and carries 3.03.0 A. Find the interior field (μ0=4π×107\mu_0 = 4\pi\times10^{-7}). [2 points]

  • Cue. B=μ0nI=(4π×107)(1500)(3.0)=5.7×103B = \mu_0 n I = (4\pi\times10^{-7})(1500)(3.0) = 5.7\times10^{-3} T.

Exam-style practice questions

Practice questions written in the style of College Board exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

AP 2022 (style)1 marksSection I (multiple choice). The magnetic field inside a long ideal solenoid with nn turns per meter carrying current II is (A) μ0I2πr\dfrac{\mu_0 I}{2\pi r} (B) μ0nI\mu_0 n I (C) μ0I2R\dfrac{\mu_0 I}{2R} (D) zero. Justify your reasoning.
Show worked answer →

A 1-point MCQ on the solenoid field. The answer is (B).

Ampere's law applied to a rectangular loop straddling the solenoid wall gives a uniform interior field B=μ0nIB = \mu_0 n I, independent of position inside. The trap is (A), the straight-wire field, or (C), the loop-center field; the solenoid result is μ0nI\mu_0 n I, with nn the turns per unit length.

AP 2024 (style)6 marksSection II (FRQ, derivation). A long straight wire of radius aa carries a current II uniformly distributed over its cross-section. (a) State Ampere's law. (b) Use it to derive the field outside the wire (r>ar > a). (c) Use it to derive the field inside the wire (r<ar < a).
Show worked answer →

A 6-point FRQ applying Ampere's law inside and outside a wire.

(a) Statement (1 point): Bd=μ0Ienc\oint\vec{B}\cdot d\vec{\ell} = \mu_0 I_{enc}.
(b) Outside (2 points): a circular Amperian loop of radius r>ar > a encloses all of II. By symmetry BB is constant and tangent: B(2πr)=μ0IB(2\pi r) = \mu_0 I, so B=μ0I2πrB = \dfrac{\mu_0 I}{2\pi r}.
(c) Inside (3 points): a loop of radius r<ar < a encloses the fraction Ienc=Iπr2πa2=Ir2a2I_{enc} = I\dfrac{\pi r^2}{\pi a^2} = I\dfrac{r^2}{a^2}. So B(2πr)=μ0Ir2a2B(2\pi r) = \mu_0 I\dfrac{r^2}{a^2}, giving B=μ0Ir2πa2B = \dfrac{\mu_0 I r}{2\pi a^2}, which grows linearly with rr.

Markers reward the statement, the outside result, and the enclosed-fraction inside result.

Related dot points

Sources & how we know this