1.8.24 · D4Electromagnetism

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

3,773 words17 min readBack to topic

Quick symbol reminder before we start:

  • = current, in amperes (A) — how much charge flows per second. It has a direction (the way the charge flows), so it is really a little arrow along the wire, written or when we care about that direction.
  • = magnetic field strength, in tesla (T). This is also a vector — an arrow with a size and a heading. Every answer below has a magnitude (the number) and a direction (from a right-hand rule); reporting only the number is half an answer.
  • = perpendicular distance from a straight wire, in metres.
  • = radius of a circular loop; = distance along its axis from the centre.
  • = radius of a cylindrical rod (used when we wind wire onto it); measured in metres.
  • = radius of a thick solid wire (its whole cross-section carries current).
  • = turns per metre (how tightly packed the loops are).
  • = total number of turns of wire.

The four workhorse formulas we will lean on:


Level 1 — Recognition

(Can you pick the right formula and plug in?)

Problem 1.1 — Straight wire

A long straight wire carries . Find the magnetic field at a perpendicular distance from it.

Recall Solution 1.1

WHAT tool: infinite straight wire → (Ampère's law result, chosen because the wire has circular symmetry). WHY: we are given current and distance only — this is the textbook straight-wire case. Convert . Direction: grip rule — field circles the wire. Answer: .

Problem 1.2 — Loop centre

A single circular loop of radius carries . Find the field at its centre.

Recall Solution 1.2

WHAT tool: — the centre-of-loop special case (). WHY: field is asked at the exact centre, so we do not need the full axial formula. . Direction: right-hand curl rule — thumb along the axis gives perpendicular to the loop plane. Answer: .

Problem 1.3 — Solenoid

A solenoid has turns per metre and carries . Find the field deep inside.

Recall Solution 1.3

WHAT tool: — "naked" formula, no radius needed. WHY: "deep inside a long solenoid" is exactly where the ideal formula applies. Direction: along the axis, sense given by curling fingers with the current. Answer: .


Level 2 — Application

Problem 2.1 — Loop on axis

A loop of radius carries . Find the field on the axis at from the centre. Compare it to the centre value.

Recall Solution 2.1

WHAT tool: — the full axial formula (Biot–Savart). WHY this tool: the field point sits off the centre (), so the simple centre formula no longer applies. And why can't Ampère's law shortcut it? Ampère's law only hands you when you can find a closed path along which has the same magnitude everywhere and points along the path — then . On the axis of a single loop, the field magnitude changes from point to point and the field lines curve away from any circle or line you might draw, so no such "nice" path exists. The equation is still true, it just can't be solved for . So we fall back to integrating Biot–Savart element by element. Look at the figure below: only the axial (green) components of each element's field survive; the sideways parts cancel in pairs.

Figure — Magnetic field of straight wire, circular loop, solenoid, toroid
Figure s01 — Loop seen edge-on. Each current element makes a tilted (butter arrows); diametrically opposite elements cancel the perpendicular parts, leaving only the green axial field.

Here , so and . Now . Centre value: . Ratio: . Direction: the surviving field (the green axial arrow in Figure s01) points along the axis, its sense set by the right-hand curl rule — curl your fingers with the loop's current, and your thumb gives the direction of along the axis (the same direction as at the centre, just weaker). Answer: directed along the axis, about 35% of the centre value.

Problem 2.2 — Toroid

A toroid has turns and carries . Its core has mean radius . Find the field along the mean circle.

Recall Solution 2.2

WHAT tool: (Ampère's law, circular symmetry inside the doughnut). WHY: the field inside a toroid depends on ; along the mean circle we use the mean radius. WHY cancel the : the same factor appears in both the top and the bottom of the fraction, so it divides out to — a shared factor top-and-bottom never changes the value, it just makes the arithmetic cleaner. What remains is a plain division: Direction: the field runs circularly inside the core, sense set by curling fingers with the winding current. Answer: .

Problem 2.3 — Solenoid end

The solenoid of Problem 1.3 (, ) is very long. Assume it is semi-infinite — i.e. so long compared with its width that from the mouth it looks like it stretches away to infinity on one side. Find the field right at its open end.

Recall Solution 2.3

First, the idealization warning. The clean result is exact only for an ideal semi-infinite solenoid — infinitely long on one side, thin walls, tightly wound. A real finite solenoid's end field lies close to but not exactly half of : near the middle of a long-but-finite coil the field is , and it tapers down to roughly one-half at each mouth, then keeps decreasing outside. So use "half at the end" as an excellent estimate for a coil that is much longer than it is wide, and expect small corrections for stubby coils. WHAT tool: at the end of a semi-infinite solenoid, — exactly half the deep-inside value. WHY exactly half (short derivation): think of a solenoid as a stack of current loops. Deep inside, loops extend to both sides of the field point, and their axial contributions add up to . Model this as an integral of loop-fields over all angles: an infinite solenoid collects contributions from to (loops on both sides), giving the full . At the open mouth of a semi-infinite solenoid, the winding only exists on one side of the field point, so the integral runs over just half the angular range ( to ). By the symmetry of that integral, each half contributes equally, so the end value is precisely . Answer: .


Level 3 — Analysis

Problem 3.1 — Finite wire at its perpendicular foot

A straight wire of length carries . Find the field at a point a perpendicular distance from the wire's midpoint, given .

Recall Solution 3.1

WHAT tool: finite-wire Biot–Savart result , where are the angles each wire end subtends measured from the perpendicular foot. WHY this tool (not the shortcut): the formula assumes an infinite wire so that Ampère's law can pull out of a circular loop. A finite wire breaks that symmetry (the two ends are at finite angles), so we must go back to Biot–Savart and integrate each element's contribution — the integral yields the factor, which is derived in full in the parent note. Setting both angles to recovers the infinite-wire result, confirming the two agree in the limit. Look at the geometry figure:

Figure — Magnetic field of straight wire, circular loop, solenoid, toroid
Figure s02 — The finite wire (lavender) carries current . From the field point P at perpendicular distance , each end subtends an angle (, ) measured from the perpendicular foot (dashed line).

Tying the algebra to the figure: in Figure s02, the dashed line of length is the perpendicular from P to the wire; the far end sits a distance along the wire from that foot. Those two legs ( across, along) form a right triangle whose hypotenuse is , the straight-line distance from P to the wire's end. The angle in the formula is the angle at P between the perpendicular and that hypotenuse, so its sine = opposite / hypotenuse = — this is exactly the the Biot–Savart integral asks for. Because P sits opposite the midpoint, the triangle on the left mirrors the one on the right, so . Answer: . Notice it is less than the infinite-wire value , because a finite wire has fewer current elements contributing. ✓

Problem 3.2 — Two parallel wires

Two long parallel wires are apart. Wire A carries , wire B carries in the same direction. Find the net field at the midpoint between them.

Recall Solution 3.2

WHAT tool: superposition — add each wire's field vectorially. At the midpoint, each wire is away. WHY vectors matter: for currents in the same direction, at the midpoint the two fields point in opposite directions (grip rule), so they subtract. Opposite directions → net magnitude: Answer: , directed the way the stronger wire (B) dictates. (See Magnetic force on a current-carrying conductor for what this net field then does to a third wire.)


Level 4 — Synthesis

Problem 4.1 — Solenoid from a fixed length of wire

You have of wire and wind it tightly (turns touching) as a single layer onto a rod of radius , making a solenoid of length . If the current is , find inside.

Recall Solution 4.1

Step 1 — WHAT/WHY find : each turn is one circumference of the rod, length . So the number of turns is total wire length ÷ circumference: Step 2 — WHAT/WHY turns per metre: the solenoid formula needs = turns packed per metre of length, so divide the turn count by the coil length : Step 3 — field: now apply : Answer: . Insight: the rod radius entered only through how many turns fit — it does not appear in the final . Radius affects , not the field-per-turn.

Problem 4.2 — Loop field equals wire field

A long straight wire and a separate single circular loop each carry the same current . At what axial distance from the loop's centre does the loop's axial field equal the straight wire's field measured at a distance (the loop radius)?

Recall Solution 4.2

Set up the equation (this is the synthesis: two different formulas set equal): Cancel from both sides: Cross-multiply: , i.e. . Raise both sides to the power: Numerically , so . Answer: — just past one radius out along the axis.


Level 5 — Mastery

Problem 5.1 — Non-uniformity across a toroid core

A toroid has turns, current , inner radius and outer radius . (a) Find at the inner and outer edges. (b) By what percentage does the field vary across the core?

Recall Solution 5.1

(a) WHAT tool: , evaluated at each radius (field is not uniform — it falls as ). First simplify the common numerator. . Dividing by gives . So . (b) Percentage variation (relative to the inner, larger value): Answer: inner , outer ; field drops about 28.6% across the core.

Problem 5.2 — Ampère's law with distributed current (inside AND outside a thick wire)

A solid cylindrical wire of radius carries a uniformly distributed total current . Find at (a) (inside the conductor) and (b) (outside the conductor).

Recall Solution 5.2

WHY Ampère's law: cylindrical symmetry lets leave the integral, so . The twist is that inside the wire only part of the current is enclosed.

Look at the figure — the enclosed current grows with the area of the Amperian circle:

Figure — Magnetic field of straight wire, circular loop, solenoid, toroid
Figure s03 — Cross-section of the thick wire (lavender disc, radius ). The inner mint loop () encloses only the current in its area; the outer coral loop () encloses the full current .

(a) Inside (): current density is uniform, so enclosed current scales as the area ratio: At , :

(b) Outside (): now the whole current threads the loop, , so we recover the ordinary straight-wire formula: At :

Answer: both give . This numeric coincidence happens because and were chosen to land on the same value. In general, inside (rising linearly from zero at the centre), and outside (falling), with the maximum at the surface : there .


Related tools you leaned on: Biot-Savart Law, Ampere's Law, Magnetic force on a current-carrying conductor. For where these fields go next (changing flux → EMF), see Magnetic flux and Faraday's law of induction.