1.8.24 · D2Electromagnetism

Visual walkthrough — Magnetic field of straight wire, circular loop, solenoid, toroid

2,340 words11 min readBack to topic

Step 1 — Chop the wire into tiny straight pieces

WHAT. We take a flat circular loop of wire, radius , carrying a current (charge flowing round the ring). We slice the wire into countless tiny segments. One such segment is a short straight arrow we call .

WHY. A curved wire is hard to reason about all at once. But a piece so short that it looks straight is easy: the Biot–Savart law tells us the field of one straight current piece. If we can find the field of one piece, we just add up all the pieces. That "add up infinitely many tiny things" is exactly what the integral sign will mean.

PICTURE. Look at the green loop. The thick green arrow is one segment — it points along the current (the way the charge is travelling at that spot). We want the field at the red point , which sits on the axis — the line through the loop's centre, perpendicular to the loop's plane — a distance from the centre.

Figure — Magnetic field of straight wire, circular loop, solenoid, toroid

Step 2 — Why Biot–Savart and not Ampère

WHAT. We recall the Biot–Savart law: the tiny field from one tiny piece is

WHY. Read the formula slowly, term by term, right where each symbol lives:

  • — the tiny field contribution from this one segment.
  • — a fixed constant of nature that sets the strength ().
  • — "how much current, times how long the piece is": a bigger, longer, stronger piece pushes a bigger field.
  • — a unit-length arrow pointing from the segment to the field point . It tells us which direction lies.
  • in the bottom — field weakens as the square of distance, just like gravity or Coulomb's law.
  • — the cross product. This is the key: it says points perpendicular to both the wire piece and the line to . Magnetic field wraps around current, it does not point straight at .

Why not Ampere's Law? Ampère only helps when you can find a loop on which has the same value everywhere, so you can factor it out. On the axis of a coil there is no such loop — the field strength changes from point to point with no clean symmetry to exploit. So we are forced to add the pieces up by hand. That is what Biot–Savart is for.

PICTURE. The figure shows one segment, the vector reaching to , and the resulting sticking out perpendicular to the plane containing and . Notice is tilted — it is not along the axis.

Figure — Magnetic field of straight wire, circular loop, solenoid, toroid

Step 3 — The distance is the same for every piece

WHAT. Every segment of the ring sits at the same slant-distance from :

WHY. Picture a right triangle. One leg is (from the centre out to the wire), the other leg is (from the centre along the axis to ). The hypotenuse — the straight line from the wire to — is the slant distance . Pythagoras gives . Because the point is on the axis (dead centre), every piece of the ring is exactly this far away. So is a constant as we go round the loop — a huge simplification.

  • — the "outward" leg squared.
  • — the "along-axis" leg squared.
  • their sum's square root — the honest straight-line distance.

PICTURE. The blue right triangle: legs and , hypotenuse . Spin the segment around the ring and the triangle just rotates — never changes.

Figure — Magnetic field of straight wire, circular loop, solenoid, toroid

Step 4 — Each piece's field: the size, before the direction

WHAT. For our segment, the wire piece is perpendicular to (the wire runs around the ring, while heads straight toward ). A cross product of two perpendicular directions has size equal to the product of the lengths, so . Hence the magnitude of the tiny field is

WHY. We substituted from Step 3 into the bottom, and used that the cross product's size is just (because the angle between and is , whose sine is ).

  • top — strength times current times piece-length.
  • bottom — the constant and the distance-squared.

This is the length of the tilted arrow. Now we deal with its direction.

PICTURE. The right angle between the green wire arrow and the yellow arrow is marked with a small square. The resulting has length and lies in the plane containing the axis and .

Figure — Magnetic field of straight wire, circular loop, solenoid, toroid

Step 5 — The great cancellation: only the axial part survives

WHAT. Split each tilted into two pieces: one along the axis (call it ) and one perpendicular to the axis (call it ). Now pair up the segment with the one directly opposite it across the ring. Their perpendicular parts point in exactly opposite directions and cancel to zero. Their axial parts point the same way and add.

WHY. This is the whole trick, and it is pure symmetry. For every piece pushing its "up", the piece on the far side of the ring pushes an equal "down". Sum over the whole ring: all sideways parts kill each other. Only the along-axis parts pile up. So we may throw away entirely and keep only where is the tilt angle of away from the axis.

