The Lagrangian for the electromagnetic field is given by the Lagrangian density LEM:
LEM(Aμ,∂νAμ)=−4μ01FμνFμνJμAμ
where Aμ=(ϕ,A) is the 4-potential, F is the electromagnetic field tensor, is the 4-current, and is the vacuum permeability.
Now, let's derive the Euler-Lagrange equations for the electromagnetic field. The Euler-Lagrange equation for a field ϕi is given by:
∂ϕi∂L
Applying this to the Lagrangian density LEM, we first calculate the partial derivatives with respect to Aμ and ∂:
∂Aμ∂LEM
and
∂(∂νA
Now, we calculate the derivative with respect to ∂νAμ:
∂λ(
Now, we can write the Euler-Lagrange equation:
−Jμ−∂λ(
Plugging in the expressions we found above, we get:
−Jμ+μ0
Multiplying both sides by −μ0, we obtain the inhomogeneous Maxwell's equation in the language of the 4-potential:
∂λFλμ=μ0J
This is the Euler-Lagrange equation for the electromagnetic field. The other three Maxwell's equations are contained in the definition of the field tensor Fμν.