Jump to content

Lagrangian Mechanics

From Smithnet Wiki

Principle of Stationary Action

Consider a physical system described by the generalised coordinates q1qN and matching velocities q˙1q˙N

The Lagragian is defined to be:

π
(qi,q˙i)=T(qi,q˙i)U(qi,q˙i)

where T is the Kinetic Energy and U is the Potential Energy. Typically, the Lagrangian is not a conserved quantity.

The Action is defined as:

𝒮=dt

Hamilton's Principle of Stationary Action (sometimes referred to as "Least Action") states that a physical system evolves in time such that the Action is stationary functional of the generalised coordinates:

𝒮qi=0

It can be shown that this leads to the Euler-Lagrange condition:

ddtq˙i=qi

where qi is the Generalised Force and Πi=q˙i is the Momentum Canonically Conjugate to qi.

Examples

Translational Symmetry and Linear Momentum

Consider the system of two particles constrained to move in a line, at positions x1 and x2, with masses m1 and m2. Their potential energy is only a function of the distance between them U(x1,x2). That is, there is translational (continuous) symmetry in the system.

The Lagrangian is:

=12m1x˙12+12m2x˙22U(x1x2).

The Euler-Lagrange condition leads to:

ddtx˙1=x1 and
ddtx˙2=x2

which is

dp1dt=Ux1 and
dp2dt=Ux2

where p=mx˙ is the linear momentum.

Now, Ux1=Ux2, so

dp1dt+dp2dt=0

This states that the total linear momentum is constant, or momentum is conservered. Thus, we have shown that from the original translational symmetry in space of the system, one can derive conservation of linear momentum.

Rotational Symmetry and Angular Momentum

Consider a particle of mass m moving within a Central Force, where the potential energy depends only on the distace from the origin: U(r). The radial and angular components of velocity are given by: vr=r˙ and vθ=rθ˙.

The Lagrangian is:

=12mr˙2+12mr2θ˙2U(r).

The Euler-Lagrange condition for r and θ is:

ddt(r˙)=r and
ddt(θ˙)=θ

which gives:

mr¨=mrθ˙2Ur
ddtmr2θ˙=0, noting that the angular momentum of the system is L=mr2θ˙.

The first equation shows that the radial component of momentum is composed of a positive (repulsive) force that is not dependent on the potential energy, but is due to the rotation. This is the origin of the Centrifugal Force. The second equation states that the rate of change of angular momentum is zero. That is, following from the rotational invariance of the system, we have derived conservation of angular momentum.

We may also write the force on the particle in terms of L, which shows the centrifugal component depends inversely on r3:

mr¨=L2mr3Ur.

Double Pendulum

Double Pendulum in 2D

Consider the double pendulum consisting of two masses connected by to rigid massless rods, to a fixed point of rotation at the origin and each other in a frictionless manner, constrained in the vertical plane, as shown above.

The kinetic energy is given by:

T=12m1v12+12m2v22=12m1l12θ˙12+12m2(x˙22+y˙22)

where

x2=l1sinθ1+l2sinθ2;y2=l1cosθ1l2cosθ2

after substitution and use of a standard trig identity, we find:

T=12l12(m1+m2)θ˙12+12m2l22θ˙22+l1l2m2cos(θ1θ2)θ1˙θ2˙

The potential energy is given by:

U=l1m1gcosθ1(l1cosθ1+l2cosθ2)m2g=l1(m1+m2)gcosθ1l2m2gcosθ2

The Lagrangian is thus:

TU
=12l12(m1+m2)θ˙12+12l22m2θ˙22+l1l2m2cos(θ1θ2)θ˙1θ˙2+l1(m1+m2)gcosθ1+l2m2gcosθ2

Using the Euler-Lagrange condition for θ1:

θ˙1=l12(m1+m2)θ1˙+l1l2m2cos(θ1θ2)θ˙2

thus:

ddt(θ˙1)=l12(m1+m2)θ¨1l1l2m2sin(θ1θ2)θ˙2(θ˙1θ˙2)+l1l2m2cos(θ1θ2)θ¨2
θ1=l1l2m2sin(θ1θ2)θ˙1θ˙2l1(m1+m2)gsinθ1

Using the Euler-Lagrange condition for θ2:

θ˙2=l2m2θ2˙2+l1l2m2cos(θ1θ2)θ˙1

thus:

ddt(θ˙2)=l22m2θ¨2+l1l2m2cos(θ1θ2)θ¨1l1l2m2sin(θ1θ2)θ˙1(θ˙1θ˙2)
θ2=l1l2m2sin(θ1θ2)θ˙1θ˙2l2m2gsinθ2

Now we can form the two equations of motion:

l1(m1+m2)θ¨1+l2m2cos(θ1θ2)θ¨2+l2m2sin(θ1θ2)θ˙22+(m1+m2)gsinθ1=0
l1m2cos(θ1θ2)θ¨1+l2m2θ¨2l1m2sin(θ1θ2)θ˙12+m2gsinθ2=0

Hence determine how the angular acceleration changes:

θ¨1=l1m2sin(θ1θ2)cos(θ1θ2)θ˙12+l1m2sin(θ1θ2)θ˙22+g(m1sinθ1+m2[sinθ1sinθ2cos(θ1θ2)])l1(m1+m2sin2(θ1θ2))
θ¨2=l2m2cos2(θ1θ2)θ¨2+l1(m1+m2)sin(θ1θ2)θ˙12+l2m2sin(θ1θ2)cos(θ1θ2)θ˙22+gsinθ1(m1+m2)[cos(θ1θ2)sinθ2]l2(m1+m2)