Fundamentals / Physics / Electrodynamics / Magnetism, induction and field dynamics

The vector potential as an instrument for computing flux

An experimenter can measure a flux change with a coil without measuring the magnetic field over every square millimetre of the coil area. The vector potential gives a corresponding computational tool. Its line integral determines flux, while the freedom to choose its gauge can turn a difficult boundary problem into a manageable one.

Separate local representation from global information

In a small simply connected patch with no holes a sufficiently smooth divergence-free magnetic field has a potential \(\boldsymbol B=\nabla\times\boldsymbol A\). Taking a divergence gives zero automatically because mixed Cartesian derivatives commute. For a closed curve bounding an oriented surface within the patch, Stokes's theorem gives

\[\oint\boldsymbol A\cdot d\boldsymbol\ell=\int\boldsymbol B\cdot d\boldsymbol a.\]

The dimensions are useful: \(A\) has units of tesla metres or webers per metre; \(A\) integrated along a curve has units of webers, whereas \(B\) is flux per area. Neither a single component nor the pointwise magnitude of \(\boldsymbol A\) equals a force per charge.

Add the gradient of any smooth single-valued scalar \(\chi\) to \(\boldsymbol A\). Its curl vanishes and its integral around any closed loop is zero, so this changes neither flux nor local force. In a time-dependent problem one must at the same time change \(\phi\) by \(-\partial_t\chi\), since \(\boldsymbol E=-\nabla\phi-\partial_t\boldsymbol A\). This coupled transformation cancels the two derivatives of \(\chi\). It permits moving an electric field contribution between the scalar and vector formulas while leaving their sum intact. A gauge choice simplifies the equations for the potentials; grounding a conductor instead imposes a physical condition on a voltage measurement.

Derive the free-space Coulomb-gauge potential

Substitute \(\boldsymbol B=\nabla\times\boldsymbol A\) into Ampère's equation. The double curl gives

\[\nabla(\nabla\cdot\boldsymbol A)-\nabla^2\boldsymbol A=\mu_0\boldsymbol J.\]

Choose \(\nabla\cdot\boldsymbol A=0\), called the Coulomb gauge. Starting from any initial \(\boldsymbol A\) one can impose this condition by solving \(\nabla^2\chi=-\nabla\cdot\boldsymbol A\) with appropriate boundary behaviour. A further gauge addition is possible if \(\chi\) is harmonic and preserves those conditions. With localised steady currents and decay at infinity the resulting solution is