The angle is the same as the angle at in our triangle, and from the triangle

  • — "how much of the tilted arrow lies along the axis" ( = fully axial, = fully sideways).
  • on top — the outward leg; the hypotenuse. This ratio is opposite-over-hypotenuse from 's corner, which is precisely the fraction pointing axially.

PICTURE. Two opposite segments, their two tilted arrows, and the dashed sideways components pointing in opposite directions (they annihilate). The solid axial components both point the same way along the axis.

Figure — Magnetic field of straight wire, circular loop, solenoid, toroid

Step 6 — Add up all the pieces (the integral)

WHAT. Every axial contribution has the same size (same , same everywhere on the ring), so summing is easy:

WHY. We pulled the constant factors — everything except — outside the sum, because they do not change as we walk around the loop. Then just means "add up all the tiny lengths around the ring" = the total circumference .

  • The appeared because gave one power and gave a factor — multiply: .

Substitute :

  • — strength × current.
  • on top — one from , one from the circumference.
  • in the bottom — the became after the from circumference cancelled.
  • — the distance dependence: field dies off along the axis.

PICTURE. All axial arrows around the full ring, stacked head-to-tail into one big red axial arrow at — the total field.

Figure — Magnetic field of straight wire, circular loop, solenoid, toroid

Step 7 — Edge case: the field right at the centre

WHAT. Put (the point sits at the centre of the loop):

WHY. At the centre there is no tilt at all — every piece's already points straight along the axis (, ). The formula must reflect this, and it does: setting collapses to , leaving the clean . Smaller loops (small ) give stronger centre fields — the current is closer.

PICTURE. At the centre, all the tiny arrows fan out but each already lies flat along the axis; no cancellation is even needed here.

Figure — Magnetic field of straight wire, circular loop, solenoid, toroid

Step 8 — Limiting case: very far away

WHAT. When is far along the axis, , so is negligible next to :

WHY. Drop the tiny inside the bracket: . The field now dies as — the hallmark of a magnetic dipole. From far away a current loop is indistinguishable from a tiny bar magnet. The quantity (up to a factor ) is the loop's magnetic moment — its "dipole strength".

PICTURE. A curve of versus : tall and finite at the centre, sagging, and trailing off like far out — with the exact curve and its far-field approximation drawn together.

Figure — Magnetic field of straight wire, circular loop, solenoid, toroid

The one-picture summary

Figure — Magnetic field of straight wire, circular loop, solenoid, toroid

The whole derivation on one canvas: chop the loop (Step 1) → one tilted per piece via Biot–Savart (Step 2) → same slant distance for all (Step 3) → sideways parts cancel, axial parts survive (Step 5) → sum the axial parts over the circumference (Step 6) → the boxed answer, with its centre and far-field faces (Steps 7–8).

Recall Feynman retelling — say it to a friend

We wanted the magnetic "swirl" strength at a point sitting on the line poking through the middle of a current ring. We couldn't use the easy shortcut (Ampère) because there's no nice symmetric path here, so we did it the honest way: cut the ring into a million little current-arrows. Each little arrow makes a little magnetic arrow, and — this is the neat part — because the point is dead-centre on the axis, every little current-arrow is the same distance away. Each little magnetic arrow is tilted, so we split it into an "along-the-axis" part and a "sideways" part. Pair each arrow with the one directly across the ring: their sideways parts point opposite and wipe each other out, while their along-axis parts team up. So we only ever needed to add up the axis parts — and since they're all identical, adding them up is just "one piece times the circumference ." Do the bookkeeping and out drops . Stand at the centre and it becomes ; stand far away and the ring looks like a tiny bar magnet fading as .

Recall

Why must we use Biot–Savart, not Ampère, for the loop's axis? ::: There is no closed path on which is constant, so cannot be pulled out of Ampère's integral — we must add contributions directly. On the axis, why is the same for every wire segment? ::: Because is on the axis: every segment sits one leg out and one leg along, forming congruent right triangles. Which components of cancel and why? ::: The perpendicular-to-axis parts; the diametrically opposite segment supplies an equal and opposite perpendicular part. What does evaluate to and why can constants leave the integral? ::: (the circumference); the other factors are identical for every segment, so they are constant round the loop. Field at the centre of the loop ::: Far-field fall-off of an axial loop field ::: (dipole behaviour)


Related tools and where this leads: Biot-Savart Law · Ampere's Law · Bar magnet and magnetic dipole · Magnetic force on a current-carrying conductor · Magnetic flux · Faraday's law of induction.