By using Feynman's path integral formalism in the second order for the rela
tivistic Lagrangian for a spinless particle in a gauge field and applying t
he covariant derivative instead of the commonly used derivative, but withou
t knowing the operator expressions for the momentum and energy, one can obt
ain the Klein-Gordon equation.