\[\boldsymbol A(\boldsymbol r)=\frac{\mu_0}{4\pi}\int\frac{\boldsymbol J(\boldsymbol r')}{|\boldsymbol r-\boldsymbol r'|}\,d^3r'.\]

The scalar-looking kernel acts separately on the Cartesian components of the vector current. Verify the gauge explicitly by taking the divergence under the integral. Because \(\nabla G=-\nabla'G\), integrating by parts leaves a term proportional to \(\int G\,\nabla'\cdot\boldsymbol J\,d^3r'\) and a surface current term at infinity. Both vanish for the specified steady localised source. Taking the curl instead gives \(\nabla G\times\boldsymbol J\), which is precisely the Biot–Savart integrand after reversing the cross-product order. For a curved wire, integrating its directed elements with the scalar kernel can be simpler than integrating three different projected field components.

Begin with a uniform field and two different potentials

For \(\boldsymbol B=B_0\hat{\boldsymbol z}\), the choice \(\boldsymbol A_1=B_0x\hat{\boldsymbol y}\) immediately yields

\[B_z=\partial_x A_y.\]

A symmetric construction uses \(\boldsymbol A_2=\boldsymbol B\times\boldsymbol r/2=B_0(-y\hat{\boldsymbol x}+x\hat{\boldsymbol y})/2\). Both have zero divergence, so the Coulomb condition alone has not fixed them. Their difference is \(\nabla(-B_0xy/2)\). A uniform imposed field does not decay at infinity, so no contradiction with the free-space uniqueness statement arises.

A rectangle has vertices \((0,0),(a,0),(a,b),(0,b)\). In the first gauge only the right edge contributes \(B_0ab\) to a counterclockwise line integral. In the symmetric gauge that edge contributes half and the upper edge, traversed leftward, contributes the other half. For \(a=0.20\,\mathrm m,b=0.080\,\mathrm m,B_0=0.030\,\mathrm T\), both return \(4.80\times10^{-4}\,\mathrm{Wb}\). If the field doubles smoothly over 0.040 s, average emf around the stationary loop is \(-0.0120\,\mathrm V\). Trying to assign the measured emf exclusively to the right edge just because one static gauge makes its line integral special would confuse a chosen potential representation with a physical local electric field.

Work around the axis of a long solenoid

Consider an ideal long solenoid of radius \(a\), with axial field \(B_0\) inside and negligible external field. Rotational symmetry suggests \(\boldsymbol A=A_\varphi(s)\hat{\boldsymbol\varphi}\). A circle of radius \(s<a\) encloses flux \(\pi s^2 B_0\); a circle outside encloses the entire \(\pi a^2B_0\). Dividing by its circumference gives

\[A_\varphi(s)=\begin{cases} B_0s/2,&s<a,\\ B_0a^2/(2s),&s>a.\end{cases}\]

The two expressions agree at \(s=a\). In cylindrical coordinates \(B_z=s^{-1}\partial_s(sA_\varphi)\); it gives the desired constant inside and zero outside. Nevertheless every exterior loop encircling the solenoid has a nonzero integral. One cannot remove this exterior potential by a globally single-valued scalar in that punctured domain. Locally \(A_\varphi\) equals a constant times the gradient of the polar angle, but the angle changes by \(2\pi\) upon one circuit. A small loop entirely outside and not surrounding the axis has zero integral. These two experiments distinguish a local zero curl from a global zero circulation.

At \(B_0=12\,\mathrm{mT}\), \(a=10\,\mathrm{mm}\), the enclosed flux is \(3.77\,\mu\mathrm{Wb}\). At \(s=20\,\mathrm{mm}\), \(A_\varphi=3.00\times10^{-5}\,\mathrm{T\,m}\); at twice the radius it is half as large but its loop length is twice as large. If \(B_0\) changes in time, the exterior loop can carry a nonzero induced emf even where its wire sits in nearly zero magnetic field. The change of enclosed flux determines it. For a finite solenoid the returning flux eventually changes the large-radius behaviour, so extending the ideal \(1/s\) result to all distances would describe the wrong source.

Calculate the coupling of two separate circuits

Drive a slender closed loop 1 with steady current \(I_1\). Its vector potential at loop 2 is \(\mu_0I_1/(4\pi)\oint_1 d\boldsymbol\ell_1/R\). Integrating along the second loop yields the Neumann integral \(M=\Phi_{21}/I_1=[\mu_0/(4\pi)]\oint_1\oint_2 d\boldsymbol\ell_1\cdot d\boldsymbol\ell_2/R\). The dot product and distance are symmetric under interchange, so \(M_{21}=M_{12}\) in this reciprocal vacuum setting. Reversing either chosen winding orientation changes the sign; reversing both restores it. The two loops must stay distinct for this simple filament integral. Sending loop 2 onto loop 1 creates a singular self-term. A finite wire radius and the interior current distribution enter a physical self-inductance.

Approximate a small pickup as sampling a uniform axial field from a large drive loop. Let \(a_1=50\,\mathrm{mm}\), pickup radius \(a_2=5\,\mathrm{mm}\), and separation \(z=a_1\). The drive produces

\[B_z/I_1=\mu_0/(2a_1\,2^{3/2})=4.44\,\mu\mathrm{T/A}.\]

The flux per ampere through a single pickup turn is area \(\pi a_2^2\) times this field, or \(0.349\,\mathrm{nH}\). Fifty tightly wound pickup turns give about \(17.45\,\mathrm{nH}\). A changing drive of \(2.0\times10^4\,\mathrm{A/s}\) induces about \(0.349\,\mathrm{mV}\) in magnitude. The approximation uses the small pickup radius relative to the scale on which the drive field varies. Increasing the pickup radius tenfold calls for actual area integration.

Compare linkage, reciprocity and stored energy for coupled coils

Calculate internal and external inductance in a coaxial return

Flux linkage can be subtle even for the simplest straight conductor once the current has a finite cross section. Consider a long coaxial pair with inner radius \(a\) and an ideal thin return shell at \(b\). Work well away from the ends. For equal and opposite currents the exterior field vanishes. In the annulus \(a<s<b\),

\[B_\varphi=\mu_0 I/(2\pi s).\]

A longitudinal rectangular surface spanning the two conductors and length \(\ell\) has flux \(\Phi=\ell\int_a^b B_\varphi\,ds\). All the inner current is enclosed at every radius in that annulus, so its external flux linkage per unit length is \((\mu_0I/2\pi)\ln(b/a)\). The corresponding inductance per unit length has units H/m and is finite because the return sets \(b\).

In terms of the potential \(B_\varphi=-dA_z/ds\), so the same answer is \(\ell[A_z(a)-A_z(b)]\) for the oriented rectangle. A constant added to \(A_z\) cancels between the two longitudinal edges. There are no end contributions for a purely longitudinal potential along radial closing segments. Only the potential difference matters. This example displays which pieces of the earlier infinite-wire result are measurable. Extending the return to ever larger radius makes the linkage grow logarithmically and eventually invalidates the approximation of infinitely long straight sections, since real end connections cannot be neglected at arbitrarily large radii.

If the inner conductor carries uniform steady current, \(B_\varphi(s)=\mu_0 Is/(2\pi a^2)\) inside it. The internal magnetic energy per length follows directly by integrating over rings:

\[U_{\rm int}/\ell=\int_0^a \frac{B_\varphi^2}{2\mu_0}\,2\pi s\,ds=\frac{\mu_0 I^2}{16\pi},\]
\[L_{\rm int}/\ell=\frac{\mu_0}{8\pi}.\]

The unexpectedly radius-independent internal result is an instructive scaling check. At fixed current a smaller radius raises the typical internal magnetic-field magnitude inversely with radius, but the area in which energy is stored falls as the square of radius. Those factors cancel. This coefficient applies to a uniformly conducting solid inner wire and an ideal sheet return. A solid outer conductor with finite thickness has its own internal energy, and at high frequency skin effect progressively removes the approximately uniform low-frequency current distribution.

A naive internal flux integral \(\int_0^aB_\varphi ds\) would give twice the correct linkage. The reason appears by following current filaments: flux in a shell at radius \(s\) links only the fraction \(I_{\rm enc}/I=s^2/a^2\) of the inner current on the relevant side. Weighting by that fraction yields

\[\int_0^a(s^2/a^2)B_\varphi ds=\mu_0 I/(8\pi).\]

This is also the answer from the energy derivative and gives an independent interpretation of partial internal linkages. For \(a=1.0\,\mathrm{mm}, b=4.0\,\mathrm{mm}\), the external contribution is \(0.2773\,\mu\mathrm{H/m}\) and the inner contribution \(0.0500\,\mu\mathrm{H/m}\). In a \(2.0\) m low-frequency section carrying 1.0 A, about \(0.327\,\mu\mathrm J\) of magnetic energy is stored with these approximations. Inferring the geometry from a measured value without subtracting the internal part would bias the inferred logarithmic radius ratio.

Recover the transverse part of a computed potential

A numerical solution may represent an otherwise exact magnetic field by a potential containing substantial gradient contributions. An error estimate based on comparing two raw vector-potential arrays can therefore be misleading. For a periodic calculation choose a nonzero Fourier wavevector \(\boldsymbol k\). The curl depends only on the component of \(\widehat{\boldsymbol A}\) perpendicular to \(\boldsymbol k\), since \(i\boldsymbol k\times\widehat{\boldsymbol A}_{\parallel}=0\). A Coulomb-gauge representative is obtained by subtracting the projection \(\boldsymbol k(\boldsymbol k\cdot\widehat{\boldsymbol A})/k^2\). This is precisely the gradient that the scalar Poisson gauge-fixing problem removes. A constant zero mode needs its own convention since both the derivative and this formula vanish or become undefined at \(\boldsymbol k=0\).

Take coordinates in metres, \(\boldsymbol k=(2,1,0)\,\mathrm{m^{-1}}\), and a real potential \(\boldsymbol A=(3,1,0)\cos(2x+y)\,\mathrm{mT\,m}\). The projection amplitude is \((2.8,1.4,0)\,\mathrm{mT\,m}\). Removing it leaves \((0.2,-0.4,0)\,\mathrm{mT\,m}\). Directly differentiating in either representation gives

\[B_z=\partial_xA_y-\partial_yA_x=+\sin(2x+y)\,\mathrm{mT}.\]

The potential arrays differ by a component more than six times as large in norm as the retained one, but the predicted magnetic field agrees. A solver that tracks flux through a physical pickup instead of one gauge component would recognise this equivalence.

This Fourier argument does not turn every longitudinal component of the physical electric field into a gauge artifact. Physical \(\boldsymbol E\) combines both potentials and its longitudinal projection is constrained by charge. A shift of \(\boldsymbol A\) in time must be accompanied by the scalar shift derived earlier. An independent check on a computed transient is to form both \(-\nabla\phi-\partial_t\boldsymbol A\) and \(\nabla\times\boldsymbol A\), then apply exactly the same discrete differentiation conventions as were used in the field solver. Discrete gradient, curl and divergence operators built on incompatible grids need not cancel as their continuum identities do. If two gauges yield slightly different measured voltages after discretisation, refining the mesh and comparing closed-loop fluxes helps separate differentiation error from genuinely different imposed boundary data.

Follow a charged particle through a time-dependent change of gauge

An electric field in the central region between large closely spaced electrodes can be approximately uniform over a particle trajectory. Let its measured value be \(E_x(t)=E_0\cos\omega t\), and neglect magnetic deflection over the short central path. A scalar-potential description takes \(\phi=-xE_0\cos\omega t\) and \(\mathbf A=0\). The electric force then appears to arise entirely from a spatial derivative. Can the same experiment be described with a vanishing scalar potential? The gauge rule answers this question constructively. To make \(\phi'=\phi-\partial_t\chi=0\), choose a function whose time derivative is the given scalar potential. Integrating at fixed position gives

\[\chi(x,t)=-\frac{xE_0}{\omega}\sin\omega t,\]
\[A'_x=-\frac{E_0}{\omega}\sin\omega t,\]
\[\phi'=0.\]

The curl of this spatially uniform vector potential vanishes. Its negative time derivative gives precisely the measured electric field. A spatially uniform oscillating electric field with no magnetic field everywhere in unbounded source-free space would violate the Maxwell–Ampère law. The electrode example uses a central-region approximation whose accuracy depends on dimensions and frequency. Changing gauge inside that approximation leaves its range of validity exactly where it was. Retaining the small induction fields of a real device also allows gauge transformations of the more complete potentials.

A particle of charge \(q\) and mass \(m\), released from rest at \(t=0\), has kinetic momentum \(mv_x=(qE_0/\omega)\sin\omega t\). Obtain this result first by integrating the physical force. In the new potentials the canonical momentum is \(p_x=mv_x+qA'_x\), which vanishes at all times for this initial condition. The Lagrangian \(L=mv^2/2+q\mathbf v\cdot\mathbf A-q\phi\) in these variables has no explicit \(x\) dependence. Its Euler–Lagrange equation indeed says that \(p_x\) is conserved. In the original potentials \(p_x=mv_x\) changes because the scalar potential depends on \(x\). Both descriptions assign the same speed, trajectory and work to the particle, even though the conserved canonical expression looks different.

This agreement follows for any path, without assuming the particle followed the physical trajectory. Substitute \(\mathbf A+\nabla\chi\) and \(\phi-\partial_t\chi\) into the Lagrangian. Its change is \(q(\mathbf v\cdot\nabla\chi+\partial_t\chi)=q\,d\chi/dt\). Integrated between fixed spacetime endpoints it contributes a fixed boundary term to the action. Varying the path between those endpoints leaves the equations of motion unchanged. The extra canonical momentum \(q\nabla\chi\) is the derivative of that boundary term with respect to the endpoint position. Keeping the canonical momentum numerically fixed when comparing two gauges would accidentally assign different physical initial velocities.

For a singly charged ion of mass \(6.64\times10^{-27}\,{\rm kg}\), take \(E_0=2.0\,{\rm V/m}\) and \(f=100\,{\rm kHz}\). At one quarter cycle the impulse is \(5.10\times10^{-25}\,{\rm kg\,m/s}\) and the speed is about \(76.8\,{\rm m/s}\). The displacement follows by a second integration,

\[x(t)-x(0)=qE_0[1-\cos(\omega t)]/(m\omega^2).\]

It is about \(0.122\,{\rm mm}\) at the same instant. The geometry ought therefore to supply an approximately uniform region comfortably longer than a few tenths of a millimetre. At half a cycle the velocity is again zero. The particle has still moved because its velocity remained positive throughout that interval.

Change a vector potential while holding the magnetic field fixed

Add a gradient to the potential of a uniform magnetic field. Compare the change of a local component with the circulation around a closed rectangle.

Preserve gauge invariance in a numerical circulation

One can check gauge invariance without differentiating noisy data twice. Store each oriented edge integral \(a_{ij}=\int_i^j\mathbf A\cdot d\mathbf l\) on a mesh. Adding a scalar gauge function specified at the vertices changes an edge integral by precisely \(\chi_j-\chi_i\). Summing around a face gives four such differences on a rectangular grid. Each vertex occurs once as an end and once as a beginning. The terms cancel exactly, including on irregularly shaped faces, provided that the last edge returns to the first vertex and shared edges use opposite signs for adjacent faces. The result is a simple test for a discrete curl operator that should survive grid refinement unchanged.

A rectangular face has consecutive gauge values \(0,2,5,-1\) in units of \(\mu{\rm Wb}\). A program stores initially zero edge integrals. What should it write after the gauge transformation, and what does the sum measure?

Work through the solution

Walking around the oriented boundary yields changes of \(+2,+3,-6,+1\,\mu{\rm Wb}\). Each value is allowed to change independently, but their signed sum is zero. That sum is the magnetic flux through the face by Stokes' theorem. Reversing the boundary should negate every contribution and still give zero. If a neighbouring face uses the same stored value with the same sign for their shared edge, interior contributions will survive in the total flux of a patch. Such a result indicates a mismatch of edge orientation even if some perfectly symmetric test configurations accidentally give zero.

Why does division by the edge length matter when using vector components exported by another code?

Work through the solution

The discrete cancellation applies directly to line integrals. A stored component tangential to an edge has units of potential per unit length in this representation and must first be multiplied by its edge length, or integrated with a suitable quadrature if it varies. Adding raw component values around a stretched cell weights physically different lengths equally. A gauge test on a uniform mesh can conceal this error. Repeat it on cells of unequal lengths and compare fluxes in webers.

David Tong, Electromagnetism and Relativity, on potentials and gauge transformations.

Tutorial on gauge and flux

An infinite axial wire yields

\[B_\varphi=\mu_0I/(2\pi s).\]

Choose a vector potential of the form \(A_z(s)\hat{\boldsymbol z}\). Determine the difference \(A_z(2s)-A_z(s)\), and explain why \(A_z(\infty)=0\) cannot be imposed.

Work through the solution

The cylindrical curl gives \(B_\varphi=-dA_z/ds\), so \(A_z(s)=-(\mu_0I/2\pi)\ln(s/s_0)\). The difference is \(-(\mu_0I/2\pi)\ln2\), independent of \(s_0\). An infinite wire is not a localised current with a remote return. Its logarithm cannot both fit the field and tend to zero at infinity. A coaxial return supplies a physically meaningful outer length.

A closed circle outside the ideal solenoid is deformed into an elongated loop without crossing the solenoid. The computed circulation changes by 8 percent. What three physical or numerical hypotheses would you test?

Work through the solution

Under the ideal conditions the enclosed flux stays fixed for deformations entirely through field-free space. Check whether the solenoid has significant end fields, whether the computed geometry changes the winding number, and whether the line quadrature resolves the parts passing closest to the axis. A change of a smooth single-valued gauge cannot change that closed integral.

Take \(\chi=\alpha xt\) in a field-free configuration initially represented by \(\phi=0,\boldsymbol A=0\). Recover the fields after transformation.

Work through the solution

The new potentials are

\[\phi'=-\alpha x,\ \boldsymbol A'=\alpha t\hat{\boldsymbol x}.\]

The static-looking scalar gradient supplies \(+\alpha\hat{\boldsymbol x}\) and the negative vector time derivative supplies \(-\alpha\hat{\boldsymbol x}\), cancelling. The curl of the spatially uniform vector potential vanishes. A scalar voltage difference alone need not be the complete physical electric field in a time-dependent gauge.