physics2u
Depth
PU-102 / L20 · lecture

The Vector Potential and Gauge Freedom

~7 min read · Tier toggle changes depth (T1 plain · T2 standard · T3 rigour)

BEFORE YOU START

You should be comfortable with the vector identities for the curl of a gradient and the divergence of a curl, as well as the definition of the Laplacian operator \(\nabla^2\) for vector fields.

Why this matters

The vector potential simplifies the calculation of magnetic fields by converting a curl problem into a Poisson equation.

In the previous lecture, we used Ampère's circuital law to find \(\mathbf{B}\) directly for highly symmetric current distributions. However, for complex geometries, solving for \(\mathbf{B}\) directly is often difficult because the curl operator couples the spatial components. By introducing the vector potential \(\mathbf{A}\), we exploit the mathematical identity that the divergence of a magnetic field is zero. This allows us to decouple the components and solve a set of independent scalar Poisson equations, which are standard and well-understood. Furthermore, this formalism reveals a fundamental symmetry in electromagnetism known as gauge freedom, which is a precursor to the deeper symmetries found in quantum mechanics.

The Idea in Plain Language

Imagine you are trying to describe the flow of water in a pipe. You could describe the velocity of the water at every point, but it is often easier to describe the pressure difference that drives the flow. Similarly, the magnetic field \(\mathbf{B}\) is the "flow" of the magnetic influence, but it is mathematically cleaner to describe it in terms of a potential \(\mathbf{A}\). The key insight is that \(\mathbf{B}\) has no sources or sinks (it is solenoidal), meaning magnetic field lines always form closed loops. This property allows us to define \(\mathbf{B}\) as the curl of another vector field, \(\mathbf{A}\). Just as the electric potential \(\phi\) is defined up to an arbitrary constant, the vector potential \(\mathbf{A}\) is defined up to the gradient of an arbitrary scalar function. This flexibility is called gauge freedom. It means that different mathematical descriptions of \(\mathbf{A}\) can represent the exact same physical magnetic field \(\mathbf{B}\). We choose a specific "gauge," such as the Coulomb gauge, to simplify the equations we need to solve.

From Solenoidal Fields to Vector Potentials

The foundation of the vector potential is the magnetic Gauss law, which states that the divergence of the magnetic field is zero everywhere: \(\nabla\cdot\mathbf{B}=0\). This is a direct consequence of the non-existence of magnetic monopoles. In vector calculus, any vector field with zero divergence can be expressed as the curl of another vector field. Therefore, we define the magnetic vector potential \(\mathbf{A}\) such that:

\[ \mathbf{B} = \nabla \times \mathbf{A} \]

This definition automatically satisfies \(\nabla\cdot\mathbf{B}=0\) because the divergence of a curl is identically zero (\(\nabla\cdot(\nabla\times\mathbf{A})=0\)). This is a powerful mathematical guarantee. The vector potential \(\mathbf{A}\) is not unique. If we add the gradient of any scalar function \(\chi(\mathbf{r})\) to \(\mathbf{A}\), the resulting magnetic field remains unchanged because the curl of a gradient is zero (\(\nabla\times(\nabla\chi)=0\)). This leads to the gauge transformation:

