The magnetic vector potential is defined by . The gauge transformation
leaves both and unchanged. In magnetostatics choose the Coulomb gauge . Then Ampère's law and the curl-of-curl identity give
The free-space Green function identity therefore gives
The boundary condition selects the homogeneous solution; the usual decay condition assumes suitably localized sources. An infinitely long static wire needs a reference for its logarithmically divergent potential, although its magnetic field is finite away from the wire.
For time-dependent sources use the Lorenz gauge, , and the outgoing retarded potential
The scalar potential has the analogous retarded charge-density integral. The two gauges should not be conflated for a general time-dependent source.[ref]
For the prescribed uncharged wire, and is consistent. Translation invariance makes with , so this particular solution satisfies both gauge conditions. With ,
It is zero for . For , set . The causal interval is , giving the switched infinite-wire retarded potential
Differentiation gives the fields and Poynting vector, for , :
Here and . All three fields vanish before arrival. For positive , opposes the imposed current and the radial energy flow after switching a line current points radially outward: .
Figure 1.
At fixed radius the causal fields start at t equals r over c and relax toward the magnetostatic limit
. Source. Details.
For the graph, let . Normalized to , and , the curves are
At the wavefront, and diverge as and as . This abrupt line-current wavefront singularity reflects the ideal instantaneous turn-on of a line current; a finite rise time smooths the front. At late times,
The vector potential grows logarithmically with time in this infinite-wire idealization even as the local magnetic field approaches its static limit. The divergent front should not be interpreted as a finite-energy pulse from a real instantaneous switching experiment.