physics2u
Tier
⌕ Search ⌘K
Derivation

Magnetic Vector Potential and Gauge Freedom

D-053 Home PU-102 Threads fields · symmetry Depends on Absence of Magnetic Monopoles, Ampère's Circuital Law from Biot–Savart
Statement

Because the magnetostatic field satisfies \(\nabla\cdot\mathbf{B}=0\) everywhere, it can be written as the curl of a vector potential, \(\mathbf{B}=\nabla\times\mathbf{A}\). This \(\mathbf{A}\) is fixed only up to the gradient of an arbitrary scalar, \(\mathbf{A}\to\mathbf{A}+\nabla\chi\) (gauge freedom). Imposing the Coulomb gauge \(\nabla\cdot\mathbf{A}=0\) reduces the magnetostatic Ampère law \(\nabla\times\mathbf{B}=\mu_0\mathbf{J}\) to a vector Poisson equation \(\nabla^2\mathbf{A}=-\mu_0\mathbf{J}\).

Why it matters

The vector potential converts a curl equation for \(\mathbf{B}\) into a Poisson equation for \(\mathbf{A}\) — the same operator already solved once for electrostatics — so the entire machinery of the Coulomb problem (Green's functions, multipole expansion, uniqueness theorems) transfers directly to magnetostatics. Each Cartesian component of \(\mathbf{A}\) then follows from a single integral rather than a set of coupled curl equations.

Gauge freedom is not a defect but the first appearance of a principle that organises all of modern physics: the potentials carry redundant information, and the observable content lives only in gauge-invariant combinations. The same \(\mathbf{A}\) becomes a dynamical variable in electrodynamics, the object that couples to the quantum phase of a charged particle in the Aharonov–Bohm effect, and the template for Yang–Mills gauge theory.

Assumptions
Magnetostatics: steady currents, \(\partial\mathbf{B}/\partial t=0\) and \(\partial\mathbf{E}/\partial t=0\).If dropped, the displacement current makes Ampère's law read \(\nabla\times\mathbf{B}=\mu_0\mathbf{J}+\mu_0\varepsilon_0\,\partial\mathbf{E}/\partial t\); the clean instantaneous Poisson reduction fails and \(\mathbf{A}\) also enters \(\mathbf{E}=-\nabla V-\partial\mathbf{A}/\partial t\).
\(\nabla\cdot\mathbf{B}=0\) holds globally (no magnetic monopoles).If dropped, \(\mathbf{B}\) is not purely a curl and no single-valued \(\mathbf{A}\) with \(\mathbf{B}=\nabla\times\mathbf{A}\) exists; one needs Dirac strings or a multi-patch potential.
The domain is simply connected so that a globally divergence-free field is globally a curl.If dropped, \(\nabla\cdot\mathbf{B}=0\) still gives \(\mathbf{A}\) locally, but on a non-contractible region (e.g. the exterior of a flux tube) the gauge function \(\chi\) can be forced to be multivalued and no single smooth global \(\mathbf{A}\) exists.
Fields, sources and potentials are smooth enough (\(C^2\)) for the second-derivative identities to hold.If dropped, at a surface current or an idealised filament the derivatives are distributions; \(\nabla\times(\nabla\times\mathbf{A})\) must be read distributionally and jump/boundary conditions applied.
The Poisson equation for the gauge scalar is solvable with the required fall-off, so the Coulomb gauge is reachable.If \(\nabla\cdot\mathbf{A}\) did not decay fast enough for \(\nabla^2\chi=-\nabla\cdot\mathbf{A}\) to have a decaying solution, the gauge could not be imposed globally and the reduction to Poisson's equation would break.
Derivation
1
\[ \nabla\cdot\mathbf{B}=0 \;\Longrightarrow\; \mathbf{B}=\nabla\times\mathbf{A}. \]
A vector field with zero divergence everywhere on a simply connected domain is the curl of some field (Poincaré lemma); this defines \(\mathbf{A}\). It is self-consistent because \(\nabla\cdot(\nabla\times\mathbf{A})=0\) identically. B
2
\[ \mathbf{A}'=\mathbf{A}+\nabla\chi \;\Longrightarrow\; \nabla\times\mathbf{A}'=\nabla\times\mathbf{A}+\nabla\times(\nabla\chi)=\mathbf{B}. \]
Adding the gradient of any smooth scalar \(\chi\) leaves \(\mathbf{B}\) unchanged, since \(\nabla\times(\nabla\chi)=0\) identically. Hence \(\mathbf{A}\) is not unique — this is gauge freedom. A
3
\[ \nabla\times\mathbf{B}=\mu_0\mathbf{J} \;\Longrightarrow\; \nabla\times(\nabla\times\mathbf{A})=\mu_0\mathbf{J}. \]
Take the magnetostatic Ampère law (prior result) and substitute \(\mathbf{B}=\nabla\times\mathbf{A}\). Purely algebraic replacement of equal fields. A
4
\[ \nabla\times(\nabla\times\mathbf{A})=\nabla(\nabla\cdot\mathbf{A})-\nabla^2\mathbf{A}=\mu_0\mathbf{J}. \]
Apply the standard "curl-of-curl" vector identity. In Cartesian components \(\nabla^2\mathbf{A}\) is the Laplacian acting on each component; the identity is exact for \(C^2\) fields. This is the exact equation for \(\mathbf{A}\) in any gauge. B
5
\[ \text{choose }\chi\text{ with }\nabla^2\chi=-\nabla\cdot\mathbf{A} \;\Longrightarrow\; \nabla\cdot\mathbf{A}'=0. \]
The gauge freedom of step 2 is now spent to enforce the Coulomb gauge. Given any \(\mathbf{A}\) with \(\nabla\cdot\mathbf{A}=f\), the Poisson equation \(\nabla^2\chi=-f\) is solvable, and then \(\nabla\cdot\mathbf{A}'=\nabla\cdot\mathbf{A}+\nabla^2\chi=0\). So \(\nabla\cdot\mathbf{A}=0\) is always attainable, not an extra physical assumption. C
6
\[ \nabla\cdot\mathbf{A}=0 \;\Longrightarrow\; \nabla(\underbrace{\nabla\cdot\mathbf{A}}_{=\,0})-\nabla^2\mathbf{A}=\mu_0\mathbf{J} \;\Longrightarrow\; \boxed{\;\nabla^2\mathbf{A}=-\mu_0\mathbf{J}\;} \]
In the Coulomb gauge the first term of step 4 vanishes, leaving a vector Poisson equation — three decoupled scalar Poisson equations, one per Cartesian component. Legal because in Cartesian coordinates \(\nabla^2\mathbf{A}\) acts componentwise. A
Result
\[ \mathbf{B}=\nabla\times\mathbf{A},\qquad \mathbf{A}\to\mathbf{A}+\nabla\chi,\qquad \nabla^2\mathbf{A}=-\mu_0\mathbf{J}\;\;(\text{Coulomb gauge}). \]

Reading. The field \(\mathbf{A}\) is a "reservoir" whose curl is the physical \(\mathbf{B}\); only the gauge-invariant curl is measurable, and any two \(\mathbf{A}\)'s differing by a gradient describe the same magnetism. Fixing the redundancy with \(\nabla\cdot\mathbf{A}=0\) makes each Cartesian component of \(\mathbf{A}\) obey exactly the electrostatic Poisson equation with \(\mu_0 J_i\) playing the role of \(\rho/\varepsilon_0\). The immediate solution with the Coulomb Green's function is \(\displaystyle \mathbf{A}(\mathbf{r})=\frac{\mu_0}{4\pi}\int\frac{\mathbf{J}(\mathbf{r}')}{|\mathbf{r}-\mathbf{r}'|}\,dV'\).

Units check. From \(\mathbf{B}=\nabla\times\mathbf{A}\), \([\mathbf{A}]=[\mathbf{B}]\cdot\text{m}=\text{T·m}=\text{Wb·m}^{-1}\). In the Poisson equation, \([\nabla^2\mathbf{A}]=\text{T·m}/\text{m}^2=\text{T·m}^{-1}\); and \([\mu_0\mathbf{J}]=(\text{T·m·A}^{-1})(\text{A·m}^{-2})=\text{T·m}^{-1}\). Both sides are \(\text{T·m}^{-1}\). ✓ (Here \(\mu_0\) is in \(\text{T·m·A}^{-1}=\text{H·m}^{-1}\) and \(\mathbf{J}\) in \(\text{A·m}^{-2}\).)

Limiting cases
  • Source-free region (\(\mathbf{J}=0\)): the Coulomb-gauge equation becomes Laplace's equation \(\nabla^2\mathbf{A}=0\); each component is harmonic, mirroring vacuum electrostatics.
  • Uniform field \(\mathbf{B}=B\hat{\mathbf{z}}\): a valid Coulomb-gauge potential is \(\mathbf{A}=\tfrac12\mathbf{B}\times\mathbf{r}=\tfrac12 B s\,\hat{\boldsymbol{\phi}}\), symmetric and divergence-free.
  • Localised current, far field: expanding the integral for \(\mathbf{A}\) gives the magnetic dipole term \(\mathbf{A}=\frac{\mu_0}{4\pi}\frac{\mathbf{m}\times\hat{\mathbf{r}}}{r^2}\), the leading multipole once the monopole term vanishes.
  • Static limit of electrodynamics: dropping \(\partial^2\mathbf{A}/\partial t^2\) in the Lorenz-gauge wave equation \(\Box\mathbf{A}=-\mu_0\mathbf{J}\) returns exactly \(\nabla^2\mathbf{A}=-\mu_0\mathbf{J}\).
Breaks when
  • Time-dependent fields. With \(\partial\mathbf{E}/\partial t\neq0\), Ampère's law gains the displacement current; in the Coulomb gauge the reduction leaves a non-local term \(\mu_0\varepsilon_0\nabla(\partial V/\partial t)\) and \(\mathbf{A}\) no longer obeys a simple instantaneous Poisson equation — the Lorenz gauge and a wave equation take over.
  • Magnetic monopoles present. If \(\nabla\cdot\mathbf{B}\neq0\), no globally single-valued \(\mathbf{A}\) with \(\mathbf{B}=\nabla\times\mathbf{A}\) exists; the construction fails at its foundation.
  • Multiply connected / topologically nontrivial domains. Around a hole (excluded flux tube, superconducting ring) \(\oint\mathbf{A}\cdot d\boldsymbol{\ell}=\Phi\neq0\) even where \(\mathbf{B}=0\); no single-valued global \(\chi\) can remove \(\mathbf{A}\), and the Aharonov–Bohm phase is physical.
  • Magnetic media with bound currents. Inside magnetised matter one must use \(\nabla\times\mathbf{H}=\mathbf{J}_{\text{free}}\) and \(\mathbf{B}=\mu_0(\mathbf{H}+\mathbf{M})\); the plain \(\nabla^2\mathbf{A}=-\mu_0\mathbf{J}\) with free current only is wrong unless magnetisation currents are included.
Failure modes
  • Treating \(\mathbf{A}\) as physical/unique. Reporting "the value of \(\mathbf{A}\)" without a gauge or reference point — \(\mathbf{A}\) is defined only up to \(\nabla\chi\), so only \(\nabla\times\mathbf{A}\) and closed-loop integrals of \(\mathbf{A}\) are meaningful.
  • Dropping \(\nabla(\nabla\cdot\mathbf{A})\) before choosing the gauge. Writing \(\nabla\times(\nabla\times\mathbf{A})=-\nabla^2\mathbf{A}\) as if it were an identity; it holds only after \(\nabla\cdot\mathbf{A}=0\) is imposed.
  • Sign slip in the Poisson equation. Writing \(\nabla^2\mathbf{A}=+\mu_0\mathbf{J}\); the identity puts \(-\nabla^2\mathbf{A}\) on the current side, so the physical equation carries the minus sign, exactly like \(\nabla^2 V=-\rho/\varepsilon_0\).
  • Componentwise Laplacian in curvilinear coordinates. Applying \(\nabla^2 A_\phi=-\mu_0 J_\phi\) in cylindrical coordinates and forgetting the \(-A_\phi/s^2\) and cross terms from the rotating basis; \(\nabla^2\mathbf{A}\) is the vector Laplacian.
  • Using \(\nabla\times\mathbf{B}=\mu_0\mathbf{J}\) in a time-varying problem. Omitting the displacement current and then "deriving" a static Poisson equation that no longer applies.
  • Confusing gauge fixing with a physical constraint. Believing \(\nabla\cdot\mathbf{A}=0\) restricts the physics; it only labels the redundancy — the measurable \(\mathbf{B}\) is identical in any gauge.
Discussion

The deep point is that \(\nabla\cdot\mathbf{B}=0\) is precisely the integrability condition guaranteeing that a potential exists: just as an irrotational field (\(\nabla\times\mathbf{E}=0\)) is a gradient, a solenoidal field (\(\nabla\cdot\mathbf{B}=0\)) is a curl. Electrostatics and magnetostatics are the two halves of the Helmholtz decomposition, and each Maxwell divergence/curl constraint is what licenses one potential. That symmetry is why the same Poisson operator, the same Green's function, and the same uniqueness theorems recur. Taking the curl of the integral solution reproduces the Biot–Savart law, closing the loop with the prior result used in step 3.

The Coulomb gauge is a choice of convenience, not of nature. Its virtue is that it makes \(\mathbf{A}\) transverse (\(\nabla\cdot\mathbf{A}=0\) means \(\mathbf{k}\cdot\tilde{\mathbf{A}}=0\) in Fourier space) and produces an instantaneous Poisson equation; its cost is that \(\mathbf{A}\) is then not manifestly relativistic. The Lorenz gauge \(\nabla\cdot\mathbf{A}+\mu_0\varepsilon_0\,\partial V/\partial t=0\) trades that instantaneity for a Lorentz-covariant wave equation. Neither changes a single measurable field — the freedom to choose is exactly the gauge freedom exposed in step 2.

Physically, \(\mathbf{A}\) is the field that enters the canonical momentum \(\mathbf{p}=m\mathbf{v}+q\mathbf{A}\), and its line integral is the enclosed magnetic flux, \(\oint\mathbf{A}\cdot d\boldsymbol{\ell}=\Phi_B\). This is why a solenoid produces a nonzero \(\mathbf{A}\) outside itself even though \(\mathbf{B}=0\) there — a fact with no analogue for \(\mathbf{B}\) alone.

Viewed geometrically, \(\mathbf{A}\) is a connection on a \(U(1)\) fibre bundle and \(\mathbf{B}\) (more precisely the two-form \(F=d\mathbf{A}\)) is its curvature; a gauge transformation \(\mathbf{A}\to\mathbf{A}+\nabla\chi\) is a change of local phase convention \(\psi\to e^{iq\chi/\hbar}\psi\) for a charged wavefunction. The Aharonov–Bohm effect shows that the loop integral \(\frac{q}{\hbar}\oint\mathbf{A}\cdot d\boldsymbol{\ell}=\frac{q}{\hbar}\Phi_B\) — gauge invariant — is genuinely physical even where \(\mathbf{B}=0\). Demanding that this local phase symmetry be dynamical is the organising principle from which the full structure of electromagnetism, and by generalisation to non-abelian groups the whole Standard Model, is reconstructed.

Common misconceptions. (i) "\(\mathbf{A}=0\) means no field" — false; conversely a pure gauge \(\mathbf{A}=\nabla\chi\) has \(\mathbf{B}=0\) yet nonzero \(\mathbf{A}\). (ii) "The Coulomb gauge is more correct" — no gauge is more correct; all give identical \(\mathbf{B}\) and identical forces. (iii) "\(\mathbf{A}\) has no physical reality" — its gauge-invariant loop integrals do, as quantum interference demonstrates.

Worked examples

Example 1 — Vector potential of an infinite straight wire.

1
\[ \mathbf{B}=\frac{\mu_0 I}{2\pi s}\,\hat{\boldsymbol{\phi}},\qquad \text{seek } \mathbf{A}=A_z(s)\,\hat{\mathbf{z}}. \]
Symmetry: current along \(\hat{\mathbf{z}}\), so \(\mathbf{A}\) is parallel to the current and depends only on the cylindrical radius \(s\). A
2
\[ \nabla\times\mathbf{A}=-\frac{dA_z}{ds}\,\hat{\boldsymbol{\phi}}=\mathbf{B} \;\Longrightarrow\; \frac{dA_z}{ds}=-\frac{\mu_0 I}{2\pi s}. \]
The curl of \(A_z(s)\hat{\mathbf{z}}\) in cylindrical coordinates has only a \(\hat{\boldsymbol{\phi}}\) component; match it to the known \(\mathbf{B}\) (prior Ampère result). B
3
\[ A_z(s)=-\frac{\mu_0 I}{2\pi}\ln\!\frac{s}{s_0}. \]
Integrate; the reference radius \(s_0\) is the gauge/reference constant (an infinite wire has no natural zero at infinity). B
4
\[ I=10\ \text{A},\ s=5.0\ \text{cm},\ s_0=1.0\ \text{cm}:\quad \frac{\mu_0 I}{2\pi}=\frac{(4\pi\times10^{-7})(10)}{2\pi}=2.0\times10^{-6}\ \text{T·m}. \]
Insert numbers with \(\mu_0=4\pi\times10^{-7}\ \text{T·m/A}\); \(\ln(5.0/1.0)=1.609\). A
\[ A_z=-(2.0\times10^{-6})(1.609)=-3.2\times10^{-6}\ \text{T·m}\ \ (\text{along } -\hat{\mathbf{z}}). \]

Reading. \(\mathbf{A}\) points along the current and grows logarithmically negative outward relative to \(s_0\); its curl reproduces the familiar \(1/s\) azimuthal \(\mathbf{B}\). Since \(\nabla\cdot\mathbf{A}=\partial A_z/\partial z=0\), this is already the Coulomb gauge.

Units check. \((\text{T·m·A}^{-1})(\text{A})=\text{T·m}\); the logarithm is dimensionless. ✓

Example 2 — Symmetric potential for a uniform field.

1
\[ \mathbf{B}=B\hat{\mathbf{z}}\ (\text{uniform}),\qquad \text{try } \mathbf{A}=\tfrac12\mathbf{B}\times\mathbf{r}. \]
Ansatz linear in \(\mathbf{r}\) and antisymmetric — the natural candidate for a constant field. B
2
\[ \tfrac12\mathbf{B}\times\mathbf{r}=\tfrac12 B(\hat{\mathbf{z}}\times\mathbf{r})=\tfrac12 B s\,\hat{\boldsymbol{\phi}}. \]
Evaluate the cross product; \(\hat{\mathbf{z}}\times\mathbf{r}=s\,\hat{\boldsymbol{\phi}}\) in cylindrical coordinates. A
3
\[ \nabla\times\mathbf{A}=\frac{1}{s}\frac{d}{ds}\!\left(s A_\phi\right)\hat{\mathbf{z}}=\frac{1}{s}\frac{d}{ds}\!\left(\tfrac12 B s^2\right)\hat{\mathbf{z}}=B\hat{\mathbf{z}},\qquad \nabla\cdot\mathbf{A}=0. \]
Verify the curl returns \(\mathbf{B}\) and the divergence vanishes (Coulomb gauge). B
4
\[ B=0.20\ \text{T},\ s=3.0\ \text{cm}=0.030\ \text{m}:\quad A_\phi=\tfrac12 B s=\tfrac12(0.20)(0.030). \]
Insert numbers. A
\[ A_\phi=3.0\times10^{-3}\ \text{T·m}\ \ (\text{along } \hat{\boldsymbol{\phi}}). \]

Reading. The potential circulates around the field axis with magnitude growing linearly in \(s\); its curl is the constant \(0.20\ \text{T}\) field. This "symmetric gauge" is the standard choice in Landau-level problems.

Units check. \((\text{T})(\text{m})=\text{T·m}\). ✓

Problems
  1. Gauge shift. Given the symmetric gauge \(\mathbf{A}=\tfrac{B}{2}(-y,\,x,\,0)\) for \(\mathbf{B}=B\hat{\mathbf{z}}\), find a scalar \(\chi\) that transforms it to the Landau gauge \(\mathbf{A}'=(0,\,Bx,\,0)\), and confirm \(\mathbf{B}\) is unchanged.
    SolutionCompute the difference componentwise: \(\mathbf{A}'-\mathbf{A}=\big(0-(-\tfrac{B}{2}y),\ Bx-\tfrac{B}{2}x,\ 0\big)=\big(\tfrac{B}{2}y,\ \tfrac{B}{2}x,\ 0\big)\). This equals \(\nabla\chi\) with \(\chi=\tfrac12 Bxy\), since \(\partial_x\chi=\tfrac{B}{2}y\), \(\partial_y\chi=\tfrac{B}{2}x\), \(\partial_z\chi=0\). Both potentials give \(\nabla\times\mathbf{A}=\nabla\times\mathbf{A}'=B\hat{\mathbf{z}}\) because \(\nabla\times(\nabla\chi)=0\). Note \(\nabla\cdot\mathbf{A}'=\partial_y(Bx)=0\), so the Landau gauge is also a Coulomb gauge here.
  2. Poisson check. For the infinite wire, \(A_z=-\frac{\mu_0 I}{2\pi}\ln(s/s_0)\) outside the wire. Verify it satisfies \(\nabla^2 A_z=0\) for \(s>0\), consistent with \(\mathbf{J}=0\) there.
    Solution\(\nabla^2 A_z=\frac{1}{s}\frac{d}{ds}\!\left(s\frac{dA_z}{ds}\right)\). With \(\frac{dA_z}{ds}=-\frac{\mu_0 I}{2\pi s}\), we get \(s\frac{dA_z}{ds}=-\frac{\mu_0 I}{2\pi}\) (constant), whose \(s\)-derivative is zero. Hence \(\nabla^2 A_z=0\) for all \(s>0\). Correct: outside the wire \(\mathbf{J}=0\), so \(\nabla^2\mathbf{A}=0\). The current appears only as a delta-function source on the axis, or equivalently via the boundary condition at the wire surface.
  3. Numerical \(A\) from the integral. A short current element \(I\,d\boldsymbol{\ell}=(5.0\ \text{A})(2.0\ \text{mm})\hat{\mathbf{z}}\) sits at the origin. Estimate \(|\mathbf{A}|\) at a point \(10\ \text{cm}\) away using \(\mathbf{A}\approx\frac{\mu_0}{4\pi}\frac{I\,d\boldsymbol{\ell}}{r}\).
    Solution\(\frac{\mu_0}{4\pi}=1.0\times10^{-7}\ \text{T·m·A}^{-1}\). \(I\,d\ell=(5.0)(2.0\times10^{-3})=1.0\times10^{-2}\ \text{A·m}\). \(r=0.10\ \text{m}\). Then \(A=\frac{(1.0\times10^{-7})(1.0\times10^{-2})}{0.10}=1.0\times10^{-8}\ \text{T·m}\), directed along \(\hat{\mathbf{z}}\) (parallel to the current). Units: \(\frac{(\text{T·m·A}^{-1})(\text{A·m})}{\text{m}}=\text{T·m}\). ✓
  4. Solenoid exterior. An ideal infinite solenoid, \(n=1000\) turns/m, \(I=2.0\ \text{A}\), radius \(R=2.0\ \text{cm}\), has uniform \(\mathbf{B}=\mu_0 n I\,\hat{\mathbf{z}}\) inside and \(\mathbf{B}=0\) outside. Find \(A_\phi(s)\) for \(s>R\) using \(\oint\mathbf{A}\cdot d\boldsymbol{\ell}=\Phi\).
    SolutionInterior field \(B=\mu_0 n I=(4\pi\times10^{-7})(1000)(2.0)=2.51\times10^{-3}\ \text{T}\). Enclosed flux \(\Phi=B\pi R^2=(2.51\times10^{-3})\pi(0.020)^2=3.16\times10^{-6}\ \text{Wb}\). By symmetry \(\mathbf{A}=A_\phi(s)\hat{\boldsymbol{\phi}}\), and \(\oint\mathbf{A}\cdot d\boldsymbol{\ell}=2\pi s\,A_\phi=\Phi\) for \(s>R\) (all flux enclosed), so \(A_\phi=\frac{\Phi}{2\pi s}=\frac{B R^2}{2s}\). At \(s=5.0\ \text{cm}\): \(A_\phi=\frac{3.16\times10^{-6}}{2\pi(0.05)}=1.0\times10^{-5}\ \text{T·m}\). Note \(\mathbf{A}\neq0\) outside even though \(\mathbf{B}=0\) — the basis of the Aharonov–Bohm effect.
  5. Curl-of-curl identity. Starting from Ampère's law and \(\mathbf{B}=\nabla\times\mathbf{A}\), show explicitly that without the Coulomb gauge the equation for \(\mathbf{A}\) is \(\nabla(\nabla\cdot\mathbf{A})-\nabla^2\mathbf{A}=\mu_0\mathbf{J}\), and state why choosing \(\nabla\cdot\mathbf{A}=0\) is always permitted.
    SolutionSubstitute \(\mathbf{B}=\nabla\times\mathbf{A}\) into \(\nabla\times\mathbf{B}=\mu_0\mathbf{J}\): \(\nabla\times(\nabla\times\mathbf{A})=\mu_0\mathbf{J}\). Apply the identity \(\nabla\times(\nabla\times\mathbf{A})=\nabla(\nabla\cdot\mathbf{A})-\nabla^2\mathbf{A}\), giving \(\nabla(\nabla\cdot\mathbf{A})-\nabla^2\mathbf{A}=\mu_0\mathbf{J}\). Gauge freedom: replacing \(\mathbf{A}\to\mathbf{A}+\nabla\chi\) changes \(\nabla\cdot\mathbf{A}\to\nabla\cdot\mathbf{A}+\nabla^2\chi\) but leaves \(\mathbf{B}\) untouched. To make \(\nabla\cdot\mathbf{A}=0\), solve \(\nabla^2\chi=-\nabla\cdot\mathbf{A}\), a Poisson equation that always has a solution with suitable fall-off. The first term then vanishes, yielding \(\nabla^2\mathbf{A}=-\mu_0\mathbf{J}\). The choice is a labelling of redundancy, not a physical restriction, because every gauge yields the same measurable \(\mathbf{B}\).