PHYSICS 2 • MAGNETISM

Ampère's Law — Use Ampère's law with symmetry

Exploit geometric symmetry to convert a vector integral into a simple algebraic equation for the magnetic field.

Historical Context & Motivation

The relationship between electric currents and magnetic fields was one of the great discoveries of the nineteenth century. In 1820, Hans Christian Ørsted noticed that a compass needle deflected when placed near a current-carrying wire, demonstrating that electricity and magnetism were intimately connected rather than independent phenomena. This observation triggered a flurry of theoretical and experimental work across Europe, as natural philosophers sought to quantify the magnetic field produced by arbitrary current distributions.

Among the most consequential contributions was that of André-Marie Ampère, a French mathematician and physicist who, within weeks of hearing about Ørsted's experiment, formulated a precise mathematical framework linking current to the circulation of the magnetic field. His insight would eventually be distilled into what we now call Ampère's law, one of the four Maxwell equations that govern all classical electromagnetism. The power of Ampère's law lies not just in its generality but in the fact that, for configurations possessing sufficient symmetry, it reduces a potentially intractable integral to straightforward algebra — much the way Gauss's law simplifies electric-field calculations for symmetric charge distributions.

1820
Ørsted's Discovery
Hans Christian Ørsted observes that a current-carrying wire deflects a nearby compass needle, revealing the connection between electricity and magnetism.
1820–1825
Ampère's Force Law
André-Marie Ampère develops a mathematical description of forces between current-carrying conductors and establishes the circuital relationship between current and the magnetic field.
1855
Maxwell's Formalization
James Clerk Maxwell recasts Ampère's result as a line integral around a closed loop, embedding it within his unified theory of electromagnetism.
1865
Maxwell's Equations Published
Maxwell publishes the complete set of equations, including the displacement-current correction to Ampère's law, predicting electromagnetic waves.

The central question this lesson addresses is: given a known current distribution, how do we exploit geometric symmetry to determine the magnetic field everywhere in space using Ampère's law? Understanding the conditions under which symmetry simplifies the problem — and recognizing when it does not — is essential for any serious study of electromagnetism.

Core Principles & Definitions

Ampère's law in its integral form states that the line integral of the magnetic field B around any closed path — called an Amperian loop — equals the permeability of free space μ₀ multiplied by the total current Ienc that threads through the surface bounded by that loop. The law is always true, but it is only useful for computing B when enough symmetry exists to pull B outside the integral. This mirrors the strategy you already know from Gauss's law, where a clever choice of Gaussian surface lets you extract E from the flux integral.

1

Amperian Loop

A closed mathematical path chosen so that the magnetic field is either constant in magnitude and tangent to the path, or perpendicular to it. The loop is not a physical object — it is a calculational tool analogous to a Gaussian surface.
2

Enclosed Current (I_enc)

The net current passing through any surface bounded by the Amperian loop. The sign is determined by the right-hand rule: curl the fingers of your right hand in the direction you traverse the loop, and your thumb points in the positive current direction.
3

Symmetry Requirement

Ampère's law yields B analytically only when the current distribution has sufficient symmetry — infinite straight-line, infinite planar, or solenoidal (cylindrical) symmetry — so that B is constant along the chosen loop.
4

Tangential vs. Perpendicular Segments

Segments of the Amperian loop where B is tangent contribute B·dl = B dl to the integral. Segments where B is perpendicular contribute zero, since B · dl = 0. Good loop choices maximize one type.
KEY TAKEAWAY
Think of Ampère's law like measuring the total water flow through a pipe by walking around its circumference with a flow meter. If the pipe is perfectly round and the flow is uniform, a single reading multiplied by the circumference tells you the total flow — you don't need to measure at every point. Symmetry lets you replace integration with multiplication: B × (loop length) = μ₀ I_enc.

Visual Explanation — Amperian Loops for Common Geometries

