01 / 22

Ampère's Law

Master the powerful relationship between current and magnetic fields using symmetry and closed-loop integration.

Physics 2

What Is a Magnetic Field?

A magnetic field \(\vec{B}\) is a vector field that exerts forces on moving charges and current-carrying conductors. Unlike electric fields that begin and end on charges, magnetic field lines always form closed loops.

\(I\) (out of page) \(\vec{B}\) field lines Weaker B Stronger B

Why Ampère's Law Matters

Computing \(\vec{B}\) from the Biot-Savart law requires integrating over every tiny segment of current. Ampère's law provides a shortcut: when the geometry has enough symmetry, one integral around a closed loop gives the answer directly.

Biot-Savart
General but complex: integrate over every current element \(d\vec{\ell}\).
Ampère's Law
Simple and elegant: one loop integral when symmetry exists.

The Role of Symmetry

Ampère's law is always true, but it is only useful for computing \(\vec{B}\) when the current distribution has enough symmetry so that \(|\vec{B}|\) is constant along the chosen loop. The three classic symmetries are:

Infinite Wire
Cylindrical symmetry: \(B\) depends only on distance \(r\) from the wire.
Solenoid
Translational symmetry along the axis: uniform \(B\) inside, zero outside.
Toroid
Rotational symmetry about the center: \(B\) constant on circular paths inside.

Ampère's Law: Formal Statement

The line integral of the magnetic field \(\vec{B}\) around any closed loop (called an Amperian loop) equals \(\mu_0\) times the total current \(I_{\text{enc}}\) enclosed by that loop.

\(\oint \vec{B}\cdot d\vec{\ell}\)
Sum of \(\vec{B}\) components along the loop, all the way around.
\(\mu_0\)
Permeability of free space: \(4\pi \times 10^{-7}\;\text{T·m/A}\).
\(I_{\text{enc}}\)
Net current passing through the area bounded by the loop.

Choosing an Amperian Loop

\(I\) \(r\) \(\vec{B}\) \(d\vec{\ell}\) Amperian loop of radius r At every point on the loop: \(\vec{B}\) is tangent to the circle \(d\vec{\ell}\) is also tangent So \(\vec{B} \cdot d\vec{\ell} = B\,d\ell\)

Ampère vs. Gauss

Ampère's Law Gauss's Law
Field Magnetic \(\vec{B}\) Electric \(\vec{E}\)
Geometry Closed loop (1D path) Closed surface (2D area)
Source enclosed \(I_{\text{enc}}\) (current) \(q_{\text{enc}}\) (charge)
Integral type \(\oint \vec{B}\cdot d\vec{\ell}\) \(\oint \vec{E}\cdot d\vec{A}\)
Constant \(\mu_0\) \(1/\varepsilon_0\)

How to Apply Ampère's Law

1
Identify symmetry. Is \(|\vec{B}|\) constant on some loop? Look for infinite wires, solenoids, or toroids.
2
Choose the Amperian loop. Pick a path where \(\vec{B}\) is either parallel or perpendicular to \(d\vec{\ell}\) at every point.
3
Evaluate the left side. Since \(B\) is constant on the loop: \(\oint \vec{B}\cdot d\vec{\ell} = B \oint d\ell = B \cdot (\text{loop length})\).
4
Find \(I_{\text{enc}}\). Sum all currents that pierce the area bounded by the loop. Use the right-hand rule for signs.
5
Solve for \(B\). Set \(B \cdot (\text{loop length}) = \mu_0 I_{\text{enc}}\) and isolate \(B\).

Example 1: Infinite Straight Wire

Find \(\vec{B}\) at distance \(r\) from a long straight wire carrying current \(I\).

\(I\) \(r\) Loop: circle, radius r Length = \(2\pi r\)

Example 2: Inside a Thick Wire

A cylindrical wire of radius \(R\) carries total current \(I\) uniformly distributed. Find \(B\) at distance \(r < R\) from the center.

Wire radius R \(R\) \(r\) Amperian loop

\(B\) vs \(r\): Complete Picture

\(r\) \(B\) \(R\) \(r < R\) B grows linearly \(r > R\) \(B\) falls as \(1/r\) \(B_{\max}\) at \(r = R\)

Example 3: Ideal Solenoid

A solenoid has \(n\) turns per unit length carrying current \(I\). Find \(B\) inside.

Amperian loop length \(L\) \(\vec{B}\) (uniform) \(B = 0\) outside ideal solenoid

Solenoid: Key Insight

The remarkable result \(B = \mu_0 n I\) tells us that the field inside an ideal solenoid depends only on the turn density \(n\) and current \(I\): it is completely uniform and does not depend on position.

Inside
\(B = \mu_0 nI\): uniform, strong, parallel to axis.
Outside
\(B \approx 0\): field lines cancel for an ideal (infinite) solenoid.

Example 4: The Toroid

A toroid with \(N\) total turns and current \(I\). Find \(B\) at radius \(r\) inside the toroid.

\(r\) Amperian loop at radius r \(N\) turns carry current \(I\)

The Right-Hand Rule for Signs

When multiple currents pass through your Amperian loop, you must determine the sign of each. Curl your right hand in the direction you traverse the loop:

Positive \(I_{\text{enc}}\)
Current flows in the direction your thumb points: add it.
Negative \(I_{\text{enc}}\)
Current flows opposite your thumb: subtract it.

Common Mistakes

✕ Wrong loop shape
Choosing a loop where \(B\) is neither constant nor zero along each segment defeats the purpose of the law.
✕ Forgetting current signs
Using \(|I_{\text{enc}}|\) instead of the net signed current: currents in opposite directions partially cancel.
✕ Including outside current
Only current through the loop's bounded area counts. Current outside the loop does not contribute to \(I_{\text{enc}}\).

Summary of Key Results

Geometry Loop Shape Result
Long wire (outside) Circle radius \(r\) \(B = \dfrac{\mu_0 I}{2\pi r}\)
Thick wire (inside) Circle radius \(r < R\) \(B = \dfrac{\mu_0 I r}{2\pi R^2}\)
Ideal solenoid Rectangle \(B = \mu_0 n I\)
Toroid (inside) Circle radius \(r\) \(B = \dfrac{\mu_0 N I}{2\pi r}\)

Question 1 of 5

What does Ampère's law relate?

Question 2 of 5

A long straight wire carries current \(I = 5\) A. What is the magnetic field at \(r = 0.1\) m from the wire? (Use \(\mu_0 = 4\pi \times 10^{-7}\;\text{T·m/A}\).)

Question 3 of 5

Inside a long ideal solenoid with \(n\) turns per meter and current \(I\), the magnetic field \(B\) depends on which of the following?

Question 4 of 5

An Amperian loop encloses three wires: 5 A out of the page, 3 A out of the page, and 6 A into the page. What is \(I_{\text{enc}}\)?

Question 5 of 5

A thick cylindrical wire of radius \(R\) carries current \(I\) uniformly. At distance \(r = R/2\) from the center, how does \(B\) compare to \(B\) at the surface (\(r = R\))?