There is a way to make the complex Klein–Gordon field ψ ψ interact with electromagnetism in a gauge-invariant way. We can replace the (partial) derivative with the gauge-covariant derivative. Under a local U ( 1 ) gauge transformation, the fields transform as