Electromagnetism

The loop that behaves like a needle

Far enough away, a current going round in a circle is indistinguishable from a bar magnet, and one number describes both. That number tells a uniform field how to turn the loop and gives it no way to pull on it at all — which is why two magnets attract by the fourth power of the distance and not the second.

Assumes: The field with no ends, and the force that does no work · The force that does no work

A compass needle in the Earth’s field turns to point north and then stays where it is. It does not drift north. A fridge magnet, on the other hand, is pulled hard toward the fridge. Both are magnets in magnetic fields, and only one of them experiences a force — a difference that is not about the magnets at all.

A torque, and no force at all. A loop of 1 turn enclosing 20 cm² and carrying 10 A has a magnetic moment of 0.02 A m². In a uniform field of 0.05 T the torque on it is m B sin θ, drawn here against the angle between the moment and the field: zero when they are aligned, largest at 0.001 N m across, and zero again when they are opposed. The second curve is the energy, −m·B, whose minimum is the aligned position and whose maximum is the opposed one — which is why a compass needle settles one way round and not the other. The net force is zero at every angle on this axis, exactly and not approximately: the force is I dl × B summed round the loop, the sum of dl round any closed path is zero, and a constant B comes outside the sum. The inset shows the four forces on a rectangular loop; the pair across the axis is the couple, and the pair along it cancels.
Fig. 1 The torque on a current loop in a uniform field, and the energy that goes with it, against the angle between the loop’s magnetic moment and the field. The torque is m B sin θ — zero when aligned, largest across, zero again when opposed — and the energy is −m·B, with its minimum at the aligned position, which is why a needle settles one way round rather than the other. The net force is zero at every angle on that axis, and exactly zero, for the reason drawn in the inset.

One number for a loop of any shape

Take a flat loop of wire carrying current II and enclosing area AA. Its magnetic moment is

m=NIAn^,\mathbf{m} = N I A \,\hat{\mathbf{n}},

with NN the number of turns and n^\hat{\mathbf{n}} the normal fixed by the right-hand rule from the direction of the current. Three vectors have collapsed into one: the shape of the loop has gone, the material has gone, and what is left is an area times a current pointing along an axis.

The collapse is not an approximation of the near field, which depends on the shape in every detail. It is a statement about the far field, and it comes out of the multipole expansion: at distance rr much larger than the loop, the leading term of the vector potential depends on the loop only through r×dl\oint \mathbf{r}' \times d\mathbf{l}', which is twice the enclosed area vector. Two loops of quite different outline but the same IAIA produce the same field far away, to leading order, and there is no measurement at a distance that could tell them apart. It is the same collapse that lets a whole charge distribution be replaced by its total as soon as the enclosing surface is symmetric enough.

The field of a current loop, seen edge on. Magnetic field lines integrated from the Biot–Savart law for the current shown. Every line closes on itself: there is nowhere for one to start and nowhere for it to end, because no magnetic charge exists to end on.
Fig. 2 The field of a loop, traced from the currents rather than sketched. Close in, the lines are wrapped round the two wire cross-sections and the picture is obviously about a loop. Step back and the pattern is a dipole’s — and the whole content of the moment is that the second description becomes exact as the first becomes irrelevant.

An electric dipole’s field lines are the same pattern, and that is the fact the word “dipole” is doing. Two systems with entirely different insides — a pair of separated charges and a circulating current — produce the identical field at a distance, so “dipole” names a far-field shape rather than a construction. It is a statement about what survives at range, and it deliberately says nothing about what is there.

How far away is far enough

“Far enough” is doing work in every sentence above, and it is the kind of phrase this site is obliged to put a number on.

On the axis of a circular loop of radius aa, the exact field is

Bexact(z)=μ0Ia22(a2+z2)3/2,B_{\text{exact}}(z) = \frac{\mu_0 I a^2}{2\,(a^2 + z^2)^{3/2}},

