Lagrangian Mechanics
Lagrangian mechanics is the application of the calculus of variations to classical mechanics. It derives the equations of motion for a system by finding the stationary point of a functional called the action.
Least Action Principle
Let represent the position of particles. Call the velocity of the particles. Suppose the dynamics of the particles is governed by Newton’s law
for a mass matrix (stores the mass of every particle) and a force model . The kinetic energy is
The potential energy is a function of positions , so that
if the force is conservative (conservative vector field), i.e. the force pushing the particles is entirely determined by the “slope” of the energy landscape at their current position.
Definition (The Lagrangian)
We say that the Lagrangian of a system is the quantity defined as
where
- kinetic energy
- potential energy such that
Theorem (Least Action Principle)
The Newton’s law of of motion
is the Euler-Lagrange equation for the total action functional
Proof: We have that
Since the kinetic energy does not depend on the position , we have , and that potential energy only depends on . Thus, we have
The second line deserves some explanation. See here for a better proof.
Then, as only depends on time, we can rewrite the above as
Symmetry is important here. Although is nicely diagonal where is the mass of the -th particle, and for (this is a consequence of the fact that we use a nice 3D Cartesian coordinate system to represent the positions of the particles), the real reason is that is symmetric to satisfy Newton’s third law of motion.
Applicability
The least action principle (or stationary-action principle) works for any conservative system made of particles.
- Elastic body
- Fluid
- Rigid body There are systems with non-conservative (dissipative) forces, such as viscosity, heat, friction.
Why is this useful?
If LAP is equivalent to Newton’s law that , what is the point?
- reduced order modeling (generalized coordinates)
- A rigid object, like a bar-pendulum (a pendulum but the rod actually has mass) consists of a near-infinite number of particles.
- Accounting all forces acting on each other is impossible.
- It is not obvious how rigid body motions like torque and angular momentum should arise from Newton’s laws.
- Knowing that macroscopically the rigid body system can only move in a few degrees of freedom, we can parameterize the location of each particle using smaller coordinates.
- It is easy to pullback the Lagrangian from particle system to the parameter space, and derive the equations of motion.
- derive structure-preserving discretizations (recall Forward Euler Method)
Example 1 (Compound Pendulum)
Consider a compound pendulum. The only mass of this system is the rod that connects the pivot.
Suppose we had particles ( a ). Computing the rotational dynamics of the rod in Newtonian mechanics requires ODEs for each of the positions, and another near infinite number of ODEs dictating that no two particles can move relative to one another. This gives us space of postions and velocities of all particles in the body.
This is hard. On the other hand, no matter the number of atoms in the rigid bar, its position and orientation in 3D space can be completely described by 6 parameters
- for the position of the center of mass
- angles describing the rotation Given that the Lagrangian only cares about the kinetic and potential energy of the system, we can pullback the Lagrangian from the particle system to the 6D parameter space, and derive the equations of motion for these 6 parameters. This is a much more tractable problem.
So, consider the position of the -th particle
where is the length of the rod and is the distance of the particle from the pivot. It’s velocity is
The mass of the particle is where is the total mass of the rod. The total kinetic energy is then
The total potential energy is
We use integrals here because we are summing over the kinetic and potential energy of all particles in the rod. Since the rod is continuous, we have infinitely many particles, and thus we need to use integrals instead of summations.
Let’s look at the Lagrangian.
and the Euler-Lagrange equation
Applying the equation, we get
Compare this to the simple pendulum where . The compound pendulum has an extra factor of . This mathematically proves that a rigid rod swings faster than a point mass at the end of a massless rod of the same length. This is because the rod’s mass is distributed evenly along its length (center of mass at ) making it easier to swing than a point mass.
Noether’s Theorem of Time Independence
Suppose the Lagrangian is time independent
then the Euler-Lagrange ODE
implies that
is time independent.
Proof: We need to check that
So,
where the last line is because of the Euler-Lagrange equation.
For
this time-independent quantity is the total energy of the system
Time-independence of the Lagrangian implies the Law of Conservation of Energy.
Definition (Continuous Symmetry)
A physical system has a continuous symmetry if there exists a continuous transformation of the system that leaves the Lagrangian (and thus action) invariant.
Imagine a particle moving through empty space on a wire. Moving the entire experiment to the left (or any translation) changes the coordinates, but not the physical behavior.