Quantum Electrodynamics
Two electrons that pass near each other come out moving in new directions. In quantum electrodynamics (QED) they scatter by exchanging a photon: one electron emits it and the other absorbs it, and neither the emission nor the absorption is seen directly. QED is the theory of the electron field, the photon field, and this coupling between them.
Two electrons scatter by exchanging a photon. The exchanged photon is internal: it is created and absorbed inside the process and never reaches a detector. Predicting how often the electrons deflect through a given angle needs a numerical factor for each vertex where the photon meets an electron line, and a factor for the internal photon line.
To turn a diagram like this into a number, we need a factor for each vertex and a factor for the internal photon line. This chapter derives the QED interaction and quantizes the photon field; Perturbation Theory extracts the propagator and assembles the diagram factors.
- The vertex factor comes from an interaction term in the QED Lagrangian. Most of the chapter works out where that term comes from and why it has only one possible form.
- The photon field supplies the internal-line factor. Quantizing it carries a complication the electron field did not: four potential components describe only two physical photons. The propagator is extracted later, after time ordering and contractions have been introduced.
A third QED building block, the propagator for an internal electron line, already came out of Field Quantization. It appears in processes such as Compton scattering rather than the exchange drawn above. The Perturbation Theory and Feynman Rules pages assemble all three factors into amplitudes.
We use natural units, , and metric , so .
The foundational distinction between spacetime labels and field-value spaces appears in Quantum Field Theory: Fields and Quanta §Spacetime, components, and value spaces. QED brings several of those objects together, so the following recap collects the notation used most often in this chapter.
Expand the QED notation
| Symbol | Meaning | Mathematical role |
|---|---|---|
| spacetime point | , with | |
| electron field | four-component Dirac spinor, valued in | |
| Dirac adjoint | makes combinations such as Lorentz covariant | |
| gamma matrices | act on spinor components and carry a Lorentz index | |
| electromagnetic potential | Lorentz covector field; its four components are not four photons | |
| electromagnetic field strength | antisymmetric tensor, | |
| covariant derivative | ||
| electric current | four-vector, | |
| , | gauge functions | real-valued functions on spacetime |
| , | charge and mass | constants; sets the interaction strength |
Repeated Lorentz indices are summed, so
The position-space variable labels where a field is evaluated. The momentum-space variable labels a Fourier mode or an internal-line momentum, and labels a polarization four-vector. A Lorentz index such as is different from a spinor component index: is a matrix for each value of .
After quantization, hats distinguish operators when needed, for example and . The fields remain operator-valued distributions; the indices still refer to the same Lorentz and spinor spaces.
The route to the interaction term runs through symmetry:
- Assemble the free pieces. The Dirac and Maxwell Lagrangians describe the electron and photon fields propagating on their own.
- Find the interaction. Requiring the theory to be unchanged by a local phase convention for the electron field forces a coupling to the photon potential.
- Quantize the photon. The canonical construction needs a gauge-fixing step and a condition that picks out the physical states.
- Extract the propagator. The quantized field supplies the factor for an internal photon line.
Recap of the Lagrangians
We begin with the two free Lagrangians from Action and Lagrangians.
The Dirac Lagrangian describes the free electron field:
Here is the electron's spinor field and is its Dirac adjoint. The derivative term describes propagation, and is the mass term. Applying the Euler–Lagrange equation gives the Dirac equation.
The Maxwell Lagrangian describes the free photon field. The potential has four components, and its derivatives form the electromagnetic field strength:
Varying gives Maxwell's equations in free space, .
Adding these two Lagrangians describes fields that propagate independently, with nothing passing between them. Electromagnetic scattering needs an interaction term as well. The next two sections show that requiring the electron Lagrangian to respect a local phase symmetry forces that term into one particular shape, the minimal coupling used in The Dirac Equation §1.
U(1) Global Symmetry
Multiplying the electron field by a constant phase changes no prediction. Take
with the same constant everywhere. The probability density from First Quantization, , is unchanged because the phase and its conjugate cancel. Relative phases between parts of a superposition still matter for interference; the transformation here rotates the whole field by one angle.
Every term in the free Dirac Lagrangian contains one and one . In the mass term the two phases cancel directly, . In the kinetic term the constant phase passes through the derivative and then cancels the same way. The Lagrangian is therefore unchanged. A transformation that leaves the action unchanged is a symmetry, and this one is global because a single applies across all of spacetime.
The symmetry also implies charge conservation. Noether's theorem attaches a conserved current to each continuous symmetry of the action, and for the phase transformation that current is
Its time component is the charge density and its spatial components describe charge flow. Integrating the density over all space gives the total electric charge, and the continuity equation says that charge moving between regions is never created or destroyed.
The phases form the group U(1). Each is a unitary matrix, equivalently a complex number of unit magnitude, and as varies these numbers trace out the unit circle.
Local Gauge Symmetry U(1)
The phase of the electron field is not measurable on its own, so it is natural to ask that the theory not depend on this convention even when it is chosen separately at each point rather than once for all of spacetime. Replace the constant by a function :
The free Dirac Lagrangian does not survive this stronger demand. The mass term still cancels, because its two phase factors sit at the same point:
The kinetic term does not. The derivative now acts on the phase as well as on , and the product rule leaves an extra term proportional to , which does not vanish for a general .
How the derivative breaks local invariance
Apply the product rule to the phase-transformed field:
Substituting into the kinetic term gives
The last term does not vanish for a general , so the free Dirac Lagrangian is not invariant under local phase changes.
To cancel the extra term, introduce a field that shifts under the same transformation. Give the vector potential the rule
and fold it into the derivative:
The shift in places inside , which cancels the from differentiating the phase. What remains is
so carries the same phase as itself. That is why is called the covariant derivative. Multiplying by removes the phase, and the kinetic term built from is locally invariant.
Expanding it,
produces exactly one interaction term, coupling the electron current to the potential . Local U(1) invariance fixes its form. The charge sets its strength, and the symmetry argument does not predict the numerical value.
The photon potential now appears in the electron's dynamics. The next section adds a kinetic term for so that electromagnetic disturbances can propagate on their own.

