TExcelTAD
Home › Electromagnetic Theory: Maxwell's Equations to Waves › Electromagnetic Potentials and Gauges

Electromagnetic Potentials and Gauges

In electrostatics one scalar potential VV replaced the three components of E\mathbf{E} and turned field problems into Laplace's and Poisson's equations. In magnetostatics the vector potential A\mathbf{A} did the same for B\mathbf{B} (Magnetic Flux and the Vector Potential). When fields change in time the two potentials must work together, and they gain a freedom, the gauge, that is both a nuisance and a tool. With the right gauge, Maxwell's four coupled equations become two independent wave equations whose solutions, the retarded potentials, are the starting point of every antenna calculation (Radiation). This lesson builds them, shows with SymPy that a gauge change leaves the physical fields untouched, and computes how late the potential of a distant source arrives.

From fields to potentials

Two of Maxwell's equations have no sources, and each is solved identically by a potential:

  1. ∇⋅B=0\nabla \cdot \mathbf{B} = 0 is satisfied by B=∇×A\mathbf{B} = \nabla \times \mathbf{A} for any A\mathbf{A}, because the divergence of a curl vanishes.
  2. Put that into Faraday's law: ∇×(E+∂A/∂t)=0\nabla \times (\mathbf{E} + \partial\mathbf{A}/\partial t) = 0. A curl-free field is a gradient, so
E=−∇V−∂A∂t,B=∇×A\mathbf{E} = -\nabla V - \frac{\partial \mathbf{A}}{\partial t}, \qquad \mathbf{B} = \nabla \times \mathbf{A}

The electric field now has two parts: the familiar −∇V-\nabla V from charges and an induced part −∂A/∂t-\partial\mathbf{A}/\partial t from changing currents. The second is the circulating field of Faraday's law; it is why the line integral of E\mathbf{E} between two points is no longer Va−VbV_a - V_b alone.

Gauge freedom

The potentials are not unique. For any scalar function χ(r,t)\chi(\mathbf{r}, t),

A′=A+∇χ,V′=V−∂χ∂t\mathbf{A}' = \mathbf{A} + \nabla\chi, \qquad V' = V - \frac{\partial \chi}{\partial t}

give the same B\mathbf{B} (the curl of a gradient is zero) and the same E\mathbf{E} (the two added terms, −∇(−∂χ/∂t)-\nabla(-\partial\chi/\partial t) and −∂(∇χ)/∂t-\partial(\nabla\chi)/\partial t, cancel). This is a gauge transformation, and choosing χ\chi to impose one extra condition is fixing the gauge. Two choices dominate engineering work:

Gauge Condition Result
Coulomb ∇⋅A=0\nabla \cdot \mathbf{A} = 0 ∇2V=−ρv/ε\nabla^2 V = -\rho_v/\varepsilon holds at every instant, as in electrostatics; A\mathbf{A} obeys a wave equation with an extra source term. Natural for magnetostatics and quasi-static (eddy-current) solvers
Lorenz ∇⋅A+με ∂V∂t=0\nabla \cdot \mathbf{A} + \mu\varepsilon\,\frac{\partial V}{\partial t} = 0 both potentials obey the same, uncoupled wave equation (below). Natural for radiation and antennas

In the Coulomb gauge VV responds instantly to a distant charge, which looks like a violation of relativity; it is not, because VV is not measurable on its own, and the measurable E\mathbf{E} still changes only after the light-travel time. Gauge choice is bookkeeping: it changes the potentials, never the fields or the forces.

The wave equations for the potentials

Substitute the potentials into Gauss's law and the Ampère–Maxwell law (linear, homogeneous medium) and impose the Lorenz condition. The coupling terms cancel and

∇2V−με∂2V∂t2=−ρvε,∇2A−με∂2A∂t2=−μJ\nabla^2 V - \mu\varepsilon\frac{\partial^2 V}{\partial t^2} = -\frac{\rho_v}{\varepsilon}, \qquad \nabla^2 \mathbf{A} - \mu\varepsilon\frac{\partial^2 \mathbf{A}}{\partial t^2} = -\mu\mathbf{J}

Both are wave equations with speed v=1/μεv = 1/\sqrt{\mu\varepsilon} (The Wave Equation). Without the time derivatives they reduce to the Poisson equations of statics (Poisson's and Laplace's Equations), whose solutions are integrals of ρv/R\rho_v/R and J/R\mathbf{J}/R. With them, the solutions are the same integrals evaluated at the retarded time t−R/vt - R/v:

