Fundamentals / Physics / Electrodynamics

From local symmetry to Maxwell’s equations

Some electromagnetic equations describe the geometry of a potential. Others describe its response to charge. Tensor notation identifies the distinction precisely, and a variational argument shows why the source must obey a local conservation law.

Build an antisymmetric tensor from four potentials

Write \(x^\mu=(ct,x,y,z)\), \(\eta_{\mu\nu}=\operatorname{diag}(1,-1,-1,-1)\),

\[A^\mu=(\phi/c,\mathbf A),\]
\[J^\mu=(c\rho,\mathbf J).\]

Greek indices run from 0 to 3 and repeated upper and lower indices are summed. Lowering a spatial index changes its sign. Thus

\[\partial^\mu=(c^{-1}\partial_t,-\nabla).\]

This convention fixes every sign below.

Form \(F^{\mu\nu}=\partial^\mu A^\nu-\partial^\nu A^\mu\). Then

\[F^{0i}=\partial_t A_i^{\rm cart}/c+\partial_i\phi/c=-E_i^{\rm cart}/c.\]

For spatial components \(F^{12}=-\partial_x A_y+\partial_y A_x=-B_z\) with Cartesian subscripts on the right. Antisymmetry leaves six independent quantities. These are the three electric and three magnetic components. Adding a four-gradient to the potential leaves \(F\) unchanged because its mixed derivatives commute.

Unpack the two tensor equations

Consider \(\partial_\mu F^{\mu\nu}=\mu_0J^\nu\). For \(\nu=0\) the only terms are spatial:

\[\partial_iF^{i0}=\nabla\cdot\mathbf E/c=\mu_0c\rho,\]

which is Gauss's law. For \(\nu=1\), \(F^{01}=-E_x/c\), \(F^{21}=B_z\), \(F^{31}=-B_y\). The equation gives

\[(\nabla\times\mathbf B)_x-c^{-2}\partial_tE_x=\mu_0J_x.\]

Cyclic permutations give the remaining components. The other half of Maxwell's equations is an identity:

\[\partial_\lambda F_{\mu\nu}+\partial_\mu F_{\nu\lambda}+\partial_\nu F_{\lambda\mu}=0 .\]

Insert the definition of \(F\). Each second derivative cancels a partner of opposite sign. With three spatial indices the identity says \(\nabla\cdot\mathbf B=0\); with a time index it gives Faraday's law. Applying \(\partial_\nu\) to the sourced equation also gives zero on the left by antisymmetry, enforcing \(\partial_\nu J^\nu=0\).

Vary the potential at fixed external current

We seek a Lorentz scalar built quadratically from the fields, linearly from the source and potential, and locally from their values at a spacetime event. In SI units choose

\[S=\frac1c\int d^4x\left[-\frac{1}{4\mu_0}F_{\mu\nu}F^{\mu\nu}-J^\mu A_\mu\right].\]

The factor \(1/c\) converts \(dx^0\) to seconds. The two antisymmetric terms in \(\delta F_{\mu\nu}\) contribute equally. Thus the field part varies as \(-F^{\mu\nu}\partial_\mu\delta A_\nu/\mu_0\). Integrate by parts, fixing \(\delta A_\nu=0\) on the boundary. The remaining arbitrary variation multiplies

\[\frac1{\mu_0}\partial_\mu F^{\mu\nu}-J^\nu=0 .\]

Under \(A_\mu\mapsto A_\mu+\partial_\mu\chi\) the source term changes by \(-J^\mu\partial_\mu\chi\). Integration by parts leaves a boundary term and \(+\chi\partial_\mu J^\mu\). Gauge independence of the action for arbitrary interior \(\chi\) therefore requires charge continuity. The same conservation law has appeared by a second route.

Read the action in familiar variables

Why a plane wave has zero field Lagrangian density

A direct contraction gives

\[F_{\mu\nu}F^{\mu\nu}=2(B^2-E^2/c^2).\]

The vacuum field Lagrangian density is \(\epsilon_0E^2/2-B^2/(2\mu_0)\), whereas the physical energy density is the sum of those two positive terms. For a plane wave \(E=cB\), the Lagrangian density vanishes; the energy density equals \(\epsilon_0E^2\). At \(E=100\) V/m instantaneous energy density is \(8.85\times10^{-8}\) J/m³. The cancellation in the action carries a distinct physical meaning from an empty field.

Test the stationary potential inside a capacitor

Between plane electrodes at \(0,V_0\), take \(\phi=V_0[x/L+\eta\sin(\pi x/L)]\). Each trial curve has the correct endpoints. For no space charge the static functional per area is \(U=\epsilon_0\int_0^L(\partial_x\phi)^2dx/2\). Its cross term integrates to zero because the sine perturbation vanishes on the boundaries, and the squared cosine averages to \(1/2\). Consequently

\[U/U_{\rm exact}=1+\pi^2\eta^2/2.\]

A perturbation with \(\eta=0.10\) raises the functional by 4.93%. The flattening of the energy near \(\eta=0\) tests stationarity directly.

Perturb the potential while keeping both electrodes fixed

Every trial curve has the prescribed endpoints. At amplitude 0.10 the trial energy is 4.93% above the exact value. Compare positive and negative perturbations, then double the amplitude and predict how the energy penalty changes.

Problem sheet · gauge and variational checks

Introduce a known static charge

For fixed boundary potentials, vary \(I[\phi]=\int (\epsilon_0|\nabla\phi|^2/2-\rho\phi)\,dV\). Which PDE follows? Why is it necessary to specify the sign of the linear term?

Work through the solution

Integrating the gradient term by parts produces \(\delta I=\int(-\epsilon_0\nabla^2\phi-\rho)\delta\phi\,dV\), because \(\delta\phi\) vanishes on the electrodes. Stationarity gives

\[-\epsilon_0\nabla^2\phi=\rho.\]

Reversing the source sign would reverse the curvature induced by positive charge. This functional includes a source coupling and generally differs from just the stored field energy.

Contract with a particle velocity

At an instant a particle is at rest. Insert \(u^\mu=(c,0,0,0)\) in \(f^\mu=qF^{\mu\nu}u_\nu\) to recover its spatial force. Why is the time component zero?

Work through the solution

Here \(F^{i0}=E_i/c\) and \(u_0=c\), so \(f^i=qE_i\). Antisymmetry gives \(F^{00}=0\). At that instant the velocity vanishes and hence so does the rate of work. More generally \(u_\mu f^\mu=q u_\mu F^{\mu\nu}u_\nu=0\), since the velocity product is symmetric. This preserves the particle's invariant rest mass.

Further reading

Study the full derivation

Relativistic particle dynamics and the field tensor · Waves, radiation and relativity

A circular track measures momentum per charge. A clock following the particle registers proper time, and a detector records how much kinetic energy it has gained. We will put these observations in one dynamical equation, solve that equation in uniform fields and exhibit a numerical pusher that can get the energy right while its orbit phase slowly slips.