The diagram below shows the three canonical current geometries where Ampère's law is most powerful: an infinite straight wire, an infinite solenoid, and a toroid. In each case the Amperian loop (shown as a dashed contour) is chosen so that on the segments where B is nonzero, the field has constant magnitude and is everywhere tangent to the path. Study each geometry carefully: the choice of loop is the crux of every Ampère's-law problem.

Three canonical geometries. Left: a circular Amperian loop of radius r centered on an infinite wire. Center: a rectangular Amperian loop through the cross-section of an ideal solenoid. Right: a circular Amperian loop of radius r inside a toroid. Pink dots indicate current out of the page; pink crosses indicate current into the page.

In every panel the key observation is the same: along the dashed Amperian loop, the magnitude of B is constant, and the field is either tangent or perpendicular to each segment. For the infinite wire, the azimuthal symmetry of the current forces B to be purely tangential and uniform around any concentric circle. For the solenoid, translational symmetry along the axis and the cancellation of exterior fields mean only the interior horizontal segment of the rectangular loop contributes. For the toroid, rotational symmetry about the central axis again makes B constant on any concentric circle within the windings.

Mathematical Framework

We begin with the general integral form of Ampère's law and then show how symmetry reduces the left-hand side to a product. The key mathematical step is always the same: argue on physical grounds that |B| is constant along the loop and that B is tangent to dl, so that the dot product collapses to a scalar multiplication.

AMPÈRE'S LAW (INTEGRAL FORM)
∮ B⃗ · dl⃗ = μ₀ I_enc
B⃗ is the magnetic field, dl⃗ is an infinitesimal element of the closed path, μ₀ = 4π × 10⁻⁷ T·m/A is the permeability of free space, and Ienc is the total current threading the loop (sign from right-hand rule).

Case 1 — Infinite Straight Wire

Choose a circular Amperian loop of radius r centered on the wire. By symmetry, B is tangent to the circle and has the same magnitude at every point on it. Therefore B⃗ · dl⃗ = B dl everywhere on the loop, and the integral becomes B × (2πr). Setting this equal to μ₀I yields the result below.

MAGNETIC FIELD OF AN INFINITE WIRE
B = μ₀ I / (2πr)
B decreases inversely with distance r from the wire. The field wraps azimuthally around the current.

Case 2 — Ideal Solenoid

For an ideal (infinite, tightly wound) solenoid with n turns per unit length carrying current I, choose a rectangular Amperian loop of length l that spans one wall of the solenoid. The exterior field is negligible, and the two perpendicular sides contribute nothing because B ⊥ dl. Only the interior horizontal side of length l contributes Bl. The enclosed current is I times the number of turns inside the loop, which is nl turns, each carrying current I.

MAGNETIC FIELD INSIDE AN IDEAL SOLENOID
B = μ₀ n I
The field is uniform inside the solenoid and independent of position, depending only on the turn density n and the current I.

Case 3 — Toroid

A toroid is essentially a solenoid bent into a doughnut shape with N total turns. Choose a circular Amperian loop of radius r concentric with the toroid and lying inside the windings. By symmetry, B is tangent and constant on this loop, so the integral gives B × (2πr). The enclosed current is NI.

MAGNETIC FIELD INSIDE A TOROID
B = μ₀ N I / (2πr)
N is the total number of turns and r is the radial distance from the toroid's central axis. Note that B is not uniform inside the toroid — it decreases with r.

Choosing the Right Amperian Loop — A Strategy Guide

Selecting the optimal Amperian loop is the single most important skill in applying Ampère's law. A poor choice leads to an integral that cannot be simplified, rendering the law useless for finding B explicitly. The flowchart below summarizes the decision-making process, and the table that follows catalogs the standard geometries alongside their associated loop choices and field results.