\[ \mathbf{A}' = \mathbf{A} + \nabla\chi \]

Both \(\mathbf{A}\) and \(\mathbf{A}'\) produce the same physical \(\mathbf{B}\). This is the essence of gauge freedom.

The Coulomb Gauge and Poisson's Equation

To solve for \(\mathbf{A}\) in a specific problem, we need a unique solution. We achieve this by imposing a constraint on \(\mathbf{A}\), known as a gauge condition. The most common choice in magnetostatics is the Coulomb gauge, which requires the divergence of the vector potential to be zero:

\[ \nabla \cdot \mathbf{A} = 0 \]

We now substitute \(\mathbf{B} = \nabla \times \mathbf{A}\) into Ampère's law for magnetostatics, \(\nabla \times \mathbf{B} = \mu_0 \mathbf{J}\). Using the vector identity \(\nabla \times (\nabla \times \mathbf{A}) = \nabla(\nabla \cdot \mathbf{A}) - \nabla^2 \mathbf{A}\), and applying the Coulomb gauge condition \(\nabla \cdot \mathbf{A} = 0\), the first term on the right-hand side vanishes. This simplifies the equation to:

\[ -\nabla^2 \mathbf{A} = \mu_0 \mathbf{J} \]

Rearranging gives the vector Poisson equation:

\[ \nabla^2 \mathbf{A} = -\mu_0 \mathbf{J} \]

This is a significant result. It tells us that each Cartesian component of the vector potential, \(A_x, A_y, A_z\), satisfies the same scalar Poisson equation as the electric potential in electrostatics, with the source term being the corresponding component of the current density. This allows us to use the standard Green's function solution for Poisson's equation to find \(\mathbf{A}\), and then take the curl to find \(\mathbf{B}\).

Physical Interpretation and Boundary Conditions

While \(\mathbf{A}\) is a mathematical construct, it has physical significance. In quantum mechanics, the vector potential directly affects the phase of the electron wavefunction, as seen in the Aharonov–Bohm effect, where electrons are affected by the gauge-invariant loop integral \(\oint \mathbf{A}\cdot d\mathbf{l}\) even in regions where \(\mathbf{B} = 0\). In classical magnetostatics, \(\mathbf{A}\) is useful for calculating fields in regions where the current density is zero. For example, outside a current-carrying wire, \(\mathbf{J}=0\), so \(\nabla^2 \mathbf{A} = 0\). The solution is determined by boundary conditions at the surface of the wire. The gauge freedom allows us to choose \(\mathbf{A}\) such that it satisfies convenient boundary conditions, such as \(\mathbf{A}\) being parallel to the surface or having a specific symmetry. The Coulomb gauge is particularly useful because it decouples the vector potential from the scalar potential in time-dependent problems, although in magnetostatics, the scalar potential is often zero if there are no electric charges.

The derivation

◆ DERIVATION EMBED · D-053 · not re-derived here

Magnetic Vector Potential and Gauge Freedom

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}\).

\[ \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}). \]
Open full derivation →
Tier 3 · watch out

A common misconception is that the vector potential \(\mathbf{A}\) is unique for a given magnetic field \(\mathbf{B}\). It is not. The gauge freedom \(\mathbf{A} \to \mathbf{A} + \nabla\chi\) means there are infinitely many \(\mathbf{A}\) fields corresponding to the same physical \(\mathbf{B}\). When solving problems, you must always specify the gauge you are using. If you switch gauges, you must transform \(\mathbf{A}\) accordingly. For instance, if you calculate \(\mathbf{A}\) in the Coulomb gauge and then try to use it in a context that assumes the Lorenz gauge, your results will be incorrect unless you perform the appropriate gauge transformation. The physical observables, such as \(\mathbf{B}\) and the force on a charge, are gauge invariant, but \(\mathbf{A}\) itself is not. C

Worked example

