Electromagnetic Potentials and Gauges
In electrostatics one scalar potential replaced the three components of and turned field problems into Laplace's and Poisson's equations. In magnetostatics the vector potential did the same for (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:
- is satisfied by for any , because the divergence of a curl vanishes.
- Put that into Faraday's law: . A curl-free field is a gradient, so
The electric field now has two parts: the familiar from charges and an induced part from changing currents. The second is the circulating field of Faraday's law; it is why the line integral of between two points is no longer alone.
Gauge freedom
The potentials are not unique. For any scalar function ,
give the same (the curl of a gradient is zero) and the same (the two added terms, and , cancel). This is a gauge transformation, and choosing to impose one extra condition is fixing the gauge. Two choices dominate engineering work:
| Gauge | Condition | Result |
|---|---|---|
| Coulomb | holds at every instant, as in electrostatics; obeys a wave equation with an extra source term. Natural for magnetostatics and quasi-static (eddy-current) solvers | |
| Lorenz | both potentials obey the same, uncoupled wave equation (below). Natural for radiation and antennas |
In the Coulomb gauge responds instantly to a distant charge, which looks like a violation of relativity; it is not, because is not measurable on its own, and the measurable 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
Both are wave equations with speed (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 and . With them, the solutions are the same integrals evaluated at the retarded time :
Each source element contributes what it was doing a time earlier. In phasor form () the delay becomes a phase factor: with .
Worked example: the potential of a short current element
Given: a short wire of length along carries a uniform peak at in free space. (This is the Hertzian dipole of Radiation.)
Find: the phasor vector potential at , and how far it lags the source.
Solve: the wire is short compared with , so every element is at and the integral is just :
Check: the lag is periods (); a static current would give the same magnitude with no phase factor. points along the current, like the static potential of a wire segment. Taking 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, and , computes and , then applies a gauge transformation with and checks that the fields are unchanged while the potentials, and the gauge conditions they satisfy, are not.
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 and (SymPy writes the cosine with its argument reversed, which is the same function). The new potentials have a non-zero and a non-zero , so they are no longer in the Coulomb gauge, yet the fields are identical. They still satisfy the Lorenz condition, because this particular itself obeys the wave equation: the Lorenz gauge leaves that much freedom.
The last four lines put numbers on retardation. At across a circuit board, and even at across a metre, retardation is negligible: the quasi-static world of circuits. At a metre is more than three periods, and the phase factor 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 shifts a sinusoid's phase by , growing linearly with frequency, exactly the factor . For of RG-58 (, Maxwell's Equations): at , at .
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 terminator. Read the phase difference with the scope's measurement function at , , and and plot it against : a straight line through the origin with slope . Expect from the scope's phase measurement, so the slope gives to about . Once the delay passes half a period, the scope reports the phase wrapped into ; unwrap it.
Hazards and safe setup. Signal-generator levels only.
Pitfalls
- Treating as the voltage a meter reads. With changing fields the meter reads along its leads, which includes .
- Thinking the Coulomb gauge breaks causality. Potentials are not observable; fields are, and they remain retarded.
- Mixing gauges. A formula for in one gauge and in another gives wrong fields.
- Dropping the phase factor. Using static integrals at high frequency misses the interference that makes antennas directional.
Practice
- Show that , leaves unchanged.
- For the worked example, by what factor does change if the observer moves from to , and by how many degrees does the phase lag grow?
- For which of these is retardation negligible: (a) a circuit at , (b) a backplane at , (c) a power line at ?
Answer
- , because the order of and can be swapped.
- The magnitude halves (); the lag grows by .
- (a) , : negligible. (b) in air (less in a dielectric), : essential. (c) , , a 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?
- ,
- ,
- ,
- ,
A gauge transformation changes…
- but not
- the potentials but not or
- the charge density
- the speed of light
Why is the Lorenz gauge preferred for antenna problems?
- it makes everywhere
- both potentials obey uncoupled wave equations solved by retarded integrals
- it removes the need for
- it makes fields static
An observer from a source sees it delayed by about…
- ,
- ,
- ,
- no delay