Fundamentals / Physics / Electrodynamics / Notebooks

Why does a Helmholtz pair have a useful uniform region?

A magnetometer averages the field over a finite sample. Derive the coil spacing that suppresses curvature and predict how rapidly the remaining calibration error grows away from the midpoint.

Try it · Em coils

Explore the same physical relation with adjustable inputs. This independent parameter study has its own displayed reference settings; compare its assumptions and units before matching the static example.

Download the corresponding editable notebook. The browser recalculates the reduced equations directly; the notebook exposes the full calculation and its checks.

Save notebook (.ipynb)

Python runs on this device. The first run loads the scientific libraries.

Cancel a spatial derivative with geometry

For an ideal circular loop, Biot–Savart gives the axial field \(B(z)=\mu_0NI R^2/[2(R^2+z^2)^{3/2}]\). It follows by adding equal axial components of the current elements around the circumference. Place two identical loops at \(\pm s/2\), carrying currents in the same sense. Superposition and mirror symmetry remove every odd derivative at the midpoint.

Differentiate the single-loop shape \(f(u)=(R^2+u^2)^{-3/2}\) twice. The result is \(3(4u^2-R^2)(R^2+u^2)^{-7/2}\). The second derivative of the pair changes sign at \(s=R\). At this spacing both the linear and quadratic spatial errors vanish. Expanding the even sum one order farther gives

\[\frac{B(z)}{B(0)}=1-\frac{144}{125}\left(\frac zR\right)^4+O((z/R)^6).\]

Flatness concerns a region of space. A high field value at the centre alone cannot establish that a sample extending on both sides was excited uniformly.

Set the acceptance criterion before choosing a coil

If the allowed pointwise fractional variation is \(10^{-3}\), the asymptotic half-length of the uniform region is \(R(125\times10^{-3}/144)^{1/4}\simeq0.172R\). With a 100 mm radius this suggests 17 mm on either side. Compare that estimate with the exact field in the notebook. Small spacing errors restore the quadratic term. The accuracy of the coil fixture can therefore matter more than the current-meter resolution when calibrating an extended sample. At 100 ampere-turns per coil and \(R=0.100\) m, the central field is \((4/5)^{3/2}\mu_0 NI/R=0.899\) mT. A point 10 mm off centre experiences a leading relative deviation of \(1.152\times10^{-4}\), about 0.104 µT in absolute field. A Hall probe with resolution 1 µT would struggle to distinguish a single such deviation. The pointwise specification and the spatial resolution of a verification scan therefore belong in the same calculation.

For a uniformly sensitive sample extending from \(-L\) to \(L\), average the quartic term instead of substituting the outermost coordinate. Since the average of \(z^4\) is \(L^4/5\), the leading bias of its mean response is a fifth of the edge deviation. A sample that fills the nominal tolerance region can report an apparently excellent mean field while a process sensitive to the edge already operates at the specified limit.

Set the experimental inputs

Edit these values, then run the calculation and both figures again.

Offset the separation by a tenth of the radius in each direction. The signs of the resulting calibration errors reverse close to the centre.

At ideal spacing the error falls sixteenfold when the sample half-length halves. Move the spacing off its design value to recover quadratic scaling.

Exercise · compare two sample lengths

For an ideal pair, predict the leading error at \(z/R=0.1\) and \(0.2\).

The quartic terms give \(1.152\times10^{-4}\) and \(1.8432\times10^{-3}\). Higher powers change the latter more strongly. Comparing the values on a linear vertical axis can conceal the rapid improvement near the centre.

Exercise · vary the winding current

Will doubling both currents double the length of the region satisfying a relative uniformity tolerance?

Both \(B(z)\) and \(B(0)\) scale with current, so their ratio and the accepted length stay fixed. An absolute field-error criterion would give a different answer.