Problem. Consider an infinitely long straight wire along the \(z\)-axis carrying a steady current \(I\). Using the vector potential formalism, find the magnetic field \(\mathbf{B}\) at a distance \(r\) from the wire. Assume the Coulomb gauge \(\nabla \cdot \mathbf{A} = 0\) and that \(\mathbf{A}\) has only a \(z\)-component, \(A_z(r)\).

  1. By symmetry, the current density \(\mathbf{J}\) is in the \(z\)-direction, so \(\mathbf{A}\) must also be in the \(z\)-direction and depend only on \(r\). Thus, \(\mathbf{A} = A_z(r) \hat{\mathbf{z}}\).
  2. The vector Poisson equation in cylindrical coordinates for the \(z\)-component is \(\nabla^2 A_z = -\mu_0 J_z\). For \(r > 0\) (outside the wire), \(J_z = 0\), so \(\nabla^2 A_z = 0\).
  3. The Laplacian in cylindrical coordinates for a function depending only on \(r\) is \(\frac{1}{r} \frac{d}{dr} \left( r \frac{d A_z}{dr} \right) = 0\). Integrating once gives \(r \frac{d A_z}{dr} = C_1\), so \(\frac{d A_z}{dr} = \frac{C_1}{r}\). Integrating again gives \(A_z(r) = C_1 \ln r + C_2\).
  4. To determine \(C_1\) without assuming the answer, give the wire a radius \(a\) with uniform \(J_z = I/\pi a^2\). Inside, \(\frac{1}{r}\frac{d}{dr}\left(r\frac{dA_z}{dr}\right) = -\mu_0 J_z\) gives \(\frac{dA_z}{dr} = -\frac{\mu_0 J_z r}{2}\) (finite on the axis). The derivative must be continuous at \(r=a\) (no surface current), so \(\frac{C_1}{a} = -\frac{\mu_0 J_z a}{2}\), i.e. \(C_1 = -\frac{\mu_0 J_z \pi a^2}{2\pi} = -\frac{\mu_0 I}{2\pi}\).
  5. Thus, \(A_z(r) = -\frac{\mu_0 I}{2\pi} \ln r + C_2\). The constant \(C_2\) is arbitrary due to gauge freedom and does not affect \(\mathbf{B}\).
  6. Finally, calculate \(\mathbf{B}\) from \(\mathbf{A}\). \(\mathbf{B} = \nabla \times (A_z \hat{\mathbf{z}}) = -\frac{\partial A_z}{\partial r} \hat{\boldsymbol{\phi}} = \frac{\mu_0 I}{2\pi r} \hat{\boldsymbol{\phi}}\).
\[ \mathbf{B} = \frac{\mu_0 I}{2\pi r} \hat{\boldsymbol{\phi}} \]

Units check. \(\mu_0\) has units \(\mathrm{N/A^2}\), \(I\) is \(\mathrm{A}\), and \(r\) is \(\mathrm{m}\). The result is \(\frac{\mathrm{N}}{\mathrm{A^2}} \cdot \frac{\mathrm{A}}{\mathrm{m}} = \frac{\mathrm{N}}{\mathrm{A \cdot m}}\). Since \(\mathrm{N} = \mathrm{A \cdot m \cdot T}\) (from \(F = I L B\)), the units are \(\mathrm{T}\), which is correct for magnetic field.

CHECK YOURSELF

Three quick tests

  1. Why is the vector potential \(\mathbf{A}\) not unique?
    AnswerBecause \(\mathbf{B} = \nabla \times \mathbf{A}\) is unchanged if \(\mathbf{A}\) is replaced by \(\mathbf{A} + \nabla\chi\) for any scalar \(\chi\), since the curl of a gradient is zero.
  2. What is the equation satisfied by \(\mathbf{A}\) in the Coulomb gauge?
    AnswerThe vector Poisson equation: \(\nabla^2 \mathbf{A} = -\mu_0 \mathbf{J}\).
  3. If \(\nabla \cdot \mathbf{A} \neq 0\), what term appears in the expression for \(\nabla \times \mathbf{B}\) in terms of \(\mathbf{A}\)?
    AnswerThe term \(\nabla(\nabla \cdot \mathbf{A})\) appears, so \(\nabla \times \mathbf{B} = \nabla(\nabla \cdot \mathbf{A}) - \nabla^2 \mathbf{A}\).
PROBLEMS

Problem set for PU-102 →

Each derivation in this unit ends with five graded problems with full solutions.

NOTES

Lecture notes drafted with a local model and checked line by line by the editor; every number in the worked example was recomputed.

Derivations cited: D-053 · Threads: force, energy, fields