and the ideal point dipole of the same moment gives Bdipole(z)=μ0m/2πz3B_{\text{dipole}}(z) = \mu_0 m / 2\pi z^3 with m=Iπa2m = I\pi a^2. Their ratio is (1+(a/z)2)3/2(1 + (a/z)^2)^{-3/2}, which approaches one algebraically — as 13a2/2z21 - 3a^2/2z^2 — rather than exponentially.

How far away a loop stops being a loop. The on-axis field of a circular loop of radius 25 mm carrying 10 A, as a percentage below the field of an ideal point dipole of the same moment. The exact expression and the dipole one agree only in the limit, and the approach is a power of the distance rather than an exponential, so it is slow: the loop is still 28% low at twice its own radius and 5.7% low at five times. It comes within 1% at 12.2 radii — 305 mm for this loop — and within 0.1% at 39. That is what being seen from far enough away costs, and it is the reason a magnet's field is quoted as a dipole's while anything measured close to one is not.
Fig. 3 How far below the dipole value the real loop is, against distance in units of its own radius. At two radii it is 28% low; at five, 5.7%; and it reaches one per cent only at 12.2 radii, which for a 25 mm loop is 305 mm. A power law converges slowly, and the phrase “a small loop is a dipole” quietly means a loop smaller than a tenth of the distance to wherever the field is being measured.

That slowness has a practical face. A Helmholtz pair, a loudspeaker motor and an MRI gradient coil are all specified by how much their field departs from an ideal over a working volume, and the departures are all this curve seen from a different angle.

It also settles a question of vocabulary that is otherwise a matter of taste. Calling something a dipole is not a claim about its size; it is a claim about the ratio of its size to the distance at which it is being described. The Earth is a dipole to a compass needle and is emphatically not one to a satellite in low orbit, whose altitude is a twentieth of the planet’s radius and which flies through a field with several higher terms in it. The same object is a dipole and not a dipole depending only on where the question is asked from.

Where the moment comes from

The expression m=IAm = IA says nothing about what is going round, and putting a particle into it turns the moment into a statement about angular momentum — which is the connection the rest of atomic magnetism is built on.

Take one charge qq of mass MM going round a circle of radius rr at speed vv. It passes any point v/2πrv/2\pi r times a second, so the current is qv/2πrqv/2\pi r; the area is πr2\pi r^2; and the moment is

m=qv2πrπr2=qvr2=q2ML,m = \frac{qv}{2\pi r}\,\pi r^2 = \frac{qvr}{2} = \frac{q}{2M}\,L,

with L=MvrL = Mvr the angular momentum. Every geometric detail has cancelled. A moment and an angular momentum are the same quantity in different units, related by a ratio built from the charge and the mass alone.

That is where the natural unit comes from. Put in an electron’s charge and mass, and one unit of angular momentum — \hbar — gives e/2Me=9.274×1024e\hbar/2M_e = 9.274\times10^{-24} A m², the Bohr magneton, which is the number the alignment-energy comparison above uses. Nothing was measured to get it: it is two constants and a quantum of angular momentum.

And it is where the picture visibly runs out. An electron’s spin is half a unit of angular momentum and produces a moment of one whole Bohr magneton rather than a half — the ratio is twice what any circulating current can give. No arrangement of charge going round in circles produces that factor, which is the first hard evidence that spin is not a rotation of anything.

The experiment that made the connection physical rather than formal is worth recording. Suspend an iron cylinder on a fine fibre and magnetise it: aligning the moments inside must align their angular momenta too, and since the cylinder was not rotating before, it has to rotate the other way to keep the total at zero. It does, by a tiny and measurable amount, and the size of the rotation returns the ratio of moment to angular momentum for whatever is doing the magnetising. The answer came back at roughly twice the orbital value — the same factor of two, arrived at by hanging a lump of iron on a thread.

A torque, and no force whatever

The force on a current-carrying element is Idl×BI\,d\mathbf{l} \times \mathbf{B}. Summing round a closed loop in a uniform field,

F=Idl×B=I(dl)×B=0,\mathbf{F} = I \oint d\mathbf{l} \times \mathbf{B} = I\left(\oint d\mathbf{l}\right) \times \mathbf{B} = \mathbf{0},

