0% found this document useful (0 votes)
105 views

Lagrange

This document is the contents page and introduction chapter of a classical mechanics textbook. It outlines the topics that will be covered in the textbook, including Lagrangian mechanics, Hamiltonian dynamics, central forces, and rotational motion. The introduction defines classical mechanics as Newtonian mechanics, as opposed to modern physics like relativity and quantum mechanics. It notes that the textbook will focus on more abstract formulations developed in the 18th-19th centuries by scientists like Euler, Lagrange, Hamilton, and Jacobi, rather than just Newtonian forces and acceleration.

Uploaded by

puitera
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
105 views

Lagrange

This document is the contents page and introduction chapter of a classical mechanics textbook. It outlines the topics that will be covered in the textbook, including Lagrangian mechanics, Hamiltonian dynamics, central forces, and rotational motion. The introduction defines classical mechanics as Newtonian mechanics, as opposed to modern physics like relativity and quantum mechanics. It notes that the textbook will focus on more abstract formulations developed in the 18th-19th centuries by scientists like Euler, Lagrange, Hamilton, and Jacobi, rather than just Newtonian forces and acceleration.

Uploaded by

puitera
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 32

MP350 Classical Mechanics

Jon-Ivar Skullerud
October 10, 2013
1
Contents
1 Introduction 5
1.1 What is classical mechanics? . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.2 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2 Lagrangian mechanics 8
2.1 The principle of least action . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.1.1 Hamiltons principle . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.2 The EulerLagrange equations . . . . . . . . . . . . . . . . . . . . . . . . 10
2.3 Generalised coordinates . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.3.1 Polar and spherical coordinates . . . . . . . . . . . . . . . . . . . 19
2.4 Lagrange multipliers [Optional] . . . . . . . . . . . . . . . . . . . . . . . . 20
2.4.1 Velocity constraints and dierential constraints . . . . . . . . . . 20
2.4.2 Lagrange undetermined multipliers . . . . . . . . . . . . . . . . . 21
2.5 Canonical momenta and conservation laws . . . . . . . . . . . . . . . . . 22
2.5.1 Angular momentum . . . . . . . . . . . . . . . . . . . . . . . . . 23
2.6 Energy conservation: the hamiltonian . . . . . . . . . . . . . . . . . . . . 25
2.6.1 When is H (not) conserved? . . . . . . . . . . . . . . . . . . . . . 26
2.6.2 When is H (not) equal to the total energy? . . . . . . . . . . . . 27
3 Hamiltonian dynamics 32
3.1 Hamiltons equations of motion . . . . . . . . . . . . . . . . . . . . . . . 33
3.2 Cyclic coordinates and eective potential . . . . . . . . . . . . . . . . . . 35
3.3 Hamiltons equations from a variational principle . . . . . . . . . . . . . 37
3.4 Phase space [Optional] . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
3.5 Liouvilles theorem [Optional] . . . . . . . . . . . . . . . . . . . . . . . . . 39
2
3.6 Poisson brackets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
3.6.1 Properties of Poisson brackets . . . . . . . . . . . . . . . . . . . . 40
3.6.2 Poisson brackets and conservation laws . . . . . . . . . . . . . . . 42
3.6.3 The Jacobi identity and Poissons theorem . . . . . . . . . . . . . 44
4 Central forces 46
4.1 One-body reduction, reduced mass . . . . . . . . . . . . . . . . . . . . . 46
4.2 Angular momentum and Keplers second law . . . . . . . . . . . . . . . . 49
4.3 Eective potential and classication of orbits . . . . . . . . . . . . . . . . 50
4.4 Integrating the energy equation . . . . . . . . . . . . . . . . . . . . . . . 51
4.5 The inverse square force, Keplers rst law . . . . . . . . . . . . . . . . . 52
4.6 More on conic sections . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
4.6.1 Ellipse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
4.6.2 Parabola . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
4.6.3 Hyperbola . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
4.7 Keplers third law . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
4.8 Keplers equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
5 Rotational motion 61
5.1 How many degrees of freedom do we have? . . . . . . . . . . . . . . . . . 62
5.1.1 Relative motion as rotation . . . . . . . . . . . . . . . . . . . . . 63
5.2 Rotated coordinate systems and rotation matrices . . . . . . . . . . . . . 64
5.2.1 Active and passive transformations . . . . . . . . . . . . . . . . . 64
5.2.2 Elementary rotation matrices . . . . . . . . . . . . . . . . . . . . 65
5.2.3 General properties of rotation matrices . . . . . . . . . . . . . . . 65
5.2.4 The rotation group [optional] . . . . . . . . . . . . . . . . . . . . . 68
5.3 Euler angles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
5.3.1 Rotation matrix for Euler angles . . . . . . . . . . . . . . . . . . 70
5.3.2 Euler angles and angular velocity . . . . . . . . . . . . . . . . . . 70
5.4 The inertia tensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
5.4.1 Rotational kinetic energy . . . . . . . . . . . . . . . . . . . . . . . 71
5.4.2 What is a tensor? . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
5.4.3 Rotations and the inertia tensor . . . . . . . . . . . . . . . . . . . 74
3
5.4.4 Angular momentum and the inertia tensor . . . . . . . . . . . . . 74
5.5 Principal axes of inertia . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
5.6 Equations of motion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
5.6.1 The symmetric heavy top . . . . . . . . . . . . . . . . . . . . . . 76
5.6.2 Stability of rigid-body rotations . . . . . . . . . . . . . . . . . . . 76
4
Chapter 1
Introduction
1.1 What is classical mechanics?
Classical mechanics can mean quite dierent things in dierent contexts. It is often
used to refer to Newtonian mechanics, including electrodynamics, as opposed to the
modern physics developed in the 20th century, ie relativity and quantum mechanics. It
is also, perhaps more commonly, used as an antonym to quantum mechanics: classical
is everything that is not quantum. In this sense of the word, general relativity is also
considered to be classical mechanics, or at least classical physics.
Although the methods introduced in this course can easily be extended to both special
and general relativity, we will not discuss that here: the focus will remain on Newtonian
mechanics. However, the use of the term Classical mechanics as opposed to merely
Mechanics denotes a shift in emphasis, from Newtonian forces and acceleration to
the more general and abstract formulations that were developed in the late 18th and
the 19th century, associated with names like Euler, Lagrange, Hamilton and Jacobi.
Therefore, this course is not more of the stu you have already studied in modules like
MP110, MP112 and MP205, but instead represents a completely new way of looking
at mechanics, and one which forms the foundation of nearly all modern mathematical
physics.
The focus in this course is on methods and formulations rather than on answers or
numbers. In part, this is because the key to solving complicated problems is very often
to formulate them properly and to select appropriate methods. However, there are other
reasons for this shift in focus:
Often, we are not that interested in numerical solutions, but more in the qualitative
features of a system, and we can nd out a lot about this without doing any
numerical calculations.
We will see that wildly dierent physical systems can look identical from a math-
ematical point of view, so solving one can immediately give us the solution to the
other. Starting with numerical calculations can obscure this.
5
Symmetries will play an extremely important role, and we will learn to identify
and exploit symmetries to simplify and understand mechanical systems. Putting
in numbers at the start will often hide the symmetries.
The LagrangeHamilton formalism and the symmetry principles which we will become
acquainted with here, are used all throughout modern physics:
quantum mechanics;
statistical mechanics;
condensed matter theory (quantum statistical mechanics)
classical eld theory (electromagnetism, general relativity)
particle physics (quantum eld theory and symmetry groups)
chaos theory
etc
1.2 Overview
The module will cover the following topics:
The principle of least action (Hamiltons principle), the lagrangian and the Euler
Lagrange equations.
Generalised coordinates (how to formulate a mechanical problem in the most sen-
sible way given symmetries and constraints).
Canonical momenta and conservation laws; energy conservation.
Hamiltons equations of motion.
Poisson brackets.
Central force motion, angular momentum conservation.
Planetary motion, Keplers laws.
Rotations and rotation matrices.
Inertia tensor, principal axes of inertia.
Eulers equations of (rotational) motion.
6
Learning outcomes
At the end of this course, you should be able to:
formulate the basic principles of the LagrangeHamilton formalism;
use these principles to derive equations of motion for dynamical systems;
explain the relation between symmetries and conservation laws;
apply conservation laws to analyse the motion of dynamical systems; and
describe the mathematical properties of rotations and systems with rotational
symmetry.
7
Chapter 2
Lagrangian mechanics
2.1 The principle of least action
The starting point for the reformulation of classical mechanics is the principle of least
action, which may be somewhat ippantly paraphrased as The world is lazy, or in
the more owery words of Pierre Louis Maupertuis (1744), Nature is thrifty in all its
actions:
The laws of movement and of rest deduced from this principle being precisely
the same as those observed in nature, we can admire the application of it to
all phenomena. The movement of animals, the vegetative growth of plants
. . . are only its consequences; and the spectacle of the universe becomes so
much the grander, so much more beautiful, the worthier of its Author, when
one knows that a small number of laws, most wisely established, suce for
all movements.
This very general formulation does not in itself have any predictive power, but the
idea that natures thrift could be used to derive laws of motion had already been
successfully applied in optics for a long time:
Fermats principle
The path take between two points by a ray of light is the path that can be traversed
in the least time.
This principle was rst formulated by Ibn al-Haytham (aka Alhacen) in his Book of
Optics from 1021, which formed one of the main foundations of geometric optics and
the scientic method in general. He proved that it led to the law of reection. It was
restated by Pierre de Fermat in 1662, who also derived Snells law of refraction from
this principle.
8
2.1.1 Hamiltons principle
In mechanics the proper mathematical formulation of Maupertuis principle is due to
William Rowan Hamilton
1
, building on earlier work by Joseph Louis Lagrange.
We will denote the kinetic and potential energy of a particle, or of a mechanical system
in general, as
T = kinetic energy
V = potential energy
T usually depends on the velocities v
i
=
dx
i
dt
x
i
T = T( x
i
V usually depends on the positions x
i
V = V (x
i
)
but may also depend explicitly on time t V = V (x
i
, t)
(for example with time-varying extermal forces).
x
i
and x
i
here denote all the coordinates and their time derivatives. So for example we
have
x
i
x for a single particle in one dimension
x
i
{x, y, z} for a particle in three dimensions
x
i
{x
1
, y
1
, z
1
, x
2
, y
2
, z
2
, . . . , x
N
, y
N
, z
N
} for N particles in three dimensions
We now dene the lagrangian L as the dierence between kinetic and potential energy,
L(x
i
, x
i
, t) = T V . (2.1)
Note that L will be a function of the coordinates x
i
, the velocities x
i
, and the time t,
although in many cases there is no explicit time dependence; ie, if we know the positions
and velocities of all the particles we know the lagrangian.
A particular path is given by specifying the coordinates x
i
as a function of time, x
i
=
x
i
(t). (Note that if x
i
(t) is known, its derivative x
i
(t) is also known.) For a given path,
the action S is dened as
S[x]
t
2
_
t
1
L(x(t), x(t), t)dt . (2.2)
We are now in a position to formulate Hamiltons principle of least action.
1
On a General Method in Dynamics, Phil. Trans. Roy. Soc. (1834) 247; (1835) 95.
9
The principle of least action:
The physical path a system will take between two points in a certain time interval is
the one that gives the smallest action S.
Comments:
1. The potential energy V is dened only for conservative forces, so the action as it
is written here is dened only for conservative forces. It is possible to generalise
this to certain non-conservative forces and obtain the correct equations of motion
(we will see examples of this later). However, all microscopic (fundamental) forces
are conservative.
2. The action S is a function of a function since it depends on the function(s) x
i
(t).
We call this a functional, and denote it by putting the function argument in square
brackets, S = S[x].
2.2 The EulerLagrange equations
x
1
(t
1
)
x
2
(t
2
)
x(t)
x(t)
What does the path that gives the smallest action actually
mean, and how can we nd it? To work this out, let us
consider a path x(t) and another path x

(t) = x(t) +h(t),


where h(t) is some arbitrary smooth function of t, and is
a parameter that we will vary.
Since we are looking for the path the system will take be-
tween two specic points in a specic time interval, the
endpoints of the two paths must be the same. We therefore
have
x(t
1
) = x

(t
1
) = x
1
; x(t
2
) = x

(t
2
) = x
2
h(t
1
) = h(t
2
) = 0 . (2.3)
We can now write S[x +h] = S(), and treat it as a function of the parameter . For
a given h(t), the minimum of S will occur when
dS
d
= 0.
This allows us to restate the principle of least action:
For any smooth h
i
(t) with h
i
(t
1
) = h
i
(t
2
) = 0, the physical path x
i
(t) is such that
d
d
S[x +h] =
d
d
t
2
_
t
1
L(x
i
+h
i
, x
i
+

h
i
, t)dt = 0 . (2.4)
We often use the shorthands h = x and S[x + x] S[x] = S = the variation of S,
and call
S
x
the functional derivative of S. The principle of least action is then often
written as
S = 0 or
S
x
= 0
d
d
S[x +h] = 0 for any h(t) . (2.5)
10
Let us now calculate the variation S. For a single particle in one dimension, we have
d
d
S[x +h] =
d
d
_
t
2
t
1
L(x +h, x +

h, t)dt (2.6)
=
_
t
2
t
1
_
L
x
h +
L
x

h
_
dt (2.7)
=
_
t
2
t
1
L
x
hdt +
_
L
x
h
_
t=t
2
t=t
1

_
t
2
t
1
_
d
dt
L
x
_
hdt (2.8)
=
_
t
2
t
1
_
L
x

d
dt
L
x
_
h(t)dt . (2.9)
In the rst step we used that L is a function of the three variables x, x, t, but t does not
depend on . We can then use the chain rule for a function of two variables,
d
d
f(x, y) =
f
x
dx
d
+
f
y
dy
d
.
In the second step we used integration by parts,
_
u vdt = uv
_
uvdt with u =
L
x
, v = h.
In the nal step the boundary term vanishes since h(t
1
) = h(t
2
) = 0.
But h(t) is a completely arbitrary smooth function, and we must have S = 0 for any
h(t). This is only possible if the term within the brackets in (2.9) is 0 for all t, ie
d
dt
L
x

L
x
= 0 The EulerLagrange equation (2.10)
If we have N coordinates x
i
, the derivation proceeds following the same steps. Using
the chain rule for a function of 2N variables, we nd
d
d
L(x
1
+h
1
, x
2
+h
2
, . . . , x
N
+h
N
, x
1
+

h
1
, x
2
+

h
2
, . . . , x
N
+

h
N
)
=
L
x
1
h
1
+
L
x
2
h
2
+ +
L
x
N
h
N
+
L
x
1

h
1
+
L
x
2

h
2
+ +
L
x
N

h
N
=
N

i=1
_
L
x
i
h
i
+
L
x
i

h
i
_
. (2.11)
Using integration by parts on the second term (for each i) gives us
d
d
S[x +h] =
N

i=1
_
t
2
t
1
_
L
x
i

d
dt
L
x
i
_
h
i
(t)dt = 0 . (2.12)
Since all the h
i
are independent, arbitrary functions, the expression within the brackets
must vanish for each i:
11
d
dt
L
x
i

L
x
i
= 0 for all i = 1, . . . , N . (2.13)
Example 2.1 Particle in a potential
The kinetic energy of a single particle is
T =
1
2
mv
2
=
1
2
m(v
2
x
+v
2
y
+v
2
z
) =
1
2
m( x
2
+ y
2
+ z
2
) . (2.14)
We take an arbitrary potential energy V = V (x, y, z, t).
The EulerLagrange equations are
d
dt
L
x

L
x
= 0 ;
d
dt
L
y

L
y
= 0 ;
d
dt
L
z

L
z
= 0 . (2.15)
We nd
L
x
= m x;
L
x
=
V
x
(2.16)
=
d
dt
L
x

L
x
= m x +
V
x
= 0 m x =
V
x
. (2.17)
Likewise, we get
m y =
V
y
, m z =
V
z
or
m

r = m

a = V =

F = Newtons 2
nd
law!
So the EulerLagrange equations are exactly equivalent to Newtons laws.
Example 2.2 The shortest path between two points
In deriving the EulerLagrange equations we did not make any use of the denition
of L: it could be any function of x, x and t. Therefore, the EL equations give the
stationary points for any functional of the path between two points for example,
the length of the path!
Consider a curve y = y(x) between two points (x
1
, y
1
) and (x
2
, y
2
). The length ds
of an innitesimal segment (dx, dy) of this curve is given by Pythagoras:
ds
2
= dx
2
+dy
2
= dx
2
+ (y

(x)dx)
2
= (1 +y

(x)
2
)dx
2
(2.18)
= ds =
_
1 +y

(x)
2
dx. (2.19)
If, to make life simpler for ourselves, we assume that x is monotonically increasing
12
along the curve, we nd that the total length of the curve is
S =
_
x
2
x
1
_
1 +y

(x)
2
dx =
_
x
2
x
1
L(y(x), y

(x), x)dx with L =


_
1 +y

2
. (2.20)
This looks like what we had before, but with t x; x(t) y(x); x(t) y

(x).
The EulerLagrange equation becomes
d
dt
L
y

L
y
= 0 . (2.21)
We see immediately that L/y = 0. To nd L/y

we use the chain rule,


L
y

=
dL
du
u
y

with u = 1 +y

2
; L =

u
=
L
y

=
1
2
_
1 +y

2
2y

=
y

_
1 +y

2
.
To nd
d
dx
L
y

we use the product rule and the chain rule:


L
y

= vw with v = y

, w =
1
_
1 +y

2
= u
1/2
(2.22)
=
d
dx
L
y

=
dv
dx
w +v
dw
du
du
dx
=
dy

dx
w +y

dw
du
du
dy

dy

dx
= y

1
_
1 +y

2
+y

1
2
u
3/2
_
2y

= y

_
1
_
1 +y

2
(1 +y

2
)
3/2
_
=
y

_
1 +y

2
_
1
y

2
1 +y

2
_
=
y

_
1 +y

2
1
1 +y

2
.
(2.23)
So
d
dx
L
y

= 0 = y

(x) = 0 = y(x) = Ax +B. (2.24)


This describes a straight line, so we have shown that the shortest path between two
points is a straight line!
So what is the point?
1. The equations are often easier: We get rid of complicated vectors and forces, and
derive everything from scalars (energy).
2. It is easier to generalise to systems with constraints.
13
3. We can choose whichever coordinates we want.
4. The lagrangian formalism can be generalised to quantum mechanics (in the Feyn-
man formulation: all paths are possible, but weighted by the action) and eld
theory (with innitely many degrees of freedom).
We will look at points 2 and 3 next.
2.3 Generalised coordinates
It is often advantageous to change variables from the cartesian coordinates {x
i
, y
i
, z
i
}
for each particle i = 1, . . . , N to some other variables {q
j
}, j = 1, . . . , n. These are called
generalised coordinates.
Consider for example a system of N particles. We need 3N independent coordinates to
describe the system completely: we say that there are 3N degrees of freedom.
Now, imagine that there is a constraint relating the 3N coordinates, for example:
1. Two particles are tied together with a rod of length L, so that
(x
1
x
2
)
2
+ (y
1
y
2
)
2
+ (z
1
z
2
)
2
= L
2
. (2.25)
2. The N particles are all moving on the surface of a sphere, ie
x
2
i
+y
2
i
+z
2
i
= R
2
i = 1, . . . , N . (2.26)
3. A ball in a squash court, x 0, z 0.
The rst two of these can be described by M equations of the form
f
j
(

x
1
, . . . ,

x
N
, t) = 0 , j = 1, . . . , M . (2.27)
Such constraints are called holonomic (or integrable) constraints, and we will focus only
on such constraints in the following. With such constraint equations, the coordinates
x
i
, y
i
, z
i
are no longer independent. Instead we have
M relations = n = 3N M real degrees of freedom.
By choosing n suitable generalised coordinates to describe these degrees of freedom, we
achieve two things:
We eliminate the forces of constraints which are required in the newtonian formu-
lation. No net work is done by these forces, so they can safely be eliminated.
14
The EulerLagrange equations look exactly the same in the new coordinates, so
the problem is no more dicult (and probably easier) than the original one.
In the rst example above, the constraint (2.25) reduces the number of degrees of freedom
from 6 to 5. The 5 coordinates can for example be chosen to be the centre of mass
coordinates X, Y, Z for the two particles, and two angles , that describe the orientation
of the rod.
2
In the second example, each particle is described by 2 instead of 3 coordinates. These
can be chosen to be the latitude and longitude of each particle (corresponding to
spherical coordinates, see Sec. 2.3.1).
Example 2.3 Simple pendulum
Consider a simple pendulum with length , mass m in a constant gravitational eld
g (see Fig. 2.1).
r

m
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .

Figure 2.1: A simple pen-


dulum
Here it is convenient to choose the angle as our coor-
dinate. The x (horizontal) and z (vertical) coordinates
and their time derivatives can be written in terms of as
x = sin x =

cos , (2.28)
z = cos z =

sin . (2.29)
The kinetic energy is
T =
1
2
m

v
2
=
1
2
m( x
2
+ z
2
)
=
1
2
m
2

6
(cos
2
+ sin
2
) =
1
2
m
2

2
. (2.30)
The potential energy is
V = mgz = mg cos . (2.31)
The lagrangian therefore becomes
L = T V =
1
2
m
2

2
+mg cos . (2.32)
The EulerLagrange equation is
L

=
d
dt
L

= mg sin =
d
dt
_
m
2

_
(2.33)
=

=
g

sin . (2.34)
This is the equation of motion for the pendulum.
2
In Chapter 5 we will look more at how these angles can be chosen.
15
Once we have found the equation of motion for , and the solution to this equation, we
can go back and calculate x and z as functions of time. However, in the example of the
simple pendulum, we are not usually interested in this.
We note that the mass m does not appear in the equation of motion. We could have
seen this already by inspecting the lagrangian: the EL equations are unchanged if the
lagrangian is multiplied by an overall constant , L L. In this case, since the mass
just enters as an overall factor in the lagrangian, the EL equation will not depend on
the mass.
Solutions to the equations of motion?
Now we have found the equation of motion for the simple pendulum, and we may want
to know the solutions to this equation, ie what the actual motion of the pendulum is for
dierent initial conditions. It is actually possible to integrate the equation (2.34) and
write down a solution, but this involves elliptic integrals and lots of other complicated
maths, and will not help us to understand the physical system. It will be more useful to
nd numerical solutions, and in Computational Physics MP354 we will learn how this
can be done.
What we can do to understand the system better, is
look at the general types of solutions we may have. We will do this when we
discuss conservation of energy;
consider limiting cases such as small oscillations. This is what we will do now.
If is small, we may approximate sin with the rst term in its power expansion (Taylor
expansion),
sin =
1
3!

2
+
1
5!

5
+ . (2.35)
In that case (2.34) simplies to

=
g

. (2.36)
We recognise this as the equation for a simple harmonic oscillator, x +
2
x = 0, with
x ,
2
g/. We therefore see that for small oscillations, the simple pendulum
behaves as a simple harmonic oscillator with frequency
s
=
_
g/, ie the frequency is
inversely proportional to the square root of the length of the pendulum (and independent
of the mass).
16
Example 2.4 Double Atwood machine
m
1
x

.............
.............
.............
.............
.............
.............
.............
............. .............
.............
.............
.............
.............
.............
.............
.............
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .

1
x

.............
.............
.............
.............
.............
.............
.............
............. .............
.............
.............
.............
.............
.............
.............
.............
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
s

y
m
2

2
y
m
3
Figure 2.2: Double Atwood
machine
Consider the double Atwood machine in Fig. 2.2. We
assume that
1. the pulleys are light, so we can ignore their ki-
netic energy; and
2. the ropes do not slip (or they slide without fric-
tion).
Here we have two independent degrees of freedom,
which we can choose to be x and y. In terms of these,
the positions of the three blocks are
x
1
= x,
x
2
= (
1
x +y) ,
x
3
= (
1
x +
2
y) .
The kinetic and potential energy of the three blocks
are
T
1
=
1
2
m
1
x
2
1
T
2
=
1
2
m
2
_
d
dt
(
1
x y)

2
=
1
2
m
2
( y x)
2
T
3
=
1
2
m
3
( x + y)
2
V
1
= mgx
V
2
= m
2
g(
1
x +y)
V
3
= m
2
g(
1
+
2
x y)
The lagrangian becomes
L =
1
2
(m
1
+m
2
+m
3
) x
2
+
1
2
(m
1
+m
2
) y
2
+ (m
3
m
2
) x y
+ (m
1
m
2
m
3
)gx + (m
2
m
3
)gy +m
2
g
2
+m
3
g(
1
+
2
) .
Note that the last two terms are constants which do not play any role in the equations
of motion. We get two equations of motion:
d
dt
L
x
= (m
1
+m
2
+m
3
) x + (m
3
m
2
) y =
L
x
= (m
1
m
2
m
3
)g
d
dt
L
y
= (m
2
+m
3
) y + (m
3
m
2
) x =
L
y
= (m
2
m
3
)g
17
Example 2.5 Pendulum with rotating support
.................
..................
..................
..................
.................
................
................
.................
..................
..................
..................
................. .................
..................
..................
..................
.................
................
................
.................
..................
..................
..................
.................
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . .
s

a
.
.......
.......
.......
.......
t
.
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . .
. . . . . . . . . . . . . .
. . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .

m
. . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . .

Figure 2.3: Pendulum with


rotating support.
Consider a pendulum mounted on the edge of a disc
with radius a, rotating with constant angular velocity
(see Fig. 2.3). If the support point is in the hori-
zontal position at t = 0, the angular position of the
support point at time t is = t, and the cartesian
coordinates of the bob at time t are
x = a cos t + sin
z = a sin t cos
giving the velocities
x = a sin t +

cos
z = a cos t +

sin
This gives us the lagrangian
L = T V =
1
2
m( x
2
+ z
2
) mgz
=
m
2
_
a
2

2
+
2

2
+ 2a

sin( t)
_
mg
_
a sin t cos
_
This system has only one degree of freedom , but the lagrangian depends explicitly
on time because of the rotation of the support point. The EulerLagrange equation
is
d
dt
L

=
d
dt
_
m
2

+ma sin( t)
_
= m
2

+ma(

) cos( t)
=
L

= ma

cos( = t) +mg sin


=

a
2
cos( t) = g sin =

=
a
2

cos( t)
g

sin
Finding the equation of motion for this system becomes a bit complicated, but it is
still far simpler than it would have been to compute the forces at each point and use
Newtons second law.
We can check that our result is sensible by seeing what happens if there is no rotation,
ie = 0. In this case the system reduces to the simple pendulum, and the equation
of motion should be the same. We can immediately see that this is the case.
It is worth noting that the potential energy contains a time-dependent term
mga sin t, which one naively would think should contribute to the dynamics of
the system however, it plays no role since it does not contain the coordinate.
There is also a constant term ma
2

2
/2 in the kinetic energy which plays no role.
18
2.3.1 Polar and spherical coordinates
When we have rotational motion, or a system with rotational (or spherical) symmetry,
it is very often most convenient to use polar coordinates (in 2 dimensions) or spherical
coordinates (in 3 dimensions). The denition of these coordinates are given in Fig. 2.4.
Since we will be using them often, we need to know what the kinetic energy of a particle
is in terms of these coordinates.


y
x
r

.
.................
..................
..................
..................

. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
.
. . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .

r
z
x
y
Figure 2.4: Plane polar coordinates (r, ) (left) and spherical coordinates (r, , ) (right).
Polar coordinates
The relation between cartesian and polar coordinates is given by
x = r cos = x = r cos r

sin (2.37)
y = r sin = y = r sin +r

cos (2.38)
This gives for the kinetic energy,
T =
1
2
m( x
2
+ y
2
)
=
m
2
( r
2
cos
2
+r
2

2
sin
2
2r r

cos sin + r
2
sin
2
+r
2

2
cos
2
+ 2r r

cos sin )
=
m
2
( r
2
+r
2

2
) . (2.39)
19
Spherical coordinates
The relation between cartesian and spherical coordinates is given by
x = r sin cos = x = r sin cos +r

cos cos r

sin sin (2.40)
y = r sin sin = y = r sin sin +r

cos sin +r

sin cos (2.41)
z = r cos = z = r cos r

sin (2.42)
Using this we nd that
T =
1
2
m( x
2
+ y
2
+ z
2
) =
1
2
m( r
2
+r
2

2
+r
2

2
sin
2
) . (2.43)
The complete derivation is left as an exercise.
2.4 Lagrange multipliers [Optional]
Using the constraint equations to reduce the number of coordinates is usually the most
straightforward way of handling constraints. But it is not always practical:
It may not be straightforward to solve the constraint equations.
The constraint equations may involve velocities.
The constraint equations may be expressed as dierential rather than algebraic
equations.
We may want to know the forces of constraint (for example, to nd out when they
become too large or too small to physically constrain the system).
2.4.1 Velocity constraints and dierential constraints
A constraint relation of the form
g

(x, x, t) = 0 , x = {x
1
, . . . , x
N
} (2.44)
involving velocities x
i
, can in general not be integrated to yield relations between coor-
dinates. However, consider the equation

i
A
i
(x, t) x
i
+B(x, t) = 0 , . (2.45)
If we can write
A
i
=
f
x
i
B =
f
t
with f = f(x, t) , (2.46)
20
then (2.45) is equivalent to an algebraic relation among the coordinates x
i
:

i
f
x
i
dx
i
dt
+
f
t
=
df
dt
= 0 (2.47)
f(x, t) C = 0 . (2.48)
This is an example of a dierential constraint

i
f
j
q
i
dq
i
+
f
j
t
dt = 0 . (2.49)
2.4.2 Lagrange undetermined multipliers
Assume now that we are keeping our original coordinates q
i
(whatever they are) and
write the constraint equations on the dierential form (2.49). We can now try to rederive
the EulerLagrange equations.
Consider a variation q

i
(t) = q
i
(t) +h
i
(t). We nd, as before,
dS
d
=
d
d
_
t
2
t
1
L(q

i
, q

i
, t)dt =
_
t
2
t
1
N

i=1
_
L
q
i

d
dt
L
q
i
_
h
i
dt = 0 . (2.50)
However, the functions h
i
are no longer independent, since the q

i
must satisfy the
equations (2.49). In particular, we must have

i
f
j
q
i
dq

i
d
=

i
f
j
q
i
h
i
= 0 . (2.51)
Note that the second term in (2.49) does not contribute, since dt/d = 0 as t is not
varied.
If we have m constraint equations, we can use them to eliminate m of the functions h
i
:
f
1
q
N
h
N
(t) =
N1

i=1
f
1
q
i
h
i
(t) h
N
(t) =

i = 1
N1
f
1
/q
i
f
1
/q
N
h
i
(t) (2.52)
f
2
q
N1
h
N1
(t) =
N2

i=1
f
2
q
i
h
i
(t)
f
2
q
N
h
N
(t)
=
N2

i=1
f
2
q
i
h
i
(t)
f
2
/q
N
f
1
/q
N
N2

i=1
f
1
q
i
h
i
(t)
f
2
/q
N
f
1
/q
N
f
1
q
N1
h
N1
(t)
(2.53)
. . . etc.
This becomes messy and not very illuminating in general, so let us consider just the
case with m = 1, N = 3. Eq. (2.52) then becomes
h
3
=
f/q
1
f/q
3
h
1

f/q
2
f/q
3
h
2
(2.54)
21
and (2.50) becomes
_
t
2
t
1
_
_
L
q
1

d
dt
L
q
1
_
h
1
+
_
L
q
2

d
dt
L
q
2
_
h
2
+
_
L
q
3

d
dt
L
q
3
_
h
3
_
dt = 0 (2.55)

_
t
2
t
1
_
_
(
L
q
1

d
dt
L
q
1
_

f/q
1
f/q
3
(
L
q
3

d
dt
L
q
3
__
h
1
+
_
(
L
q
2

d
dt
L
q
2
_

f/q
2
f/q
3
(
L
q
3

d
dt
L
q
3
__
h
2
_
dt = 0
(2.56)
Since h
1
and h
2
are now both arbitrary functions, the terms inside the square brackets
must both be zero. So we have
(
L
q
1

d
dt
L
q
1
__
f
q
1
_
1
= (
L
q
3

d
dt
L
q
3
__
f
q
3
_
1
(
L
q
2

d
dt
L
q
2
__
f
q
2
_
1
= (
L
q
3

d
dt
L
q
3
__
f
q
3
_
1
at all t . (2.57)
The two sides of the equations can be any function of t; we call this function (t).
This gives the equations
L
q
i

d
dt
L
q
i
+(t)
f
q
i
= 0 (2.58)
The function (t) is called a Lagrange undetermined multiplier.
With m constraint equations, we get m functions
k
(t), ie
L
q
i

d
dt
L
q
i
+
m

k=1
f
k
q
i

k
(t) = 0 (2.59)
The EulerLagrange equations with Lagrange multipliers
We now have N +m unknown functions q
i
(t),
k
(t), but we also have N +m equations:
the N EL equations and the m constraint equations. This will therefore completely
determine the system once the initial conditions are given.
If we know the Lagrange multipliers, we can nd the (generalised) constraint forces F
i
.
These are given by
F
i
=

k
f
k
q
i

k
. (2.60)
2.5 Canonical momenta and conservation laws
Assume the lagrangian L does not depend explicitly on the coordinate q
i
. Such coor-
dinates are called cyclic. The EulerLagrange equations for the cyclic coordinate q
i
22
becomes
d
dt
L
q
i
=
L
q
i
= 0 =
L
q
i
p
i
= constant . (2.61)
We call the qunatity p
i
the canonical momentum conjugate to (or corresponding to) q
i
.
Why momentum?
Consider the usual case where
1. we use cartesian coordinates q
i
= x
i
;
2. there are no constraints; and
3. the potential depends only on the coordinates, V = V (x).
In this case we have
L = T V =
1
2
m

j
x
2
j
V (x) =
L
x
i
= m x
i
= p
i
= ordinary momentum.
So we have found the law of conservation of momentum p
i
if the potential V does not
depend on the coordinate x
i
ie, if the system is translationally invariant in the i-
direction. Note that if V does not depend on x
i
this implies that there are no net forces
in the i-direction.
We may in a similar way demonstrate conservation of total momentum for a system of
n particles if the potential energy does not depend on the centre of mass coordinate.
But the concept of canonical momenta is much more general and powerful than this,
and can be used to derive a whole host of other conservation laws. One of the most
important is angular momentum, which we will look at next.
2.5.1 Angular momentum
Consider a one-particle rotationally symmetric 2-dimensional system, and let us use
polar coordinates (r, ) to describe the parrticle. Rotational symmetry then means that
the potential energy V (r, ) = V (r), independent of the angle . The lagrangian is then
L = T V =
1
2
m( r
2
+r
2

2
) V (r) . (2.62)
We see that is a cyclic coordinate, and the canonical momentum p

is therefore con-
served. What is this canonical momentum?
We straightforwardly nd
p

=
L

_
1
2
mr
2

2
_
= mr
2

. (2.63)
23
But

is the same as the angular velocity , and we know that the velocity v

in the
angular direction (perpendicular to the radius r) is v

= r = r

, so p

= r(mv

). But
this is exactly equal to the angular momentum of the particle,
L
z
= (

p )
z
= rv

. (2.64)
So the canonical momentum conjugate to the angle is the angular momentum, which
is conserved if the system is rotationally symmetric, ie the lagrangian does not depend
on .
Angular momentum in spherical coordinates
In section 2.3.1 we found that the kinetic energy in spherical coordinates (see Fig. 2.4 is
T =
1
2
m( r
2
+r
2

2
+r
2
sin
2

2
) . (2.43)
The angle corresponds to rotations about the z-axis: if a particle rotates about the
z-axis, changes while r and are unchanged. If the potential energy does not depend
on , we have rotational symmetry about the z-axis, and the canonical momentum p

is conserved. From (2.43) we nd


p

= mr
2
sin
2


= r(mr sin

)(sin ) . (2.65)
We now want to show that this is equal to the z-component of the angular momentum,
L
z
= (

p )
z
.

. . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .

.
. . . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .

Figure 2.5: Unit vectors in


spherical coordinates.
We can put a coordinate system ( r,

,

) at the point

r
and decompose the velocity in its (r, , ) components,

v = v
r
r +v

+v

(2.66)
The unit vector r denotes the radial direction, ie the
direction where r changes, while , are unchanged.
Similarly,

denotes the direction where changes while
r, are unchanged, and

denotes the direction where
changes while r, are unchanged. The three vectors are
orthogonal, and

is also orthogonal to z, since motion
in the -direction does not change z.
The velocity component v

is the rotational velocity about the z-axis, which again is


equal to the distance from the axis times the angular velocity about the axis. Since is
the rotational angle about the z-axis, the angular velocity is d/dt =

. The distance
from the axis is r sin , so
v

= (r sin )

. (2.67)
We can now work out the vector product

r m

v in the spherical coordinate system.


Since

r = r r, we need the cross product of r with each unit vector. Using the right-hand
rule we nd
r

=

, r

=

, r r = 0 . (2.68)
24
The z-component of the angular momentum is therefore
L
z
= (

r m

v )
z
= mr[ r (v
r
r +v

+v

)]
z
= mr[v

]
z
= mrv

z . (2.69)

. . . . . . . . . . . . . . . . . . . .
. . . . . . . . . .
. . . . . . . . . .

.
.......
.......
.......
.......

-sin
We now need to work out the scalar product

z. Looking at the
gure on the right, we see that since is the angle of

r with the
z-axis, and

is orthogonal to

r (but still in the z r plane), the
projection of

onto the z-axis is

z = sin .
Therefore we nd that the z-component of the angular momentum
is
L
z
= (

r m

v )
z
= mrv

(sin ) = r (mr sin



) sin = p

.
(2.70)
So the canonical momentum p

is indeed the angular momentum about the z-axis, and


it is conserved if we have rotational symmetry about the z-axis.
If we have full spherical symmetry, this means we have rotational symmetry about all 3
axes, so by the same argument as above L
x
and L
y
must also be conserved. Therefore,
for a spherically symmetric system, the angular momentum vector

L =

r

p is
conserved.
Navely one would think that if we have full rotational symmetry, the angle should
also be irrelevant, and the canonical momentum p

should also be conserved. However,


this is not the case: although the potential energy does not depend on , the kinetic
energy does, through the term
1
2
mr
2
sin
2

2
. This -dependence is an artefact of how
we have chosen the coordinate system, but it is an unavoidable artefact: no matter
how we choose our spherical coordinate angles, these coordinates must break the full
spherical symmetry somehow.
We realise the full symmetry by noting that we could have chosen the coordinates
dierently, eg we could have chosen to be the angle with the x-axis and to correspond
to rotations about the x-axis which would have led us to nd that L
x
is conserved.
Similarly, if we choose to be the angle with the y-axis we will nd that L
y
is conserved.
2.6 Energy conservation: the hamiltonian
We know that when we have conservative forces, the potential energy depends only
on positions, and not on time, and the total energy is conserved. We have derived
conservation of linear and angular momentum in lagrangian mechanics, so we may ask
ourselves if we can also derive energy conservation within the same framework?
The answer to this is that not only can we do this, but the energy conservation theorem
we arrive at is more general than the one we already know!
To see how this works, let us take the (total) time derivative of the lagrangian L =
25
L(q
i
(t), q
i
(t), t). Using the chain rule and the EulerLagrange equations we get
dL
dt
=

i
L
q
i
q
i
+

i
L
q
i
q
i
+
L
t
=

i
_
d
dt
L
q
i
_
q
i
+

i
L
q
i
d q
i
dt
+
L
t
=
d
dt

i
L
q
i
q
i
+
L
t
(2.71)

d
dt
_

i
L
q
i
q
i
L
_
+
L
t

dH
dt
+
L
t
= 0 , (2.72)
where we have dened
H =

i
L
q
i
q
i
L =

i
p
i
q
i
L = the hamiltonian (2.73)
So we nd that if the lagrangian does not depend explicitly on time, then the hamiltonian
or energy function H is conserved.
To see how this relates to energy conservation as we know it from before, consider a
system of particles in cartesian coordinates, described by the lagrangian
L = T V =
1
2

i
m
i
q
2
i
V (q) .
The hamiltonian for this system is
H =

i
L
q
i
q
i
L =

i
(m
i
q
i
) q
i

_
1
2

i
m
i
q
2
i
V (q)
_
=
1
2

i
m
i
q
2
i
+V (q) = T +V .
(2.74)
So we nd that the hamiltonian is equal to the total energy, so conservation of the
hamiltonian is the same as energy conservation in this particular (most common) case.
2.6.1 When is H (not) conserved?
We found that H is conserved if L does not depend explicitly on time, ie L(q, q, t) =
L(q, q). We would like to understand in what circumstances an explicit time dependence
could appear in the lagrangian. One possibility would be that the potential energy
depends explicitly on time in the rst place. But there are also other possibilites. The
kinetic energy, written in terms of the original cartesian (or, for that sake, ordinary
26
polar or spherical coordinates) does not have any explicit time dependence. But time
dependence could still appear in either the kinetic or the potential energy when we write
it in terms of generalised coordinates.
To see how this can happen, let us recall why we introduced generalised coordinates in
the rst place:
1. Constraints: There are fewer actual degrees of freedom in the system because of
constraints. We use generalised coordinates to denote the real (relevant) degrees
of freedom. An example of this would be the pendulum, where the original x and
z coordinates are reduced to the single coordinate .
2. Symmetries: There are symmetries in the system which mean that using non-
cartesian coordinates may give a simpler description. An example of this would
be using polar coordinates for a system with rotational symmetry.
Explicit time-dependence can appear in both those types of cases, leaving us with three
possibilites for how explicit time-dependence could appear in the lagrangian:
1. The potential energy is explicity time-dependent, V = V (x, t). Physically, this
means that there are external or non-conservative forces, so the energy of the
system is not conserved.
2. The constraints are time-dependent. An example of that would be Example 5,
the pendulum with rotating support. In such cases, external forces are usually
required to maintain the constraint, so the energy of the system is not conserved.
3. We have chosen to use time-dependent transformations x
i
= f
i
(q, t) between the
old coordinates x and the new coordinates q because this may simplify the de-
scription of the system. In this case, the hamiltonian may be not conserved even
if the total energy is conserved.
2.6.2 When is H (not) equal to the total energy?
We showed the hamiltonian H is equal to the total energy E when
L = T V =
1
2

i
m
i
q
2
i
V (q) .
More generally, it is the case when
1. V is independent of the velocitiec q
i
, V = V (q, t), and
2. T is a homegeneous quadratic function of q,
T =

ij
a
ij
q
i
q
j
, .
27
Proof
Take
L = T = V

ij
a
ij
q
i
q
j
V (q, t) (2.75)
We note that we can always arrange it so that a
ij
= a
ji
, since q
i
q
j
= q
j
q
i
. The canonical
momenta are
p
k
=
L
q
k
=

i
a
ik
q
i
+

j
a
kj
q
j
= 2

j
a
kj
q
j
. (2.76)
The two terms appear because we get a contribution both from the k = j term and
from the k = i term in the sum. The hamiltonian is then
H =

i
p
i
q
i
L = 2

ij
a
ij
q
i
q
j

ij
a
ij
q
i
q
j
+ V (q, t) = T + V = E , (2.77)
which completes the proof.
So when does T (not) have this form?
Let us start from cartesian coordinates, where
T =
1
2

i
m
i
x
2
i
i = 1, . . . , 3N . (2.78)
We now introduce generalised coordinates q
j
, which are related to the x
i
via general,
time-dependent transformations,
x
i
= x
i
(q
1
, . . . , q
m
, t) (2.79)
Using the chain rule, we nd
x
i
=
dx
i
dt
=
m

j=1
x
i
q
j
q
j
+
x
i
t
, (2.80)
x
2
i
=
_
m

j=1
x
i
q
j
q
j
+
x
i
t
__
m

k=1
x
i
q
k
q
k
+
x
i
t
_
=
m

j,k=1
x
i
q
j
q
j
x
i
q
k
q
k
+ 2
m

j=1
x
i
q
j
x
i
t
q
j
+
_
x
i
t
_
2
.
(2.81)
The kinetic enery is therefore
T =
1
2
3N

i=1
m
i
x
2
i
=
1
2
m

j,k=1
_
3N

i=1
m
i
x
i
q
j
x
i
q
k
_
q
j
q
k
+
m

j=1
_
3N

i=1
m
i
x
i
q
j
x
i
t
_
q
j
+
1
2
3N

i=1
m
i
_
x
i
t
_
2
.
(2.82)
28
This can be written on the form
T =

jk
a
jk
q
j
q
k
+

j
b
j
q
k
+c , (2.83)
with
a
jk
=
1
2
3N

i=1
m
i
x
i
q
j
q
j
x
i
q
k
, b
j
=
3N

i=1
m
i
x
i
q
j
x
i
t
, c =
1
2
3N

i=1
m
i
_
x
i
t
_
2
. (2.84)
If the transformations do not depend on time, x
i
= x
i
(q
1
, . . . , q
m
), then
x
i
t
= 0, so
b
j
= 0, c = 0 and therefore,
T =

ij
a
ij
q
i
q
j
. (2.85)
So the kinetic energy will be a homogeneous quadratic function of the generalised veloc-
ities q
i
whenever the constraints or coordinate transformations do not depend on time.
Conversely, we may have H = E if
1. the potential V depends on velocities, or
2. the constraints of coordinate tranformations are time-dependent.
Example 2.6 Spring mounted on moving cart
Consider a body with mass m sitting at the end of a horizontal spring with spring
constant k, with the other end attached to a cart moving with a constant velocity
v. Since one end of the spring is xed to the moving cart, the equilibrium point x
o
of the body on the spring is also moving with velocity v. If we say that x
0
= 0 when
t = 0, we therefore have x
0
= vt.
The potential energy of the body is given by the displacement xx
0
from equilibrium,
V =
1
2
k(xx
0
)
2
=
1
2
k(xvt)
2
. The kinetic energy is the usual one, so the lagrangian
is
L = T V =
1
2
m x
2

1
2
k(x vt)
2
. (2.86)
The canonical momentum is p
x
= m x, which gives us the hamiltonian
H = p
x
x L =
1
2
m x
2
+
1
2
k(x vt)
2
= T +V = E . (2.87)
Since the lagrangian depends explicitly on time, the hamiltonian (and the total
energy) is not conserved. We can understand this by noting that the motor driving
the cart will have to do work to maintain a constant velocity; in the absence of this
the cart will undergo oscillations along with the body attached to the spring.
We can now introduce a new coordinate
q = x vt = q = x v (2.88)
= L(q, q, t) =
1
2
m( q +v)
2

1
2
kq
2
=
1
2
m q
2
+mv q
1
2
kq
2
+
mv
2
2
. (2.89)
29
The canonical momentum is p = m( q +v), and the hamiltonian is
H
q
= p qLm q
2
+mv q
1
2
m q
2
mv q
2
+
1
2
kq
2

mv
2
2
=
1
2
m q
2
+
1
2
kq
2

mv
2
2
. (2.90)
When written in terms of q, the lagrangian does not depend explicitly on time, and
therefore the hamiltonian (2.90) is conserved! However, it is not equal to the total
energy.
Example 2.7 Electrodynamics
One case where the distinction between ordinary and canonical momentum is im-
portant is electrodynamics. A particle with charge Q moving with velocity

v in an
electric eld

E and a magnetic eld

B is

F = Q(

E +

B) (2.91)
Using Maxwells laws, we can introduce the electrostatic and vector (magnetic)
potentials ,

A:

B = 0

B =

A , (2.92)

E =

B
t


E =

A
t
. (2.93)
It is now possible (although the proof is not straightforward, so we will not present
it here) to derive the force (2.91) from a potential
U = Q Q

v . (2.94)
The lagrangian is then
L = T U =
1
2
m
3

i=1
x
2
i
Q +Q
3

i=1
A
i
x
i
. (2.95)
The canonical momentum is
p
i
=
L
x
i
= m x
i
+QA
i
. (2.96)
This is not the ordinary momentum, a distinction which becomes quite important
in quantum mechanics, where it is the canonical momentum that enters into the
commutation relations that are used to quantise the system. Note that

A and/or
must depend on x, otherwise the problem is trivial (there are no forces), so the
momentum is not conserved.
30
The hamiltonian of the particle is
H =
3

i=1
p
i
x
i
L =
3

i=1
(m x
i
+QA
i
) x
i

1
2
m
3

i=1
x
2
i
+Q Q
3

i=1
A
i
x
i
=
1
2
m
3

i=1
x
2
i
+Q.
(2.97)
We see that the vector (magnetic) potential does not contribute to the hamiltonian.
Physically, this is because no net work is done by the magnetic eld.
31

You might also like