advanced30 min studyLesson 270 in Physics

Action for particles and electromagnetic fields

Combine proper-time particle motion, gauge coupling, and the Maxwell field action while distinguishing boundary gauge shifts, canonical momentum, and physical fields.

On this page

What you’ll understand

  • Write an SI action consistent with the module's tensor and force conventions.
  • Vary a particle path before choosing its proper-time parameter.
  • Relate gauge boundary terms, conserved sources, and canonical momentum.

The force law and Maxwell equations can be derived from one action principle. This unifies their signs and reveals the role of gauge freedom, but introduces two subtleties. Proper time is determined by the path being varied, so it cannot be treated as a fixed clock measure for all competing paths. Also, a gauge transformation can change the numerical action by an endpoint term while leaving the equations of motion unchanged. Both facts are essential for using the covariant action correctly.

Vary the geometric particle action

Use signature (+,−,−,−)(+,-,-,-), x0=ctx^0=ct, Aμ=(ϕ/c,A)A^\mu=(\phi/c,\mathbf A), and Fμν=∂μAν−∂νAμF^{\mu\nu}=\partial^\mu A^\nu-\partial^\nu A^\mu, preserving F0i=−Ei/cF^{0i}=-E_i/c. A massive particle's free action is minus its rest energy times elapsed proper time. Writing it with an arbitrary monotonically increasing parameter lambda makes the path dependence explicit through the square root of the tangent norm. Fixed endpoints are assumed in the variation. Reparameterizing the same timelike path does not change the geometric integral.

Do not first set lambda equal to proper time and then regard the integrand as an immutable constant during arbitrary path variations. Each varied path has its own proper time. Vary the square-root action before making the proper-time choice, or use a constrained formulation that retains the normalization condition. The electromagnetic coupling is the line integral of the potential covector. In laboratory time its Lagrangian contribution is qA⋅v−qϕq\mathbf A\cdot\mathbf v-q\phi, so the familiar electric-potential sign and the covariant tensor-force sign agree.

Sp=−mc∫dλ ημνx˙μx˙ν−q∫Aμ dxμ,Lp=−mc21−v2/c2+qA⋅v−qϕS_{\mathrm p}=-mc\int d\lambda\,\sqrt{\eta_{\mu\nu}\dot x^\mu\dot x^\nu}-q\int A_\mu\,dx^\mu,\qquad L_{\mathrm p}=-mc^2\sqrt{1-v^2/c^2}+q\mathbf A\cdot\mathbf v-q\phi
A dot in the first expression means d/dlambda; the second uses laboratory time. The free term equals −mc² integral dτ. Both terms have SI action units J s, and the particle endpoints are fixed.↔ Scroll wide equations horizontally.

The field action supplies Maxwell dynamics

The vacuum field action is a spacetime integral of −FμνFμν/(4μ0c)-F^{\mu\nu}F_{\mu\nu}/(4\mu_0c). The coordinate measure is d4x=c dt d3xd^4x=c\,dt\,d^3x, so the explicit inverse c is needed to obtain joule-seconds. Expanding the invariant gives the laboratory Lagrangian density ϵ0E2/2−B2/(2μ0)\epsilon_0E^2/2-B^2/(2\mu_0). This difference is not the positive sum defining energy density. A plane wave can have zero field Lagrangian density at an event while carrying nonzero energy, making action and energy particularly easy to distinguish.

For a prescribed smooth current, add −c−1∫JμAμd4x-c^{-1}\int J^\mu A_\mu d^4x. Varying the potential, integrating by parts, and taking its boundary variation to vanish gives ∂μFμν=μ0Jν\partial_\mu F^{\mu\nu}=\mu_0J^\nu. The homogeneous Maxwell equations already follow from defining F in terms of A. For dynamical point charges, their worldline coupling supplies the source instead; do not add the same current coupling again. Singular point self-fields require extra care, so the simple prescribed-field particle examples continue to neglect radiation reaction.

Sfield+source=1c∫d4x[−14μ0FμνFμν−JμAμ],Lfield=ϵ0E22−B22μ0S_{\mathrm{field+source}}=\frac1c\int d^4x\left[-\frac{1}{4\mu_0}F^{\mu\nu}F_{\mu\nu}-J^\mu A_\mu\right],\qquad \mathcal L_{\mathrm{field}}=\frac{\epsilon_0E^2}{2}-\frac{B^2}{2\mu_0}
This source form is for a prescribed current, replacing rather than duplicating a particle's worldline coupling. The density inside brackets has units J/m³. Smooth fields and suitable vanishing boundary variations are assumed.↔ Scroll wide equations horizontally.

Gauge shifts change bookkeeping and endpoint terms

With our signs choose Aμ↦Aμ+∂μχA^\mu\mapsto A^\mu+\partial^\mu\chi, equivalently ϕ↦ϕ+∂tχ\phi\mapsto\phi+\partial_t\chi and A↦A−∇χ\mathbf A\mapsto\mathbf A-\nabla\chi. The particle action changes by −q(χf−χi)-q(\chi_f-\chi_i). For fixed endpoints this does not alter its stationary paths. The field tensor and its action stay unchanged. For a prescribed current, integration by parts relates the bulk gauge variation to ∂μJμ\partial_\mu J^\mu; charge conservation removes that bulk term when the boundary contribution is controlled.

