Lagrangian Mechanics
Lagrangian Mechanics
Chapter 12
Lagrangian Mechanics
623
July 10, 2018 12:25 Competitive Physics 9.61in x 6.69in b3146-ch12 page 624
the units of each qi can be different. q̇1 , q̇2 , . . . , q̇n are the time derivatives
of the generalized coordinates and are known as generalized velocities —
collectively denoted by q̇.
Next, we move on to the crucial pillar of Lagrangian mechanics.
Hamilton’s principle states that the path q(t) taken by a system between
times t1 and t2 is one that results in a stationary value of the action S.
Notice that S is dependent on the entire function q(t) and is hence, known
as a functional. To determine the condition that results in a stationary value
of S, we turn to the calculus of variations.
Remember that the end points x(t1 ) and x(t2 ) are fixed at certain values,
as we have predetermined initial and final states.1 Usually if f (x) were a
df
function of x, we would determine points that yield dx = 0 to find stationary
points. Since it is impossible to differentiate a variable with respect to an
entire function, consider the substitution of
1
Note that the final state at time t2 is not really well-specified. For example, if you
are analyzing the motion of a simple projectile, there is no clear point in time where the
motion ends. However, Hamilton’s principle states that whatever time you choose as the
final state, the actual path taken by the ball between time t1 and this final time extremizes
the action.
July 10, 2018 12:25 Competitive Physics 9.61in x 6.69in b3146-ch12 page 625
The Lagrangian may not seem particularly enlightening right now but its
utility really shines when it comes to different coordinate systems. If we
were to use Newton’s laws, which are only valid in an inertial frame, in a
rotating frame for example, we would have to modify the laws of motion
to include “fictitious forces.” However, by the Lagrangian formulation, the
fundamental Hamilton’s principle holds in all frames. Concomitantly, the
E-L equations hold for various coordinate systems — we simply have to
express T and V in terms of the different coordinates. This can be seen in
two ways: physically and mathematically. Physically, the path of an extremal
should not depend on the frame of reference. For example, the shortest path
between two points is a straight line, regardless of the frame it is viewed
from. Mathematically, we can show that if the E-L equations hold for a set
of n coordinates x(t) (and we already know that it holds for the Cartesian
coordinate system), it must hold for the same Lagrangian in another set of
N coordinates2 q(t) that is given by
2
N is not necessarily equal to n.
July 10, 2018 12:25 Competitive Physics 9.61in x 6.69in b3146-ch12 page 629
given that
d ∂L ∂L
= .
dt ∂ ẋ ∂x
Consider
n n
∂L ∂L ∂xi ∂L ∂ ẋi
= · + ·
∂qk ∂xi ∂qk ∂ ẋi ∂qk
i=1 i=1
n n
d ∂L ∂xi ∂L ∂ ẋi
= · + · .
dt ∂ ẋi ∂qk ∂ ẋi ∂qk
i=1 i=1
Note that we have used the fact that partial derivatives are interchangeable
in writing the second inequality. Therefore,
n n
∂L d ∂L ∂xi ∂L d ∂xi
= · + ·
∂qk dt ∂ ẋi ∂qk ∂ ẋi dt ∂qk
i=1 i=1
n
d ∂L ∂xi
= · .
dt ∂ ẋi ∂qk
i=1
d ∂L
As our objective is to show that this is equal to dt ( ∂ q̇k ), we simply have to
prove that
∂xi ∂ ẋi
= .
∂qk ∂ q̇k
July 10, 2018 12:25 Competitive Physics 9.61in x 6.69in b3146-ch12 page 630
Observe that
N
∂xi ∂xi
ẋi = · q̇j +
∂qj ∂t
j=1
∂ ẋi ∂xi
=⇒ = .
∂ q̇k ∂qk
Thus,
n
∂L d ∂L ∂ ẋi d ∂L
= · =
∂qk dt ∂ ẋi ∂ q̇k dt ∂qk
i=1
If the E-L equations are valid for one set of coordinates (for example, Carte-
sian coordinates), they are also valid for all other coordinates of the form
given by Eq. (12.4). A direct corollary of this is that frames related by
Galilean transformations are equivalent as the coordinate transformations
are of the form qi = qi + vi t for some constant vi .
Polar Coordinates
where dr1 , dr2 and dr3 are three perpendicular infinitesimal length segments
(the usual infinitesimal quantities we integrate over). Let us apply this to an
example.
July 10, 2018 12:25 Competitive Physics 9.61in x 6.69in b3146-ch12 page 631
Spherical Coordinates
3
This is just the negative gradient of V in spherical coordinates (the definition of a
conservative force).
July 10, 2018 12:25 Competitive Physics 9.61in x 6.69in b3146-ch12 page 632
The first
two equations can
be swiftly obtained from applying the rotation
matrix sin ωt cos ωt to X
cos ωt − sin ωt
Y . In doing so, be cautious that the x and y-axes
rotate at ω clockwise relative to the X and Y -axes.
1
L = m ẋ2 + ẏ 2 + ż 2 − V.
2
This can be expressed in terms of the rotating coordinates as
1
L = m Ẋ 2 + Ẏ 2 + Ż 2 + 2ωX Ẏ − 2ω ẊY + ω 2 (X 2 + Y 2 ) − V.
2
∂V
mω Ẏ − + mω 2 X = mẌ − mω Ẏ ,
∂X
∂V
−mω Ẋ − + mω 2 Y = mŸ + mω Ẋ,
∂Y
∂V
− = mZ̈.
∂Z
∂V
Note that (− ∂X , − ∂V
∂Y , − ∂Z ), where the unit vectors are along the axes of the
∂V
where q 2 and q 1 are the final and initial generalized coordinates respectively.
Those additional terms on the right are fixed and do not vary — the equa-
tions of motion of this new system thus do not differ from the original one.
This implies that total time derivatives can simply be discarded from the
Lagrangian of a system as they are inconsequential — a neat trick in tidying
up the Lagrangian.
d ∂L ∂L
Applying the E-L equation dt ∂ ẋ = ∂x ,
f (q, t) = 0.
independent ones. A non-holonomic system, naturally, does not fulfil the cri-
terion that the DOFs are equal to the number of independent coordinates
needed to uniquely define a state.
(1) Let the circumference of the sphere be C. Then, roll the sphere to coor-
dinate (C, 0). The sticker is on top of the sphere at this juncture. Then,
roll it to coordinate (C, C). The sticker is still on top.
(2) Roll the sphere directly along the diagonal from the origin to (C, C).
The sticker is no longer on top of the sphere!
We cannot directly apply the previous results — namely the E-L equations
to holonomic systems as the variations may not be consistent with the con-
straints. However, Hamilton’s principle still holds and our modified objective
is to determine a path that extremizes the action, while obeying the con-
straints. There are then two approaches that we can take.
Firstly, we can use m constraint equations to solve for (3N − m) inde-
pendent coordinates which can be used to define the state of a system.
Often, we can even directly define coordinates that satisfy the constraints.
The variations then naturally obey the constraints — the E-L equations can
July 10, 2018 12:25 Competitive Physics 9.61in x 6.69in b3146-ch12 page 636
L=T −V
1 1
= M ẋ2 + m (ẋ + ṡ cos θ)2 + ṡ2 sin2 θ + mgs sin θ
2 2
1 1
= (M + m)ẋ2 + mṡ2 + mẋṡ cos θ + mgs sin θ.
2 2
d ∂L ∂L
Applying the E-L equation ( dt ( ∂ q̇ ) = ∂q ) with respect to x and s,
l̇ is the other component of velocity along the surface of the cone. Hence,
the Lagrangian of this particle is
1
L = m(l̇2 + l2 sin2 θ φ̇2 ) − mgl cos θ.
2
Applying the E-L equation with respect to l and φ,
Lagrange Multipliers
The second method entails directly finding variations that adhere to the
constraints without changing the generalized coordinates. Mathematically,
if there are m holonomic constraints and n generalized coordinates, we wish
to extremize the functional
t2
S= L(q, q̇, t)dt
t1
fi (q, t) = 0.
Taking the total derivative of the above equation, we obtain the relationship
between the variations of generalized coordinates that is imposed by the ith
constraint.
∂fi ∂fi ∂fi
δq1 + δq2 + · · · + δqn = 0. (12.7)
∂q1 ∂q2 ∂qn
Now, consider the most general variation of the action which depends on
q and q̇ (t cannot be varied):
t2 n
∂L ∂L
δS = δqj + δq̇j dt.
t1 ∂qj ∂ q̇j
j=1
The δq̇j term for all j can be integrated by parts, while keeping in mind that
δqj (t1 ) = δqj (t2 ) = 0 (as the end points must be fixed), to obtain
t2 n
∂L d ∂L
δS = − δqj dt.
t1 ∂qj dt ∂ q̇j
j=1
Since the right-hand side of Eq. (12.7) is zero, we can add to the above equa-
tion Eq. (12.7), for each 1 ≤ i ≤ m, multiplied by an arbitrary function of
July 10, 2018 12:25 Competitive Physics 9.61in x 6.69in b3146-ch12 page 639
time λi (t) without affecting the value of δS. These variables {λ1 , λ2 , . . . , λm },
collectively referred to as λ, are known as Lagrange Multipliers.
t2 n m
∂L d ∂L ∂fi
δS = − + λi (t) δqj dt.
t1 ∂qj dt ∂ q̇j ∂qj
j=1 i=1
We can always find a λ such that the terms in the brackets equate to zero
for j = {1, 2, . . . , m}. Effectively, the first m variations, {δq1 , δq2 , . . . , δqm },
are expressed in terms of the other (n − m) variations. Then,
m
∂L d ∂L ∂fi
− + λi (t) =0
∂qj dt ∂ q̇j ∂qj
i=1
for all 1 ≤ j ≤ n! These are the modified E-L equations for systems with
holonomic constraints. There is a neat way to recapitulate the results derived.
In order to solve an extremization problem with holomonic constraints,
we introduce m additional coordinates, λi (t). Then, the above problem can
be solved by finding the stationary values of the new action
t2 m
S = L(q, q̇, t) + λi (t)fi (q, t) dt,
t1 i=1
To see why this is coherent with the previous results, apply the E-L equations
with respect to a coordinate λi . Since L is independent of λ̇i ,
fi (q, t) = 0.
July 10, 2018 12:25 Competitive Physics 9.61in x 6.69in b3146-ch12 page 640
It can be seen that the constraints are enforced by introducing these addi-
tional terms. Therefore, we can vary q freely in a certain sense now as the
extremals of S will definitely obey the constraints. Furthermore, it is obvious
that if S is extremized, then S is also extremized (in a legal manner consis-
tent with the constraints) as m i=1 λi (t)fi (q, t) = 0 when S is extremized.
Applying the E-L equations to L , with respect to qj , yields
m
d ∂L ∂L ∂fi
− = λi .
dt ∂ q̇j ∂qj ∂qj
i=1
mr̈ = mr θ̇ 2 + mg cos θ + λ.
July 10, 2018 12:25 Competitive Physics 9.61in x 6.69in b3146-ch12 page 641
λ = −mr θ̇ 2 − mg cos θ.
The force of constraint along the r direction, which is simply the tension
force on the bob due to the string in this case, is
∂(r − l)
T = Qr, constraint = λ = λ = −mr θ̇ 2 − mg cos θ,
∂r
where the negative sign indicates that the direction of the force on the bob
is radially inwards.
∂(r − R)
N =λ = −mr θ̇ 2 + mg cos θ.
∂r
Next, we apply the E-L equation with respect to θ. In doing so, we can treat
r as a constant (r = R) as the Lagrange multiplier is independent of θ such
that its presence does not affect the equation of motion with respect to this
coordinate.
g sin θ = Rθ̈.
July 10, 2018 12:25 Competitive Physics 9.61in x 6.69in b3146-ch12 page 642
d(θ̇ 2 )
Adopting the substitution θ̈ = 2dθ and separating variables,
θ̇ 2 θ
2 2g
d(θ̇ ) = sin θdθ
0 0 R
2g
θ̇ 2 = (1 − cos θ).
R
Armed with this expression, we can determine the angle θ at which N = 0.
When N = −mr θ̇ 2 + mg cos θ = 0,
g
θ̇ 2 =
cos θ
R
g 2g
cos θ = (1 − cos θ)
R R
2
θ = cos−1 .
3
At this point in time, we are pining for the conservation of energy — a
crucial component of Newtonian mechanics — as it would have drastically
simplified the process in this problem.
H is known as the Hamiltonian of the system but is, most of the time,
equivalent to the mechanical energy of the system. Since we will not be
analyzing the Hamiltonian formulation here, we shall just refer to H as the
mechanical energy of the system. To prove the claim above, consider the
total time derivative of the Lagrangian.
n n
dL ∂L ∂L ∂L
= + · q̇i + · q̈i
dt ∂t ∂qi ∂ q̇i
i=1 i=1
n n
d ∂L ∂L d
= · q̇i + · (q̇i )
dt ∂ q̇i ∂ q̇i dt
i=1 i=1
n
d ∂L
= · q̇i ,
dt ∂ q̇i
i=1
where we have applied ∂L∂t = 0 as the Lagrangian does not explicitly depend
dL
on t. Shifting dt to the right-hand side,
n
d ∂L
· q̇i − L =0
dt ∂ q̇i
i=1
n
∂L
=⇒ · q̇i − L = H
∂ q̇i
i=1
for some constant H. How does this obscure-looking term reduce to the
familiar H = T + V ? The answer: Euler’s theorem of homogeneous
functions.
We claim that
n
∂f
· qi = kf.
∂qi
i=1
July 10, 2018 12:25 Competitive Physics 9.61in x 6.69in b3146-ch12 page 644
Substituting m = 1,
n
∂f
· qi = kf.
∂qi
i=1
Assuming that the potential energy V does not depend on the time-
derivative of generalized coordinates — an assumption which is only
invalid in the presence of charges, the Lagrangian of a closed system is of
the form
H = 2T − (T − V ) = T + V.
Even in the case where there are no obvious cyclic coordinates, there can
still be certain conserved quantities. Well, perhaps we just did not choose a
convenient coordinate system. Let us consider an instructive Lagrangian of
two particles with coordinates q1 and q2 that move only in a single direction.
1
L = m(q̇12 + q̇22 ) + U (aq1 + bq2 )
2
for some constants a and b. Observe that if we increment q1 by a certain bδ
where δ is a constant infinitesimal quantity and q2 by −aδ,
q1 → q1 + bδ,
q2 → q2 − aδ.
Notice that
dp1 dp2
b −a =0
dt dt
=⇒ bp1 − ap2 = c
qi → qi + fi (q, t)δ
n
d ∂L
= · fi
dt ∂ q̇i
i=1
n
∂L
=⇒ · fi = Q
∂ q̇i
i=1
This is, again, simply the angular momentum of the oscillating body in
the z-direction. We have merely expressed our system in the cumbersome
Cartesian coordinates instead of the convenient polar coordinates, which
would have directly resulted in a cyclic angular coordinate!
Conservation of Momentum
xi → xi + δ,
yi → yi ,
zi → zi ,
and the Lagrangian should still remain the same. By Noether’s theorem, the
quantity
n n n
∂L ∂T
= = mẋi = px ,
∂ ẋi ∂ ẋi
i=1 i=1 i=1
Due to the isotropy of space in an inertial frame (that is, all directions are
equal), the Lagrangian of a closed system does not change after an infinitesi-
mal rotation about an origin. Note that the position vector of the ith particle,
r i , changes in the following manner after an infinitesimal rotation about the
origin described by the rotation vector δ.
ri → ri + δ × ri .
xi → xi − yi δ,
yi → yi + xi δ,
zi → zi .
July 10, 2018 12:25 Competitive Physics 9.61in x 6.69in b3146-ch12 page 649
= Lz ,
which is the z-component of the total angular momentum of the system. We
can then repeat this for rotations about the x and y-axes to conclude that
the total angular momentum L is conserved for a closed system.