Decision flowchart for selecting an Amperian loop. Start by identifying the symmetry of the current distribution. If no exploitable symmetry exists, Ampère's law cannot directly yield B, and the Biot–Savart law must be used instead.
Standard Ampère's-law geometries and their results
GeometrySymmetry TypeAmperian LoopResult for B
Infinite straight wireCylindricalConcentric circle (radius r)μ₀I / (2πr)
Infinite current sheet (surface current K)PlanarRectangle straddling the sheetμ₀K / 2
Ideal solenoid (n turns/m)Translational + rotationalRectangle spanning one wallμ₀nI (inside); 0 (outside)
Toroid (N total turns)Rotational about centerConcentric circle inside windingsμ₀NI / (2πr)
Coaxial cableCylindricalConcentric circle at various rDepends on region (see worked example)

Worked Example — Coaxial Cable

A long coaxial cable consists of an inner solid conductor of radius a = 2.0 mm carrying current I = 5.0 A uniformly distributed over its cross-section, and a thin outer cylindrical shell of radius b = 5.0 mm carrying current 5.0 A in the opposite direction. Find B at (i) r = 1.0 mm (inside the inner conductor), (ii) r = 3.0 mm (between the conductors), and (iii) r = 7.0 mm (outside the cable).

Coaxial Cable — Magnetic Field in Three Regions
1
Step 1 — Identify Symmetry and Choose the LoopThe coaxial cable has perfect cylindrical symmetry: the current distribution is invariant under rotation about the cable axis and under translation along it. Therefore B is purely azimuthal and depends only on the radial distance r from the axis. For each region, choose a circular Amperian loop of radius r concentric with the cable.
2
Step 2 — Write the Simplified Ampère's LawBecause B is constant in magnitude and tangent to the circular loop at every point, the line integral simplifies to:
∮ B⃗ · dl⃗ = B(2πr) = μ₀ Ienc
3
Step 3 — Region (i): r = 1.0 mm < aInside the inner conductor, the current is uniformly distributed. The fraction enclosed by a loop of radius r is the ratio of areas: Ienc = I × (r²/a²) = 5.0 × (1.0²/2.0²) = 5.0 × 0.25 = 1.25 A. Then B = μ₀Ienc / (2πr) = (4π × 10⁻⁷)(1.25) / (2π × 1.0 × 10⁻³).
B = 2.5 × 10⁻⁴ T = 0.25 mT
4
Step 4 — Region (ii): r = 3.0 mm, a < r < bBetween the conductors, the entire inner current I = 5.0 A is enclosed but none of the return current on the outer shell. Thus Ienc = 5.0 A. B = μ₀I / (2πr) = (4π × 10⁻⁷)(5.0) / (2π × 3.0 × 10⁻³).
B ≈ 3.33 × 10⁻⁴ T ≈ 0.33 mT
5
Step 5 — Region (iii): r = 7.0 mm > bOutside the cable, the Amperian loop encloses both the inner current (+5.0 A) and the outer return current (−5.0 A). The net enclosed current is Ienc = 5.0 − 5.0 = 0. This is a hallmark of coaxial cables: the external magnetic field vanishes, which is why they are used to shield signals from electromagnetic interference.
B = 0

Ampère's Law vs. the Biot–Savart Law

Students frequently wonder when to use Ampère's law and when to resort to the Biot–Savart law. The answer hinges on symmetry. Ampère's law is elegant and efficient when symmetry permits you to extract B from the integral, but it tells you nothing new when B varies along the loop in a complicated way. The Biot–Savart law, while more labor-intensive, works for arbitrary current distributions — including finite wires, circular loops, and irregular shapes.

Comparison of the two main tools for computing magnetic fields from steady currents
FeatureAmpère's LawBiot–Savart Law
Mathematical formLine integral of B around a closed loopVolume/line integral of dB contributions
Symmetry requirementEssential — loop must exploit symmetryNone — works for any current distribution
Ease of computationVery easy when symmetry is presentCan be algebraically intensive
Gives B direction?Direction inferred from symmetry argumentsYes — dB direction comes from cross product
Analogy with E-field lawAnalogous to Gauss's law for EAnalogous to Coulomb's law
KEY TAKEAWAY
Ampère's law and the Biot–Savart law are both always valid, but they differ in utility. Think of Ampère's law as a power tool that works brilliantly on standard lumber (high-symmetry problems) and the Biot–Savart law as a hand saw that can handle any shape, however slowly. An expert carpenter picks the right tool for the job — and so should you.