A global phase rotation uses one angle everywhere. A local rotation has a position-dependent angle, whose derivative requires a compensating transformation of the gauge potential.
QED Lagrangian
The potential now belongs to the same locally gauge-invariant theory as the electron field. Its kinetic term must therefore be the same kinetic term for two gauge-equivalent potentials. We do not modify the kinetic term itself: we transform , then check that the existing Maxwell term is unchanged. The field strength here is the same introduced in the free Maxwell theory. Write
Substitute this transformed potential into the same definition:
The added piece vanishes because mixed partial derivatives commute. Thus the transformation changes the potential's description but not the electromagnetic field strength.
Zero field strength does not require a constant potential
Locally, means that the potential can be a pure gradient, , not necessarily a constant. For example, gives while
The Maxwell term is therefore gauge invariant. It is the standard Lorentz-invariant term quadratic in the field strength. Gauge symmetry permits additional higher-order terms in an effective theory, so it constrains the Lagrangian rather than fixing it uniquely.
Combining the photon term with the covariant Dirac term,
Expanding the covariant derivative separates the three contributions:
They describe photon propagation, free electron propagation, and the electron–photon interaction.
The interaction term is the source of the vertex factor promised in the introduction. Stripping the three fields off and keeping the factor of from the S-matrix expansion leaves
the number attached to each point where a photon line meets an electron line. The Feynman Rules page derives this in full.
A direct photon mass term proportional to is not gauge invariant, because changes under the gradient shift. An unbroken U(1) gauge symmetry therefore forbids it, and the photon we quantize next is massless.
Quantizing the Photon Field
The photon propagator is the factor for an internal photon line. The Field Quantization page built propagators by expanding a free field into modes and treating each mode as an oscillator. The photon follows the same route with one extra step: the four components of carry only two physical polarizations, and the construction has to remove the other two.
On a first read, take two results from this section and move on. The photon has two physical polarizations, and its propagator in Feynman gauge is
The rest of the section works through the steps needed to reach it.
The plan is to make all four components easy to quantize, then restrict the quantum states so that only the two physical polarizations survive. We first see where the two come from, then why the direct canonical construction stalls.
Counting a free photon's polarizations
Write the potential as a single plane wave,
where sets the energy and momentum and the polarization vector sets the amplitude of each component of the potential. A complex wave keeps the algebra short; its real part is the physical classical field.
Putting this wave into the free Maxwell equation leaves one condition on the momentum and polarization,
It has two consequences. First, a wave that carries a nonzero electromagnetic field must have , the massless energy–momentum relation , because a polarization proportional to produces a vanishing field strength. Such a potential oscillates without any or and is called pure gauge. Second, with the condition becomes , which ties the four amplitude components together and removes one of them.
Deriving the condition, and the pure-gauge case
Differentiating the exponential brings down , so the field strength is
Now apply the free Maxwell equation, . Another derivative brings down another momentum factor. After removing the common exponential and numerical factors, we get
This equation specifies which polarizations and momenta can describe a free electromagnetic wave.
Suppose instead that . Dividing equation (1) by gives
But a polarization proportional to makes the field strength vanish:
The components of are ordinary numbers, so the two products are equal. The potential can oscillate while producing no or . We call such a potential pure gauge.
For a wave with a nonzero electromagnetic field, we therefore need
This is the massless energy–momentum relation. A zero Minkowski square does not mean zero momentum: has even when is nonzero.
Substituting into equation (1) leaves
For nonzero , this requires . One equation on four components leaves three independent amplitudes.
Gauge freedom removes one more amplitude. A gauge transformation shifts the potential by a gradient,
which leaves unchanged because the extra term is . For a gauge function with the same plane-wave dependence, the gradient is proportional to , so the polarization shifts as . Choosing appropriately removes the remaining non-transverse amplitude. Only the two directions perpendicular to the motion remain as independent physical polarizations:
For a free photon, the count is therefore four potential components, minus one Maxwell constraint, minus one gauge freedom, leaving two physical polarizations.
Removing the non-transverse amplitudes
For a wave travelling along , take . The constraint reads
so the polarization has the form
This is four-dimensional transversality. At this stage it ties the time and components together; it does not require them to vanish.
For a plane-wave gauge function, the polarization changes as
Choose . This removes the time and components together:
The electromagnetic field stays the same. Only the two transverse directions remain.

