The three major formulations of classical mechanics are
Newtonian mechanics which is the most intuitive vector formulation used in classical mechanics.
Lagrangian mechanics is a powerful algebraic formulation of classical mechanics derived using either d’Alembert’s Principle, or Hamilton’s Principle. The latter states ”A dynamical system follows a path that minimizes the time integral of the difference between the kinetic and potential energies”.
Hamiltonian mechanics has a beautiful superstructure that, like Lagrangian mechanics, is built upon variational calculus, Hamilton’s principle, and Lagrangian mechanics.
Hamiltonian mechanics is introduced at this juncture since it is closely interwoven with Lagrange mechanics. Hamiltonian mechanics plays a fundamental role in modern physics, but the discussion of the important role it plays in modern physics will be deferred until chapters 15 and 18 where applications to modern physics are addressed.
The following important concepts were introduced in chapter 7:
The generalized momentum was defined to be given by
pi≡∂q˙i∂L(q,q˙,t)
Note that, as discussed in chapter 7.2, if the potential is velocity dependent, such as the Lorentz force, then the generalized momentum includes terms in addition to the usual mechanical momentum.
Jacobi’s generalized energy functionh(q,q˙,t) was introduced where
h(q,q˙,t)=i∑n(q˙i∂q˙i∂L)−L(q,q˙,t)(8.2)
The Hamiltonian function was defined to be given by expressing the generalized energy function, Equation 8.2, in terms of the generalized momentum. That is, the Hamiltonian H(q,p,t) is expressed as
H(q,p,t)=i∑npiq˙i−L(q,q˙,t)(8.3)
The symbols q, p, designate vectors of n generalized coordinates, q≡(q1,q2,..qn),p≡(p1,p2,..pn). Equation 8.3 can be written compactly in a symmetric form using the scalar product p⋅q˙=∑ipiq˙i.
H(q,p,t)+L(q,q˙,t)=p⋅q˙
A crucial feature of Hamiltonian mechanics is that the Hamiltonian is expressed as H(q,p,t), that is,it is a function of thengeneralized coordinates and their conjugate momenta, which are taken to be independent, plus the independent variable, time. This contrasts with the Lagrangian L(q,q˙,t) which is a function of the n generalized coordinates qj, and the corresponding velocities q˙j, that is the time derivatives of the coordinates qi, plus the independent variable, time.
8.2: Legendre Transformation between Lagrangian and Hamiltonian mechanics¶
Hamiltonian mechanics can be derived directly from Lagrange mechanics by considering the Legendre transformation between the conjugate variables (q,q˙,t) and (q,p,t). Such a derivation is of considerable importance in that it shows that Hamiltonian mechanics is based on the same variational principles as those used to derive Lagrangian mechanics; that is d’Alembert’s Principle and Hamilton’s Principle. The general problem of converting Lagrange’s equations into the Hamiltonian form hinges on the inversion of Equation (8.1.1) that defines the generalized momentum p. This inversion is simplified by the fact that (8.1.1) is the first partial derivative of the Lagrangian scalar function L(q,q˙,t).
As described in appendix 19.6.4, consider transformations between two functions F(u,w) and G(v,w), where u and v are the active variables related by the functional form
v=∇uF(u,w)(8.5)
and where w designates passive variables. The function ∇uF(u,w) is the first-order derivative, (gradient) of F(u,w) with respect to the components of the vector u. The Legendre transform states that the inverse formula can always be written as a first-order derivative
u=∇vG(v,w)(8.6)
The function G(v,w) is related to F(u,w) by the symmetric relation
G(v,w)+F(u,w)=u⋅v(8.7)
where the scalar product u⋅v=∑i=1Nuivi.
Furthermore the first-order derivatives with respect to all the passive variables wi are related by
∇wF(u,w)=−∇wG(v,w)(8.8)
The relationship between the functions F(u,w) and G(v,w) is symmetrical and each is said to be the Legendre transform of the other.
The general Legendre transform can be used to relate the Lagrangian and Hamiltonian by identifying the active variables v****with p, and u with q˙, the passive variable w with q,t, and the corresponding functions F(u,w)=L(q,q˙,t) and G(v,w)=H(q,p,t). Thus the generalized momentum (8.1.1) corresponds to
p=∇q˙L(q,q˙,t)(8.9)
where (q,t) are the passive variables. Then the Legendre transform states that the transformed variable q˙ is given by the relation
q˙=∇pH(q,p,t)(8.10)
Since the functions L(q,q˙,t) and H(q,p,t) are the Legendre transforms of each other, they satisfy the relation
H(q,p,t)+L(q,q˙,t)=p⋅q˙(8.11)
The function H(q,p,t), which is the Legendre transform of the Lagrangian L(q,q˙,t), is called the Hamiltonian function and Equation 8.11 is identical to our original definition of the Hamiltonian given by equation (8.1.3). The variables q and t are passive variables thus Equation 8.8 gives that
∇qL(q˙,q,t)=−∇qH(p,q,t)(8.12)
Written in component form Equation 8.12 gives the partial derivative relations
$$
Note that equations 8.13 and 8.14 are strictly a result of the Legendre transformation. To complete the transformation from Lagrangian to Hamiltonian mechanics it is necessary to invoke the calculus of variations via the Lagrange-Euler equations. The symmetry of the Legendre transform is illustrated by Equation 8.11.
Equation 7.6.16 gives that the scalar product p⋅q˙=2T2. For scleronomic systems, with velocity independent potentials U, the standard Lagrangian L=T−U and H=2T−T+U=T+U. Thus, for this simple case, Equation 8.11 reduces to an identity H+L=2T.
This simplified form illustrates the symmetry of Hamilton’s equations of motion. Many books present the Hamiltonian only for this special simplified case where it is holonomic, conservative, and generalized coordinates are used.
Hamilton’s equations of motion, summarized in equations 8.25-8.27 use either a minimal set of generalized coordinates, or the Lagrange multiplier terms, to account for holonomic constraints, or generalized forces QjEXC to account for non-holonomic or other forces. Hamilton’s equations of motion usually are called the canonical equations of motion. Note that the term “canonical” has nothing to do with religion or canon law; the reason for this name has bewildered many generations of students of classical mechanics. The term was introduced by Jacobi in 1837 to designate a simple and fundamental set of conjugate variables and equations. Note the symmetry of Hamilton’s two canonical equations, plus the fact that the canonical variables pk,qk are treated as independent canonical variables. The Lagrange mechanics coordinates (q,q˙,t) are replaced by the Hamiltonian mechanics coordinates (q,p,t),where the conjugate momentapare taken to be independent of the coordinateq.
Lagrange was the first to derive the canonical equations but he did not recognize them as a basic set of equations of motion. Hamilton derived the canonical equations of motion from his fundamental variational principle, chapter 9.2, and made them the basis for a far-reaching theory of dynamics. Hamilton’s equations give 2s first-order differential equations for pk,qk for each of the s=n−m degrees of freedom. Lagrange’s equations give s second-order differential equations for the s independent generalized coordinates qk,q˙k.
It has been shown that H(p,q,t) and L(q˙,q,t) are the Legendre transforms of each other. Although the Lagrangian formulation is ideal for solving numerical problems in classical mechanics, the Hamiltonian formulation provides a better framework for conceptual extensions to other fields of physics since it is written in terms of the fundamental conjugate coordinates, q,p. The Hamiltonian is used extensively in modern physics, including quantum physics, as discussed in chapters 15 and 18. For example, in quantum mechanics there is a straightforward relation between the classical and quantal representations of momenta; this does not exist for the velocities.
The concept of state space, introduced in chapter 3.3.2, applies naturally to Lagrangian mechanics since (q˙,q) are the generalized coordinates used in Lagrangian mechanics. The concept of Phase Space, introduced in chapter 3.3.3, naturally applies to Hamiltonian phase space since (p,q) are the generalized coordinates used in Hamiltonian mechanics.
Prior to solving problems using Hamiltonian mechanics, it is useful to express the Hamiltonian in cylindrical and spherical coordinates for the special case of conservative forces since these are encountered frequently in physics.
Assume a conservative force, then H is conserved. Since the transformation from Cartesian to non-rotating generalized cylindrical coordinates is time independent, then H=E. Then using Equations 8.32-8.35 gives the Hamiltonian in cylindrical coordinates to be
Note that if ϕ is cyclic, that is ∂ϕ∂U=0, then the angular momentum about the z axis, pϕ, is a constant of motion. Similarly, if z is cyclic, then pz is a constant of motion.
Assuming a conservative force then H is conserved. Since the transformation from cartesian to generalized spherical coordinates is time independent, then H=E. Thus using 8.46-8.48 the Hamiltonian is given in spherical coordinates by
$$
Note that if the coordinate ϕ is cyclic, that is ∂ϕ∂U=0 then the angular momentum pϕ is conserved. Also if the θ coordinate is cyclic, and pϕ=0, that is, there is no change in the angular momentum perpendicular to the z axis, then pθ is conserved.
An especially important spherically-symmetric Hamiltonian is that for a central field. Central fields, such as the gravitational or Coulomb fields of a uniform spherical mass, or charge, distributions, are spherically symmetric and then both θ and ϕ are cyclic. Thus the projection of the angular momentum pϕ about the z axis is conserved for these spherically symmetric potentials. In addition, since both pθ and pϕ, are conserved, then the total angular momentum also must be conserved as is predicted by Noether’s theorem.
The equations of motion of a system can be derived using the Hamiltonian coupled with Hamilton’s equations of motion, that is, equations (8.3.11−8.3.13).
Formally the Hamiltonian is constructed from the Lagrangian. That is
Select a set of independent generalized coordinates qi
Partition the active forces.
Construct the Lagrangian L(qi,q˙i,t)
Derive the conjugate generalized momenta via pi=∂q˙i∂L
Knowing L,q˙i,pi derive H=∑ipiq˙i−L
Derive q˙k=∂pk∂H and p˙j=−∂qj∂H(q,p,t)+∑k=1mλk∂qj∂gk+QjEXC.
This procedure appears to be unnecessarily complicated compared to just using the Lagrangian plus Lagrangian mechanics to derive the equations of motion. Fortunately the above lengthy procedure often can be bypassed for conservative systems. That is, if the following conditions are satisfied;
L=T(q.)−U(q), that is, U(q) is independent of the velocity q˙.
the generalized coordinates are time independent.
then it is possible to use the fact that
H=T+U=E.
The following five examples illustrate the use of Hamiltonian mechanics to derive the equations of motion.
Noether’s theorem states that if the coordinate qj is cyclic, and if the Lagrange multiplier plus generalized force contributions for the jth coordinates are zero, then the canonical momentum of the cyclic variable, pj, is a constant of motion as is discussed in chapter 7.3. Therefore, both (qj,pj) are constants of motion for cyclic variables, and these constant (qj,pj) coordinates can be factored out of the Hamiltonian H(p,q,t). This reduces the number of degrees of freedom included in the Hamiltonian. For this reason, cyclic variables are called ignorable variables in Hamiltonian mechanics. This advantage does not apply to the (qj,q˙j) variables used in Lagrangian mechanics since q˙ is not a constant of motion for a cyclic coordinate. The ability to eliminate the cyclic variables as unknowns in the Hamiltonian is a valuable advantage of Hamiltonian mechanics that is exploited extensively for solving problems, as is described in chapter 15.
It is advantageous to have the ability to exploit both the Lagrangian and Hamiltonian formulations simultaneously when handling systems that involve a mixture of cyclic and non-cyclic coordinates. The equations of motion for each independent generalized coordinate can be derived independently of the remaining generalized coordinates. Thus it is possible to select either the Hamiltonian or the Lagrangian formulations for each generalized coordinate, independent of what is used for the other generalized coordinates. Routh devised an elegant, and useful, hybrid technique that separates the cyclic and non-cyclic generalized coordinates in order to simultaneously exploit the differing advantages of both the Hamiltonian and Lagrangian formulations of classical mechanics. The Routhian reduction approach partitions the ∑i=1npiq˙i kinetic energy term in the Hamiltonian into a cyclic group, plus a non-cyclic group, i.e.
Routh’s clever idea was to define a new function, called the Routhian , that include only one of the two partitions of the kinetic energy terms. This makes the Routhian a Hamiltonian for the coordinates for which the kinetic energy terms are included, while the Routhian acts like a negative Lagrangian for the coordinates where the kinetic energy term is omitted. This book defines two Routhians.
The first, Routhian, called Rcyclic, includes the kinetic energy terms only for the cyclic variables, and behaves like a Hamiltonian for the cyclic variables, and behaves like a Lagrangian for the non-cyclic variables. The second Routhian, called Rnon−cyclic, includes the kinetic energy terms for only the non-cyclic variables, and behaves like a Hamiltonian for the non-cyclic variables, and behaves like a negative Lagrangian for the cyclic variables. These two Routhians complement each other in that they make the Routhian either a Hamiltonian for the cyclic variables, or the converse where the Routhian is a Hamiltonian for the non-cyclic variables. The Routhians use (qi,q˙i) to denote those coordinates for which the Routhian behaves like a Lagrangian, and (qi,pi) for those coordinates where the Routhian behaves like a Hamiltonian. For uniformity, it is assumed that the degrees of freedom between 1≤i≤s are non-cyclic, while those between s+1≤i≤n are ignorable cyclic coordinates.
The Routhian is a hybrid of Lagrangian and Hamiltonian mechanics. Some textbooks minimize discussion of the Routhian on the grounds that this hybrid approach is not fundamental. However, the Routhian is used extensively in engineering in order to derive the equations of motion for rotating systems. In addition it is used when dealing with rotating nuclei in nuclear physics, rotating molecules in molecular physics, and rotating galaxies in astrophysics. The Routhian reduction technique provides a powerful way to calculate the intrinsic properties for a rotating system in the rotating frame of reference. The Routhian approach is included in this textbook because it plays an important role in practical applications of rotating systems, plus it nicely illustrates the relative advantages of the Lagrangian and Hamiltonian formulations in mechanics.
Rcyclic - Routhian is a Hamiltonian for the cyclic variables¶
The cyclic Routhian Rcyclic is defined assuming that the variables between 1≤i≤s are non-cyclic, where s=n−m, while the m variables between s+1≤i≤n are ignorable cyclic coordinates. The cyclic Routhian Rcyclic expresses the cyclic coordinates in terms of (q,p) which are required for use by Hamilton’s equations, while the non-cyclic variables are expressed in terms of (q,q˙) for use by the Lagrange equations. That is, the cyclic Routhian Rcyclic is defined to be
where the summation ∑cyclicpiq˙i is over only the m cyclic variables s+1≤i≤n. Note that the Lagrangian can be split into the cyclic and the non-cyclic parts
which is expressed as the complete Hamiltonian minus the kinetic energy term for the noncyclic coordinates. The Routhian Rcyclic behaves like a Hamiltonian for the m cyclic coordinates and behaves like a negative Lagrangian Lnoncyclicfor all the s=n−m noncyclic coordinatesi=1,2,...,s. Thus the equations of motion for the s non-cyclic variables are given using Lagrange’s equations of motion, while the Routhian behaves like a Hamiltonian Hcyclic for the m ignorable cyclic variables i=s+1,...,n.
Ignoring both the Lagrange multiplier and generalized forces, then the partitioned equations of motion for the non-cyclic and cyclic generalized coordinates are given in Table 8.6.1.
Lagrange equations
Hamilton equations
Coordinates
Noncyclic: 1≤i≤s
Cyclic: (s+1)≤i≤n
∂qi∂Rcyclic=−∂qi∂Lnoncyclic
∂qi∂Rcyclic=−p˙i
Equations of motion
∂q˙i∂Rcyclic=−∂q˙i∂Lnoncyclic
∂pi∂Rcyclic=q˙i
Thus there are m cyclic (ignorable) coordinates (q,p)s+1,....,(q,p)n which obey Hamilton’s equations of motion, while the first s=n−m non-cyclic (non-ignorable) coordinates (q,q˙)1,....,(q,q˙)s for i=1,2,...,s obey Lagrange equations. The solution for the cyclic variables is trivial since they are constants of motion and thus the Routhian Rcyclic has reduced the number of equations of motion that must be solved from n to the s=n−m non-cyclic variables. This Routhian provides an especially useful way to reduce the number of equations of motion for rotating systems.
Note that there are several definitions used to define the Routhian, for example some books define this Routhian as being the negative of the definition used here so that it corresponds to a positive Lagrangian. However, this sign usually cancels when deriving the equations of motion, thus the sign convention is unimportant if a consistent sign convention is used.
Rnoncyclic - Routhian is a Hamiltonian for the non-cyclic variables¶
The non-cyclic Routhian Rnoncyclic complements Rcyclic. Again the generalized coordinates between 1≤i≤s are assumed to be non-cyclic, while those between s+1≤i≤n are ignorable cyclic coordinates. However, the expression in terms of (q,p) and (q,q˙) are interchanged, that is, the cyclic variables are expressed in terms of (q,q˙) and the non-cyclic variables are expressed in terms of (q,p) which is opposite of what was used for Rcyclic.
This Routhian behaves like a Hamiltonian for the s non-cyclic variables which are expressed in terms of q and p appropriate for a Hamiltonian. This Routhian writes the m cyclic coordinates in terms of q, and q˙, appropriate for a Lagrangian, which are treated assuming the Routhian Rcyclic is a negative Lagrangian for these cyclic variables as summarized in table 8.6.2.
Hamilton equations
Lagrange equations
Coordinates
Noncyclic: 1≤i≤s
Cyclic: (s+1)≤i≤n
∂qi∂Rnoncyclic=−p˙i
∂qi∂Rnoncyclic=−∂qi∂Lcyclic
Equations of motion
∂pi∂Rnoncyclic=q˙i
∂q˙i∂Rnoncyclic=−∂q˙i∂Lcyclic
This non-cyclic Routhian Rnoncyclic is especially useful since it equals the Hamiltonian for the non-cyclic variables, that is, the kinetic energy for motion of the cyclic variables has been removed. Note that since the cyclic variables are constants of motion, then Rnoncyclic is a constant of motion if H is a constant of motion. However, Rnoncyclic does not equal the total energy since the coordinate transformation is time dependent, that is, Rnoncyclic corresponds to the energy of the non-cyclic parts of the motion. For example, when used to describe rotational motion, Rnoncyclic corresponds to the energy in the non-inertial rotating body-fixed frame of reference. This is especially useful in treating rotating systems such as rotating galaxies, rotating machinery, molecules, or rotating strongly-deformed nuclei as discussed in chapter 12.9.
The Lagrangian and Hamiltonian are the fundamental algebraic approaches to classical mechanics. The Routhian reduction method is a valuable hybrid technique that exploits a trick to reduce the number of variables that have to be solved for complicated problems encountered in science and engineering. The Routhian Rnoncyclic provides the most useful approach for solving the equations of motion for rotating molecules, deformed nuclei, or astrophysical objects in that it gives the Hamiltonian in the non-inertial body-fixed rotating frame of reference ignoring the rotational energy of the frame. By contrast, the cyclic Routhian Rcyclic is especially useful to exploit Lagrangian mechanics for solving problems in rigid-body rotation such as the Tippe Top described in example 14.23.2.
Note that the Lagrangian, Hamiltonian, plus both the Rnoncyclic and Rnoncyclic Routhian’s, all are scalars under rotation, that is, they are rotationally invariant. However, they may be expressed in terms of the coordinates in either the stationary or a rotating frame. The major difference is that the Routhian includes only subsets of the kinetic energy term ∑jpjq˙j. The relative merits of using Lagrangian, Hamiltonian, and both the Rnoncyclic and Rnoncyclic Routhian reduction methods, are illustrated by the following examples.
Lagrangian and Hamiltonian mechanics assume that the total mass and energy of the system are conserved. Variable-mass systems involve transferring mass and energy between donor and receptor bodies. However, such systems still can be conservative if the Lagrangian or Hamiltonian include all the active degrees of freedom for the combined donor-receptor system. The following examples of variable mass systems illustrate subtle complications that occur handling such problems using algebraic mechanics.
Newtonian mechanics was used to solve the rocket problem in chapter 2.12. The equation of motion (2.12.23) relating the rocket thrust Fex to the rate of change of the momentum separated into two terms,
Fex=p˙y=my¨+m˙y˙
The first term is the usual mass times acceleration, while the second term arises from the rate of change of mass times the velocity. The equation of motion for rocket motion is easily derived using either Lagrangian or Hamiltonian mechanics by relating the rocket thrust to the generalized force QjEXC.
The motion of a flexible, frictionless, heavy chain that is falling in a gravitational field, often can be split into two coupled variable-mass partitions that have different chain-link velocities. These partitions are coupled at the moving intersection between the chain partitions. That is, these partitions share time-dependent fractions of the total chain mass. Moving chains were discussed first by Caley in 1857 and since then the moving chain problem has had a controversial history due to the frequent erroneous assumption that, in the gravitational field, the chain partitions fall with acceleration g rather than applying the correct energy conservation assumption for this conservative system. The following two examples of conservative falling-chain systems illustrate solutions obtained using variational principles applied to a single chain that is partitioned into two variable length sections.[1]
Consider the following two possible scenarios for motion of a flexible, heavy, frictionless, chain located in a uniform gravitational field g. The first scenario is the “folded chain” system which assumes that one end of the chain is held fixed, while the adjacent free end is released at the same altitude as the top of the fixed arm, and this free end is allowed to fall in the constant gravitational field g. The second “falling chain”, scenario assumes that one end of the chain is hanging down through a hole in a frictionless, smooth, rigid, horizontal table, with the stationary partition of the chain sitting on the table surrounding the hole. The falling section of this chain is being pulled out of the stationary pile by the hanging partition. Both of these systems are conservative since it is assumed that the total mass of the chain is fixed, and no dissipative forces are acting. The chains are assumed to be inextensible, flexible, and frictionless, and subject to a uniform gravitational field g in the vertical y direction. In both examples, the chain, with mass M and length L, is partitioned into a stationary segment, plus a moving segment, where the mass per unit length of the chain is μ=LM. These partitions are strongly coupled at their intersection which propagates downward with time for the “folded chain” and propagates upward, relative to the lower end of the falling chain, for the “falling chain”. For the “folded chain”, the chain links are transferred from the moving segment to the stationary segment as the moving section falls. By contrast, for the “falling system”, the chain links are transferred from the stationary upper section to the moving lower segment of the chain.
A block of mass m rests on an inclined plane making an angle θ with the horizontal. The inclined plane (a triangular block of mass M) is free to slide horizontally without friction. The block of mass m is also free to slide on the larger block of mass M without friction.
(a) Construct the Lagrangian function.
(b) Derive the equations of motion for this system.
(c) Calculate the canonical momenta.
(d) Construct the Hamiltonian function.
(e) Find which of the two momenta found in part (c) is a constant of motion and discuss why it is so. If the two blocks start from rest, what is the value of this constant of motion?
Discuss among yourselves the following four conditions that can exist for the Hamiltonian and give several examples of systems exhibiting each of the four conditions.
(a) The Hamiltonian is conserved and equals the total mechanical energy
(b) The Hamiltonian is conserved but does not equal the total mechanical energy
(c) The Hamiltonian is not conserved but does equal the total mechanical energy
(d) The Hamiltonian is not conserved and does not equal the mechanical total energy.
A block of mass m rests on an inclined plane making an angle θ with the horizontal. The inclined plane (a triangular block of mass M) is free to slide horizontally without friction. The block of mass m is also free to slide on the larger block of mass M without friction.
(a) Construct the Lagrangian function.
(b) Derive the equations of motion for this system.
(c) Calculate the canonical momenta.
(d) Construct the Hamiltonian function.
(e) Find which of the two momenta found in part (c) is a constant of motion and discuss why it is so. If the two blocks start from rest, what is the value of this constant of motion?
Discuss among yourselves the following four conditions that can exist for the Hamiltonian and give several examples of systems exhibiting each of the four conditions.
a) The Hamiltonian is conserved and equals the total mechanical energy
b) The Hamiltonian is conserved but does not equal the total mechanical energy
c) The Hamiltonian is not conserved but does equal the total mechanical energy
d) The Hamiltonian is not conserved and does not equal the mechanical total energy
Compare the Lagrangian formalism and the Hamiltonian formalism by creating a two-column chart. Label one side “ Lagrangian” and the other side “ Hamiltonian” and discuss the similarities and differences. Here are some ideas to get you started:
What are the basic variables in each formalism?
What are the form and number of the equations of motion derived in each case?
How does the Lagrangian “state space” compare to the Hamiltonian “phase space”?
It can be shown that if L(q,q˙,t) is the Lagrangian of a particle moving in one dimension, then L=L′ where L′(q,q˙,t)=L(q,q˙,t)+dtdf and f(q,t) is an arbitrary function. This problem explores the consequences of this on the Hamiltonian formalism.
(a) Relate the new canonical momentum p′, for L′, to the old canonical momentum p, for L .
(b) Express the new Hamiltonian H′(q′,p′,t) for L′ in terms of the old Hamiltonian H(q,p,t) and f.
(c) Explicitly show that the new Hamilton’s equations for H′ are equivalent to the old Hamilton’s equations for H .
A massless hoop of radius R is rotating about an axis perpendicular to its central axis at constant angular velocity ω. A mass m can freely slide around the hoop.
(a) Determine the Lagrangian of the system.
(b) Determine the Hamiltonian of the system. Does it equal the total mechanical energy?
(c) Determine the Lagrangian of the system with respect to a coordinate frame in which H=T+Veff. What is V eff? What force generates the additional term in Veff ?
Consider a pendulum of length L attached to the end of rod of length R. The rod is rotating at constant angular velocity ω in the plane. Assume the pendulum is always taut.
(a) Determine equations of motion.
(b) For what value of ω2R is this system the same as a plane pendulum in a constant gravitational field?
(c) Show H=E. What is the reason?
A particle of mass m in a gravitational field slides on the inside of a smooth parabola of revolution whose axis is vertical. Using the distance from the axis r, and the azimuthal angle φ as generalized coordinates, find the following.
(a) The Lagrangian of the system.
(b) The generalized momenta and the corresponding Hamiltonian
(c) The equation of motion for the coordinate r as a function of time.
(d) If dtdφ=0, show that the particle can execute small oscillations about the lowest point of the paraboloid and find the frequency of these oscillations.
Consider a particle of mass m which is constrained to move on the surface of a sphere of radius R. There are no external forces of any kind acting on the particle.
(a) What is the number of generalized coordinates necessary to describe the problem?
(b) Choose a set of generalized coordinates and write the Lagrangian of the system.
(c) What is the Hamiltonian of the system? Is it conserved?
(d) Prove that the motion of the particle is along a great circle of the sphere.
A block of mass m is attached to a wedge of mass M by a spring with spring constant k. The inclined frictionless surface of the wedge makes an angle α to the horizontal. The wedge is free to slide on a horizontal frictionless surface as shown in the figure.
(a) Given that the relaxed length of the spring is d, find the values s0 when both book and wedge are stationary.
(b) Find the Lagrangian for the system as a function of the x coordinate of the wedge and the length of spring s. Write down the equations of motion.
(c) What is the natural frequency of vibration?
. A fly-ball governor comprises two masses m connected by 4 hinged arms of length l to a vertical shaft and to a mass M which can slide up or down the shaft without friction in a uniform vertical gravitational field as shown in the figure The assembly is constrained to rotate around the axis of the vertical shaft with same angular velocity as that of the vertical shaft. Neglect the mass of the arms, air friction, and assume that the mass M has a negligible moment of inertia. Assume that the whole system is constrained to rotate with a constant angular velocity ω0.
(a) Choose suitable coordinates and use the Lagrangian to derive equations of motion of the system around the equilibrium position.
(b) Determine the height z of the mass M above its lowest position as a function of ω0.
(c) Find the frequency of small oscillations about this steady motion.
(d) Derive a Routhian that provides the Hamiltonian in the rotating system.
(e) Is the total energy of the fly-ball governor in the rotating frame of reference constant in time?
(f) Suppose that the shaft and assembly are not constrained to rotate at a constant angular velocity ω0, that is, it is allowed to rotate freely at angular velocity φ˙. What is the difference in the overall motion?
A rigid straight, frictionless, massless, rod rotates about the z axis at an angular velocity θ˙. A mass m slides along the frictionless rod and is attached to the rod by a massless spring of spring constant κ.
(a) Derive the Lagrangian and the Hamiltonian
(b) Derive the equations of motion in the stationary frame using Hamiltonian mechanics.
(c) What are the constants of motion?
(d) If the rotation is constrained to have a constant angular velocity θ˙=ω then is the non-cyclic Routhian Rnoncyclic=H−pθθ˙ a constant of motion, and does it equal the total energy?
(e) Use the non-cyclic Routhian Rnoncyclic to derive the radial equation of motion in the rotating frame of reference for the cranked system with θ˙=ω.
A thin uniform rod of length 2L and mass M is suspended from a massless string of length l tied to a nail. Initially the rod hangs vertically. A weak horizontal force F is applied to the rod’s free end.
(a) Write the Lagrangian for this system.
(b) For very short times such that all angles are small, determine the angles that string and the rod make with the vertical. Start from rest at t=0.
(c) Draw a diagram to illustrate the initial motion of the rod.
A uniform ladder of mass M and length 2L is leaning against a frictionless vertical wall with its feet on a frictionless horizontal floor. Initially the stationary ladder is released at an angle θ0=60∘ to the floor. Assume that gravitation field g=9.81m/s2 acts vertically downward and that the moment of inertia of the ladder about its midpoint is I=31ML2.
(a) Derive the Lagrangian
(b) Derive the Hamiltonian
(c) Explain if the Hamiltonian is conserved and/or if it equals the total energy
(d) Use the Lagrangian to derive the equations of motion
(e) Derive the angle θ at which the ladder loses contact with the vertical wall?
The classical mechanics exam induces Jacob to try his hand at bungee jumping. Assume Jacob’s mass m is suspended in a gravitational field by the bungee of unstretched length b and spring constant k. Besides the longitudinal oscillations due to the bungee jump, Jacob also swings with plane pendulum motion in a vertical plane. Use polar coordinates r,ϕ, neglect air drag, and assume that the bungee always is under tension.
(a) Derive the Lagrangian
(b) Determine Lagrange’s equation of motion for angular motion and identify by name the forces contributing to the angular motion.
(c) Determine Lagrange’s equation of motion for radial oscillation and identify by name the forces contributing to the tension in the spring.
(d) Derive the generalized momenta
(e) Determine the Hamiltonian and give all of Hamilton’s equations of motion.
2Recommended****reading:“Classical Mechanics” H. Goldstein, Addison-Wesley, Reading (1950). The present chapter closely follows the notation used by Goldstein to facilitate cross-referencing and reading the many other textbooks that have adopted this notation.
The pk,qk are treated as independent canonical variables. Lagrange was the first to derive the canonical equations but he did not recognize them as a basic set of equations of motion. Hamilton derived the canonical equations of motion from his fundamental variational principle and made them the basis for a far-reaching theory of dynamics. Hamilton’s equations give 2s first-order differential equations for pk,qk for each of the s degrees of freedom. Lagrange’s equations give s second-order differential equations for the variables qk,q˙k.
The Routhian reduction technique is a hybrid of Lagrangian and Hamiltonian mechanics that exploits the advantages of both approaches for solving problems involving cyclic variables. It is especially useful for solving motion in rotating systems in science and engineering. Two Routhians are used frequently for solving the equations of motion of rotating systems. Assuming that the variables between 1≤i≤s are non-cyclic, while the m variables between s+1≤i≤n are ignorable cyclic coordinates, then the two Routhians are:
The Routhian Rcyclic is a negative Lagrangian for the non-cyclic variables between 1≤i≤s, where s=n−m, and is a Hamiltonian for the m cyclic variables between s+1≤i≤n. Since the cyclic variables are constants of the Hamiltonian, their solution is trivial, and the number of variables included in the Lagrangian is reduced from n to s=n−m. The Routhian Rcyclic is useful for solving some problems in classical mechanics. The Routhian Rnoncyclic is a Hamiltonian for the non-cyclic variables between 1≤i≤s, and is a negative Lagrangian for the m cyclic variables between s+1≤i≤n. Since the cyclic variables are constants of motion, the Routhian Rnoncyclic also is a constant of motion but it does not equal the total energy since the coordinate transformation is time dependent. The Routhian Rnoncyclic is especially valuable for solving rotating many-body systems such as galaxies, molecules, or nuclei, since the Routhian Rnoncyclic is the Hamiltonian in the rotating body-fixed coordinate frame.
Two examples of heavy flexible chains falling in a uniform gravitational field were used to illustrate how variable mass systems can be handled using Lagrangian and Hamiltonian mechanics. The falling-mass system is conservative assuming that both the donor plus the receptor body systems are included.
Comparison of Lagrangian and Hamiltonian mechanics¶
Lagrangian and the Hamiltonian dynamics are two powerful and related variational algebraic formulations of mechanics that are based on Hamilton’s action principle. They can be applied to any conservative degrees of freedom as discussed in chapters 7, 9, and 16. Lagrangian and Hamiltonian mechanics both concentrate solely on active forces and can ignore internal forces. They can handle many-body systems and allow convenient generalized coordinates of choice. This ability is impractical or impossible using Newtonian mechanics. Thus it is natural to compare the relative advantages of these two algebraic formalisms in order to decide which should be used for a specific problem.
For a system with n generalized coordinates, plus m constraint forces that are not required to be known, then the Lagrangian approach, using a minimal set of generalized coordinates, reduces to only s=n−msecond-order differential equations and unknowns compared to the Newtonian approach where there are n+m unknowns. Alternatively, use of Lagrange multipliers allows determination of the constraint forces resulting in n+m second order equations and unknowns. The Lagrangian potential function is limited to conservative forces, Lagrange multipliers can be used to handle holonomic forces of constraint, while generalized forces can be used to handle non-conservative and non-holonomic forces. The advantage of the Lagrange equations of motion is that they can deal with any type of force, conservative or non-conservative, and they directly determine q, q˙ rather than q,p which then requires relating p to q˙.
For a system with n generalized coordinates, the Hamiltonian approach determines 2nfirst-order differential equations which are easier to solve than second-order equations. However, the 2n solutions must be combined to determine the equations of motion. The Hamiltonian approach is superior to the Lagrange approach in its ability to obtain an analytical solution of the integrals of the motion. Hamiltonian dynamics also has a means of determining the unknown variables for which the solution assumes a soluble form. Important applications of Hamiltonian mechanics are to quantum mechanics and statistical mechanics, where quantum analogs of qi and pi, can be used to relate to the fundamental variables of Hamiltonian mechanics. This does not apply for the variables qi and q˙i of Lagrangian mechanics. The Hamiltonian approach is especially powerful when the system has m cyclic variables, then the m conjugate momenta pi are constants. Thus the m conjugate variables (qi,pi) can be factored out of the Hamiltonian, which reduces the number of conjugate variables required to n−m. This is not possible using the Lagrangian approach since, even though the m coordinates qi can be factored out, the velocities q˙i still must be included, thus the n conjugate variables must be included. The Lagrange approach is advantageous for obtaining a numerical solution of systems in classical mechanics. However, Hamiltonian mechanics expresses the variables in terms of the fundamental canonical variables (q,p) which provides a more fundamental insight into the underlying physics.2