Lagrangian Mechanics: 3.1 Action Principle
Lagrangian Mechanics: 3.1 Action Principle
Lagrangian Mechanics: 3.1 Action Principle
Lagrangian Mechanics
34
Advanced Classical Physics, Autumn 2016 Lagrangian Mechanics
Fermat had proposed his principle in 1657, and it motivated Maupertuis to suggest in 1746
that also matter particles would obey an analogous variational principle. He postulated that there
exists a quantity called action, which the trajectory of the matter particle would minimise. This
idea was later refined by Lagrange and Hamilton, who developed it into its current form, in which
the action S is defined as an integral over a function L(x, ẋ, t) known as the Lagrangian, as
Z tb
S[x] = L(x(t), ẋ(t), t)dt. (3.1.4)
ta
The Lagrangian is a function of the position x and velocity ẋ of the particle, and it may also have
some explicit time dependence. We will see later that for conservative systems, the Lagrangian
is simply the difference of the kinetic energy T and the potential energy V , i.e., L = T V .
Because the action S is given by an integral over time, it depends on the position and velocity
at all times, i.e., on the whole trajectory of the particle. It is therefore a function from the space
of functions x(t) to real numbers, and we indicate that by having the argument (i.e. function x)
in square brackets. Such function of functions are called functionals.
Given a Lagrangian L, the dynamics is determined by Hamilton’s principle (or action prin-
ciple), which states that to move from position xa at time ta to position xb at time tb , the particle
follows the trajectory that minimises the action S[x]. In other words, the actual physical trajec-
tory is the function x that minimises the action subject to the boundary conditions x(ta ) = xa
and x(tb ) = xb .
To find this minimising function x(t), we want to calculate the derivative of the action S[x]
with respect to the function x(t) and set it to zero. Functional derivatives such as this are studied
in the branch of mathematics known as functional analysis. However, here we adopt a slightly
simpler approach and consider small variations of the trajectory. This is known as variational
calculus.
Let us assume that x(t) is the function that minimises the action, and consider a slightly
perturbed trajectory
x̃(t) = x(t) + x(t), (3.1.5)
where we assume that the perturbation is infinitesimally small and vanishes at the endpoints,
x(ta ) = x(tb ) = 0. (3.1.6)
This perturbation changes the action by
S = S[x + x] S[x]
Z tb
= [L(x(t) + x(t), ẋ(t) + ẋ(t), t) L(x(t), ẋ(t), t)] dt
ta
Z tb
@L @L
= x(t) + ẋ(t) dt
ta @x @ ẋ
Z tb
@L @L d x(t)
= x(t) + dt
ta @x @ ẋ dt
Z tb tb Z tb
@L @L d @L
= x(t)dt + x(t) x(t)dt, (3.1.7)
ta @x @ ẋ ta ta dt @ ẋ
35
Advanced Classical Physics, Autumn 2016 Lagrangian Mechanics
where we Taylor expanded to linear order in x(t) and integrated the second term by parts.
Because of the boundary conditions (3.1.6), the substitution term vanishes, and we have
Z tb
@L d @L
S= x(t)dt. (3.1.8)
ta @x dt @ ẋ
For x(t) to be minimum, the variation of the action (3.1.8) has to vanish for any function x(t).
You can see this by noting that if S < 0 for any perturbation x(t), then S[x + x] < S[x].
Correspondingly, if S > 0, then S[x x] < S[x]. In either case, we have found a function that
has lower action than x(t). Therefore x(t) can only be the minimum if S = 0.
The only way we can have S = 0 for every perturbation x(t) is that the expression inside
the brackets in Eq. (3.1.8) vanishes, i.e.,
d @L @L
= 0. (3.1.9)
dt @ ẋ @x
This is known as the Euler-Lagrange equation, and it is the equation of motion in the Lagrangian
formulation of mechanics. When using Eq. (3.1.9), it is very important to understand the differ-
ence between the partial (@) and total (d) derivatives.
To check that Eq. (3.1.9) really describes the same physics as Newtonian mechanics, let us
consider a simple example of a particle in a one-dimensional potential V (x). Because the system
is conservative, the Lagrangian is
1
L=T V = mẋ2 V (x), (3.1.10)
2
and the Euler-Lagrange equation is
d @L @L d @V @V
= (mẋ) + = mẍ + = 0. (3.1.11)
dt @ ẋ @x dt @x @x
This is nothing but Newton’s second law
@V
mẍ = . (3.1.12)
@x
It is interesting to note that although Newtonian and Lagrangian formulations of mechanics
are mathematically equivalent and describe the same physics, their starting point is very different.
Newton’s laws describe the evolution of the system as an initial value problem: We know the
position and velocity of the particle at the initial time, x(ta ) and ẋ(ta ), and we then use Newton’s
laws to determine the evolution x(t) at later times t > ta .
In contrast, the Lagrangian formulation describes the same physics as a boundary value prob-
lem. We know the initial and final positions of the particle x(ta ) and x(tb ), and we use the action
principle to determine x(t) for ta < t < tb , i.e., how the particle travels from one to the other. In
particular, we cannot choose the initial velocity because it is determined by the final destination
of the particle through the action principle. This may appear very non-local in time because the
behaviour of the particle in the far future determines its motion at the current time. However,
36
Advanced Classical Physics, Autumn 2016 Lagrangian Mechanics
because because the two formulations are equivalent, this apparent non-locality in time does not
actually affect the physics. For example, it is not possible to use it to send information back in
time. In practice, it is usually easier to solve initial value problems, and therefore one usually
uses the Lagrangian formulation to set up the problem and derive the equations of motion but
then solves them as an initial value problem.
In many ways the Lagrangian formulation is closer to quantum mechanics, which does not
allow one to determine the initial position and velocity of the particle either. Furthermore, the
principle that the particle chooses one out of all possible trajectories resembles the double slit
experiment in quantum mechanics, with the key difference that in the quantum case one has to
sum over all possible trajectories rather than just selecting one. This correspondence turns out to
be fully accurate and becomes obvious in the path integral formulation in quantum mechanics.
37
Advanced Classical Physics, Autumn 2016 Lagrangian Mechanics
As a slightly more complex example, let us consider the motion of a particle in a central
potential V (r) in three dimensions. We use the spherical coordinates (r, ✓, ) as the generalised
coordinates. The Lagrangian is
1 ⇣ ⌘
L=T V = m ṙ2 + r2 ✓˙2 + r2 ˙2 sin2 ✓ V (r). (3.2.5)
2
The Euler-Lagrange equation for r is
d @L @L d ⇣ ⌘ dV
= (mṙ) mr ✓˙2 + ˙ 2 sin2 ✓ + = 0, (3.2.6)
dt @ ṙ @r dt dr
which gives
⇣ ⌘
dV
mr̈ = mr ✓˙2 + ˙ 2 sin2 ✓ . (3.2.7)
dr
The second term on the right hand side is the force due to the potential, and the first term is the
centrifugal force.
The Euler-Lagrange equation for ✓ is
d @L @L d ⇣ 2 ˙⌘
= mr ✓ mr2 ˙ 2 sin ✓ cos ✓ = 0. (3.2.8)
dt @ ✓˙ @✓ dt
Finally, because does not appear in the Lagrangian (except as a time derivative ˙ ), the Euler-
Lagrange equation for is
d @L @L d @L
= = 0. (3.2.9)
dt @ ˙ @ dt @ ˙
This means that the quantity
@L
= mr2 sin2 ✓ ˙ (3.2.10)
@ ˙
is conserved. We note that this is simply Lz , the z component of the angular momentum vector
L = mr ⇥ ṙ.
We can easily see that this is, in fact, a very general result. For any generalised coordinate qi ,
we define the generalised momentum pi by
@L
pi = . (3.2.11)
@ q̇i
The Euler-Lagrange equation implies that whenever the Lagrangian does not depend on qi , then
the corresponding generalised momentum pi is conserved. This is a simple example of a more
general result known as Noether’s theorem, which we will come back to later.
As a very simple example, let us consider the Cartesian position coordinate x as our gener-
alised coordinate. With the Lagrangian L = 12 mẋ2 V (x), the generalised momentum is simply
the conventional momentum p = @L/@ ẋ = mẋ.
38
Advanced Classical Physics, Autumn 2016 Lagrangian Mechanics
We are interested in the situation of steady precession at a constant angle ✓. In this case
we conclude from Eqs. (3.3.3) and (3.3.4) that ˙ and ˙ are constant. Hence the axis of the top
precesses around the vertical with a constant angular velocity, which we denote by ⌦, i.e., ˙ = ⌦.
Because we are looking for a solution with fixed ✓, the left side of Eq. (3.3.2) must vanish, and
we obtain
I1 ⌦2 cos ✓ I3 !3 ⌦ + M gR = 0 , (3.3.6)
which we can solve for ⌦. The general solution is
p
I3 !3 ± I32 !32 4I1 M gR cos ✓
⌦= . (3.3.7)
2I1 cos ✓
This only has real roots if
4I1 M gR cos ✓
!32 !c2 ⌘ . (3.3.8)
I32
If the top is spinning more slowly than this, there is no solution with constant ✓. Instead, the top
starts to wobble.
For a rapidly spinning top, !3 !c , we can expand the square root in Eq. (3.3.7) to obtain
⇣ ⌘
I1 M gR cos ✓
I3 !3 ± I3 !3 1 2 I 2 !2 ⇢
M gR/I3 !3 sign
⌦⇡ 3 3
! (3.3.9)
2I1 cos ✓ I3 !3 /I1 cos ✓ +sign
39
Advanced Classical Physics, Autumn 2016 Lagrangian Mechanics
The first of these is the precession frequency calculated in (2.6.6), while the second is the preces-
sion of a free system discussed in section 2.8. Note the absence of any contribution from gravity
in the second expression.
Note that if ✓ > 12 ⇡, the top is hanging below its point of support, and there is no limit on
!3 . In particular, for !3 = 0, we find the possible angular velocities of a compound pendulum
swinging in a circle s
M gR
⌦=± (3.3.10)
I1 |cos ✓|
3.4 Constraints
Consider a system of N particles in three dimensions. To specify the position of each particle,
you need 3N generalised coordinates. However, in many cases the coordinates are not all inde-
pendent but subject to some constraints, such as the rigidity conditions (see Section 2.2), which
reduce the number of generalised coordinates required. For a rigid body, the original 3N coordi-
nates may be reduced to six generalised coordinates: three translational, such as the coordinates
X, Y, Z of the centre of mass, and three rotational, such as the Euler angles, , ✓, .
We will assume that the constraints can be written in the form f (x1 , . . . , x3N , t) = 0. Con-
straints like that are called holonomic. For a rigid body, the constraints are of this form: The
distance between each pair of particles i and j is fixed to a constant dij , and therefore one has
Another example is motion on the surface of a sphere of radius R, for which the constraint is
f (x, y, z) = x2 + y 2 + z 2 R2 = 0. (3.4.2)
Sometimes one has to deal with non-holonomic constraints, for example if the constraint depends
on velocities, but these are more complicated to handle, and we will not discuss them in this
course.
In principle, solving each constraint equation eliminates one coordinate. If one has initially
N coordinates xi (with i = 1, . . . , N ) and C constraints, solving them will allow one to express
the original coordinates in terms of M = N C generalised coordinates qj , with j = 1, . . . , M ,
with possibly explicit time-dependence if the constraints are time-dependent. In that case the
system is called forced, otherwise it is natural.
If one can solve the constraints and find the explicit relations (3.4.3), one can then write the
Lagrangian in terms of the generalised coordinates qj and solve the Euler-Lagrange equation.
Substituting this solution to Eq. (3.4.3) then gives the solution in terms of the original coordi-
nates.
40
Advanced Classical Physics, Autumn 2016 Lagrangian Mechanics
which is a function of the original coordinates and a Lagrange multiplier . If we now treat as
the (N + 1)th coordinate, its Euler-Lagrange equation is
d @L0 @L0
= f (x1 , . . . , xN ) = 0, (3.4.5)
dt @ ˙ @
and therefore it satisfies the constraint automatically. The Euler-Lagrange equations for the orig-
inal coordinates are
d @L @L @f
(t) = 0, (3.4.6)
dt @ ẋi @xi @xi
where the extra term can be interpreted as the (generalised) force that has to be applied to the
system to enforce the constraint.
As an example, consider a mass m hanging from a rope that is wrapped around a pulley of
radius R and moment of inertia I. Using the vertical position z of the mass, and the angle ✓ of
the pulley as the coordinates, the Lagrangian is
1 1
L=T V = mż 2 + I ✓˙2 mzg. (3.4.7)
2 2
If the rope does not slip, the pulley has to rotate as the mass moves, and this imposes a constraint
R✓˙ = ż. Choosing the origin appropriately, we can write this as a holonomic constraint
f (✓, z) = R✓ + z = 0. (3.4.8)
We can always make our coordinates orthogonal by using the Gram-Schmidt procedure. For
example, if N = 2, the general form of Eq. (3.5.1) is
42
Advanced Classical Physics, Autumn 2016 Lagrangian Mechanics
θ R
M
r
φ m
However, because of the last term, the coordinates are not orthogonal. In this case it is obvious
that we could get an orthogonal set by simply considering the displacement of the 2 bobs. For
small angles this gives
x = R✓ y = R✓ + r , (3.5.10)
and the kinetic energy, T , becomes
43
Advanced Classical Physics, Autumn 2016 Lagrangian Mechanics
Note that we can also choose kij to be symmetric, i.e., kji = kij without any loss of generality.
With the potential (3.5.16), the Euler-Lagrange equation (3.5.14) is simply
X
q̈i = kij qj , (3.5.17)
j
q̈ = k · q. (3.5.19)
44
Advanced Classical Physics, Autumn 2016 Lagrangian Mechanics
where A and ! are constants. We will check later that we have found all 2N solutions.
Substituting the Ansatz (3.5.23) into Eq. (3.5.19) gives
which is equivalent to
k · A = ! 2 A. (3.5.25)
This has the form of the eigenvalue equation: It shows that A is an eigenvector of the matrix k
with eigenvalue ! 2 .
We know from linear algebra that the eigenvalues of a matrix are given by solutions of the
characteristic equation
45
Advanced Classical Physics, Autumn 2016 Lagrangian Mechanics
Once we have found the eigenvalue ! 2 , we can substitute it to Eq. (3.5.25) to find the eigenvector.
Because k is a symmetric N ⇥ N matrix, it has N real eigenvalues !↵2 , where ↵ = 1, . . . , N ,
corresponding to N eigenvectors A↵ , which we can choose to be orthonormal,
A↵ · A = ↵ . (3.5.27)
q+
↵ (t) = A↵ e
i!↵ t
and q↵ (t) = A↵ e i!↵ t
. (3.5.28)
For N eigenvalues, this takes the total number of linearly independent solutions to 2N , proving
that we have the complete solution.
The frequencies !↵ are real because the eigenvalues !↵2 have to be non-negative: If we had
!↵ < 0, then for the corresponding eigenvector A↵ and small ✏ we would have
2
1 1
V (✏A↵ ) = ✏2 A↵ · k · A↵ = ✏2 !↵2 < 0, (3.5.29)
2 2
meaning that q = 0 could not be the minimum of the potential as we assumed.
The individual solutions q±
↵ are complex, so physical solutions have to be real linear combi-
nations of them,
q↵ (t) = a+ q+
↵ (t) + a q↵ (t) = a+ e
i!↵ t
+ a e i!↵ t A↵
= [(a+ + a ) cos !↵ t + i(a+ a ) sin !↵ t] A↵ . (3.5.30)
Because we want a real solution, the coefficients a1 ⌘ (a+ + a ) and a2 = i(a+ a ) have to
be real, and we can equally well write
which we can also write a pure cosine term with a phase shift,
where c and are real constants that have to be determined from the initial conditions.
Finally, the general solution is a linear combination of solutions of the form (3.5.32),
N
X
q(t) = c↵ cos(!↵ t + ↵ )A↵ . (3.5.33)
↵=1
The modes of vibration of the system, i.e., the individual solutions (3.5.32) are known as normal
modes. For a forced system there are resonances at the frequencies of the normal modes.
It is often useful to use the normal modes to define a set of generalised coordinates known
as the normal coordinates, which we denote by q̃↵ . They are defined by expressing the original
coordinates qi in terms of the eigenvectors A↵ as
X
q= q̃↵ A↵ . (3.5.34)
↵
46
Advanced Classical Physics, Autumn 2016 Lagrangian Mechanics
Substituting this to Eq. (3.5.20) we find that the Lagrangian becomes simply
X ✓1 1 2 2
◆
L= ˙
q̃ 2
! q̃ . (3.5.35)
↵
2 ↵ 2 ↵ ↵
V = k(` `0 ), (3.6.4)
where ` is the length of the displaced string. Again, this can be calculated by considering an
infinitesimal segment of length dx. According to Pythagoras theorem, the length of the segment
is ✓ ◆
p p 1 02
d` = dx2 + dy 2 = 1 + y 02 dx ⇡ 1 + y dx, (3.6.5)
2
47
Advanced Classical Physics, Autumn 2016 Lagrangian Mechanics
where we have assumed that the displacement is small and smooth so that y 0 ⌧ 1, and Taylor
expanded to quadratic order. The length of the string is then obtained by summing over all the
infinitesimal segments
Z `0 ✓ ◆ Z `0
1 02 1
`= dx 1 + y = `0 + dx y 02 , (3.6.6)
0 2 0 2
1 1 02
L = µẏ 2 ky . (3.6.9)
2 2
The action is then given by an integral over both time and space,
Z Z
S = dt dxL(ẏ, y 0 , y). (3.6.10)
48