The magnetic vector potential (A) is a vector field that serves as the potential for the magnetic field. The curl of the magnetic vector potential is the magnetic field.
B=∇×A
The magnetic vector potential is preferred when working with the Lagrangian in classical mechanics and quantum mechanics.
The magnetic vector potential contributed by a length ds with current I running through it is
dA=4πrμ0Ids.
What is the magnetic vector potential a distance R from a long straight current element?
Assume the wire is placed on the z-axis. Hence the distance from a differential element dz to a point in space is
r=R2+z2.
Hence,
dA=4πμ0IR2+z2dzz^.
Now it is necessary to integrate over the length of the rod. Since the rod is arbitrarily said to be on the z-axis, it can be said, for simplicity, to extend from z=0 to z=L. This simply requires multiplying by 2. Also, use the substitution z=Rtan(θ).