






















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!























In this chapter, we consider two reformulations of Newtonian mechanics, the Lagrangian and the Hamiltonian formalism. The first is naturally associated with configuration space, extended by time, while the latter is the natural description for working in phase space.
Lagrange developed his approach in 1764 in a study of the libration of the moon, but it is best thought of as a general method of treating dynamics in terms of generalized coordinates for configuration space. It so transcends its origin that the Lagrangian is considered the fundamental object which describes a quantum field theory.
Hamilton’s approach arose in 1835 in his unification of the language of optics and mechanics. It too had a usefulness far beyond its origin, and the Hamiltonian is now most familiar as the operator in quantum mechanics which determines the evolution in time of the wave function.
We begin by deriving Lagrange’s equation as a simple change of coordi- nates in an unconstrained system, one which is evolving according to New- ton’s laws with force laws given by some potential. Lagrangian mechanics is also and especially useful in the presence of constraints, so we will then extend the formalism to this more general situation.
For a collection of particles with conservative forces described by a potential, we have in inertial cartesian coordinates
mx¨i = Fi.
The left hand side of this equation is determined by the kinetic energy func- tion as the time derivative of the momentum pi = ∂T /∂ x˙i, while the right hand side is a derivative of the potential energy, −∂U/∂xi. As T is indepen- dent of xi and U is independent of ˙xi in these coordinates, we can write both sides in terms of the Lagrangian L = T − U , which is then a function of both the coordinates and their velocities. Thus we have established
d dt
∂ x˙i
∂xi
which, once we generalize it to arbitrary coordinates, will be known as La- grange’s equation. Note that we are treating L as a function of the 2N independent variables xi and ˙xi, so that ∂L/∂ x˙i means vary one ˙xi holding all the other ˙xj and all the xk fixed. Making this particular combination
of T ( ~r˙) with U (~r) to get the more complicated L(~r, ~r˙) seems an artificial construction for the inertial cartesian coordinates, but it has the advantage of preserving the form of Lagrange’s equations for any set of generalized coordinates. As we did in section 1.3.3, we assume we have a set of generalized coor- dinates {qj } which parameterize all of coordinate space, so that each point may be described by the {qj } or by the {xi}, i, j ∈ [1, N ], and thus each set may be thought of as a function of the other, and time:
qj = qj (x 1 , ...xN , t) xi = xi(q 1 , ...qN , t). (2.1)
We may consider L as a function^1 of the generalized coordinates qj and ˙qj ,
(^1) Of course we are not saying that L(x, x, t˙ ) is the same function of its coordinates as L(q, q, t˙ ), but rather that these are two functions which agree at the corresponding physical points. More precisely, we are defining a new function L˜(q, q, t˙ ) = L(x(q, t), x˙(q, q, t˙ ), t), but we are being physicists and neglecting the tilde. We are treating the Lagrangian here as a scalar under coordinate transformations, in the sense used in general relativity, that its value at a given physical point is unchanged by changing the coordinate system used to define that point.
On the other hand, the chain rule also tells us
∂L ∂xi
∑
j
∂qj
∂qj ∂xi
∑
j
∂ q˙j
∂ q˙j ∂xi
where the last term does not necessarily vanish, as ˙qj in general depends on both the coordinates and velocities. In fact, from 2.3,
∂ q˙j ∂xi
∑
k
∂^2 qj ∂xi∂xk
x ˙k +
∂^2 qj ∂xi∂t
so ∂L ∂xi
∑
j
∂qj
∂qj ∂xi
∑
j
∂ q˙j
( ∑
k
∂^2 qj ∂xi∂xk
x ˙k +
∂^2 qj ∂xi∂t
)
. (2.7)
Lagrange’s equation in cartesian coordinates says (2.6) and (2.7) are equal, and in subtracting them the second terms cancel^2 , so
∑
j
( d dt
∂ q˙j
∂qj
) ∂qj ∂xi
The matrix ∂qj /∂xi is nonsingular, as it has ∂xi/∂qj as its inverse, so we have derived Lagrange’s Equation in generalized coordinates:
d dt
∂ q˙j
∂qj
Thus we see that Lagrange’s equations are form invariant under changes of the generalized coordinates used to describe the configuration of the system. It is primarily for this reason that this particular and peculiar combination of kinetic and potential energy is useful. Note that we implicity assume the Lagrangian itself transformed like a scalar, in that its value at a given phys- ical point of configuration space is independent of the choice of generalized coordinates that describe the point. The change of coordinates itself (2.1) is called a point transformation.
(^2) This is why we chose the particular combination we did for the Lagrangian, rather than L = T − αU for some α 6 = 1. Had we done so, Lagrange’s equation in cartesian coordinates would have been α d(∂L/∂ x˙j )/dt − ∂L/∂xj = 0, and in the subtraction of (2.7) from α×(2.6), the terms proportional to ∂L/∂ q˙i (without a time derivative) would not have cancelled.
We now wish to generalize our discussion to include contraints. At the same time we will also consider possibly nonconservative forces. As we mentioned in section 1.3.2, we often have a system with internal forces whose effect is better understood than the forces themselves, with which we may not be concerned. We will assume the constraints are holonomic, expressible as k real functions Φα(~r 1 , ..., ~rn, t) = 0, which are somehow enforced by constraint
forces F~ (^) iC on the particles {i}. There may also be other forces, which we will call F (^) iD and will treat as having a dynamical effect. These are given by known functions of the configuration and time, possibly but not necessarily in terms of a potential. This distinction will seem artificial without examples, so it would be well to keep these two in mind. In each of these cases the full configuration space is R^3 , but the constraints restrict the motion to an allowed subspace of extended configuration space.
Differentiating (2.9) we note that,
∂~vi ∂ q˙j
∂~ri ∂qj
and also ∂~vi ∂qj
∑
k
∂^2 ~ri ∂qj ∂qk
q ˙k +
∂^2 ~ri ∂qj ∂t
d dt
∂~ri ∂qj
where the last equality comes from applying (2.5), with coordinates qj rather than xj , to f = ∂~ri/∂qj. The first term in the equation (2.8) stating D’Alembert’s principle is
∑ i
F^ ~i · δ~ri =
∑ j
∑ i
F^ ~i · ∂~ri ∂qj
δqj =
∑ j
Qj · δqj.
The generalized force Qj has the same form as in the unconstrained case, as given by (1.9), but there are only as many of them as there are unconstrained degrees of freedom. The second term of (2.8) involves
∑
i
~p^ ˙i · δ~ri =
∑
i
dpi dt
∂~ri ∂qj
δqj
∑
j
d dt
( ∑
i
~pi ·
∂~ri ∂qj
) δqj −
∑
ij
pi ·
( d dt
∂~ri ∂qj
) δqj
∑
j
d dt
( ∑
i
~pi ·
∂~vi ∂ q˙j
) δqj −
∑
ij
pi ·
∂~vi ∂qj
δqj
∑
j
[ d dt
∑
i
mi~vi ·
∂~vi ∂ q˙j
∑
i
mivi ·
∂~vi ∂qj
] δqj
∑
j
[ d dt
∂ q˙j
∂qj
] δqj ,
where we used (2.10) and (2.11) to get the third line. Plugging in the ex- pressions we have found for the two terms in D’Alembert’s Principle,
∑
j
[ d dt
∂ q˙j
∂qj
− Qj
] δqj = 0.
We assumed we had a holonomic system and the q’s were all independent, so this equation holds for arbitrary virtual displacements δqj , and therefore
d dt
∂ q˙j
∂qj
− Qj = 0. (2.12)
Now let us restrict ourselves to forces given by a potential, with F~i = −∇~iU ({~r}, t), or
Qj = −
∑
i
∂~ri ∂qj
· ∇~iU = −
∂ U˜ ({q}, t) ∂qj
∣∣ ∣∣ ∣t^.
Notice that Qj depends only on the value of U on the constrained surface. Also, U is independent of the ˙qi’s, so
d dt
∂ q˙j
∂qj
∂qj
d dt
∂ q˙j
∂qj
or
d dt
∂ q˙j
∂qj
This is Lagrange’s equation, which we have now derived in the more general context of constrained systems.
Atwood’s machine
Atwood’s machine consists of two blocks of mass m 1 and m 2 attached by an inextensible cord which suspends them from a pulley of moment of inertia I with frictionless bearings. The kinetic energy is
T =
m 1 x˙^2 +
m 2 x˙^2 +
Iω^2 U = m 1 gx + m 2 g(K − x) = (m 1 − m 2 )gx + const
where we have used the fixed length of the cord to conclude that the sum of the heights of the masses is a constant K. We assume the cord does not slip on the pulley, so the angular velocity of the pulley is ω = ˙x/r, and
(m 1 + m 2 + I/r^2 ) ˙x^2 + (m 2 − m 1 )gx,
Mass on end of gimballed rod
Finally, let us consider the mass on the end of the gimballed rod. The allowed subspace is the surface of a sphere, which can be parameterized by an azimuthal angle φ and the polar angle with the upwards direction, θ, in terms of which
z = cos θ, x = sin θ cos φ, y = ` sin θ sin φ,
and T = 12 m`^2 ( θ˙^2 + sin^2 θ φ˙^2 ). With an arbitrary potential U (θ, φ), the La- grangian becomes
m`^2 ( θ˙^2 + sin^2 θ φ˙^2 ) − U (θ, φ).
From the two independent variables θ, φ there are two Lagrange equations of motion,
m`^2 θ¨ = −
∂θ
sin(2θ) φ˙^2 , (2.14) d dt
( m`^2 sin^2 θ φ˙
) = −
∂φ
Notice that this is a dynamical system with two coordinates, similar to ordi- nary mechanics in two dimensions, except that the mass matrix, while diag- onal, is coordinate dependent, and the space on which motion occurs is not an infinite flat plane, but a curved two dimensional surface, that of a sphere. These two distinctions are connected—the coordinates enter the mass ma- trix because it is impossible to describe a curved space with unconstrained cartesian coordinates. Often the potential U (θ, φ) will not actually depend on φ, in which case Eq. 2.15 tells us m`^2 sin^2 θ φ˙ is constant in time. We will discuss this further in Section 2.4.1.
The configuration of a system at any moment is specified by the value of the generalized coordinates qj (t), and the space coordinatized by these q 1 ,... , qN is the configuration space. The time evolution of the system is given by
the trajectory, or motion of the point in configuration space as a function of time, which can be specified by the functions qi(t). One can imagine the system taking many paths, whether they obey New- ton’s Laws or not. We consider only paths for which the qi(t) are differen- tiable. Along any such path, we define the action as
∫ (^) t 2
t 1
L(q(t), q˙(t), t)dt. (2.16)
The action depends on the starting and ending points q(t 1 ) and q(t 2 ), but beyond that, the value of the action depends on the path, unlike the work done by a conservative force on a point moving in ordinary space. In fact, it is exactly this dependence on the path which makes this concept useful — Hamilton’s principle states that the actual motion of the particle from q(t 1 ) = qi to q(t 2 ) = qf is along a path q(t) for which the action is stationary. That means that for any small deviation of the path from the actual one, keeping the initial and final configurations fixed, the variation of the action vanishes to first order in the deviation. To find out where a differentiable function of one variable has a stationary point, we differentiate and solve the equation found by setting the derivative to zero. If we have a differentiable function f of several variables xi, the first-order variation of the function is ∆f =
∑ i(xi^ −^ x^0 i)^ ∂f /∂xi|x 0 , so unless ∂f /∂xi|x 0 = 0 for all i, there is some variation of the {xi} which causes a first order variation of f , and then x 0 is not a stationary point. But our action is a functional, a function of functions, which represent an infinite number of variables, even for a path in only one dimension. In- tuitively, at each time q(t) is a separate variable, though varying q at only one point makes ˙q hard to interpret. A rigorous mathematician might want to describe the path q(t) on t ∈ [0, 1] in terms of Fourier series, for which q(t) = q 0 + q 1 t +
∑ n=1 an^ sin(nπt). Then the functional^ S(f^ ) given by
∫ f (q(t), q˙(t), t)dt
becomes a function of the infinitely many variables q 0 , q 1 , a 1 ,.. .. The end- points fix q 0 and q 1 , but the stationary condition gives an infinite number of equations ∂S/∂an = 0. It is not really necessary to be so rigorous, however. Under a change q(t) → q(t) + δq(t), the derivative will vary by δ q˙ = d δq(t)/dt, and the
The action is
∫ (^) T
0
{ 1 2
m
(^) x˙^2 + ˙y^2 +
( d∆z dt
) 2
d∆z dt
g^2 (T − 2 t)^2
−mg∆z −
mg^2 t(T − t)
} dt.
The fourth term can be integrated by parts,
∫ (^) T
0
mg(T − 2 t)
d∆z dt
dt =
mg(T − 2 t)∆z
∣∣ ∣∣
T
0
∫ (^) T
0
mg∆z(t) dt.
The boundary term vanishes because ∆z = 0 where it is evaluated, and the other term cancels the sixth term in S, so
∫ (^) T
0
mg^2
[ 1 4
(T − 2 t)^2 − t(T − t)
] dt
∫ (^) T
0
m
(^) x˙^2 + ˙y^2 +
( d∆z dt
) 2 (^).
The first integral is independent of the path, so the minimum action requires the second integral to be as small as possible. But it is an integral of a non- negative quantity, so its minimum is zero, requiring ˙x = ˙y = d∆z/dt = 0. As x = y = ∆z = 0 at t = 0, this tells us x = y = ∆z = 0 at all times, and the path which minimizes the action is the one we expect from elementary mechanics.
Is the shortest path a straight line?
The calculus of variations occurs in other contexts, some of which are more intuitive. The classic example is to find the shortest path between two points in the plane. The length ` of a path y(x) from (x 1 , y 1 ) to (x 2 , y 2 ) is given^5 by
∫ (^) x 2
x 1
ds =
∫ (^) x 2
x 1
√√ √√ 1 +
( dy dx
) 2 dx.
(^5) Here we are assuming the path is monotone in x, without moving somewhere to the left and somewhere to the right. To prove that the straight line is shorter than other paths which might not obey this restriction, do Exercise 2.2.
We see that length ` is playing the role of the action, and x is playing the role of t. Using ˙y to represent dy/dx, we have the integrand f (y, y, x˙ ) =
1 + ˙y^2 , and ∂f /∂y = 0, so Eq. 2.17 gives
d dx
∂f ∂ y˙
d dx
y ˙ √ 1 + ˙y^2
= 0, so ˙y = const.
and the path is a straight line.
If the Lagrangian does not depend on one coordinate, say qk, then we say it is an ignorable coordinate. Of course, we still want to solve for it, as its derivative may still enter the Lagrangian and effect the evolution of other coordinates. By Lagrange’s equation
d dt
∂ q˙k
∂qk
so if in general we define
Pk :=
∂ q˙k
as the generalized momentum, then in the case that L is independent of qk, Pk is conserved, dPk/dt = 0.
Linear Momentum
As a very elementary example, consider a particle under a force given by a potential which depends only on y and z, but not x. Then
m
( x ˙^2 + ˙y^2 + ˙z^2
) − U (y, z)
is independent of x, x is an ignorable coordinate and
Px =
∂ x˙
= m x˙
is conserved. This is no surprize, of course, because the force is F = −∇U and Fx = −∂U/∂x = 0.
spherical coordinates is T = 12 m r˙^2 + 12 mr^2 θ˙^2 + 12 mr^2 sin^2 θ φ˙^2 , so the La- grangian with a spherically symmetric potential is
m r˙^2 +
mr^2 θ˙^2 +
mr^2 sin^2 θ φ˙^2 − U (r).
Again, φ is an ignorable coordinate and the conjugate momentum Pφ is conserved. Note, however, that even though the potential is independent of θ as well, θ does appear undifferentiated in the Lagrangian, and it is not an ignorable coordinate, nor is Pθ conserved^6. If qj is an ignorable coordinate, not appearing undifferentiated in the Lagrangian, any possible motion qj (t) is related to a different trajectory q′ j (t) = qj (t) + c, in the sense that they have the same action, and if one is an extremal path, so will the other be. Thus there is a symmetry of the system under qj → qj + c, a continuous symmetry in the sense that c can take on any value. As we shall see in Section 8.3, such symmetries generally lead to conserved quantities. The symmetries can be less transparent than an ignorable coordinate, however, as in the case just considered, of angular momentum for a spherically symmetric potential, in which the conservation of Lz follows from an ignorable coordinate φ, but the conservation of Lx and Ly follow from symmetry under rotation about the x and y axes respectively, and these are less apparent in the form of the Lagrangian.
We may ask what happens to the Lagrangian along the path of the motion.
dL dt
∑
i
∂qi
dqi dt
∑
i
∂ q˙i
d q˙i dt
∂t
In the first term the first factor is
d dt
∂ q˙i (^6) It seems curious that we are finding straightforwardly one of the components of the conserved momentum, but not the other two, Ly and Lx, which are also conserved. The fact that not all of these emerge as conjugates to ignorable coordinates is related to the fact that the components of the angular momentum do not commute in quantum mechanics. This will be discussed further in section (6.6.1).
by the equations of motion, so
dL dt
d dt
( ∑
i
∂ q˙i
q ˙i
)
∂t
We expect energy conservation when the potential is time invariant and there is not time dependence in the constraints, i.e. when ∂L/∂t = 0, so we rewrite this in terms of
H(q, q, t˙ ) =
∑ i
q ˙i
∂ q˙i
∑ i
q ˙iPi − L
Then for the actual motion of the system,
dH dt
∂t
If ∂L/∂t = 0, H is conserved. H is essentially the Hamiltonian, although strictly speaking that name is reserved for the function H(q, p, t) on extended phase space rather than the function with arguments (q, q, t˙ ). What is H physically? In the case of Newtonian mechanics with a potential function, L is an inhomogeneous quadratic function of the velocities ˙qi. If we write the Lagrangian L = L 2 + L 1 + L 0 as a sum of pieces purely quadratic, purely linear, and independent of the velocities respectively, then
∑
i
q ˙i
∂ q˙i
is an operator which multiplies each term by its order in velocities,
∑
i
q ˙i
∂Ln ∂ q˙i
= nLn,
∑
i
q ˙i
∂ q˙i
and H = L 2 − L 0.
For a system of particles described by their cartesian coordinates, L 2 is just the kinetic energy T , while L 0 is the negative of the potential energy L 0 = −U , so H = T + U is the ordinary energy. There are, however, con- strained systems, such as the bead on a spoke of Section 2.2.1, for which the Hamiltonian is conserved but is not the ordinary energy.
L = 12 m x˙^2 − 12 kx^2 , the only generalized momentum is P = ∂L/∂ x˙ = m x˙, and the Hamiltonian is H = P x˙−L = P 2 /m−(P 2 / 2 m − 12 kx^2 ) = P 2 / 2 m + 12 kx^2. Note this is just the sum of the kinetic and potential energies, or the total energy. Hamilton’s equations give
x˙ =
∣∣ ∣∣ ∣x^ =^
m
∂x
∣∣ ∣∣ ∣P^ =^ −kx^ =^ F.
These two equations verify the usual connection of the momentum and ve- locity and give Newton’s second law. The identification of H with the total energy is more general than our particular example. If T is purely quadratic in velocities, we can write T = 1 2
∑ ij Mij^ q˙i^ q˙j^ in terms of a symmetric^ mass matrix^ Mij^. If in addition^ U^ is independent of velocities,
∑
ij
Mij q˙i q˙j − U (q)
Pk =
∂ q˙k
∑
i
Mki q˙i
which as a matrix equation in a n-dimensional space is P = M · q˙. Assuming M is invertible,^8 we also have ˙q = M −^1 · P , so
H = P T^ · q˙ − L
= P T^ · M −^1 · P −
q˙T^ · M · q˙ − U (q)
)
P T^ · M −^1 · M · M −^1 · P + U (q)
=
P T^ · M −^1 · P + U (q) = T + U
so we see that the Hamiltonian is indeed the total energy under these cir- cumstances.
(^8) If M were not invertible, there would be a linear combination of velocities which does not affect the Lagrangian. The degree of freedom corresponding to this combination would have a Lagrange equation without time derivatives, so it would be a constraint equation rather than an equation of motion. But we are assuming that the q’s are a set of independent generalized coordinates that have already been pruned of all constraints.
When we have a Lagrangian with an ignorable coordinate, say θ, and there- fore a conjugate momentum Pθ which is conserved and can be considered a constant, we are able to reduce the problem to one involving one fewer degrees of freedom. That is, one can substitute into the other differential equations the value of θ˙ in terms of Pθ and other degrees of freedom, so that θ and its derivatives no longer appear in the equations of motion. For example, consider the two dimensional isotropic harmonic oscillator,
m
( x ˙^2 + ˙y^2
) −
k
( x^2 + y^2
)
m
( r ˙^2 + r^2 θ˙^2
) −
kr^2
in polar coordinates. The equations of motion are
P˙θ = 0 , where Pθ = mr^2 θ,˙ m¨r = −kr + mr θ˙^2 =⇒ mr¨ = −kr + P (^) θ^2
/ mr^3.
The last equation is now a problem in the one degree of freedom r.
One might be tempted to substitute for θ˙ into the Lagrangian and then have a Lagrangian involving one fewer degrees of free- dom. In our example, we would get
m r˙^2 +
P (^) θ^2 2 mr^2
kr^2 ,
which gives the equation of motion
m¨r = −
P (^) θ^2 mr^3
− kr.
Notice that the last equation has the sign of the P (^) θ^2 term reversed from the correct equation. Why did we get the wrong answer? In deriving the Lagrange equation which comes from varying r, we need
d dt
∂ r˙
∣∣ ∣∣ ∣ r,θ, θ˙
∂r
∣∣ ∣∣ ∣ r,θ,˙ θ˙