Lagrangian mechanics is a formulation of classical mechanics, which is equivalent to Newton’s laws, but offers some advantages. Its mathematical backbone is the calculus of variations, and hence it is built on the principle of least action, which states that the path taken by a system will be a minimum of the action (i.e. energy cost) of that path.
For a moving object with position and velocity , we define the Lagrangian as the difference between its kinetic and potential energies:
From variational calculus we then get the Euler-Lagrange equation, which in this case turns out to just be Newton’s second law:
But compared to Newtonian mechanics, Lagrangian mechanics scales better for large systems. For example, to describe the dynamics of objects , we only need a single from which the equations of motion can easily be derived. Getting these equations directly from Newton’s laws could get messy.
At no point have we assumed Cartesian coordinates: the Euler-Lagrange equations keep their form for any independent coordinates :
We define the canonical momentum conjugate and the generalized force conjugate as follows, such that we can always get Newton’s second law:
But this is actually a bit misleading, since need not be a momentum, nor a force, although often they are. For example, could be angular momentum, and torque.
Another advantage of Lagrangian mechanics is that the conserved quantities can be extracted from using Noether’s theorem. In the simplest case, if does not depend on (then known as a cyclic coordinate), then we know that the “momentum” is a conserved quantity:
Now, as the number of particles increases to infinity, variational calculus will give infinitely many coupled equations, which is obviously impractical.
Such a system can be regarded as continuous, so the functions can be replaced by a single density function . This approach can also be used for continuous fields, in which case the complex conjugate is often included. The Lagrangian then becomes:
Where is known as the Lagrangian density. By inserting this into the functional used for the derivation of the Euler-Lagrange equations, we get:
This is simply 2D variational problem, so the Euler-Lagrange equations will be two PDEs:
If is real, then these two Euler-Lagrange equations will in fact be identical.
Finally, note that for abstract fields, the Lagrangian density rarely has a physical interpretation, and is not unique. Instead, it must be reverse-engineered from a relevant equation.
- R. Shankar, Principles of quantum mechanics, 2nd edition, Springer.