Decide what is steady
Imagine making two maps at successive times of the current density in a conducting ring. Charges move, but if the maps agree, the source can be stationary. The current through an oriented cross section is \(I=\int\boldsymbol J\cdot d\boldsymbol a\). Charge balance in any fixed volume requires
A genuinely steady system has \(\nabla\cdot\boldsymbol J=0\), including across contacts where current changes direction. A single finite wire element carrying a constant current cannot be an entire isolated source: continuous current would have to appear at one end and disappear at the other. It can be a contribution to the field of an explicitly closed arrangement.
In vacuum the magnetostatic equations are
Stokes's theorem turns the second into \(\oint\boldsymbol B\cdot d\boldsymbol\ell=\mu_0 I_{\rm enc}\). It gives one number for the whole closed path. For an infinite straight wire rotational and translational symmetry establish in advance that the field is azimuthal and constant along a coaxial circle. Only then does the integral determine a local field \(B=\mu_0 I/(2\pi s)\). For a bent wire the same circulation equality holds. Extracting a pointwise magnitude from it is a separate inverse problem. A linear superposition integral resolves that problem directly.
Invert the local curl equation
Take the curl of Ampère's equation. In Cartesian coordinates the identity \(\nabla\times\nabla\times\boldsymbol B=\nabla(\nabla\cdot\boldsymbol B)-\nabla^2\boldsymbol B\) applies componentwise. Since its divergence vanishes,
Assume first that the sources occupy a bounded region of space and the field decays at large distance. For each component the inverse of \(-\nabla^2\) is the Newton kernel \(G(\boldsymbol r-\boldsymbol r')=1/(4\pi|\boldsymbol r-\boldsymbol r'|)\). Its normalisation follows from integrating \(-\nabla^2G\) over a little sphere. The outward derivative contributes precisely one.
Thus the field is \(\mu_0\int G\,\nabla'\times\boldsymbol J\,d^3r'\). Move the source derivative off the current by integrating the product \(\nabla'\times(G\boldsymbol J)\). Its surface integral at infinity vanishes for localised currents. The remaining term is \(-\mu_0\int(\nabla'G)\times\boldsymbol J\,d^3r'\). Writing \(\boldsymbol R=\boldsymbol r-\boldsymbol r'\),
Interchanging the two factors in the cross product supplies another minus sign.
The integrand tells us where direction comes from. It is perpendicular both to the local current and to the vector pointing from source to probe. A segment aimed straight at the probe contributes zero there. A very distant transverse segment contributes as its length divided by squared distance. The special \(1/s\) field of an infinite wire results from summing contributions along an extended length. A free-space field could still contain an additional homogeneous contribution if large coils elsewhere impose a background; the assumed boundary condition fixed that possibility. In a cavity bounded by magnetic material one needs the corresponding boundary solution or all equivalent sources.
Collapse a slender wire into a curve
Within a narrow conducting filament take arc length \(u\), unit tangent \(\boldsymbol t(u)\) in the current direction, and transverse section \(S(u)\). If the observation distance and the local radius of curvature both greatly exceed the wire radius, the kernel changes little across a section. The volume element contributes its area times \(du\), while the current density integrated over that area gives \(I\). Their product becomes
The resulting Biot–Savart integral is a geometric idealisation with units \(\mu_0 I/\mathrm m=\mathrm T\).
For a straight section on the \(z\)-axis from \(-a\) to \(+a\), observe on the perpendicular bisector at \((s,0,0)\), \(s>0\). A current directed towards \(+z\) gives
The only surviving component requires the elementary integral \(\int s(s^2+z'^2)^{-3/2}dz'=z'/[s\sqrt{s^2+z'^2}]\), hence
With \(a=0.10\,\mathrm m,\ s=0.040\,\mathrm m,\ I=3.0\,\mathrm A\), the infinite-wire value is \(15.0\,\mu\mathrm T\) and the finite-section contribution is \(13.93\,\mu\mathrm T\). A detector with a one-percent calibration would resolve the difference. Moving the probe twice as far changes the finite-length factor as well as \(1/s\), so simply dividing the field by two is insufficient. To predict the experiment one must add the field from the return conductor. Tilting that return to point approximately towards the probe can reduce its contribution even when its nearest distance stays similar.
Sum a loop before invoking its symmetry
Put a circular loop of radius \(a\) in the \(xy\)-plane with counterclockwise current as seen from \(+z\). A source element \(a\,d\varphi\,\boldsymbol e_\varphi\) sees the axial point \(z\boldsymbol e_z\) along \(z\boldsymbol e_z-a\boldsymbol e_s\). Its cross product is \(a\,d\varphi(z\boldsymbol e_s+a\boldsymbol e_z)\). The radial terms integrate to zero because their directions rotate around the ring. Every axial term has the same direction and distance factor. Integrating the factor around the circle gives
At the centre the field is \(\mu_0I/(2a)\). For \(a=0.050\,\mathrm m\) and \(I=2.0\,\mathrm A\), this is \(25.13\,\mu\mathrm T\), comparable to ordinary ambient geomagnetic field scales. At \(z=a\) it is only \(2^{-3/2}=0.3536\) of the central reading, or \(8.89\,\mu\mathrm T\). A practical isolation procedure measures once with positive current and once with negative current. Half the reading difference removes a background stable between the two runs. An intensity-only sensor that records \(|\boldsymbol B|\) instead of a signed axial component needs a separate procedure, since magnitudes of vectors do not add linearly.
The loop also supplies an internal test of rough field approximations. At \(|z|\gg a\), expanding \((1+a^2/z^2)^{-3/2}\) gives
In the median plane a dipole moment points opposite to the local external field, whereas on either extension of its axis the field points in the moment direction. A scalar drawing that simply marks a plus sign for \(z>0\) and a minus sign for \(z<0\) would confuse the direction of the observation position with the direction of the field.
Give a singular source a physical cross section
The filament field diverges as the mathematical distance to an ideal line tends to zero. For a long cylindrical conductor of radius \(a\) carrying uniform steady current \(I\), the field is regular. An Amperian circle at \(s<a\) encloses \(I s^2/a^2\). Its circulation yields \(B_\varphi(s)=\mu_0 I s/(2\pi a^2)\), tending to zero at the centre. Outside it joins the filament result continuously. If all the current instead flowed in an infinitesimal surface sheet, the interior field would vanish and a tangential jump would appear at the surface. The outside measurement of a perfectly symmetric straight wire would be identical in these two ideal models.
For a \(2.0\,\mathrm{mm}\) radius wire with \(I=4.0\,\mathrm A\), the surface value is \(0.400\,\mathrm{mT}\). Halfway out, uniform bulk flow gives \(0.200\,\mathrm{mT}\); a thin outer sheet gives zero there. The same reasoning underlies an inverse estimate of current density from measured interior field:
Differentiating noisy measurements can amplify high spatial frequencies, so one can instead compare flux integrals over annuli. The difference \(2\pi[s_2B(s_2)-s_1B(s_1)]/\mu_0\) gives the current through an annulus without numerical differentiation.
Set up a finite-current computation
For a polygonal coil, sum each oriented segment contribution as a three-component vector. Split a curved path into short sections, evaluate geometry at each midpoint, and compare with a second run using twice as many sections. For a smooth integrand at a fixed point away from the winding one expects second-order midpoint convergence. Near a filament the kernel varies on the source-to-probe separation. Refining until the segment length is small relative to that separation can require much finer sampling than refining the plotted contour itself. At a point inside the conductor, improving a line approximation cannot replace a cross-sectional current model.
An independent quality test is symmetry. The two transverse axial components of a centred circular coil must cancel separately to roundoff for a symmetric discretisation. An axial field may nonetheless be inaccurate if all segment lengths systematically approximate the wrong radius. Check the absolute axial benchmark as well as the zero components. A second useful test reverses every edge orientation while keeping the probe and axes fixed; all three field components must reverse. These checks detect mistakes in geometry, integration and sign that a visually plausible field-line plot can hide.
Design a nearly uniform calibration field
A single loop has a local maximum of axial field at its centre, with appreciable curvature. A sensor of finite size averages across positions and can read a different value from a nominal point probe. Two identical coaxial loops with equal current permit the curvature to be removed at a chosen point. Put their centres at \(z=\pm d/2\). Let \(b(z)=K(a^2+z^2)^{-3/2}\), \(K=\mu_0NIa^2/2\), be the field from one \(N\)-turn loop centred at the origin. By superposition,
This is even in \(z\) for every spacing, so its first derivative at the midpoint vanishes. A flat-looking midpoint on a coarse graph consequently gives no information about whether the separation was set correctly.
Differentiate once to obtain
The next derivative is
The pair therefore has \(B''(0)=0\) when \(4(d/2)^2=a^2\): the separation equals the radius. At that setting the central value is
With \(a=d=0.10\,\mathrm m\), 50 turns on each winding and 0.20 A, it is \(89.9\,\mu\mathrm T\). A thermal expansion increasing both radius and separation by one percent preserves their ratio yet lowers the field calibration nearly one percent at fixed current. Geometrical uniformity and absolute calibration are distinct tolerances.
There is a useful way to estimate the size of the flat region without trusting the plot scale. Write \(u=z/a\) and expand each factor \([1+(u\pm1/2)^2]^{-3/2}\) in the exact two-coil formula. Odd terms cancel in the sum, and the quadratic term was eliminated by design. The first surviving correction is
At one tenth of a radius it predicts a fractional axial fall of \(1.15\times10^{-4}\), roughly 0.012 percent. At one quarter radius the quartic estimate is 0.45 percent; comparison with the unexpanded expression is more appropriate if a tight tolerance is specified. With a single loop, by contrast, \(B(z)/B(0)=1-3u^2/2+O(u^4)\), already losing about 1.5 percent at the first of those positions.
Is the field also uniform slightly off the axis? In a current-free axisymmetric region, smooth fields obey \(\nabla\times\boldsymbol B=0\) and \(\nabla\cdot\boldsymbol B=0\). Write \(B_z(s,z)=B_0(z)+c(z)s^2+\cdots\) and \(B_s=d(z)s+\cdots\); odd radial axial terms would fail smoothness at the axis. From the divergence \(2d+B_0'=0\). The azimuthal curl gives \(d'=2c\), hence \(B_s=-s B_0'/2+\cdots\) and \(B_z=B_0-s^2B_0''/4+\cdots\). Eliminating axial curvature removes the leading radial variation too. It does not remove the field of an asymmetrically routed supply lead, which breaks the expansion's assumed symmetry. Twisting a distant supply pair and measuring a reversed-current map test that separate contribution.
Separate the feed from the return in a field measurement
Consider two long straight parallel conductors separated by \(2a\). The right conductor carries \(+I\) along \(z\); the left carries \(-I\). On the line of centres at position \(x>a\), their azimuthal fields oppose. Adding signed magnitudes gives
At \(a=5.0\,\mathrm{mm}, x=50\,\mathrm{mm},I=1.0\,\mathrm A\), the field is \(0.808\,\mu\mathrm T\). The nearer conductor alone would contribute \(4.44\,\mu\mathrm T\). Omitting the return because it is 'the other lead' would overpredict the signal by more than a factor of five. Well outside the wire spacing but far from the ends, the leading transverse field falls as \(1/x^2\); at still greater distances than the full length of a finite closed rectangular winding, the complete assembly ultimately behaves as a three-dimensional dipole and falls as \(1/r^3\). The apparent power law therefore depends on which distances are large relative to which parts of the apparatus.
Now move the probe between the conductors to \(x=0\). Both fields point in the same transverse direction there, with magnitude \(\mu_0I/(\pi a)=80.0\,\mu\mathrm T\) for the same parameters. A probe displaced laterally by a fraction of the spacing can therefore see a large change even at fixed current. Reversing both lead currents swaps every sign. Reversing just the nominal return current would create parallel currents and describe a new unseen return elsewhere, illustrating why 'individual wire fields' require their circuit context. If the readings are used to infer a small current, fit the two known conductor positions and the background rather than using the distance to the nearest visible piece of copper as the only geometry input.
The two examples provide complementary ways to verify a coil calculation experimentally. For a calibration pair, motion over a known traverse tests a deliberately small spatial derivative, while reversing current rejects an additive background. For opposed leads, the sharp transition between addition and cancellation tests probe alignment and whether the return has been modelled. A single calibration at the midpoint could succeed in either geometry with the wrong sign convention or an erroneously rescaled current. A signed scan over a measured range of positions exposes those degeneracies.
Recover a magnetic field from a steady current
Compare the on-axis contributions of current loops before and after changing their spacing. Check the sign and spatial uniformity near the centre.
Resolve a current strip from its measured field
A long conducting strip occupies the region between \(x=-a\) and \(x=a\) in the plane \(z=0\). Conventional current flows in positive \(y\). Suppose leads far from the observation region distribute the current uniformly across the width. Calling the surface current \(K\) fixes the current in the narrow ribbon between \(x'\) and \(x'+dx'\) as \(K\,dx'\). The total current is therefore \(I=2aK\). A wide trace on a board and a narrow round wire carrying the same current look similar at a distance. An observer close enough to resolve the width should be able to tell them apart. We can calculate exactly how close the observer has to come in this ideal geometry.
Each ribbon is an infinitely long straight source. Its contribution lies on a circle around the \(y\) axis through \(x'\). At an observation point \((x,0,z)\), its direction is proportional to \(\hat y\times[(x-x')\hat x+z\hat z]\). The field vector is the transverse displacement rotated through a right angle and divided by its squared length. The familiar inverse distance of the straight wire is still present because the numerator has the magnitude of one distance. On the centre line the contributions to \(B_z\) cancel in pairs. All contributions to \(B_x\) add with the same sign above the plane. For positive \(z\),
At heights much smaller than the half-width the arctangent approaches \(\pi/2\). A locally infinite sheet gives the same field, \(\mu_0K/2\). At heights much greater than the half-width, replacing the arctangent by its argument gives \(\mu_0I/(2\pi z)\). The first correction to this wire prediction has relative size \(-a^2/(3z^2)\). A single formula thus shows when an idealisation loses the length scale that distinguishes different sources. At height \(z=a\) the strip gives exactly one half of its value immediately above the centre of the sheet.
Take a strip of width \(40\,{\rm mm}\) with current \(8.0\,{\rm A}\). The surface current is \(200\,{\rm A/m}\), and the limiting centre field is \(125.7\,\mu{\rm T}\). At \(z=5\,{\rm mm}\), the exact field is about \(106.1\,\mu{\rm T}\). At \(20\,{\rm mm}\), it is \(62.8\,\mu{\rm T}\). A line-current estimate at this second position gives \(80.0\,\mu{\rm T}\). This discrepancy occurs even when the source is perfectly long. Extending the source in the \(y\) direction cannot cure an approximation that discarded the width in the \(x\) direction.
A scan at fixed height reveals another part of the vector field. Integrating the signed \(z\) component gives
The logarithm vanishes at the centre, changes sign across it and is negative on the positive \(x\) side. Just above an edge the ideal formula grows in magnitude as the height decreases. The singular geometry assumed zero thickness and terminated a uniformly flowing sheet abruptly at a perfectly sharp boundary. A probe of finite active size measures a spatial average. A model of a real edge also needs its thickness and actual current distribution. Neither complication changes the centre-line limiting fields at heights well above the thickness and well inside the long region of the strip.
A student measures a short-distance plateau and records a centre field equal to half the plateau at a nominal height of \(12\,{\rm mm}\). What width follows, and how could a sensor-position offset corrupt the inference?
Work through the solution
The half-height condition requires an arctangent equal to \(\pi/4\), so the actual separation equals the half-width. The inferred full width is \(24\,{\rm mm}\) if the sensitive element lies at the point used to define the nominal height. Suppose instead that the sensitive element sits \(2\,{\rm mm}\) behind the face of its package and the nominal reading gives the face height above the strip. The field probe was then \(14\,{\rm mm}\) from the current sheet, and the inferred full width becomes \(28\,{\rm mm}\). A fit at several heights can estimate an unknown offset together with the width. A remote return wire adds an approximately constant background over a short scan, so reverse the source current and measure the field of the return geometry separately when the desired precision demands it.
What happens to a far-field and a near-field reading if the same total current is spread over twice the width?
Work through the solution
In the far field the leading term depends only on total current, so it is insensitive to the change provided the observation height is still much larger than the new width. On the near-field centre plateau the field halves because \(K=I/(2a)\) halves. At an intermediate height use the arctangent with the new half-width and the new value of \(K\). Doubling the width while keeping the surface current fixed describes a different experiment because the supply then delivers twice as much total current.
David Tong, Magnetostatics, on deriving a field from its current distribution.
Tutorial on recovering fields from geometry
A square loop has side \(2a\) and current \(I\). Find the field at its centre by using the finite-section result. For \(a=0.050\,\mathrm m,\ I=2.0\,\mathrm A\), compare it with a circular loop of equal enclosed area.
Work through the solution
Each straight side is at perpendicular distance \(a\), and its half-length is \(a\), giving \(\mu_0I/(2\pi a\sqrt2)\) per side. All four point along the same normal. The result is
Equal area requires a circular radius \(2a/\sqrt\pi=0.0564\,\mathrm m\); its field is \(22.27\,\mu\mathrm T\). Equal enclosed areas imply equal dipole moments far away, but a central probe distinguishes the two windings.
A cylindrical wire with azimuthal field \(B_\varphi=bs^3\) inside radius \(a\) carries an unknown axial current distribution. Reconstruct it and compare the current inside \(a/2\) with the current inferred at \(a\).
Work through the solution
Ampère gives
The differential current through an annulus is \(2\pi sJ_z\,ds\), yielding \(J_z=4bs^2/\mu_0\). The half-radius encloses \(1/16\) of the total. A uniform-density wire would enclose \(1/4\), so a single exterior reading cannot determine the distribution while several interior readings could do so.
At what ratio \(a/s\) does the infinite-wire approximation overestimate the finite straight section on its perpendicular bisector by less than one percent, measured against the exact contribution?
Work through the solution
The ratio of approximate to exact is \(\sqrt{1+(s/a)^2}\). Requiring it below 1.01 gives
The full length must exceed roughly 14 times the perpendicular distance. Even a section meeting this condition still requires an estimate of the return path field.