For the linear-in-potential charged-scalar Lagrangian, and . With , the Hamiltonian density isThe first product includes after the Legendre transform; that term can arise in canonical variables even though the original Lagrangian has no interaction quadratic in .