core34 min studyLesson 13 in Physics

Magnetostatics and vector potential

Connect steady currents, magnetic circulation, flux, and the nonuniqueness of a vector potential.

On this page

What you’ll understand

  • Use Ampère's law with an explicit symmetry argument.
  • Recover a magnetic field from a vector potential.
  • Distinguish gauge-dependent potential values from magnetic flux.

Steady currents produce a magnetic field whose field lines do not begin or end on magnetic charges in ordinary Maxwell theory. The field can be described as the curl of a vector potential, a representation that simplifies calculation and prepares for gauge theory. The representation is not unique, and learning which combinations are physical is part of using it correctly.

Steady sources must close their current paths

Magnetostatics means that currents and charge densities have settled into time-independent configurations. Charge conservation then requires zero current divergence. A wire cannot continuously deliver charge into an isolated endpoint while maintaining the magnetostatic assumption. In a laboratory, return paths and sources complete the circuit. An infinitely long straight wire is a useful local idealization when the observation point is far from those geometric complications.

Ampère's circulation law holds for steady currents in vacuum, but extracting a field magnitude requires symmetry. For an ideal straight wire, cylindrical symmetry makes the field azimuthal and constant along a centered circle. The right-hand rule fixes its direction from the current direction. An irregular loop still obeys the law, but generally requires a Biot–Savart integral rather than a single division by circumference.

∇×B=μ0J,∮B⋅dℓ=μ0Ienc,Bφ=μ0I2πr\nabla\times\mathbf B=\mu_0\mathbf J,\qquad \oint\mathbf B\cdot d\boldsymbol\ell=\mu_0 I_{\mathrm{enc}},\qquad B_\varphi=\frac{\mu_0I}{2\pi r}
The last expression requires an ideal infinite straight wire in vacuum. Magnetic field is in teslas, current in amperes, and r in metres. Time-dependent displacement current has deliberately been excluded here.↔ Scroll wide equations horizontally.

Curl contains the magnetic information

Writing B=∇×A\mathbf B=\nabla\times\mathbf A automatically satisfies the absence of magnetic charge. In a contractible region with suitable regularity, a divergence-free field admits this global representation; more complicated topology can require patches or additional flux conditions. Its units are tesla metres, equivalently webers per metre. A potential component is not a magnetic field component, and differentiating it is essential before comparing with a magnetometer.

Adding ∇χ\nabla\chi changes A\mathbf A without changing its curl, because mixed derivatives cancel. Choosing the Coulomb gauge ∇⋅A=0\nabla\cdot\mathbf A=0 converts the static field equations into a vector Poisson equation. Boundary and decay conditions remain necessary, just as for an electrostatic potential. A gauge choice organizes the redundant description; it does not add a new measured force.

B=∇×A,A′=A+∇χ,∇2A=−μ0J(Coulomb gauge)\mathbf B=\nabla\times\mathbf A,\qquad \mathbf A' =\mathbf A+\nabla\chi,\qquad \nabla^2\mathbf A=-\mu_0\mathbf J\quad\text{(Coulomb gauge)}
The Poisson equation uses steady sources and ∇·A = 0. For localized currents with appropriate decay at infinity its familiar Green-function solution integrates J divided by source-observer separation.↔ Scroll wide equations horizontally.

Closed integrals recover flux

Stokes's theorem relates the line integral of A\mathbf A around a closed loop to magnetic flux through a spanning surface. For a single-valued smooth gauge function, the added gradient integrates to zero around that loop. By contrast, an open-path integral changes by the difference of gauge-function values at its endpoints. Closing the path is therefore a physical and mathematical distinction, not a drawing convention.

For the ideal wire, one convenient potential has only a longitudinal component proportional to minus the logarithm of radius. The arbitrary reference radius changes that component by a constant and leaves the field unchanged. The logarithm cannot be forced to vanish at infinity for an infinite wire: the source itself is nonlocalized. This limitation is another reminder to match boundary assumptions to the source idealization.