A photon moving along z: the Maxwell constraint ties the time and z components together, and a gauge transformation removes that shared component, leaving two transverse polarizations.
Why the canonical construction stalls
Canonical quantization pairs each field with a conjugate momentum. For each component of the potential, calculate
The spatial components come out as . The time component does not: antisymmetry forces , so
The same gap shows up directly in the Lagrangian, where never appears, because the time derivatives in act only on the spatial components of the potential.
A vanishing conjugate momentum blocks the usual canonical commutator. The standard relation for would set the right-hand delta function equal to zero, which cannot hold. The vanishing momentum instead marks as a constrained variable. Its Maxwell equation is Gauss's law, , a condition on the electric field at one instant with no time derivative to carry it to the next. In the Hamiltonian description, enforces that constraint.
Constrained systems can still be quantized. We use a method that keeps Lorentz covariance visible: add a gauge-fixing term that gives all four components a nonzero conjugate momentum, quantize, then select the physical states afterward.
Fixing the gauge
Despite its name, gauge fixing does not mean adding another field to the gauge potential. These are two different operations:
- A gauge transformation changes the potential, , without changing .
- Gauge fixing leaves as the field variable and adds a term to the QED Lagrangian. The term controls the redundant gauge freedom so that the field can be quantized covariantly.
Thus it is the Lagrangian, not the potential, that is modified:
The gauge freedom lets many potentials describe the same and . A useful choice is the Lorenz condition,[1]
The contraction makes this condition Lorentz covariant: it has the same form in every Lorentz frame.
To see how we can reach it, apply a gauge transformation. The divergence changes as
Choosing to solve
therefore gives a potential satisfying the Lorenz condition, with suitable boundary conditions in the flat spacetime setting used here. Some freedom remains: a further transformation with preserves the condition. For plane waves, this includes the shift along that we used to remove the amplitude .

