In Feynman gauge, the Lagrangian differs by a total divergence from
Its Euler-Lagrange equation is . Directly from the original gauge-fixed Lagrangian, the canonical momenta are
equivalently after using the total-divergence form.
Using the mode expansions and oscillator commutator, the two nonzero cross terms combine to
where polarization completeness was used. The other equal-time field commutators vanish.
Substitution into the Hamiltonian and normal ordering give
Every oscillator excitation carries positive energy , but the covariant state space has an indefinite inner product: time-like excitations have negative norm, and time-like and longitudinal polarizations are unphysical. Gupta-Bleuler quantization imposes
and quotients by null states. The physical state space contains only the two transverse photon polarizations with positive norm, as required by gauge invariance.