1.8.23 · D3Electromagnetism

Worked examples — Ampere's circuital law — magnetostatic form

2,426 words11 min readBack to topic

This is a companion to the parent note. Here we do not learn what the law is again — we stress-test it. We march through every kind of situation a problem can hand you: currents pointing one way, then the other; loops that enclose the current, then loops that don't; the field right at the centre (), far away (), and at the exact boundary of a wire; a real-world cable; and an exam trap with two nested currents.

Before any symbols appear: let me name the few we reuse everywhere, in plain words.


The scenario matrix

Every Ampère's-law problem lives in one of these cells. The goal of this page is to leave no cell untouched.

Cell What makes it special Covered by
A. Sign / direction current up vs. down; does circulation flip sign? Ex 1
B. Loop encloses current full turn, Ex 1, 2
C. Loop does NOT enclose angle returns, , circulation Ex 3
D. Degenerate: point on axis limit, is finite? Ex 4
E. Boundary case thick wire exactly at , inside-formula meets outside-formula Ex 4
F. Limiting: far field , Ex 4
G. Cancellation trap two opposite currents, net but Ex 5
H. Real-world word problem coaxial cable, current inside + return outside Ex 6
I. Exam twist: nested sheets/solenoid superposition of two enclosed currents Ex 7

Example 1 — Sign & direction (Cell A, B)

Figure — Ampere's circuital law — magnetostatic form
Recall Forecast

Guess: does reversing the current flip the sign of the circulation, or the magnitude, or both?

Steps (a):

  1. The right-hand rule: point your thumb out of the page (current direction), fingers curl counter-clockwise. Why this step? This tells us points along our chosen walk direction, so every term is positive.
  2. Apply the law directly: . Why this step? The loop encloses the full current (Cell B), so .
  3. Compute: .

Steps (b): 4. Current now into the page. By the sign convention, current piercing the surface against the loop's right-hand normal is counted negative: . Why this step? The right-hand rule for the loop (walk counter-clockwise ⇒ normal points out of page) now disagrees with the current's direction. 5. So — same magnitude, opposite sign.


Example 2 — Loop encloses current, non-circular shape (Cell B)

Recall Forecast

Does the strange shape change the answer? Guess before reading.

Steps:

  1. Recall from the parent's Step 3: in polar coordinates . Why this step? has no radial component, so only the angular sweep survives — the shape of the path is irrelevant, only how much angle it sweeps.
  2. A loop that wraps once around the wire sweeps . Why this step? You return to your starting angle after exactly one full turn.
  3. Therefore .

Example 3 — Loop does NOT enclose the wire (Cell C)

Figure — Ampere's circuital law — magnetostatic form
Recall Forecast

Guess two things: (1) the circulation value, (2) whether on the loop.

Steps:

  1. : no current pierces any surface bounded by . Why this step? The wire is outside — you can stretch a surface across that the wire never punctures.
  2. Therefore .
  3. But on the loop! Look at the figure: near the wire is strong, and it threads into the loop on the near edge and out on the far edge. Why this step? The positive contributions (where points along the walk) exactly cancel the negative ones — this is Cell G's flavour but with a single external wire.

Example 4 — Degenerate, boundary & limiting behaviour (Cells D, E, F)

Figure — Ampere's circuital law — magnetostatic form
Recall Forecast

Sketch vs in your head. Where is biggest? Is it finite on the axis?

Steps (D) — axis, :

  1. Inside formula (parent Ex 2): . Why this step? Only the current inside radius threads the loop, and that fraction is .
  2. Set : . Why this step? No current is enclosed by a zero-radius loop — so the field on the axis is exactly zero, finite and well-behaved. (Contrast: a thin wire would blow up, but real wires don't.)

Steps (E) — surface, from both sides: 3. From inside: . 4. From outside: (full current enclosed). Why this step? At the boundary both formulas must agree — the field is continuous, no sudden jump. Plug : . This is the maximum — the peak of the graph.

Steps (F) — far field, : 5. Outside: . At : . 6. As , . Why this step? The decay means the field fades but never abruptly stops — consistent with an infinite straight wire.


Example 5 — The cancellation trap (Cell G)

Figure — Ampere's circuital law — magnetostatic form
Recall Forecast

Net enclosed current is zero — so is the field zero? Careful.

Steps:

  1. . Why this step? Out-of-page counts positive (right-hand normal), into-page negative; they cancel in the sum.
  2. .
  3. Yet anywhere on the loop: each wire produces its own circular field, and at a general point these two fields do not cancel (they point in different directions with different magnitudes). Why this step? The law constrains the integral, not the pointwise field.

Example 6 — Real-world word problem: coaxial cable (Cell H)

Figure — Ampere's circuital law — magnetostatic form
Recall Forecast

Why do we shield cables this way? Guess the field outside the cable before computing.

Steps (i) — between conductors, :

  1. Loop of radius encloses only the inner conductor: . Why this step? The return current at is outside this loop, so it doesn't count.
  2. .

Steps (ii) — outside everything, : 3. Loop now encloses both currents: . Why this step? The go and return currents are both inside — they cancel. 4. .


Example 7 — Exam twist: nested current sheets / solenoid superposition (Cell I)

Figure — Ampere's circuital law — magnetostatic form
Recall Forecast

Inside the innermost region, both solenoids contribute. Will the fields add or subtract?

Steps (a) — deep inside the inner solenoid:

  1. Each solenoid alone gives inside it (parent Ex 3). Why this step? The rectangular Amperian loop picks up and .
  2. By superposition, both fields are present in the inner region; they point oppositely, so subtract: . Why this step? The full field is the vector sum; opposite windings mean opposite signs.
  3. .

Steps (b) — in the gap (outside inner, inside outer): 4. Here only the outer solenoid's field is present (the inner solenoid's field is ~zero outside itself). , pointing the outer solenoid's way. Why this step? An Amperian loop in the gap encloses only outer-solenoid turns.


Wrap-up

Recall Which cell did each example cover?

Ex 1 :::: A (sign) + B (encloses) Ex 2 :::: B (shape-independence) Ex 3 :::: C (no enclosure, , ) Ex 4 :::: D (axis ) + E (boundary ) + F (far field) Ex 5 :::: G (cancellation trap) Ex 6 :::: H (real-world coax) Ex 7 :::: I (nested solenoid superposition)

Related: Biot–Savart law · Solenoid and toroid fields · Gauss's law for magnetism · Stokes' theorem · Displacement current · Maxwell's equations.