Forces and Torques on Magnetic Dipoles

The dipole now has a field; this article gives it a life. Put a magnetic moment into someone else's field and three questions exhaust its mechanics: which way is it twisted, where is it pulled, and what does its orientation cost? The answers are a triptych of formulas — N⃗=m⃗×B⃗\vec N=\vec m\times\vec B, F⃗=∇(m⃗⋅B⃗)\vec F=\nabla(\vec m\cdot\vec B), U=−m⃗⋅B⃗U=-\vec m\cdot\vec B — compact enough to fit on a thumbnail and consequential enough to run compasses, molecular-beam experiments, magnetic tweezers, and every MRI scanner on Earth. The chapter has met fragments of this before, and the debts get paid in order. The force-on-wires article derived the torque for one special case — a rectangular loop — and packaged m⃗=Ia⃗\vec m=I\vec a; here the rectangle becomes a theorem for arbitrary localized currents. The same article deferred, by name, the force question: a closed loop in a uniform field feels zero net force (∮dℓ⃗=0\oint\mathrm{d}\vec\ell=0), so pulling on a dipole requires a field gradient — and this article computes exactly how, deriving F⃗=∇(m⃗⋅B⃗)\vec F=\nabla(\vec m\cdot\vec B) from the Lorentz force at first order in the gradient and confronting its evil twin (m⃗⋅∇)B⃗(\vec m\cdot\nabla)\vec B, identical in empty space and different exactly where current flows. The energy U=−m⃗⋅B⃗U=-\vec m\cdot\vec B arrives with the fine print the Lorentz-force article's work-paradox audit prepared us for: for current loops, "energy" is a two-account ledger, and the battery quietly pays double. The triptych then produces this article's most consequential surprise. A dipole that carries angular momentum — and at the atomic scale they all do, since m⃗=γJ⃗\vec m=\gamma\vec J — does not swing toward alignment like a compass needle. The torque feeds dJ⃗/dt\mathrm{d}\vec J/\mathrm{d}t, and the moment precesses around the field at the Larmor frequency ω=γB\omega=\gamma B, circling forever unless something drains energy. That one dynamical fact, plus a field gradient, is Stern–Gerlach; plus a resonant push, it is all of magnetic resonance. The atomic values of γ\gamma are the next article's business; the dynamics is owned here.

Key takeaways
  • Torque on any localized current distribution in a locally uniform field: N⃗=m⃗×B⃗\vec N=\vec m\times\vec B — the rectangle result of the wires article, upgraded to a theorem.
  • Orientation energy: U=−m⃗⋅B⃗U=-\vec m\cdot\vec B — minimum aligned, maximum anti-aligned; for rigid moments it is the honest potential energy, for current loops it is the fixed-current ledger (the battery pays double behind the scenes).
  • Uniform fields only twist; gradients pull: F⃗=∇(m⃗⋅B⃗)\vec F=\nabla(\vec m\cdot\vec B), derived from the Lorentz force at first order in the field gradient.
  • The twin form (m⃗⋅∇)B⃗(\vec m\cdot\nabla)\vec B equals ∇(m⃗⋅B⃗)\nabla(\vec m\cdot\vec B) only where ∇×B⃗=0\nabla\times\vec B=0 — i.e., away from local currents; the difference is m⃗×(∇×B⃗)\vec m\times(\nabla\times\vec B).
  • A spinning dipole (m⃗=γJ⃗\vec m=\gamma\vec J) does not align — it precesses: dJ⃗/dt=γJ⃗×B⃗\mathrm{d}\vec J/\mathrm{d}t=\gamma\vec J\times\vec B, cone angle fixed, Larmor frequency ω=γB\omega=\gamma B (proton: 42.58 MHz/T).
  • Stern–Gerlach = this article in hardware: gradient converts moment into deflection; quantized moments → discrete spots.
  • KEY IDEA: one scalar function U=−m⃗⋅B⃗U=-\vec m\cdot\vec B generates the mechanics — its angular derivative is the torque, its spatial gradient (sign flipped) the force — and adding angular momentum turns "align" into "precess."
The core insight

Everything follows from one scalar energy U=−m⃗⋅B⃗U=-\vec m\cdot\vec B: rotate it for the torque N⃗=m⃗×B⃗\vec N=\vec m\times\vec B, gradient it for the force F⃗=−∇U=∇(m⃗⋅B⃗)\vec F=-\nabla U=\nabla(\vec m\cdot\vec B) — and for spinning moments m⃗=γJ⃗\vec m=\gamma\vec J, the torque drives Larmor precession at ω=γB\omega=\gamma B instead of alignment.

Where this lives today