Canonical spatial momentum is P=∂L/∂v=γmv+qA\mathbf P=\partial L/\partial\mathbf v=\gamma m\mathbf v+q\mathbf A. It changes under a gauge transformation, whereas mechanical momentum p=γmv\mathbf p=\gamma m\mathbf v and the measured force do not. A uniform static vector potential in a simply connected region can have zero fields but nonzero canonical contribution. This is not a hidden classical acceleration. Translating a canonical conservation statement into a physical momentum claim requires the chosen gauge and the symmetry of the complete Lagrangian, including its possible boundary terms.

Canonical momentum under a pure gauge change

In a simply connected region with zero fields, a charge q=2 nCq=2\,\mathrm{nC} has mechanical momentum px=5×10−12 kg m s−1p_x=5\times10^{-12}\,\mathrm{kg\,m\,s^{-1}} and static Ax=3 mT mA_x=3\,\mathrm{mT\,m}. Apply χ=(1 mT m)x\chi=(1\,\mathrm{mT\,m})x over endpoints separated by 0.5 m0.5\,\mathrm m. Find both canonical momenta and the action shift.

  1. Initially qAx=(2×10−9)(3×10−3)=6×10−12 kg m s−1qA_x=(2\times10^{-9})(3\times10^{-3})=6\times10^{-12}\,\mathrm{kg\,m\,s^{-1}}. Adding the mechanical momentum gives Px=11×10−12 kg m s−1P_x=11\times10^{-12}\,\mathrm{kg\,m\,s^{-1}}.

  2. The spatial potential changes by minus the gradient of chi, so Ax′=2 mT mA'_x=2\,\mathrm{mT\,m}. Hence Px′=9×10−12 kg m s−1P'_x=9\times10^{-12}\,\mathrm{kg\,m\,s^{-1}}. The mechanical momentum is unchanged and both electric and magnetic fields remain zero.

  3. The endpoint gauge difference is Δχ=(10−3 T m)(0.5 m)=5×10−4 T m2\Delta\chi=(10^{-3}\,\mathrm{T\,m})(0.5\,\mathrm m)=5\times10^{-4}\,\mathrm{T\,m^2}. Thus ΔS=−qΔχ=−1×10−12 J s\Delta S=-q\Delta\chi=-1\times10^{-12}\,\mathrm{J\,s}. It is a fixed endpoint term and adds no force.

The result

The canonical momentum changes from 11 to 9 in units of 10⁻¹² kg m/s, while mechanical motion stays the same; the action shifts by −10⁻¹² J s.

Explore the model

Interactive lab

Interactive lab · function

Stationarity in a restricted toy family

Reset and set BOTH Coefficient a = 0.5 and Position x = 0; predict zero tangent slope. For a fresh comparison, Reset and set a = 0.5 and x = 1; predict slope 1 and positive function value. Inspect the paused tangent or Step. Interpret x only as a dimensionless trial-family parameter for this analogy.

Stationarity in a restricted toy familyThis lab uses only y = ax². Playback traces the curve within the fixed integration interval from 0 to x; it does not estimate numerical error or change the chosen point. Current readings: y at chosen x: 0.608; Tangent slope · 2ax: 1.35; Signed area · ax³/3: 0.182. All parameters are adjustable with the labeled controls below.−2.4−1.201.22.4−9−4.504.59xy(x, ax²)
y = ax²TangentSigned integral
y at chosen x
0.608
Tangent slope · 2ax
1.35
Signed area · ax³/3
0.182
t = 0 s

This lab uses only y = ax². Playback traces the curve within the fixed integration interval from 0 to x; it does not estimate numerical error or change the chosen point. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.

Look forThe quadratic y = ax² illustrates a derivative vanishing at a stationary point. It does not vary worldlines, calculate the electromagnetic action, choose a gauge, or solve the Euler–Lagrange equations.

Check your understanding

Why does adding a fixed-endpoint gauge term leave the particle trajectory unchanged?

Try it yourself

A free massive particle with rest energy mc2=2 Jmc^2=2\,\mathrm J moves at constant 0.6c0.6c for a laboratory interval of 5 ns5\,\mathrm{ns}, with zero potentials. Compute its proper time and free action. Explain why treating the proper-time integrand as a fixed constant before path variation is invalid.

Take a moment to make a prediction or work it out on paper. Open a hint when you need one.

Give me a hint

The specified path has gamma = 1.25. Compute its action after evaluating the proper time, then distinguish evaluation on one path from variation over many paths.

Compare with the solution

For this path Δτ=5/1.25=4 ns\Delta\tau=5/1.25=4\,\mathrm{ns} and S=−mc2Δτ=−(2)(4×10−9)=−8×10−9 J sS=-mc^2\Delta\tau=-(2)(4\times10^{-9})=-8\times10^{-9}\,\mathrm{J\,s}. These are evaluations on a stated inertial worldline. A varied worldline generally accumulates a different proper time, so replacing the geometric square root by a fixed constant while keeping the same parameter limits would erase the dependence that produces the equation of motion. One varies first, then chooses proper time along the stationary path.

Take it with you

  • The relativistic particle action uses path-dependent proper time and a covector line integral.
  • The Maxwell action contains electric minus magnetic terms, while energy contains their positive sum.
  • Gauge endpoint shifts preserve equations, even though canonical momentum and numerical action can change.

Read further

Original sources and deeper explanations to follow at your own pace.

Optional progress, saved in this browser when available. Revisit any lesson at any time.

Lesson not marked complete.