because dl\oint d\mathbf{l} is the sum of the displacement vectors round a closed path, and a closed path returns to where it started. The result is exact, holds for any shape of loop, and does not depend on the angle. A uniform field cannot pull on a magnet.

The moments do not cancel, because the forces do not share a line of action. For a rectangular loop with two sides across the field and two along it, the two along contribute nothing and the two across carry equal and opposite forces separated by the width — a couple, of magnitude

τ=m×B,\boldsymbol{\tau} = \mathbf{m} \times \mathbf{B},

whose size is mBsinθmB\sin\theta and whose associated energy is U=mBU = -\mathbf{m}\cdot\mathbf{B}.

A couple in its plainest form is two equal and opposite forces whose lines do not coincide, so their moments add instead of cancelling. Its magnitude depends on the separation between the lines and not on where the origin is put — which is why a loop in a uniform field feels a torque with no net force, and why that torque is the same about every point.

So a compass needle turns and stays put, which is the observation the essay opened with. The Earth’s field is very nearly uniform over the size of a needle — its gradient is about 3 × 10⁻¹¹ T per metre, so across 30 mm the field changes by one part in ten million — and the residual force is far below the pivot’s friction.

Where a force comes from, then

A magnet is pulled to a fridge because the fridge’s field is not uniform. Expanding to the next order, the net force on a dipole is

F=(mB),\mathbf{F} = \nabla(\mathbf{m}\cdot\mathbf{B}),

which is a gradient, and therefore zero whenever B\mathbf{B} is the same everywhere. Magnetic attraction is a second-order effect in a sense that can be stated precisely: it needs the field to vary over the size of the object, and it vanishes to the extent that it does not.

A Stern–Gerlach analyser deflects magnetic moments by putting them through a deliberately non-uniform field, and the whole apparatus is built on the fact that a uniform one would do nothing at all. That is where a force comes from: not from the field but from its gradient, and an instrument that wants to move moments rather than turn them has to be designed around producing one.

Now take the second dipole to be another magnet. Its field falls as 1/r31/r^3, so its gradient falls as 1/r41/r^4, and the force between two aligned dipoles is

F=3μ02πm1m2r4.F = \frac{3\mu_0}{2\pi}\frac{m_1 m_2}{r^4}.

A point source gives an exponent of 2-2 and a dipole gives 3-3, because two nearly cancelling contributions leave only their difference — and a difference falls one power faster than either term. That is the arithmetic behind “how far away is far enough”: the dipole term outlives nothing and is outlived by nothing, and the correction beyond it falls faster still.

A fourth power is a startling rate of decline and it is the everyday experience of magnets: at twice the distance the pull is a sixteenth. Compare the inverse square of a point charge, where twice the distance costs only a quarter, and the difference in how the two forces feel is entirely this exponent. It is also why magnetic attraction feels like a threshold rather than a field — a magnet does nothing at all until it is close, and then it snaps.

The energy, and why hardly any moments are aligned

The torque integrates to an energy, U=mBU = -\mathbf{m}\cdot\mathbf{B}, whose minimum is the aligned state and whose maximum is the opposed one, with a gap of 2mB2mB between them. That gap is the natural scale of the problem, and comparing it with something else is where the description stops being about one loop.

Every atom in a paramagnetic solid carries a moment of about a Bohr magneton, 9.27×10249.27 \times 10^{-24} A m². In a laboratory field of one tesla the alignment energy mBmB is therefore about 9×10249 \times 10^{-24} J. At room temperature kBTk_BT is 4.1×10214.1 \times 10^{-21} J — four hundred times larger. So the field is trying to line the moments up and the thermal jostling is untidying them four hundred times harder, and the fraction of moments that end up aligned is of order mB/kBTmB/k_BT, about a quarter of a per cent.

A moment of one Bohr magneton in a one-tesla field has an alignment energy of about 6×1056\times10^{-5} eV, and kTkT at room temperature is 0.025 eV — four hundred times larger. So the population difference across that gap is a fraction of a per cent, and hardly any moments are aligned at any field a laboratory can produce. Magnetism in matter is a small bias on a large disorder.