Magnetic resonance imaging is this article, industrialized. A 3 T scanner sets the body's protons precessing at fL=127.7f_L=127.7 MHz (equation 5); a resonant radio pulse tips the precession cone; and — the geometry-encoding trick — gradient coils superimpose ∼40\sim40 mT/m field gradients so the Larmor frequency becomes a position label: spins at different locations hum at different pitches, and Fourier analysis of the returning hum is the image. Torque, precession, and gradient — the article's three derivations — appear as the magnet, the pulse sequence, and the encoding, respectively. The same precession physics runs chemistry's NMR spectrometers (where parts-per-million shifts of fLf_L read out molecular structure) and the proton magnetometers that map planetary fields. At the force end, gradient-pulling has gone quantitative and microscopic. Magnetic tweezers grip micron-scale beads (m∼10−14m\sim10^{-14} A·m²) in ∼100\sim100 T/m gradients, applying calibrated piconewton forces to single DNA molecules to measure their elasticity and the motors that walk on them. Neutral-atom traps hold "low-field-seeking" states (moment anti-aligned, expelled toward field minima — the sign of equation (3) read in reverse) in quadrupole and bottle geometries, the front door to Bose–Einstein condensation. And magnetic separation — from scrapyard cranes to immunomagnetic cell sorting in clinical labs — is ∇(m⃗⋅B⃗)\nabla(\vec m\cdot\vec B) with induced moments, engineering's oldest use of the newest formula here.

Origins · 1 minJoseph John Larmor and how this was discovered
JJ
Joseph John Larmor
1857–1942 · Belfast, Cambridge — Lucasian chair between Stokes and Dirac

Larmor was the last great physicist of the ether and, in the same career, an accidental architect of what replaced it. His Aether and Matter (1900) — pursuing electrons as spinning strain-centers in a universal medium — contains, a decade before Einstein, the full Lorentz transformations and the first derivation of time dilation for orbiting charges; history filed the equations under Lorentz's name and the physics under Einstein's, leaving Larmor the precession and the radiation formula that bear his. The precession result (1897) is exactly this article's Derivation C: a charge's orbital moment, rigidly tied to its angular momentum, responds to a magnetic field not by tilting but by circling it at ω=eB/2m\omega=eB/2m — which Larmor used to analyze the just-discovered Zeeman effect, magnetism's first spectroscopic fingerprint. Holder of the Lucasian chair for thirty years, Ulster-conservative, famously resistant to both relativity's abandonment of the ether and Cambridge's introduction of bathrooms ("we have done without them for four hundred years"), he lived to see his frequency become the operating principle of magnetic resonance — measured today to twelve digits in the electron's g−2g-2.

History
1820
— Ampère quantifies the forces and torques between circuits; the couple on a current loop enters the theory of magnetism.
1832
— Gauss's Intensitas uses the oscillating-magnet period and the deflection ratio to put both m and B on absolute footing.
1845
— Faraday discovers diamagnetism: matter pushed toward weak field — the force law's other sign, awaiting the next chapter's mechanisms.
1897
— Larmor derives the precession of orbital moments, giving the Zeeman effect its classical frequency scale.
1922
— Stern and Gerlach split a silver beam in a field gradient: two spots, space quantization, and the force law as a quantum instrument.
1946
— Bloch and Purcell detect nuclear magnetic resonance — Larmor precession driven and read out; MRI follows within three decades.

The physical picture

Hold a compass. The needle is a magnetic moment in the Earth's (locally uniform) field, and what the field does to it is pure twist: north pole pulled one way, south pole equally the other — a couple, no net force. The needle does not slide across the table toward Canada; it rotates until m⃗\vec m lies along B⃗\vec B, overshoots, oscillates, and settles as friction drains the swing. That is the uniform-field story complete: torque m⃗×B⃗\vec m\times\vec B, energy landscape −m⃗⋅B⃗-\vec m\cdot\vec B with its valley at alignment, and dissipation as the unsung third ingredient that lets the valley be reached at all. Now bring the needle toward a real magnet, and a new thing happens: it leaps. Near the pole face the field is stronger on the needle's near end than its far end; the two pole forces no longer cancel, and the residue is a net pull toward stronger field. This is the force law's entire content — a dipole feels no force from a field, only from a field's change — and it explains at a stroke why iron filings fly to the poles of a magnet (field gradients are fiercest there), why the uniform interior of a good solenoid exerts torque but no pull, and why every magnetic trap, tweezer, and separator is in the business of shaping gradients, not just making fields.

Figure
Uniform fields twist, gradients pull — the couple on a dipole versus the net force in a converging field
uniform B: pure couple — N = m × B, F = 0 m equal and opposite end-pulls: twist toward alignment, zero net force gradient: net pull — F = ∇(m·B) m (aligned) F near end sits in stronger field than far end: aligned moments ride uphill in |B|