Equivalent potentials belong to one gauge orbit and produce the same electromagnetic field. The Lorenz condition still permits residual gauge transformations.
In the quantum theory, this cannot become an exact identity between independent canonical field operators. The divergence contains , which will be related to the momentum of . Setting that divergence identically to zero conflicts with the canonical commutator.[2] We will instead impose a weaker condition on physical states.
The name gauge fixing refers to controlling which representatives of each gauge-equivalence class occur in the calculation. It does not mean fixing or repairing the gauge field itself. The term is not unique. A Lorentz-covariant family is
Different values of give different intermediate propagators and different treatments of the unphysical gauge directions. We choose , called Feynman gauge, because it makes the four components decouple and gives the simplest canonical quantization. This is a choice of formalism, not a new physical interaction.
For this choice, to make the canonical construction possible, add the following term to :
Since
the added term contains . The missing velocity now appears, and the momentum becomes
We have made all four components dynamical. This enlarges the space of solutions we quantize, so adding the term and selecting physical states must go together. The fact that the term vanishes on Lorenz-obeying fields is not, by itself, a proof that the quantum predictions stay the same. The Gupta–Bleuler condition below removes the extra gauge-sector states; equivalently, in other quantization formalisms, Ward identities or BRST symmetry ensure that gauge-invariant observables do not depend on .
An arbitrary extra term would change the physical equations and could change the predictions. Gauge fixing is special because the original Maxwell action is constant along gauge orbits: all potentials in one orbit describe the same physical field. The gauge-fixing term changes which representative is selected and adds motion in the redundant directions, but it does not remove the physical gauge-equivalence class. In a path integral, it changes the weighting of descriptions within each orbit; the physical-state restriction (or, in another formalism, the corresponding gauge-fixing determinant/BRST construction) removes that artificial change from gauge-invariant predictions.
The added term also decouples the components: inside the action, the component-mixing part of the Maxwell term cancels against the gauge-fixing term after two integrations by parts. The equivalent Lagrangian is
For this form of the Lagrangian, the canonical momenta are
The last expression differs from the momentum before integration by parts because changing the boundary terms can change the canonical momenta. Both Lagrangians give the same bulk equations of motion.
Each component now obeys a massless wave equation,
This choice gives four decoupled wave equations, which we can quantize using the oscillator construction. We still need to recover the two-polarization physical state space.
Decoupling the components
Expand the Maxwell term:
The second term mixes components. Inside the action, integrate it by parts twice:
where we have dropped boundary terms under the usual boundary assumptions. The gauge-fixing term cancels this contribution, leaving the Lagrangian stated above.
Quantizing the gauge-fixed field
With the components decoupled, expand the field into four families of modes. For momentum along , choose the polarization basis
The labels and are the transverse directions. The label is timelike, and is longitudinal, pointing along the spatial momentum. Promote each mode amplitude to an annihilation operator and its complex conjugate to a creation operator:
Example of the extra formal modes
For momentum along , the gauge-fixed equation allows, as formal plane-wave solutions,
They lead to formal one-quantum states
These are not physical photon states. The time-like and longitudinal modes are included so the four-component field can be quantized; the Gupta–Bleuler condition below removes their gauge-dependent combinations. The transverse states and satisfy the physical condition and remain.
This has the same structure as the scalar field expansion. The extra sum accounts for the four polarization directions. Each removes a quantum in its mode, and each adds one.
At this stage, these operators build an auxiliary state space, not yet the physical photon space. For one momentum, a general candidate one-quantum state has the form
The coefficients can initially include all four polarizations. The timelike mode is the awkward one. The metric gives the time component a kinetic term of the opposite sign from the three spatial components, and a single timelike quantum comes out with negative norm. We therefore need a test that distinguishes acceptable candidates from the extra states introduced by the gauge-fixed construction.
The Gupta–Bleuler condition supplies that test. Apply the annihilation part of the Lorenz condition to a candidate state:
The superscript keeps the positive-frequency terms, which contain . A candidate that satisfies this equation belongs to the physical subspace; only then do we call it a physical state. For a one-photon candidate, the test reduces to , the same polarization constraint that follows from Maxwell's equation.
For momentum along , the condition ties the timelike and longitudinal modes together so their contributions to observable quantities cancel. States that differ only by a zero-norm gauge mode then represent the same physical state. After this identification, the independent states contain only the two transverse polarizations.
Negative norm, the physical-state condition, and the null states
The timelike commutator. The metric makes the kinetic term
The three spatial components have the usual scalar kinetic sign. The time component has the opposite sign.
Write , so and . The canonical commutators give
The factor matches the integration measure in the expansion. If we suppress the momentum normalization, the spatial modes have , while the timelike mode has . That minus sign means a timelike one-quantum state has negative norm.
Test a candidate state. For momentum along , the transverse modes contribute nothing to the divergence. The timelike and longitudinal modes contribute with opposite signs, so the Gupta–Bleuler test becomes
A candidate that passes this test has matching timelike and longitudinal contributions. One consequence shows up in the Hamiltonian:
On candidates that pass the condition, the last two terms have equal and opposite expectation values. The transverse modes supply the physical excitation energy.
Identify the null states. Two accepted candidates that differ only by a zero-norm gauge state represent the same physical state. These null states have no effect on physical matrix elements. The physical photon space consists of the resulting equivalence classes and has the two transverse polarizations found from Maxwell's equation.
An external photon in a scattering calculation therefore carries one of these two polarizations, or a superposition of them such as circular polarization.

Gauge fixing gives four quantizable modes. The physical-state condition and identification of null gauge states recover the two physical photon polarizations.
Handoff to perturbation theory
The photon field is now quantized, including its gauge fixing and physical-state restriction. The next step is to introduce time ordering and contractions, then extract the photon propagator from this field. Perturbation Theory performs that extraction and assembles the QED factors into amplitudes. The Feynman Rules page then uses those factors in scattering calculations, and From Lagrangian to Experiment connects the resulting amplitude to measured rates.
The Lorenz condition is named for Ludvig Lorenz. The spelling distinguishes his name from Hendrik Lorentz, whose name appears in Lorentz transformations. ↩︎
Using the simplified gauge-fixed Lagrangian, , so . The equal-time canonical algebra then gives , since the field components commute with each other at equal times. If the divergence were the zero operator, this commutator would have to vanish. The Gupta–Bleuler condition avoids that contradiction by constraining states with only the annihilation part of the divergence. ↩︎