Magnetostatics and vector potential
Connect steady currents, magnetic circulation, flux, and the nonuniqueness of a vector potential.
On this page
The question for today
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.
Curl contains the magnetic information
Writing 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 changes without changing its curl, because mixed derivatives cancel. Choosing the Coulomb gauge 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.
Closed integrals recover flux
Stokes's theorem relates the line integral of 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.
Work it through
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.
Use cylindrical symmetry to write . With , its coefficient is .
The surface normal is azimuthal. Integrate across the radius and along the length: .
Substitute and . The magnitude is . Reversing the chosen normal reverses its signed value.
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.
The living notebook
Explore the model
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.
- Fx at (1, 0)
- 0.833
- Fy at (1, 0)
- 0.5
- Field magnitude there
- 0.972
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.
Pause & reason
Check your understanding
Your turn
Try it yourself
Show that 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 . The x and y components vanish because Az is zero and the remaining components have no z dependence. Thus . Another valid choice is ; their difference is , so the two potentials are gauge equivalent.
Keep the idea
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.