V(r,t)=14πε∫ρv(r′,t−R/v)R dv′,A(r,t)=μ4π∫J(r′,t−R/v)R dv′,R=∣r−r′∣V(\mathbf{r}, t) = \frac{1}{4\pi\varepsilon}\int \frac{\rho_v(\mathbf{r}', t - R/v)}{R}\,dv', \qquad \mathbf{A}(\mathbf{r}, t) = \frac{\mu}{4\pi}\int \frac{\mathbf{J}(\mathbf{r}', t - R/v)}{R}\,dv', \qquad R = \lvert \mathbf{r} - \mathbf{r}' \rvert

Each source element contributes what it was doing a time R/vR/v earlier. In phasor form (ejωte^{j\omega t}) the delay becomes a phase factor: A~=μ4π∫J~ e−jkR/R dv′\tilde{\mathbf{A}} = \frac{\mu}{4\pi}\int \tilde{\mathbf{J}}\,e^{-jkR}/R\,dv' with k=ω/vk = \omega/v.

I(t') P R sees the source as it was at t' = t - R/v wavefronts, speed v

Worked example: the potential of a short current element

Given: a short wire of length ℓ=0.1 m\ell = 0.1\ \text{m} along z^\hat{\mathbf{z}} carries a uniform I=1 AI = 1\ \text{A} peak at f=100 MHzf = 100\ \text{MHz} in free space. (This is the Hertzian dipole of Radiation.)

Find: the phasor vector potential at r=10 mr = 10\ \text{m}, and how far it lags the source.

Solve: the wire is short compared with rr, so every element is at R≈rR \approx r and the integral is just IℓI\ell:

A~=μ0Iℓ4πre−jkr z^,μ0Iℓ4πr=10−7⋅1⋅0.110=1.0×10−9 Wb/mk=2πfc=2.096 rad/m,kr=20.96 rad=1201∘,rc=33.4 ns\begin{aligned} \tilde{\mathbf{A}} &= \frac{\mu_0 I \ell}{4\pi r}e^{-jkr}\,\hat{\mathbf{z}}, \qquad \frac{\mu_0 I\ell}{4\pi r} = \frac{10^{-7} \cdot 1 \cdot 0.1}{10} = 1.0 \times 10^{-9}\ \text{Wb/m} \\ k &= \frac{2\pi f}{c} = 2.096\ \text{rad/m}, \qquad kr = 20.96\ \text{rad} = 1201^\circ, \qquad \frac{r}{c} = 33.4\ \text{ns} \end{aligned}

Check: the lag is 3.343.34 periods (r/λ=10/2.998r/\lambda = 10/2.998); a static current would give the same magnitude with no phase factor. A\mathbf{A} points along the current, like the static potential of a wire segment. Taking B=∇×A\mathbf{B} = \nabla \times \mathbf{A} of this expression produces the radiated field, done in the radiation lesson.

In Python: a gauge change does not change the fields

The script takes the potentials of a plane wave, V=0V = 0 and A=−(E0/ω)sin⁡(ωt−kz) x^\mathbf{A} = -(E_0/\omega)\sin(\omega t - kz)\,\hat{\mathbf{x}}, computes E\mathbf{E} and B\mathbf{B}, then applies a gauge transformation with χ=asin⁡(ωt−kz)\chi = a\sin(\omega t - kz) and checks that the fields are unchanged while the potentials, and the gauge conditions they satisfy, are not.

python · try it yourself
import sympy as sp
from sympy.vector import CoordSys3D, curl, divergence, gradient

R = CoordSys3D("R")
t, w, k, E0, mu, eps, a = sp.symbols("t omega k E_0 mu epsilon a", positive=True)
z = R.z
k_wave = w * sp.sqrt(mu * eps)

def fields(V, A):
    """E = -grad V - dA/dt, B = curl A (simplified component lists)."""
    E = (-gradient(V) - sp.diff(A, t)).to_matrix(R).applyfunc(sp.simplify)
    B = curl(A).to_matrix(R).applyfunc(sp.simplify)
    return list(E), list(B)

def lorenz(V, A):
    return sp.simplify(divergence(A) + mu * eps * sp.diff(V, t))

# potentials of a plane wave, with V = 0 (this choice satisfies both the Coulomb and Lorenz gauges)
A1 = -(E0 / w) * sp.sin(w * t - k_wave * z) * R.i
V1 = sp.Integer(0)
E1, B1 = fields(V1, A1)
print("gauge 1: E =", E1, " B =", B1)
print("  div A =", sp.simplify(divergence(A1)), ", Lorenz condition:", lorenz(V1, A1))

# gauge transformation with chi = a*sin(w t - k z): A2 = A1 + grad chi, V2 = V1 - d chi/dt
chi = a * sp.sin(w * t - k_wave * z)
A2 = A1 + gradient(chi)
V2 = V1 - sp.diff(chi, t)
E2, B2 = fields(V2, A2)
print("gauge 2: V =", sp.simplify(V2))
print("  E unchanged:", [sp.simplify(p - q) for p, q in zip(E2, E1)] == [0, 0, 0],
      " B unchanged:", [sp.simplify(p - q) for p, q in zip(B2, B1)] == [0, 0, 0])
print("  div A =", sp.simplify(divergence(A2)), ", Lorenz condition:", lorenz(V2, A2))

# retardation: how late does a distant observer see the source?
for r, f in [(0.1, 50.0), (1.0, 1e6), (1.0, 1e9), (100.0, 1e8)]:
    delay = r / 2.998e8
    print(f"r = {r:6.1f} m, f = {f:9.3g} Hz: delay {delay*1e9:8.3f} ns = {360*f*delay:9.4f} deg of phase")
gauge 1: E = [E_0*cos(omega*(R.z*sqrt(epsilon)*sqrt(mu) - t)), 0, 0]  B = [0, E_0*sqrt(epsilon)*sqrt(mu)*cos(omega*(R.z*sqrt(epsilon)*sqrt(mu) - t)), 0]
  div A = 0 , Lorenz condition: 0
gauge 2: V = -a*omega*cos(omega*(R.z*sqrt(epsilon)*sqrt(mu) - t))
  E unchanged: True  B unchanged: True
  div A = a*epsilon*mu*omega**2*sin(omega*(R.z*sqrt(epsilon)*sqrt(mu) - t)) , Lorenz condition: 0
r =    0.1 m, f =        50 Hz: delay    0.334 ns =    0.0000 deg of phase
r =    1.0 m, f =     1e+06 Hz: delay    3.336 ns =    1.2008 deg of phase
r =    1.0 m, f =     1e+09 Hz: delay    3.336 ns = 1200.8005 deg of phase
r =  100.0 m, f =     1e+08 Hz: delay  333.556 ns = 12008.0053 deg of phase

Gauge 1 gives E=E0cos⁡(ωt−kz)x^\mathbf{E} = E_0\cos(\omega t - kz)\hat{\mathbf{x}} and B=(E0/v)cos⁡(ωt−kz)y^\mathbf{B} = (E_0/v)\cos(\omega t - kz)\hat{\mathbf{y}} (SymPy writes the cosine with its argument reversed, which is the same function). The new potentials have a non-zero VV and a non-zero ∇⋅A\nabla \cdot \mathbf{A}, so they are no longer in the Coulomb gauge, yet the fields are identical. They still satisfy the Lorenz condition, because this particular χ\chi itself obeys the wave equation: the Lorenz gauge leaves that much freedom.

The last four lines put numbers on retardation. At 50 Hz50\ \text{Hz} across a circuit board, and even at 1 MHz1\ \text{MHz} across a metre, retardation is negligible: the quasi-static world of circuits. At 1 GHz1\ \text{GHz} a metre is more than three periods, and the phase factor e−jkRe^{-jkR} decides whether contributions from different parts of a structure add or cancel. That is radiation and antenna arrays.

Guided lab: measure a retarded signal

Hand calculation. A delay τ\tau shifts a sinusoid's phase by ϕ=360∘fτ\phi = 360^\circ f\tau, growing linearly with frequency, exactly the factor e−jkRe^{-jkR}. For 10 m10\ \text{m} of RG-58 (τ=50.5 ns\tau = 50.5\ \text{ns}, Maxwell's Equations): ϕ=91∘\phi = 91^\circ at 5 MHz5\ \text{MHz}, 182∘182^\circ at 10 MHz10\ \text{MHz}.

Simulation. The last loop of the script with your cable's delay.

What you would measure. A function generator drives the cable through a BNC T-piece at channel 1; the far end goes to channel 2 with a 50 Ω50\ \Omega terminator. Read the phase difference with the scope's measurement function at 11, 22, 55 and 10 MHz10\ \text{MHz} and plot it against ff: a straight line through the origin with slope 360∘τ360^\circ\tau. Expect ±2∘\pm 2^\circ from the scope's phase measurement, so the slope gives τ\tau to about ±1 %\pm 1\ \%. Once the delay passes half a period, the scope reports the phase wrapped into ±180∘\pm 180^\circ; unwrap it.

Hazards and safe setup. Signal-generator levels only.

Pitfalls

  • Treating VV as the voltage a meter reads. With changing fields the meter reads ∫E⋅dl\int \mathbf{E} \cdot d\mathbf{l} along its leads, which includes −∂A/∂t-\partial\mathbf{A}/\partial t.
  • Thinking the Coulomb gauge breaks causality. Potentials are not observable; fields are, and they remain retarded.
  • Mixing gauges. A formula for VV in one gauge and A\mathbf{A} in another gives wrong fields.
  • Dropping the phase factor. Using static 1/R1/R integrals at high frequency misses the interference that makes antennas directional.

Practice

  1. Show that A′=A+∇χ\mathbf{A}' = \mathbf{A} + \nabla\chi, V′=V−∂χ/∂tV' = V - \partial\chi/\partial t leaves E\mathbf{E} unchanged.
  2. For the worked example, by what factor does ∣A~∣\lvert\tilde{\mathbf{A}}\rvert change if the observer moves from 10 m10\ \text{m} to 20 m20\ \text{m}, and by how many degrees does the phase lag grow?
  3. For which of these is retardation negligible: (a) a 5 cm5\ \text{cm} circuit at 10 MHz10\ \text{MHz}, (b) a 30 cm30\ \text{cm} backplane at 3 GHz3\ \text{GHz}, (c) a 500 km500\ \text{km} power line at 50 Hz50\ \text{Hz}?
Answer
  1. −∇V′−∂A′/∂t=−∇V+∇(∂χ/∂t)−∂A/∂t−∂(∇χ)/∂t=E-\nabla V' - \partial\mathbf{A}'/\partial t = -\nabla V + \nabla(\partial\chi/\partial t) - \partial\mathbf{A}/\partial t - \partial(\nabla\chi)/\partial t = \mathbf{E}, because the order of ∇\nabla and ∂/∂t\partial/\partial t can be swapped.
  2. The magnitude halves (1/r1/r); the lag grows by k⋅10 m=20.96 rad=1201∘k \cdot 10\ \text{m} = 20.96\ \text{rad} = 1201^\circ.
  3. (a) λ=30 m\lambda = 30\ \text{m}, ℓ/λ=0.0017\ell/\lambda = 0.0017: negligible. (b) λ=10 cm\lambda = 10\ \text{cm} in air (less in a dielectric), ℓ/λ≥3\ell/\lambda \ge 3: essential. (c) λ=6000 km\lambda = 6000\ \text{km}, ℓ/λ=0.083\ell/\lambda = 0.083, a 30∘30^\circ phase shift: not negligible for accurate power-flow work, which is why long lines use distributed models.

Test yourself

Which pair of expressions gives the fields from the potentials when fields change in time?

  1. E=−∇V\mathbf{E} = -\nabla V, B=∇×A\mathbf{B} = \nabla \times \mathbf{A}
  2. E=−∇V−∂A/∂t\mathbf{E} = -\nabla V - \partial\mathbf{A}/\partial t, B=∇×A\mathbf{B} = \nabla \times \mathbf{A}
  3. E=∇×A\mathbf{E} = \nabla \times \mathbf{A}, B=−∇V\mathbf{B} = -\nabla V
  4. E=−∂A/∂t\mathbf{E} = -\partial\mathbf{A}/\partial t, B=∇V\mathbf{B} = \nabla V

A gauge transformation changes…

  1. E\mathbf{E} but not B\mathbf{B}
  2. the potentials but not E\mathbf{E} or B\mathbf{B}
  3. the charge density
  4. the speed of light

Why is the Lorenz gauge preferred for antenna problems?

  1. it makes V=0V = 0 everywhere
  2. both potentials obey uncoupled wave equations solved by retarded integrals
  3. it removes the need for A\mathbf{A}
  4. it makes fields static

An observer 1 m1\ \text{m} from a 1 GHz1\ \text{GHz} source sees it delayed by about…

  1. 0.33 ns0.33\ \text{ns}, 120∘120^\circ
  2. 3.34 ns3.34\ \text{ns}, 1201∘1201^\circ
  3. 33.4 ns33.4\ \text{ns}, 12008∘12008^\circ
  4. no delay