# Electrodynamics and the Lagrangian density [duplicate]

Could anyone tell me what equations can I obtain from the Lagrangian density

$${\cal L}(\phi,\,\,\phi_{,i},\,\,A_i, \dot A_i,\,\,A_{i,j})~=~\frac{1}{2}|\dot A+\nabla\phi|^2-\frac{1}{2}|\nabla \times A|^2-\rho\phi+J\cdot A$$ by the Euler-Lagrange equations?

## marked as duplicate by Qmechanic♦ lagrangian-formalism StackExchange.ready(function() { if (StackExchange.options.isMobile) return; $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() { var$hover = $(this).addClass('hover-bound'),$msg = $hover.siblings('.dupe-hammer-message');$hover.hover( function() { $hover.showInfoMessage('', { messageElement:$msg.clone().show(), transient: false, position: { my: 'bottom left', at: 'top center', offsetTop: -7 }, dismissable: false, relativeToBody: true }); }, function() { StackExchange.helpers.removeMessages(); } ); }); }); Oct 12 at 19:02

If your $A$ is a 3D vector potential $\mathbf{A}$, then your Lagrangian is a Lagrangian for electromagnetic field potentials $(\phi,\mathbf{A})$ created with a charge $\propto c$ and the 3D charge velocity $\propto d$. The exact proportionality coefficients depend on units.