That comparison is the whole of why ordinary materials are so feebly magnetic and why ferromagnets are startling. A ferromagnet’s moments are aligned by an interaction between neighbours whose energy is not mBmB but a fraction of an electronvolt — comparable with kBTk_BT at a thousand kelvin, which is why iron has a Curie temperature of 1043 K and why it loses its magnetism above it rather than gradually.

An energy the magnetic force did not supply

There is something odd about U=mBU = -\mathbf{m}\cdot\mathbf{B} that is worth facing, because the rung below this one is the reason it is odd.

A magnetic force never does work: it is always perpendicular to the velocity of whatever it acts on, so it can redirect a charge and never speed it up. Yet a loop released across a field turns, gains kinetic energy, and the energy accounted for is exactly the drop in mB-\mathbf{m}\cdot\mathbf{B}. If the magnetic force did none of that work, who did?

Whatever holds the current constant. As the loop turns, the flux through it changes, so an emf is induced round it that opposes the current, and the source maintaining the current must work against that emf. The energy delivered to the rotation comes from the source, routed through the induction, and the magnetic force acts as a broker exactly as it does for a moving conductor. Every joule is accounted for and none of it passed through a magnetic force doing work.

The consequence is a caution about the sign and the constancy. mB-\mathbf{m}\cdot\mathbf{B} is the correct energy for computing the torque and the force on a dipole of fixed moment, and it is not the total energy of the field-plus-circuit system, which differs by the work the source did. For a permanent magnet — whose moment is maintained by nothing external — the accounting is simpler and the expression is the whole of it. For an electromagnet it is not, and treating it as such is the usual route to a sign error.

Why a field cannot hold a magnet still

The gradient force above invites an obvious idea: if a non-uniform field pulls a magnet, arrange one that pulls it toward a point and the magnet is trapped. The idea fails, and it fails for a reason that is a theorem rather than a difficulty.

A dipole of fixed moment aligned with the field has energy mB-mB, so it is drawn toward wherever B|\mathbf{B}| is largest. But in a region with no currents in it, B|\mathbf{B}| has no local maxima: the field satisfies Laplace’s equation componentwise, and a solution of Laplace’s equation takes its extreme values on the boundary rather than inside. Any apparent maximum in free space is a saddle, and the magnet escapes along the direction that goes downhill. That is Earnshaw’s result applied to magnets, and it is why every stable magnetic suspension either moves, feeds back, or cheats.

The interesting half is that local minima of B|\mathbf{B}| are perfectly allowed. So anything whose energy rises with the field — which means anything diamagnetic, whose induced moment opposes the field rather than aligning with it — can be trapped by a static arrangement, stably, with no feedback and no motion. That is the basis of the field’s most quoted demonstration: an ordinary object made mostly of water, which is weakly diamagnetic, held in mid-air at the minimum of a strong field with nothing touching it.

The two cases differ only in a sign, and the sign is decided by whether the moment is permanent or induced. Which makes magnetic levitation a good test of whether the expressions above have been understood as statements about energy rather than about attraction.

Making the moment bigger

Since m=NIAm = NIA, there are three ways to increase it, and their costs differ.

More current heats the wire, and the heat goes as I2I^2 while the moment goes as II — so doubling the moment this way costs four times the power. More area needs more room, and the field a solenoid produces on its axis does not care about its length. More turns is the cheap one, and it is why every electromagnet is a coil rather than a hoop.

Three legs that contribute nothing. A rectangular Ampèrian path drawn half inside a long solenoid and half outside it. The outside leg contributes nothing because the field there is zero; the two crossing legs contribute nothing because the field is perpendicular to them; so the whole circulation is the inside leg, and B·L = μ₀·n·L·I gives B = μ₀nI at once — 4.52 mT for 1200 turns per metre at 3 A. The result contains no radius and no length, which is the sense in which the field inside a long solenoid does not depend on where inside it is measured.
Fig. 4 The field inside a long solenoid, μ₀nI, which depends on the turns per metre and not on the radius or the length. Stacking loops adds their moments and puts the field of each inside the next, which is the arrangement that makes a coil rather than a single large loop the sensible way to build a moment.

