A vector potential for a field uu is a field AA whose satisfies

u=×A.u=\nabla\times A.

If AA is C2C^2, then uu is divergence-free. Adding a gradient ϕ\nabla\phi to AA leaves its curl unchanged, so potentials are generally nonunique.

A local construction

On a region star-shaped about zero, a smooth divergence-free field has the potential

A(x)=01tu(tx)×xdt.A(x)=\int_0^1 t\,u(tx)\times x\,dt.

Indeed, ×[tu(tx)×x]=t[t2u(tx)]\nabla\times[t\,u(tx)\times x]=\partial_t[t^2u(tx)] when divu=0\operatorname{div}u=0; integration gives ×A=u\nabla\times A=u. This local formula does not assert that an arbitrary domain admits a global potential with prescribed boundary conditions or compact support.

Localization

If a smooth scalar cutoff χ\chi equals one in a region, then ×(χA)=u\nabla\times(\chi A)=u there and stays divergence-free everywhere. The transition region contains the correction χ×A\nabla\chi\times A.