Connection to Maxwell's Equations and Beyond

The form of Ampère's law presented in this lesson applies only to magnetostatics — situations with steady (time-independent) currents. Maxwell discovered that when electric fields change with time, a term called the displacement current must be added. The generalized Ampère–Maxwell law reads ∮ B⃗ · dl⃗ = μ₀(Ienc + ε₀ dΦE/dt), where the second term accounts for the changing electric flux. This correction was crucial for predicting the existence of electromagnetic waves.

Magnetostatic Ampère's law vs. the full Ampère–Maxwell law
AspectAmpère's Law (Magnetostatics)Ampère–Maxwell Law (Full)
Right-hand sideμ₀ I_encμ₀ I_enc + μ₀ ε₀ dΦ_E/dt
ApplicabilitySteady currents onlyAll situations, including time-varying fields
Key consequenceRelates B to conduction currentPredicts electromagnetic waves
Differential form∇ × B⃗ = μ₀ J⃗∇ × B⃗ = μ₀ J⃗ + μ₀ ε₀ ∂E⃗/∂t

In your later studies of electromagnetic waves and radiation, the displacement current term will prove indispensable. For now, recognize that every symmetry argument and loop-selection strategy you learn here carries over directly to the full Ampère–Maxwell law; only the source term on the right-hand side changes. Mastering the magnetostatic version therefore provides the scaffolding for all of time-dependent electrodynamics.

Practice Problems

PROBLEM 1CONCEPTUAL
A student proposes using a square Amperian loop centered on an infinite straight wire. Explain why this loop, although valid, does not simplify the calculation of B. What property of the magnetic field on a square loop prevents B from being factored out of the integral?
PROBLEM 2BASIC CALCULATION
A long straight wire carries a current of 12 A. Calculate the magnetic field magnitude at a perpendicular distance of 4.0 cm from the wire. Use μ₀ = 4π × 10⁻⁷ T·m/A.
PROBLEM 3INTERMEDIATE
A solenoid of length 0.50 m has 800 turns and carries a current of 3.0 A. (a) Calculate the magnetic field inside the solenoid. (b) If the solenoid is then bent into a toroid with a mean radius of 0.10 m (keeping the same total turns and current), what is B at the mean radius? Compare the two results.
PROBLEM 4APPLIED
An underground power cable modeled as a long straight conductor carries 250 A. A safety regulation requires that the magnetic field at any publicly accessible point not exceed 100 μT. What is the minimum burial depth required? State your assumptions.
PROBLEM 5CRITICAL THINKING
A thick cylindrical conductor of radius R carries a total current I, but the current density varies as J(r) = J₀(r/R), where J₀ is a constant. (a) Determine J₀ in terms of I and R. (b) Derive an expression for B(r) for r < R. (c) At what fraction of R does B reach its maximum value inside the conductor?

Lesson Summary

Ampère's law states that the line integral of B⃗ around any closed Amperian loop equals μ₀ I_enc. The law becomes a powerful computational tool when the current distribution possesses cylindrical, planar, or solenoidal/toroidal symmetry, because these symmetries guarantee that B is constant in magnitude and either tangent or perpendicular to the loop, allowing the integral to collapse into simple algebra.

The three essential results are: B = μ₀I/(2πr) for an infinite wire, B = μ₀nI inside an ideal solenoid, and B = μ₀NI/(2πr) inside a toroid. When symmetry is absent, the Biot–Savart law must be used instead. Looking ahead, Maxwell's addition of the displacement current extends Ampère's law to time-varying fields, ultimately predicting electromagnetic waves — but every symmetry technique you have learned here carries directly into that generalized framework.

Varsity Tutors • Physics 2 • Ampère's Law — Use Ampère's law with symmetry