Stacking loops multiplies the moment without changing its character. A coil of NN turns has NN times the moment of one, and inside it the lines run parallel and evenly spaced — uniform, and therefore a place where a magnet feels a torque and no force. Outside, they close round and the whole object is a dipole again, of a size the winding decides. That is the entire engineering of the subject: the shape of the far field is fixed and only its magnitude is a design variable.

Where the model stops

The moment is the first term of an expansion, not the whole field. Beyond the dipole term come the quadrupole and higher, falling as 1/r41/r^4, 1/r51/r^5 and so on, and every one of them is present. Close to a real magnet they dominate, which is why the pattern of iron filings near a bar magnet does not look like the dipole picture and why a magnet placed against another does not obey the fourth power at all.

A magnetised body is not a current loop, quite. Ampère’s picture — that magnetisation is circulating microscopic currents — reproduces every magnetostatic prediction and is what makes the moment of an electron’s orbital motion come out right. It does not account for spin, whose moment is not the moment of any circulating current, and whose gyromagnetic ratio is twice what the orbital picture would give.

The alternative bookkeeping, in which a magnet is a pair of magnetic charges separated by a distance, reproduces the field outside a magnet just as faithfully and gets the field inside it wrong — the two pictures give opposite directions there. Since nothing outside can distinguish them, the disagreement is only decidable by a measurement made within the material, and the current picture is the one that survives it. That is a useful thing to know about a description that is otherwise indistinguishable from a correct one: the place two equivalent models differ is the place at least one of them is wrong. The dipole arithmetic here is indifferent to which of the two supplies the moment, which is a strength of the description and a warning against reading it as a mechanism.

Nothing above holds if the second body is soft iron. A permanent magnet approaching a steel plate induces a moment in the plate proportional to the field it brings, so the force acquires an extra factor and grows faster than 1/r41/r^4. The fourth power is the law for two fixed moments, and it is measured by holding two permanent magnets apart, not by letting one approach a fridge.

What the pictures cannot show

The torque curve is drawn against angle and is silent on time. A needle released across the field does not settle at θ=0\theta = 0; it swings, and if the damping is light it oscillates about the minimum with a period set by Irot/mB\sqrt{I_{\text{rot}}/mB} — which is the pendulum’s period with mBmB in place of mgLmgL, and is how a magnetometer measures BB.

The inset showing four forces on a rectangle draws a particular shape, and the cancellation is general. Nothing in the figure distinguishes “these two happen to cancel” from “the sum round any closed path is zero”, which is the actual reason.

And the far-field figure plots the departure on the axis, where the ratio has a closed form. Off-axis the discrepancy is larger, and there is no direction in which a real loop matches a point dipole exactly at any finite distance.

Where the ladder goes next

The path through this anchor has gone from a field with no ends, to a force that does no work, to a single number that summarises a whole current distribution. Each step has removed detail: first the sources, then the energy, and now the shape.

Two rungs follow. One is magnetisation as a bulk quantity: moments per unit volume, the bound currents they are equivalent to, and why the field inside a magnet needs two vectors rather than one. The other is what a dipole does when it is made to rotate — a rotating moment radiates, and the power is the magnetic counterpart of the Larmor formula, one of the two ways an antenna can be built.

The transferable move is the multipole habit. When a source is complicated and the observer is far away, do not solve for the source: expand the field in powers of the size divided by the distance and keep the first term that survives. What survives is usually one number, and the whole of the object’s identity at a distance is that number.

Part 3 of 5

This essay is one argument about Magnetism. The others:

What links here

Essays that reach for this one mid-argument — the half of a link its own author cannot write down.

What this makes readable

Essays that declare this one a prerequisite.

The objects named here

The third axis, after the field and the reading path: the things themselves, and every essay that touches each one.

Dipole radiationEquilibriumFalloff exponentGradientThe Lorentz forceMagnetic fieldMagnetic momentMagnetic monopoleMoment armPotential energySolenoidTorque