Starting from the Lagrangian density of the electromagnetic field:L=14FμνFμνJμAμ.\mathcal{L}=-\frac{1}{4}F^{\mu\nu}F_{\mu\nu}-J_\mu A^\mu. We demand that the lagrangian is invariant under a gauge transformation ...