Az(r)=−μ0I2πln⁡rr0,Bφ=−dAzdr,∮A⋅dℓ=∫B⋅dSA_z(r)=-\frac{\mu_0I}{2\pi}\ln\frac r{r_0},\qquad B_\varphi=-\frac{dA_z}{dr},\qquad \oint\mathbf A\cdot d\boldsymbol\ell=\int\mathbf B\cdot d\mathbf S
The logarithm has a dimensionless argument. The potential applies outside the ideal wire; r₀ fixes a reference. The flux relation assumes a consistently oriented loop and spanning surface in the domain where A is defined.↔ Scroll wide equations horizontally.

Flux through a rectangle beside a wire

A long wire carries 5.0 A. A rectangular loop lies in a radial-longitudinal plane, extends 0.10 m parallel to the wire, and spans radii 1.0 cm to 2.0 cm. Estimate the magnetic flux magnitude in vacuum.

  1. Use cylindrical symmetry to write Bφ(r)=μ0I/(2πr)B_\varphi(r)=\mu_0I/(2\pi r). With μ0≃4π×10−7 H/m\mu_0\simeq4\pi\times10^{-7}\,\mathrm{H/m}, its coefficient is 1.0×10−6 T m1.0\times10^{-6}\,\mathrm{T\,m}.

  2. The surface normal is azimuthal. Integrate across the radius and along the length: ΦB=ℓ∫r1r2Bφ(r) dr=(μ0Iℓ/2π)ln⁡(r2/r1)\Phi_B=\ell\int_{r_1}^{r_2}B_\varphi(r)\,dr=(\mu_0I\ell/2\pi)\ln(r_2/r_1).

  3. Substitute ℓ=0.10 m\ell=0.10\,\mathrm m and r2/r1=2r_2/r_1=2. The magnitude is 1.0×10−7ln⁡2=6.93×10−8 Wb1.0\times10^{-7}\ln2=6.93\times10^{-8}\,\mathrm{Wb}. Reversing the chosen normal reverses its signed value.

The result

The loop encloses about 69 nWb. Using the field at the outer edge times area would underestimate the flux because the field grows toward the wire.

Explore the model

Interactive lab

Interactive lab · fields

Separate circulation from radial sourcing

Set the source control q to zero and vary Ω to inspect the rotating two-dimensional field Ω(−y,x). It illustrates circulating arrows and nonzero curl. Its magnitude grows with radius, unlike the 1/r field around a wire, so it must not be read as a wire-field calculator.

Separate circulation from radial sourcingThe softened illustration is q·r/(r² + 0.2) + Ω(−y, x). Moving markers indicate local direction, not integrated particle paths or a Maxwell solution. Current readings: Fx at (1, 0): 0.833; Fy at (1, 0): 0.5; Field magnitude there: 0.972. All parameters are adjustable with the labeled controls below.−3.2−1.601.63.2−1.5−0.7500.751.5xyq = 1
Local field directionSource strength
Fx at (1, 0)
0.833
Fy at (1, 0)
0.5
Field magnitude there
0.972
t = 0 s

The softened illustration is q·r/(r² + 0.2) + Ω(−y, x). Moving markers indicate local direction, not integrated particle paths or a Maxwell solution. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.

Look forCirculation, radial dependence, and source geometry must all be specified before identifying a magnetic model.

Check your understanding

What happens to B when a smooth gradient ∇χ is added to A?

Try it yourself

Show that A=(−By/2,Bx/2,0)\mathbf A=(-By/2,Bx/2,0) describes a uniform magnetic field along z, with B a constant.

Take a moment to make a prediction or work it out on paper. Open a hint when you need one.

Give me a hint

Calculate the z component ∂Ay/∂x − ∂Ax/∂y and inspect the other components.

Compare with the solution

The z component of the curl is B/2−(−B/2)=BB/2-(-B/2)=B. The x and y components vanish because Az is zero and the remaining components have no z dependence. Thus ∇×A=(0,0,B)\nabla\times\mathbf A=(0,0,B). Another valid choice is (0,Bx,0)(0,Bx,0); their difference is ∇(Bxy/2)\nabla(Bxy/2), so the two potentials are gauge equivalent.

Take it with you

  • Steady-current symmetry determines when Ampère's law becomes an algebraic shortcut.
  • A vector potential contains redundant information because gradients do not alter its curl.
  • Magnetic flux is recovered from a closed potential integral with consistent orientation.

Read further

Original sources and deeper explanations to follow at your own pace.

Optional progress, saved in this browser when available. Revisit any lesson at any time.

Lesson not marked complete.