The third panel of the mental picture is the one classical intuition gets wrong. Replace the compass needle by an atom: the moment is now welded to angular momentum, m⃗=γJ⃗\vec m=\gamma\vec J. Apply the same torque and watch what changes: torque is dJ⃗/dt\mathrm{d}\vec J/\mathrm{d}t, and a J⃗\vec J pushed always perpendicular to itself (that is what m⃗×B⃗∝J⃗×B⃗\vec m\times\vec B\propto\vec J\times\vec B does) changes direction, never magnitude — the tip of J⃗\vec J circles the field direction on a cone of fixed angle. Gyroscope logic, exactly: gravity's torque doesn't topple a spinning top, it precesses it. An atomic moment in a magnetic field hums around B⃗\vec B at the Larmor frequency, alignment energy untouched, forever — until coupling to an environment (radiation, collisions, the lattice) drains it. Every "spins align with the field" sentence in a textbook silently includes that dissipative fine print, and magnetic resonance lives entirely inside it.

The triptych, derived

All three laws follow from the Lorentz force dF⃗=I dℓ⃗×B⃗\mathrm{d}\vec F=I\,\mathrm{d}\vec\ell\times\vec B summed around the circuit, expanded in how the field varies across the (small) dipole. Zeroth order in the variation: torque. First order: force. The bookkeeping of both: energy.

Derivation ATorque on an arbitrary localized current — the rectangle becomes a theorem

The goal is N⃗=m⃗×B⃗\vec N=\vec m\times\vec B for any localized steady current in a field that is uniform across the source — generalizing the wires article's rectangle, whose couple picture (two opposite side-forces, lever arm, NIANIA) we recall by name rather than repeat. The strategy: write the total torque about the dipole's location as a loop integral, and reuse the exact vector-area lemma that extracted the dipole moment two articles ago — the same identity does both jobs, which is no accident.

Step 1. Set up the torque integral. With B⃗\vec B uniform over the circuit,

N⃗=∮r⃗′×dF⃗=I∮r⃗′×(dℓ⃗′×B⃗).\vec N=\oint\vec r'\times\mathrm{d}\vec F =I\oint\vec r'\times\big(\mathrm{d}\vec\ell'\times\vec B\big) .

Step 2. Expand the triple product. BAC–CAB with B⃗\vec B constant:

r⃗′×(dℓ⃗′×B⃗)=dℓ⃗′ (r⃗′⋅B⃗)−B⃗ (r⃗′⋅dℓ⃗′).\vec r'\times(\mathrm{d}\vec\ell'\times\vec B) =\mathrm{d}\vec\ell'\,(\vec r'\cdot\vec B)-\vec B\,(\vec r'\cdot\mathrm{d}\vec\ell') .

The second term integrates to zero: ∮r⃗′⋅dℓ⃗′=∮12 d(r′2)=0\oint\vec r'\cdot\mathrm{d}\vec\ell'=\oint\tfrac12\,\mathrm{d}(r'^2)=0 around a closed loop (an exact differential's round trip).

Step 3. Spend the vector-area lemma. What remains is I∮(B⃗⋅r⃗′) dℓ⃗′I\oint(\vec B\cdot\vec r')\,\mathrm{d}\vec\ell' — the multipole article's integral with r^→B⃗\hat r\to\vec B, and its lemma gave ∮(c⃗⋅r⃗′) dℓ⃗′=a⃗×c⃗\oint(\vec c\cdot\vec r')\,\mathrm{d}\vec\ell'=\vec a\times\vec c for any constant c⃗\vec c. Hence

N⃗=I (a⃗×B⃗)=m⃗×B⃗.(1)\vec N=I\,(\vec a\times\vec B)=\vec m\times\vec B . \qquad (1)

where: N⃗\vec N — torque about the dipole's own location; magnitude mBsin⁡θmB\sin\theta, axis perpendicular to both, sense that swings m⃗\vec m toward B⃗\vec B. For volume currents the same result follows from N⃗=∫r⃗′×(J⃗×B⃗) dτ′\vec N=\int\vec r'\times(\vec J\times\vec B)\,\mathrm{d}\tau' with the symmetric/antisymmetric split — the multipole article's other maneuver — confirming that (1) is a statement about the moment, indifferent to the plumbing that produces it. Why "uniform across the source" is the real hypothesis: in a gradient there are corrections to (1) of order (source size)/(field scale) — and also a net force, next derivation. For atoms in laboratory fields the ratio is ∼10−10\sim10^{-10}: equation (1) is exact for all practical purposes at the atomic scale, which is why it can be fed into precession dynamics with a clear conscience. *Verified: rectangle check — for the wires article's a×ba\times b loop, (1) reproduces N=IabBsin⁡θN=IabB\sin\theta ✓; dimensions [A m2][T]=N m[\mathrm{A\,m^2}][\mathrm{T}]=\mathrm{N\,m} ✓; matches Griffiths Eq. 6.1, Jackson §5.7.*

The energy is the torque integrated. Rotating m⃗\vec m from angle θ0\theta_0 to θ\theta against the aligning torque stores W=∫mBsin⁡θ dθW=\int mB\sin\theta\,\mathrm{d}\theta, and with the conventional zero at θ=90°\theta=90°:

U(θ)=−mBcos⁡θ=−m⃗⋅B⃗.(2)U(\theta)=-mB\cos\theta=-\vec m\cdot\vec B . \qquad (2)

where: the landscape runs from −mB-mB (aligned, the valley) through zero (perpendicular) to +mB+mB (anti-aligned, the summit) — a 2mB2mB span that sets every magnetic-orientation scale in physics, from the compass (∼10−4\sim10^{-4} J for a needle in Earth's field) to the hydrogen hyperfine splitting (∼10−24\sim10^{-24} J). Read equation (2) with the honesty the Lorentz-force article's paradox audit taught: for a rigid, permanent moment (an electron's spin), UU is a genuine potential energy, full stop. For a current loop held at constant II, rotating toward alignment changes the flux through the loop, induction fights the change, and the battery must do work 2 Δ∣U∣2\,\Delta|U| to hold the current — so the loop's "energy" depends on which account you audit: the mechanical work available is governed by (2), while the total ledger includes the source. This is precisely the fixed-QQ versus fixed-VV story of the dielectric-forces article, transposed to magnetism; the full accounting arrives with magnetic energy in the matter chapter. Equation (2), used as the generator of forces and torques, is correct in both cases — that is all this article needs.

Go deeper · Derivation B · 2 minForce in a nonuniform field — and the two-forms subtlety
Derivation BForce in a nonuniform field — and the two-forms subtlety

The goal is the force law F⃗=∇(m⃗⋅B⃗)\vec F=\nabla(\vec m\cdot\vec B) from first principles: sum the Lorentz force around a small loop in a field that varies slowly across it, keeping the first gradient correction — the term the wires article showed is the only survivor, since the uniform piece cancels by ∮dℓ⃗′=0\oint\mathrm{d}\vec\ell'=0. The strategy: Taylor-expand, reuse the vector-area lemma once more, then confront the identity that separates this form from its look-alike (m⃗⋅∇)B⃗(\vec m\cdot\nabla)\vec B.

Step 1. Expand the field across the loop. About the loop's center (origin), B⃗(r⃗′)=B⃗0+(r⃗′⋅∇)B⃗0+…\vec B(\vec r')=\vec B_0+(\vec r'\cdot\nabla)\vec B_0+\ldots The total force:

F⃗=I∮dℓ⃗′×B⃗(r⃗′)=I(∮dℓ⃗′)⏟= 0×B⃗0+I∮dℓ⃗′×[(r⃗′⋅∇)B⃗0]+…\vec F=I\oint\mathrm{d}\vec\ell'\times\vec B(\vec r') =I\underbrace{\Big(\oint\mathrm{d}\vec\ell'\Big)}_{=\,0}\times\vec B_0 +I\oint\mathrm{d}\vec\ell'\times\big[(\vec r'\cdot\nabla)\vec B_0\big]+\ldots

— the uniform term dies by closure (no net force in uniform fields, now proved rather than asserted), and the gradient term leads.

Step 2. Lemma, one last time. Component bookkeeping on the surviving integral (each Cartesian gradient component acts as a constant vector for the loop integral) reduces it, via ∮(c⃗⋅r⃗′) dℓ⃗′=a⃗×c⃗\oint(\vec c\cdot\vec r')\,\mathrm{d}\vec\ell'=\vec a\times\vec c, to

F⃗=I ∇[(a⃗×…)]  ⟹  F⃗=∇(m⃗⋅B⃗),(3)\vec F=I\,\nabla\big[(\vec a\times\ldots)\big]\;\Longrightarrow\; \vec F=\nabla\big(\vec m\cdot\vec B\big), \qquad (3)

evaluated at the dipole's location, for constant m⃗\vec m. (The compact route to the same result: F⃗=−∇U=+∇(m⃗⋅B⃗)\vec F=-\nabla U=+\nabla(\vec m\cdot\vec B) from equation (2) — the honest loop-integral derivation is what certifies that shortcut.)

where: the force points up the gradient of m⃗⋅B⃗\vec m\cdot\vec B: aligned moments are pulled toward strong field, anti-aligned moments expelled toward weak field. That one sign carries the whole phenomenology of the next chapter — para- versus dia-magnetic drift — and of every magnetic trap.

Step 3. The evil twin. Textbooks also quote F⃗=(m⃗⋅∇)B⃗\vec F=(\vec m\cdot\nabla)\vec B. The E0 product rule relates them, for constant m⃗\vec m:

∇(m⃗⋅B⃗)=(m⃗⋅∇)B⃗+m⃗×(∇×B⃗).\nabla(\vec m\cdot\vec B)=(\vec m\cdot\nabla)\vec B+\vec m\times(\nabla\times\vec B) .

Wherever the dipole sits in current-free space — outside magnets, between coils, in a beam line — ∇×B⃗=0\nabla\times\vec B=0 and the two forms agree identically; use whichever computes faster. Sitting inside a current distribution (∇×B⃗=μ0J⃗≠0\nabla\times\vec B=\mu_0\vec J\neq0) they differ by μ0 m⃗×J⃗\mu_0\,\vec m\times\vec J, and which is correct becomes a genuine physics question about the dipole's model: (3) is the force on a rigid current-loop (Amperian) dipole, the kind this chapter builds and the kind atoms are. The distinction matters in magnetized matter and in precision hyperfine physics — flagged here, spent when the matter chapter needs it. Verified: dimensions [A m2 T/m]=N[\mathrm{A\,m^2\,T/m}]=\mathrm{N} ✓; uniform-field limit gives F⃗=0\vec F=0 ✓ (recovering the wires article's theorem); on-axis trap check — for m⃗∥B⃗=B(z)z^\vec m\parallel\vec B=B(z)\hat z, (3) gives Fz=m dB/dzF_z=m\,\mathrm{d}B/\mathrm{d}z, the standard Stern–Gerlach working formula ✓; matches Griffiths Eq. 6.3 and Jackson §5.7 including the two-forms discussion.

Figure
The precession cone — torque pushes J sideways, so the moment circles B at the Larmor frequency instead of aligning
B tip of J sweeps the cone at ω_L = γB J, m = γJ J∥ constant N = m × B: always ⊥ J — turns it, never shrinks it cone angle, |J|, and energy −m·B all conserved: no alignment without dissipation the gyroscope dictionary gravity torque : spinning top = magnetic torque : atomic moment proton: 42.58 MHz per tesla electron spin: 28 GHz per tesla
Go deeper · Derivation C · 2 minLarmor precession — why spinning moments circle instead of aligning
Derivation CLarmor precession — why spinning moments circle instead of aligning

The goal is the motion of a dipole that carries angular momentum in fixed ratio, m⃗=γJ⃗\vec m=\gamma\vec J — the universal atomic case — in a uniform field: the result is precession about B⃗\vec B at the angular frequency ω⃗L=−γB⃗\vec\omega_L=-\gamma\vec B, with the cone angle a constant of the motion. The strategy is two lines of rigid-body mechanics plus a geometric reading; the payoff is the operating principle of NMR, ESR, and MRI. The atomic values of γ\gamma (orbital −e/2me-e/2m_e, spin ≈−e/me\approx-e/m_e) are owned by the next article; here γ\gamma is a given constant.

Step 1. The equation of motion. Torque is the rate of change of angular momentum, and the torque is (1):

dJ⃗dt=N⃗=m⃗×B⃗=γ J⃗×B⃗.(4)\frac{\mathrm{d}\vec J}{\mathrm{d}t}=\vec N=\vec m\times\vec B=\gamma\,\vec J\times\vec B . \qquad (4)

Step 2. Two conservation laws, read off directly. Dot (4) with J⃗\vec J: J⃗⋅(J⃗×B⃗)=0\vec J\cdot(\vec J\times\vec B)=0, so ∣J⃗∣|\vec J| is constant — the push is always perpendicular, direction changes, magnitude cannot. Dot with B⃗\vec B: B⃗⋅(J⃗×B⃗)=0\vec B\cdot(\vec J\times\vec B)=0, so J∥=J⃗⋅B^J_\parallel=\vec J\cdot\hat B is constant — the cone angle θ\theta between J⃗\vec J and B⃗\vec B never changes. And since U=−γJBcos⁡θU=-\gamma J B\cos\theta, the orientation energy is conserved too: no approach to alignment whatsoever.

Step 3. Recognize rotation. An equation of the form dJ⃗/dt=ω⃗×J⃗\mathrm{d}\vec J/\mathrm{d}t=\vec\omega\times\vec J is rigid rotation of J⃗\vec J about ω⃗\vec\omega. Rewriting (4) as dJ⃗/dt=(−γB⃗)×J⃗\mathrm{d}\vec J/\mathrm{d}t=(-\gamma\vec B)\times\vec J identifies

ω⃗L=−γB⃗,fL=∣γ∣B2π:(5)\vec\omega_L=-\gamma\vec B, \qquad f_L=\frac{|\gamma|B}{2\pi} : \qquad (5)

the tip of J⃗\vec J (and with it m⃗\vec m) sweeps a cone around the field at the Larmor frequency, sense set by the sign of γ\gamma, rate proportional to BB with the moment-to-angular-momentum ratio as the only material input. Why the frequency is the measurable gold: fLf_L depends on γ\gamma and BB, nothing else — not the cone angle, not the moment's history. Measure the hum and you either read γ\gamma at fixed BB (precision moment metrology) or read BB at known γ\gamma (every NMR magnetometer and teslameter). For protons, fL/B=42.58f_L/B=42.58 MHz/T; a 3 T clinical scanner hums at 127.7 MHz, recomputed below. *Why compasses still align: a needle's m⃗\vec m is not rigidly tied to a large intrinsic J⃗\vec J — its mechanical angular momentum starts at zero and friction on the pivot drains the oscillation, so it walks down the energy landscape (2). Atomic moments in vacuum have no such drain; they precess until relaxation processes (spin–lattice, radiative) supply the missing dissipation. The timescale hierarchy — precession in nanoseconds, relaxation in milliseconds-to-seconds — is exactly what makes magnetic resonance spectroscopy possible: thousands to billions of coherent turns before the phase is lost. Verified: (5) matches the classical Larmor result and the quantum Heisenberg equation for spin in a field (identical form — one of quantum mechanics' cleanest classical correspondences); proton check γp=2.675×108 rad s−1T−1\gamma_p=2.675\times10^8\ \mathrm{rad\,s^{-1}T^{-1}}: f=γpB/2π=127.7f=\gamma_pB/2\pi=127.7 MHz at 3 T ✓.*

Limiting cases

caseresultmeaning
uniform field, non-spinning momenttwist to alignment (with dissipation)compass regime; oscillation period 2πIrot/mB2\pi\sqrt{I_{\rm rot}/mB}
uniform field, m⃗=γJ⃗\vec m=\gamma\vec Jprecession at ω=γB\omega=\gamma B, no alignmentatomic regime; NMR/ESR/MRI
gradient, moment alignedpulled to strong fieldparamagnetic drift; tweezers, traps
gradient, moment anti-alignedexpelled to weak fielddiamagnetic levitation preview; low-field-seeking atom traps
current-free region∇(m⃗⋅B⃗)=(m⃗⋅∇)B⃗\nabla(\vec m\cdot\vec B)=(\vec m\cdot\nabla)\vec Bboth force forms legal
inside current density J⃗\vec Jforms differ by μ0m⃗×J⃗\mu_0\vec m\times\vec JAmperian dipole takes ∇(m⃗⋅B⃗)\nabla(\vec m\cdot\vec B)
field varying strongly across sourcedipole approximation failshigher moments feel higher derivatives

Worked examples

1 · Gauss's oscillating magnet (confidence builder)

A bar magnet (m=2.0m=2.0 A·m², length 10 cm, mass 50 g) hangs from a torsion-free thread in the local horizontal field Bh=49 μB_h=49\ \muT of the mid-latitude Earth. Find the torque at 30°30° deflection and the small-oscillation period.

Step 1. Torque. N=mBhsin⁡30°=2.0×49×10−6×0.5N=mB_h\sin30°=2.0\times49\times10^{-6}\times0.5 = 4.9×10−54.9\times10^{-5} N·m — the restoring couple twisting the magnet back toward magnetic north.

Step 2. Pendulum dynamics. For small angles, Irotθ¨=−mBhθI_{\rm rot}\ddot\theta=-mB_h\theta: angular harmonic motion. The rod's moment of inertia about its center: Irot=ML2/12=0.050×(0.10)2/12=4.2×10−5I_{\rm rot}=ML^2/12=0.050\times(0.10)^2/12=4.2\times10^{-5} kg·m².

Step 3. Period.

T=2πIrotmBh=2π4.2×10−52.0×4.9×10−5=4.1 s.T=2\pi\sqrt{\frac{I_{\rm rot}}{mB_h}} =2\pi\sqrt{\frac{4.2\times10^{-5}}{2.0\times4.9\times10^{-5}}} =\textbf{4.1 s}.

Step 4. Why this humble pendulum is famous. Timing it measures the product mBhmB_h; the deflection experiment of the dipole article's Gauss band measures the ratio m/Bhm/B_h. Two bench measurements, multiply and divide: both the magnet's moment and the Earth's field in absolute units — the 1832 Intensitas scheme, and the first time anyone knew the strength of any magnetic field as a number. The formula in Step 3 ran the world's magnetic observatories for a century.

2 · Stern–Gerlach, by the numbers (exam level)

Silver atoms (M=1.79×10−25M=1.79\times10^{-25} kg, moment μB=9.27×10−24\mu_B=9.27\times10^{-24} J/T from the lone 5s electron — next article's business why) exit an oven at v=550v=550 m/s and cross a 3.53.5 cm magnet with vertical gradient dB/dz=1400\mathrm{d}B/\mathrm{d}z=1400 T/m, then drift 20 cm to a plate. Find the splitting.

Step 1. The force. Moments quantize along zz (the quantum input) into mz=±μBm_z=\pm\mu_B: Fz=mz dB/dz=±9.27×10−24×1400=±1.30×10−20F_z=m_z\,\mathrm{d}B/\mathrm{d}z=\pm9.27\times10^{-24}\times1400=\pm1.30\times10^{-20} N — about 10410^4 times the atom's weight, delivered by pure field shaping.

Step 2. Inside the magnet. a=F/M=7.2×104 m/s2a=F/M=7.2\times10^4\ \mathrm{m/s^2}; transit time t=L/v=6.4×10−5t=L/v=6.4\times10^{-5} s; deflection 12at2≈147 μ\tfrac12at^2\approx147\ \mum, exit transverse velocity vz=at=4.6v_z=at=4.6 m/s.

Step 3. The drift lever arm. Over 2020 cm of field-free flight: additional vz (Ld/v)=4.6×(0.20/550)≈1.68v_z\,(L_d/v)=4.6\times(0.20/550)\approx1.68 mm. Total per branch ≈1.82\approx1.82 mm; separation between the +μB+\mu_B and −μB-\mu_B spots: ≈3.6\approx3.6 mm — comfortably resolvable, exactly the two-spot photograph of 1922.

Step 4. What the two spots proved. Classically, oven-randomized moments would smear mzm_z continuously from −μB-\mu_B to +μB+\mu_B: one elongated blob. Two clean spots mean mzm_z takes two values — space quantization, before spin was even proposed (and, in the modern reading, the electron's spin-12\tfrac12 doublet caught on film). Note the precession article's fine print doing real work here: the moments do not align in the magnet, they precess about B⃗\vec B at ∼1010\sim10^{10} rad/s while the force Fz=mz ∂zBF_z=m_z\,\partial_zB acts on the conserved component mzm_z — the cone, not the swing, is what the experiment sorts.

Going further

References. Griffiths, Introduction to Electrodynamics, 4th ed., §6.1 (Eqs. 6.1–6.3) · Jackson, Classical Electrodynamics, 3rd ed., §5.7 · Zangwill, Modern Electrodynamics, §12.2–12.4 · Purcell & Morin, Electricity and Magnetism, 3rd ed., §11.6

Provenance. Equations cross-checked against Griffiths 4th ed. §6.1 (Eqs. 6.1–6.3 for N=m×B\mathbf{N}=\mathbf{m}\times\mathbf{B}, F=∇(m⋅B)\mathbf{F}=\nabla(\mathbf{m}\cdot\mathbf{B}), U=−m⋅BU=-\mathbf{m}\cdot\mathbf{B}) and Jackson 3rd ed. §5.7 (force/torque on a localized current distribution, including the (m⋅∇)B(\mathbf{m}\cdot\nabla)\mathbf{B} form and the ∇×B\nabla\times\mathbf{B} correction). A verifier should re-derive the loop force/torque integrals to first order in the field gradient and confirm the vector identity ∇(m⋅B)=(m⋅∇)B+m×(∇×B)\nabla(\mathbf{m}\cdot\mathbf{B})=(\mathbf{m}\cdot\nabla)\mathbf{B}+\mathbf{m}\times(\nabla\times\mathbf{B}) for constant m\mathbf{m}. The proton gyromagnetic ratio γp/2π≈42.58\gamma_p/2\pi\approx 42.58 MHz/T is a standard tabulated value (CODATA). (Worked numbers: torque 4.9×10−54.9\times10^{-5} N·m, period 4.1 s; Stern–Gerlach 1.3×10−201.3\times10^{-20} N, ≈3.6\approx3.6 mm two-spot separation; 127.7 MHz at 3 T — recomputed.)

Builds on: Magnetic Dipole and Magnetic Moment · Magnetic Force on Current-Carrying Wires · Lorentz Force Law · Torque and Force on a Dipole in a Field

Leads to: Magnetization · Magnetic Dipole Moment of Atoms · Paramagnetism · Diamagnetism

If the force comes from a gradient, how does a uniform-field solenoid pick up a paperclip at its mouth?

It doesn't do it with its uniform interior — it does it with its fringe. The mouth of a solenoid is exactly where the ideal uniform-inside/zero-outside field must transition, so the gradients there are enormous (all of μ0nI\mu_0nI collapsing over roughly a bore radius). The clip's induced moment aligns with the local field, m⃗⋅B⃗\vec m\cdot\vec B is largest inside, and ∇(m⃗⋅B⃗)\nabla(\vec m\cdot\vec B) points into the bore. Deep inside, once the field is genuinely uniform, the pull disappears and only torque remains — which is why magnetic separators and scrapyard lifters are engineered around pole edges and shaped pole pieces: the design variable is the gradient map, not the field's peak value.

Why doesn't the magnetic force law violate the no-work theorem for magnetic forces?

The theorem — magnetic forces on a charge do no work, F⃗⊥v⃗\vec F\perp\vec v — survives intact; the resolution is bookkeeping inside the dipole, and it is the wires article's rising-bar audit in miniature. When a gradient pulls a current loop forward and the loop gains kinetic energy, the microscopic Lorentz forces on its carriers still do zero net work; what happens is a transfer: the motion through nonuniform field induces an EMF, the carriers' drift rearranges, and the source maintaining the current supplies the energy that appears as mechanical work (for a permanent/spin moment, the "source" is the quantum rigidity of the moment — no classical circulating current needs feeding). U=−m⃗⋅B⃗U=-\vec m\cdot\vec B packages this bookkeeping so you never have to reopen it for mechanics — but it is packaging, and the warning box's two-ledger caution is the receipt.

Which force form applies to an electron's spin moment — Amperian or the other one?

Experiment says Amperian. The two models of a point dipole — circulating current ("Amperian," force ∇(m⃗⋅B⃗)\nabla(\vec m\cdot\vec B), interior field along m⃗\vec m) versus two magnetic charges ("Gilbertian," force (m⃗⋅∇)B⃗(\vec m\cdot\nabla)\vec B, interior field against m⃗\vec m) — agree everywhere outside matter and disagree inside current or magnetization density. The clean test is the neutron: neutral, but with a moment, passing through magnetized foils. Interferometry and scattering experiments match the Amperian prediction — consistent with the dipole article's +2μ03+\tfrac{2\mu_0}{3} contact term, which is likewise the Amperian signature (and is confirmed spectacularly by hyperfine structure). Electrons, protons, neutrons: current-loop-type dipoles, however pointlike, with no magnetic charge in sight.

How can Stern-Gerlach separate moments if they're all precessing wildly inside the magnet?

Because precession and deflection use different components. The field (mostly along zz) drives precession of mx,mym_x,m_y at ∼1010\sim10^{10} rad/s — those components average to zero almost instantly on the transit timescale. But precession conserves mzm_z (Derivation C: J∥J_\parallel constant), and the deflecting force is Fz=mz ∂zBF_z=m_z\,\partial_zB: built entirely from the conserved piece. So the magnet sorts atoms by mzm_z while the transverse components blur harmlessly. The fast precession is even helpful: it suppresses the effect of stray transverse gradient components (they average out over a precession cycle), which is why the naive one-axis analysis of the worked example gives the right answer in a field that can't strictly be gradient-along-zz only (∇⋅B⃗=0\nabla\cdot\vec B=0 forbids that).

Is minus m dot B the interaction energy of two dipoles as well?

Yes — evaluate one dipole's field at the other and insert: U12=−m⃗2⋅B⃗1(r⃗12)=μ04πr3[m⃗1⋅m⃗2−3(m⃗1⋅r^)(m⃗2⋅r^)]U_{12}=-\vec m_2\cdot\vec B_1(\vec r_{12})=\frac{\mu_0}{4\pi r^3}\left[\vec m_1\cdot\vec m_2-3(\vec m_1\cdot\hat r)(\vec m_2\cdot\hat r)\right]. Its anatomy repays a minute: side-by-side parallel moments (both perpendicular to r^\hat r) carry positive energy +μ0m1m24πr3+\frac{\mu_0m_1m_2}{4\pi r^3} — they prefer to anti-align, which is why adjacent compass needles on a table settle antiparallel — while head-to-tail parallel moments (both along r^\hat r) carry −2μ0m1m24πr3-\frac{2\mu_0m_1m_2}{4\pi r^3}, the deepest arrangement — which is why magnets snap into chains. The 1/r31/r^3 energy gives the 1/r41/r^4 dipole–dipole force by differentiation — the far-field law between any two magnets, and the next article makes it a worked example. At atomic spacings this energy is ∼10−23\sim10^{-23} J ∼1\sim1 K: real but weak, which is why dipole–dipole coupling alone almost never explains ferromagnetism — a flag the matter chapter picks up with the exchange interaction.

What sets the amplitude of a compass needle's oscillation decay, given that the period formula has no damping in it?

The period formula is the conservative skeleton; decay is whatever dissipation rides along — pivot friction, air drag, and (in good instruments, dominantly) eddy currents: the swinging needle's changing flux induces currents in nearby conductors, whose ohmic loss drains the oscillation (many survey compasses deliberately mount a copper damping vane for exactly this purpose — critical damping makes readings fast). The physics splits cleanly: T=2πIrot/mBT=2\pi\sqrt{I_{\rm rot}/mB} from the energy landscape, decay time from the loss channels, and the quality factor QQ measures their ratio. The same split governs atomic moments — Larmor frequency from this article, relaxation times T1,T2T_1,T_2 from environmental coupling — and reading both is precisely what an MRI pulse sequence does.

Do these formulas apply to induced moments, or only permanent ones?

The instantaneous laws apply to whatever moment exists at that instant, but the energy landscape changes when m⃗\vec m responds to B⃗\vec B. For an induced linear moment m⃗=αB⃗\vec m=\alpha\vec B (dia- or para-magnetic response), the correct energy is U=−12αB2U=-\tfrac12\alpha B^2 — half the naive −m⃗⋅B⃗-\vec m\cdot\vec B, the same factor the polarizability article earned for induced electric dipoles by auditing the spring: the field must do work building the moment it then pulls on. Forces follow: F⃗=12α∇(B2)\vec F=\tfrac12\alpha\nabla(B^2), toward strong field for α>0\alpha>0 (paramagnets) and away for α<0\alpha<0 (diamagnets — hence frog levitation over a Bitter magnet, where −∇B2-\nabla B^2 balances gravity). The permanent-moment formulas of this article are the α\alpha-independent skeleton; the halves and signs of response are the next chapter's opening business.

Before this

Where this leads