Newtonian mechanics is based on vector observables such as momentum and force, and Newton’s equations of motion can be derived if the forces are known. However, Newtonian mechanics becomes difficult for many-body systems when constraint forces apply. The alternative algebraic Lagrangian mechanics approach is based on the concept of scalar energies which circumvent many of the difficulties in handling constraint forces and many-body systems.
The Lagrangian approach to classical dynamics is based on the calculus of variations introduced in chapter 5. It was shown that the calculus of variations determines the function yi(x) such that the scalar functional
F=∫x1x2i∑nf[yi(x),yi′(x);x]dx(6.1)
is an extremum, that is, a maximum or minimum. Here x is the independent variable, yi(x) are the n dependent variables, and their derivatives yi′≡dxdyi, where i=1,2,3,..n. The function f[yi(x),yi′(x);x] has an assumed dependence on yi, yi′ and x. The calculus of variations determines the functional dependence of the dependent variables yi(x) on the independent variable x, that is needed to ensure that F is an extremum. For nindependent variables, F has a stationary point, which is presumed to be an extremum, that is determined by solution of Euler’s differential equations
dxd∂yi′∂f−∂yi∂f=0(6.2)
If the coordinates yi(x) are independent, then the Euler equations, 6.2, for each coordinate i are independent. However, for constrained motion, the constraints lead to auxiliary conditions that correlate the coordinates. As shown in chapter 5, a transformation to independent generalized coordinates can be made such that the correlations induced by the constraint forces are embedded into the choice of the independent generalized coordinates. The use of generalized coordinates in Lagrangian mechanics simplifies derivation of the equations of motion for constrained systems. For example, for a system of n coordinates, that involves m holonomic constraints, there are s=n−m independent generalized coordinates. For such holonomic constrained motion, it will be shown that the Euler equations can be solved using either of the following three alternative ways.
The minimal set of generalized coordinates approach involves finding a set of s=n−m independent generalized coordinates qi that satisfy the assumptions underlying 6.2. These generalized coordinates can be determined if the m equations of constraint are holonomic, that is, related by algebraic equations of constraint
gk(qi;x)=0(6.3)
where k=1,2,3,….m. These equations uniquely determine the relationship between the n correlated coordinates. This method has the advantage that it reduces the system of n coordinates, subject to m constraints, to s=n−m independent generalized coordinates which reduces the dimension of the problem to be solved. However, it does not explicitly determine the forces of constraint which are effectively swept under the rug.
The Lagrange multipliers approach takes account of the correlation between the n coordinates and m holonomic constraints by introducing the Lagrange multipliers λk(x). These n generalized coordinates qi are correlated by the m holonomic constraints.
dxd∂qi′∂f−∂qi∂f=k∑mλk(x)∂qi∂gk(6.4)
where i=1,2,3,…n. The Lagrange multiplier approach has the advantage that Euler’s calculus of variations automatically use the n Lagrange equations, plus the m equations of constraint, to explicitly determine both the n coordinates qi plus the m forces of constraint which are related to the Lagrange multipliers λk as given in Equation 6.4. Chapter 6.2 shows that the ∑kmλk(x)∂yi∂gk terms are directly related to the holonomic forces of constraint.
The generalized force approach incorporates the forces of constraint explicitly as will be shown in chapter 6.5.4. Incorporating the constraint forces explicitly allows use of holonomic, non-holonomic, and non-conservative constraint forces.
Understanding the Lagrange formulation of classical mechanics is facilitated by use of a simple non-rigorous plausibility approach that is based on Newton’s laws of motion. This introductory plausibility approach will be followed by two more rigorous derivations of the Lagrangian formulation developed using either d’Alembert Principle or Hamiltons Principle. These better elucidate the physics underlying the Lagrange and Hamiltonian analytic representations of classical mechanics. In 1788 Lagrange derived his equations of motion using the differential d’Alembert Principle, that extends to dynamical systems the Bernoulli Principle of infinitessimal virtual displacements and virtual work. The other approach, developed in 1834, uses the integral Hamilton’s Principle to derive the Lagrange equations. Hamilton’s Principle is discussed in more detail in chapter 9. Euler’s variational calculus underlies d’Alembert’s Principle and Hamilton’s Principle since both are based on the philosophical belief that the laws of nature prefer economy of motion. Chapters 6.2−6.5 show that both d’Alembert’s Principle and Hamilton’s Principle lead to the Euler-Lagrange equations. This will be followed by a series of examples that illustrate the use of Lagrangian mechanics in classical mechanics.
6.2: Newtonian plausibility argument for Lagrangian mechanics¶
Insight into the physics underlying Lagrange mechanics is given by showing the direct relationship between Newtonian and Lagrangian mechanics. The variational approaches to classical mechanics exploit the first-order spatial integral of the force, equation (2.4.8), which equals the work done between the initial and final conditions. The work done is a simple scalar quantity that depends on the initial and final location for conservative forces. Newton’s equation of motion is
F=dtdp(6.5)
The kinetic energy is given by
T=21mv2=2mp⋅p=2mpx2+2mpy2+2mpz2(6.6)
It can be seen that
∂x˙∂T=px(6.7)
and
dtd∂x˙∂T=dtdpx=Fx(6.8)
Consider that the force, acting on a mass m, is arbitrarily separated into two components, one part that is conservative, and thus can be written as the gradient of a scalar potential U, plus the excluded part of the force, FEX. The excluded part of the force FEX could include non-conservative frictional forces as well as forces of constraint which may be conservative or non-conservative. This separation allows the force to be written as
F=−∇U+FEX(6.9)
Along each of the xi axes,
dtd∂x˙i∂T=−∂xi∂U+FxiEX(6.10)
Equation 6.10 can be extended by transforming the cartesian coordinate xi to the generalized coordinates qi.
Define the standard Lagrangian to be the difference between the kinetic energy and the potential energy, which can be written in terms of the generalized coordinates qi as
L(qi,q˙i)≡T(q˙i)−U(qi)(6.11)
Assume that the potential is only a function of the generalized coordinates qi, that is ∂q˙i∂U=0, then
∂q˙i∂L=∂q˙i∂T+∂q˙i∂U=∂q˙i∂T(6.12)
Using the above equations allows Newton’s equation of motion 6.10 to be expressed as
dtd∂q˙i∂L−∂qi∂L=FqiEX(6.13)
The excluded force FqiEX can be partitioned into a holonomic constraint force FqiHC, plus any remaining excluded forces FEXC, as given by
FqiEX=FqiHC+FEXC(6.14)
A comparison of equations 6.13 and (6.1.4) shows that the holonomic constraint forces FqiHC, that are contained in the excluded force FEX, can be identified with the Lagrange multiplier term in equation (6.1.4).
FqiHC≡k∑mλk(t)∂qi∂gk(6.15)
That is the Lagrange multiplier terms can be used to account for holonomic constraint forces FqiHC. Thus Equation 6.13 can be written as
where the Lagrange multiplier term accounts for holonomic constraint forces, and FqiEXC includes all the remaining forces that are not accounted for by the scalar potential U, or the Lagrange multiplier terms FqiHC.
For holonomic, conservative forces it is possible to absorb all the forces into the potential U plus the Lagrange multiplier term, that is FqiEXC=0. Moreover, the use of a minimal set of generalized coordinates allows the holonomic constraint forces to be ignored by explicitly reducing the number of coordinates from n dependent coordinates to s=n−m independent generalized coordinates. That is, the correlations due to the constraint forces are embedded into the generalized coordinates. Then Equation 6.17 reduces to the basic Euler differential equations.
dtd∂q˙i∂L−∂qi∂L=0(6.17)
Note that Equation 6.17 is identical to Euler’s equation (5.8.1), if the independent variable x is replaced by time t. Thus Newton’s equation of motion are equivalent to minimizing the action integral S=∫t1t2Ldt, that is
δS=δ∫t1t2L(qi,q˙i;t)dt=0(6.18)
which is Hamilton’s Principle. Hamilton’s Principle underlies many aspects of physics as discussed in chapter 9, and is used as the starting point for developing classical mechanics. Hamilton’ Principle was postulated 46 years after Lagrange introduced Lagrangian mechanics.
The above plausibility argument, which is based on Newtonian mechanics, illustrates the close connection between the vectorial Newtonian mechanics and the algebraic Lagrangian mechanics approaches to classical mechanics.
6.3: Lagrange Equations from d’Alembert’s Principle¶
The Principle of Virtual Work provides a basis for a rigorous derivation of Lagrangian mechanics. Bernoulli introduced the concept of virtual infinitessimal displacement of a system mentioned in chapter 5.9.1. This refers to a change in the configuration of the system as a result of any arbitrary infinitessimal instantaneous change of the coordinates δri, that is consistent with the forces and constraints imposed on the system at the instant t. Lagrange’s symbol δ is used to designate a virtual displacement which is called “virtual” to imply that there is no change in time t, i.e. δt=0. This distinguishes it from an actual displacement dri of body i during a time interval dt when the forces and constraints may change.
Suppose that the system of n particles is in equilibrium, that is, the total force on each particle i is zero. The virtual work done by the force Fi moving a distance δri is given by the dot product Fi⋅δri. For equilibrium, the sum of all these products for the N bodies also must be zero
i∑NFi⋅δri=0(6.18)
Decomposing the force Fi on particle i into applied forces FiA and constraint forces fiC gives
i∑NFiA⋅δri+i∑NfiC⋅δri=0(6.19)
The second term in Equation 6.19 can be ignored if the virtual work due to the constraint forces is zero. This is rigorously true for rigid bodies and is valid for any forces of constraint where the constraint forces are perpendicular to the constraint surface and the virtual displacement is tangent to this surface. Thus if the constraint forces do no work, then 6.19 reduces to
i∑NFiA⋅δri=0(6.20)
This relation is the Bernoulli’s Principle of Static Virtual Work and is used to solve problems in statics.
Bernoulli introduced dynamics by using Newton’s Law to related force and momentum.
For the special case where the forces of constraint are zero, then Equation 6.24 reduces to d’Alembert’s Principle
i∑N(FiA−p˙i)⋅δri=0(6.25)
d’Alembert’s Principle, by a stroke of genius, cleverly transforms the principle of virtual work from the realm of statics to dynamics. Application of virtual work to statics primarily leads to algebraic equations between the forces, whereas d’Alembert’s principle applied to dynamics leads to differential equations.
In classical mechanical systems the coordinates δri usually are not independent due to the forces of constraint and the constraint-force energy contributes to Equation 6.24. These problems can be eliminated by expressing d’Alembert’s Principle in terms of virtual displacements of nindependent generalized coordinatesqiof the system for which the constraint force term ∑infiC⋅δqi=0. Then the individual variational coefficients δqi are independent and (FiA−p˙i)⋅δqi=0 can be equated to zero for each value of i.
The transformation of the N-body system to n independent generalized coordinates qk can be expressed as
ri=ri(q1,q2,q3…,qn,t)(6.26)
Assuming n independent coordinates, then the velocity vi can be written in terms of general coordinates qk using the chain rule for partial differentiation.
vi≡dtdri=j∑n∂qj∂riq˙j+∂t∂ri(6.27)
The arbitrary virtual displacement δri can be related to the virtual displacement of the generalized coordinate δqj by
δri=j∑n∂qj∂riδqj(6.28)
Note that by definition, a virtual displacement considers only displacements of the coordinates, and no time variation δt is involved.
The above transformations can be used to express d’Alembert’s dynamical principle of virtual work in generalized coordinates. Thus the first term in d’Alembert’s Dynamical Principle, 6.25 becomes
where Qj are called components of the generalized force,[1] defined as
Qj≡i∑nFiA⋅∂qj∂ri(6.30)
Note that just as the generalized coordinates qj need not have the dimensions of length, so the Qj do not necessarily have the dimensions of force, but the product Qjδqj must have the dimensions of work. For example, Qj could be torque and δqj could be the corresponding infinitessimal rotation angle.
The second term in d’Alembert’s Principle 6.25 can be transformed using Equation 6.28
The ∑in21mivi2 term can be identified with the system kinetic energy T. Thus d’Alembert Principle reduces to the relation
j∑N[{dtd(∂q˙j∂T)−∂qj∂T}−Qj]δqj=0(6.38)
For cartesian coordinates T is a function only of velocities (x˙,y˙,z˙) and thus the term ∂qj∂T=0. However, as discussed in appendix 19.3, for curvilinear coordinates ∂qj∂T=0 due to the curvature of the coordinates as is illustrated for polar coordinates where v=r˙r^+rθ˙θ^.
{dtd(∂q˙j∂T)−∂qj∂T}=Qj(6.39)
where n≥j≥1. That is, this leads to n Euler-Lagrange equations of motion for the generalized forces Qj. As discussed in chapter 5.8, when m holonomic constraint forces apply, it is possible to reduce the system to s=n−m independent generalized coordinates for which Equation 6.25 applies.
In 1687 Leibniz proposed minimizing the time integral of his “vis viva", which equals 2T. That is,
δ∫t1t2Tdt=0(6.40)
The variational Equation 6.39 accomplishes the minimization of Equation 6.40. It is remarkable that Leibniz anticipated the basic variational concept prior to the birth of the developers of Lagrangian mechanics, i.e., d’Alembert, Euler, Lagrange, and Hamilton.
The handling of both conservative and non-conservative generalized forces Qj is best achieved by assuming that the generalized force Qj=∑inFiA⋅∂qj∂rˉi can be partitioned into a conservative velocity-independent term, that can be expressed in terms of the gradient of a scalar potential, −∇Ui, plus an excluded generalized force QjEX which contains the non-conservative, velocity-dependent, and all the constraint forces not explicitly included in the potential Uj. That is,
Qj=−∇Uj+QjEX(6.41)
Inserting 6.41 into 6.38, and assuming that the potentialUis velocity independent, allows 6.38 to be rewritten as
Note that if all the generalized coordinates are independent, then the square bracket terms are zero for each value of j, which leads to the general Euler-Lagrange equations of motion.
{dtd(∂q˙j∂L)−∂qj∂L}=QjEX(6.45)
where n≥j≥1.
Chapter 6.5.3 will show that the holonomic constraint forces can be factored out of the generalized force term QjEX which simplifies derivation of the equations of motion using Lagrangian mechanics. The general Euler-Lagrange equations of motion are used extensively in classical mechanics because conservative forces play a ubiquitous role in classical mechanics.
6.4: Lagrange equations from Hamilton’s Principle¶
Lagrange equations from Hamilton’s Action Principle¶
Hamilton published two papers in 1834 and 1835, announcing a fundamental new dynamical principle that underlies both Lagrangian and Hamiltonian mechanics. Hamilton was seeking a theory of optics when he developed Hamilton’s Action Principle, plus the field of Hamiltonian mechanics, both of which play a crucial role in classical mechanics and modern physics. Hamilton’s Action Principle states “dynamical systems follow paths that minimize the time integral of the Lagrangian”. That is, the action functionalS
S=∫t1t2L(q,q˙,t)dt
has a minimum value for the correct path of motion. Hamilton’s Action Principle can be written in terms of a virtual infinitessimal displacement δ, as
δS=δ∫t1t2Ldt=0
Variational calculus therefore implies that a system of s independent generalized coordinates must satisfy the basic Lagrange-Euler equations
dtd∂q˙j∂L−∂qj∂L=0
Note that for QjEX=0, this is the same as equation (6.3.28) which was derived using d’Alembert’s Principle.
This discussion has shown that Euler’s variational differential equation underlies both the differential variational d’Alembert Principle, and the more fundamental integral Hamilton’s Action Principle. As discussed in chapter 9.2, Hamilton’s Principle of Stationary Action adds a fundamental new dimension to classical mechanics which leads to derivation of both Lagrangian and Hamiltonian mechanics. That is, both Hamilton’s Action Principle, and d’Alembert’s Principle, can be used to derive Lagrangian mechanics leading to the most general Lagrange equations that are applicable to both holonomic and non-holonomic constraints, as well as conservative and non-conservative systems. In addition, Chapter 6.2 presented a plausibility argument showing that Lagrangian mechanics can be justified based on Newtonian mechanics. Hamilton’s Action Principle, and d’Alembert’s Principle, can be expressed in terms of generalized coordinates which is much broader in scope than the equations of motion implied using Newtonian mechanics.
The motion for systems subject to constraints is difficult to calculate using Newtonian mechanics because all the unknown constraint forces must be included explicitly with the active forces in order to determine the equations of motion. Lagrangian mechanics avoids these difficulties by allowing selection of independent generalized coordinates that incorporate the correlated motion induced by the constraint forces. This allows the constraint forces acting on the system to be ignored by reducing the system to a minimal set of generalized coordinates. The holonomic constraint forces can be determined using the Lagrange multiplier approach, or all constraint forces can be determined by including them as generalized forces, as described below.
As discussed in chapter 5.8, the flexibility and freedom for selection of generalized coordinates is a considerable advantage of Lagrangian mechanics when handling constrained systems. The generalized coordinates can be any set of independent variables that completely specify the scalar action functional, equation (6.4.1). The generalized coordinates are not required to be orthogonal as is required when using the vectorial Newtonian approach. The secret to using generalized coordinates is to select coordinates that are perpendicular to the constraint forces so that the constraint forces do no work. Moreover, if the constraints are rigid, then the constraint forces do no work in the direction of the constraint force. As a consequence, the constraint forces do not contribute to the action integral and thus the ∑infiC⋅δri term in equation (6.3.2) can be omitted from the action integral. Generalized coordinates allow reducing the number of unknowns from n to s=n−m when the system has m holonomic constraints. In addition, generalized coordinates facilitate using both the Lagrange multipliers, and the generalized forces, approaches for determining the constraint forces.
The set of n generalized coordinates qi are used to describe the motion of the system. No restrictions have been placed on the nature of the constraints other than they are workless for a virtual displacement. If themconstraints are holonomic, then it is possible to find sets of s=n−mindependent generalized coordinatesqj that contain the m constraint conditions implicitly in the transformation equations
ri=ri(q1,q2,q3…,qs,t)(6.49)
For the case of s=n−m unknowns, any virtual displacementδqjis independent ofδqk, therefore the only way for (6.3.27) to hold is for the term in brackets to vanish for each value of j, that is
{dtd(∂q˙j∂L)−∂qj∂L}=QjEX(6.50)
where j=1,2,3,..s. These are the Lagrange equations for the minimal set of sindependent generalized coordinates**.**
If all the generalized forces are conservative plus velocity independent, and are included in the potential U, and QjEX=0, then 6.50 simplifies to
{dtd(∂q˙j∂L)−∂qj∂L}=0(6.51)
This is Euler’s differential equation, derived earlier using the calculus of variations. Thus d’Alembert’s Principle leads to a solution that minimizes the action integral δ∫t1t2Ldt=0 as stated by Hamilton’s Principle.
Equation (6.3.27) sums over all n coordinates for N particles, providing n equations of motion. If the m constraints are holonomic they can be expressed by m algebraic equations of constraint
gk(q1,q2,..qn,t)=0(6.52)
where k=1,2,3,…m. Kinematic constraints can be expressed in terms of the infinitessimal displacements of the form
j=1∑n∂qj∂gk(q,t)dqj+∂t∂gkdt=0(6.53)
where k=1,2,3,…m, j=1,2,3,…n, and where the ∂qj∂gk, and ∂t∂gk are functions of the generalized coordinates qj, described by the vector q, that are derived from the equations of constraint. As discussed in chapter 5.7, if 6.53 represents the total differential of a function, then it can be integrated to give a holonomic relation of the form of Equation 6.52. However, if 6.53 is not the total differential, then it can be integrated only after having solved the full problem. If ∂t∂gk=0 then the kth constraint is scleronomic.
The discussion of Lagrange multipliers in chapter 5.9.1, showed that, for virtual displacements δqj, the correlation of the generalized coordinates, due to the constraint forces, can be taken into account by multiplying 6.53 by unknown Lagrange multipliers λk and summing over all m constraints. Generalized forces can be partitioned into a Lagrange multiplier term plus a remainder force. That is
QjEX=k=1∑mλk∂qj∂gk(q,t)+QjEXC(6.54)
since by definition δt=0 for virtual displacements.
Chapter 5.9.1 showed that holonomic forces of constraint can be taken into account by introducing the Lagrange undetermined multipliers approach, which is equivalent to defining an extended Lagrangian L′(q,q˙,λ,t) where
where QjEXC is the remaining part of the generalized force Qj after subtracting both the part of the force absorbed in the potential energy U, which is buried in the Lagrangian L, as well as the holonomic constraint forces which are included in the Lagrange multiplier terms ∑k=1mλk∂qj∂gk(q,t). The m Lagrange multipliers λk can be chosen arbitrarily in 6.56. Utilizing the free choice of the m Lagrange multipliers λk allows them to be determined in such a way that the coefficients of the first m infinitessimals, i.e. the square brackets vanish. Therefore the expression in the square bracket must vanish for each value of 1≤j≤m. Thus it follows that
In Equation 6.58 the s=n−m infinitessimals δqj can be chosen freely since the s=n−m degrees of freedom are independent. Therefore the expression in the square bracket must vanish for each value of m+1≤j≤n. Thus it follows that
To summarize, the Lagrange multiplier approach 6.60 automatically solves the n equations plus the m holonomic equations of constraint, which determines the n+m unknowns, that is, the n coordinates plus the m forces of constraint. The beauty of the Lagrange multipliers is that all n variables, plus the m constraint forces, are found simultaneously by using the calculus of variations to determine the extremum for the expanded Lagrangian L′(q,q˙,λ,t).
The two right-hand terms in 6.60 can be understood to be those forces acting on the system that are not absorbed into the scalar potential U component of the Lagrangian L. The Lagrange multiplier terms ∑k=1mλk∂qj∂gk(q,t) account for the holonomic forces of constraint that are not included in the conservative potential or in the generalized forces QjEXC. The generalized force
QjEXC=i∑nFiA⋅∂qj∂ri(6.61)
is the sum of the components in the qj direction for all external forces that have not been taken into account by the scalar potential or the Lagrange multipliers. Thus the non-conservative generalized force QjEXC contains non-holonomic constraint forces, including dissipative forces such as drag or friction, that are not included in U, or used in the Lagrange multiplier terms to account for the holonomic constraint forces.
The concept of generalized forces is illustrated by the case of spherical coordinate systems. The attached table gives the displacement elements δqi, (taken from table C4) and the generalized force for the three coordinates. Note that Qi has the dimensions of force and Qi.δqi has the units of energy. By contrast equation (6.3.13) gives that Qθ=Fθr and Qϕ=Fϕr which have the dimensions of torque. However, Qθδθ and Qϕδϕ both have the dimensions of energy as is required in equation (6.3.13). This illustrates that the units used for generalized forces depend on the units of the corresponding generalized coordinate.
Unit vectors
δqi
Qi
Qi⋅δqi
r^
r^dr
r^Fr
Frdr
θ^
θ^rdθ
θ^Fθr
Fθrdθ
ϕ^
ϕ^rsinθdϕ
ϕ^Fϕrsinθ
Fϕrsinθdϕ
6.6: Applying the Euler-Lagrange equations to classical mechanics¶
d’Alembert’s principle of virtual work has been used to derive the Euler-Lagrange equations, which also satisfy Hamilton’s Principle, and the Newtonian plausibility argument. These imply that the actual path taken in configuration space (qi,qi.,t) is the one that minimizes the action integral ∫t1t2L(qj,qj.;t)dt. As a consequence, the Euler equations for the calculus of variations lead to the Lagrange equations of motion.
for n variables, with m equations of constraint. The generalized forces QjEXC are not included in the conservative, potential energy U, or the Lagrange multipliers approach for holonomic equations of constraint.1
The following is a logical procedure for applying the Euler-Lagrange equations to classical mechanics.
1) Select a set of independent generalized coordinates:¶
Select an optimum set of independent generalized coordinates as described in chapter 6.5.1. Use of generalized coordinates is always advantageous since they incorporate the constraints, and can reduce the number of unknowns, both of which simplify use of Lagrangian mechanics
The active forces should be partitioned into the following three groups:
Conservative one-body forces plus the velocity-dependent electromagnetic force which can be characterized by the scalar potential U, that is absorbed into the Lagrangian. The gravitational forces plus the velocity-dependent electromagnetic force can be absorbed into the potential U as discussed in chapter 6.10. This approach is by far the easiest way to account for such forces in Lagrangian mechanics.
Holonomic constraint forces provide algebraic relations that couple some of the generalized coordinates. This coupling can be used either to reduce the number of generalized coordinates used, or to determine these holonomic constraint forces using the Lagrange multiplier approach.
Generalized forces provide a mechanism for introducing non-conservative and non-holonomic constraint forces into Lagrangian mechanics. Typically general forces are used to introduce dissipative forces.
Typical systems can involve a mixture of all three categories of active forces. For example, mechanical systems often include gravity, introduced as a potential, holonomic constraint forces are determined using Lagrange multipliers, and dissipative forces are included as generalized forces.
The ability to embed constraint forces directly into the generalized coordinates is a tremendous advantage enjoyed by the Lagrangian and Hamiltonian variational approaches to classical mechanics. If the constraint forces are not required, then choice of a minimal set of generalized coordinates significantly reduces the number of equations of motion that need to be solved.
Equation 6.60 is solved to determine the n generalized coordinates, plus the m Lagrange multipliers characterizing the holonomic constraint forces, plus any generalized forces that were included. The holonomic constraint forces then are given by evaluating the λk∂qj∂gk(q,t) terms for the m holonomic forces.
In summary, in Lagrangian mechanics is based on energies which are scalars in contrast to Newtonian mechanics which is based on vector forces and momentum. As a consequence, Lagrange mechanics allows use of any set of independent generalized coordinates, which do not have to be orthogonal, and they can have very different units for different variables. The generalized coordinates can incorporate the correlations introduced by constraint forces.
The active forces are split into the following three categories;
Velocity-independent conservative forces are taken into account using scalar potentials Ui.
Holonomic constraint forces can be determined using Lagrange multipliers.
Non-holonomic constraints require use of generalized forces QjEXC.
Use of the concept of scalar potentials is a trivial and powerful way to incorporate conservative forces in Lagrangian mechanics. The Lagrange multipliers approach requires using the Euler-Lagrange equations for n+m coordinates but determines both holonomic constraint forces and equations of motion simultaneously. Non-holonomic constraints and dissipative forces can be incorporated into Lagrangian mechanics via use of generalized forces which broadens the scope of Lagrangian mechanics.
Note that the equations of motion resulting from the Lagrange-Euler algebraic approach are the same equations of motion as obtained using Newtonian mechanics. However, the Lagrangian is a scalar which facilitates rotation into the most convenient frame of reference. This can greatly simplify determination of the equations of motion when constraint forces apply. As discussed in chapter 17, the Lagrangian and the Hamiltonian variational approaches to mechanics are the only viable way to handle relativistic, statistical, and quantum mechanics.
2Euler’s differential equation is ubiquitous in Lagrangian mechanics. Thus, for brevity, it is convenient to define the concept of the Lagrange linear operatorΛj, as described in table 19.6.1.
Λj≡dtd∂q˙j∂−∂qj∂
where Λj operates on the Lagrangian L. Then Euler’s equations can be written compactly in the form ΛjL=0.
Although most dynamical systems involve constrained motion, it is useful to consider examples of systems subject to conservative forces with no constraints . For no constraints, the Lagrange-Euler equations (6.6.1) simplify to ΛjL=0 where j=1,2,..n, and the transformation to generalized coordinates is of no consequence.
6.8: Applications to systems involving holonomic constraints¶
The equations of motion that result from the Lagrange-Euler algebraic approach are the same as those given by Newtonian mechanics. The solution of these equations of motion can be obtained mathematically using the chosen initial conditions. The following simple example of a disk rolling on an inclined plane, is useful for comparing the merits of the Newtonian method with Lagrange mechanics employing either minimal generalized coordinates, the Lagrange multipliers, or the generalized forces approaches.
The following series of examples will gradually increase in complexity, and will illustrate the power, elegance, plus superiority of the Lagrangian approach compared with the Newtonian approach.
In general, non-holonomic constraints can be handled by use of generalized forces QjEXC in the Lagrange-Euler equations (6.5.12). The following examples, 6.9.1−6.9.4, involve one-sided constraints which exhibit holonomic behavior for restricted ranges of the constraint surface in coordinate space, and this range is case specific. When the forces of constraint press the object against the constraint surface, then the system is holonomic, but the holonomic range of coordinate space is limited to situations where the constraint forces are positive. When the constraint force is negative, the object flies free from the constraint surface. In addition, when the frictional force F>Nμstatic where μstatic is the static coefficient of friction, then the object slides negating any rolling constraint that assumes static friction.
The above example illustrates the flexibility provided by Lagrangian mechanics that allows simultaneous use of Lagrange multipliers, generalized forces, and scalar potential to handle combinations of several holonomic and nonholonomic constraints for a complicated problem.
The Lorentz force in electromagnetism is unusual in that it is a velocity-dependent force, as well as being a conservative force that can be treated using the concept of potential. That is, the Lorentz force is
F=q(E+v×B)
It is interesting to use Maxwell’s equations and Lagrangian mechanics to show that the Lorentz force can be represented by a conservative potential in Lagrangian mechanics.
Maxwell’s equations can be written as
$$
∇⋅E∇×E+∂t∂B∇⋅B∇×B−μ0ε0∂t∂E====ε0ρ00J
$$
Since ∇⋅B=0 then it follows from Appendix 19.8 that B****can be represented by the curl of a vector potential, A, that is
B=∇×A
Substituting this into ∇×E+∂t∂B=0 gives that
∇×E+∂t∂∇×A∇×(E+∂t∂A)==00
Since this curl is zero it can be represented by the gradient of a scalar potential U
E+∂t∂A=−∇U
The following shows that this relation corresponds to taking the gradient of a potential U for the charge q where the potential U is given by the relation
U=q(Φ−A⋅v)
where Φ is the scalar electrostatic potential. This scalar potential U can be employed in the Lagrange equations using the Lagrangian
L=21mv⋅v−q(Φ−A⋅v)(6.67)
The Lorentz force can be derived from this Lagrangian by considering the Lagrange equation for the cartesian coordinate x
Corresponding expressions can be obtained for Fy and Fz. Thus the total force is the well-known Lorentz force
F=q(E+v×B)
This has demonstrated that the electromagnetic scalar potential
U=q(Φ−A⋅v)
satisfies Maxwell’s equations, gives the Lorentz force, and it can be absorbed into the Lagrangian. Note that the velocity-dependent Lorentz force is conservative since E is conservative, and because (v×B×v)dt=0, therefore the magnetic force does no work since it is perpendicular to the trajectory. The velocity-dependent conservative Lorentz force is an important and ubiquitous force that features prominently in many branches of science. It will be discussed further for the case of relativistic motion in chapter 16.6.
All examples discussed in this chapter have assumed Lagrangians that are time independent. Mathematical systems where the ordinary differential equations do not depend explicitly on the independent variable, which in this case is time t, are called autonomous systems. Systems having differential equations governing the dynamical behavior that have time-dependent coefficients are called non-autonomous systems.
In principle it is trivial to incorporate time-dependent behavior into the equations of motion by introducing either a time dependent generalized force Q(r,t), or allowing the Lagrangian to be time dependent. For example, in the rocket problem the mass is time dependent. In some cases the time dependent forces can be represented by a time-dependent potential energy rather than using a generalized force. Solutions for non-autonomous systems can be considerably more difficult to obtain, and can involve regions where the motion is stable and other regions where the motion is unstable or chaotic similar to the behavior discussed in chapter 4. The following case of a simple pendulum, whose support is undergoing vertical oscillatory motion, illustrates the complexities that can occur for systems involving time-dependent forces.
Colliding bodies often involve large impulsive forces that act for a short time. As discussed in chapter 2.12.8, the treatment of impulsive forces or torques is greatly simplified if they act for a sufficiently short time that the displacement during the impact can be ignored, even though the instantaneous change in velocities may be large. The simplicity is achieved by taking the time integral of the Euler-Lagrange equations over the duration τ of the impulse and assuming τ→0.
The impact of the impulse on a system can be handled two ways. The first approach is to use the Euler-Lagrange equation during the impulse to determine the equations of motion
dtd(∂q˙j∂L)−∂qj∂L=QjEXC(6.75)
where the impulsive force is introduced using the generalized force QjEXC. Knowing the initial conditions at time t, the conditions at the time t+τ are given by integration of Equation 6.75 over the duration τ of the impulse which gives
This integration determines the conditions at time t+τ which then are used as the initial conditions for the motion when the impulsive force QjEXC is zero.
The second approach is to realize that Equation 6.76 can be rewritten in the form
Note that in the limit that τ→0 then the integral of the generalized momentum pj=∂q˙j∂L simplifies to give the change in generalized momentum Δpj. In addition, assuming that the non-impulsive forces (∂qj∂L) are finite and independent of the instantaneous impulsive force during the infinitessimal duration τ, then the contribution of the non-impulsive forces ∫tt+τ(∂qj∂L)dτ during the impulse can be neglected relative to the large impulsive force term; limτ→0∫tt+τQjEXCdτ. Thus it can be assumed that
Δpj=τ→0lim∫tt+τQjEXCdτ=Q~j(6.78)
where Q~j is the generalized impulse associated with coordinate j=1,2,3,....,n. This generalized impulse can be derived from the time integral of the impulsive forces Pi given by equation (2.12.49) using the time integral of Equation 6.77, that is
Note that the generalized impulse Q~j can be a translational impulse P~j with corresponding translational variable qj, or an angular impulsive torque τ~j with corresponding angular variable ϕj.
Impulsive force problems usually are solved in two stages. Either equations 6.76 or 6.79 are used to determine the conditions of the system immediately following the impulse. If τ→0 then impulse changes the generalized velocities q˙j but not the generalized coordinates qj. The subsequent motion then is determined using the Lagrangian equations of motion with the impulsive generalized force being zero, and assuming that the initial condition corresponds to the result of the impulse calculation.
6.13: The Lagrangian versus the Newtonian approach to classical mechanics¶
It is useful to contrast the differences, and relative advantages, of the Newtonian and Lagrangian formulations of classical mechanics. The Newtonian force-momentum formulation is vectorial in nature, it has cause and effect embedded in it. The Lagrangian approach is cast in terms of kinetic and potential energies which involve only scalar functions and the equations of motion come from a single scalar function, i.e. Lagrangian. The directional properties of the equations of motion come from the requirement that the trajectory is specified by the principle of least action. The directional properties of the vectors in the Newtonian approach assist in our intuition when setting up a problem, but the Lagrangian method is simpler mathematically when the mechanical system is more complex.
The major advantage of the variational approaches to mechanics is that solution of the dynamical equations of motion can be simplified by expressing the motion in terms of independent generalized coordinates . For Lagrangian mechanics these generalized coordinates can be any set of independent variables, qi, where 1≤i≤n, plus the corresponding velocities q˙i. These independent generalized coordinates completely specify the scalar potential and kinetic energies used in the Lagrangian or Hamiltonian. The variational approach allows for a much larger arsenal of possible generalized coordinates than the typical vector coordinates used in Newtonian mechanics. For example, the generalized coordinates can be dimensionless amplitudes for the N normal modes of coupled oscillator systems, or action-angle variables. Moreover, very different generalized coordinates can be used for each of the n variables. The tremendous freedom plus flexibility of the choice of generalized coordinates is important when constraint forces are acting on the system. Generalized coordinates allow the constraint forces to be ignored by including auxiliary conditions to account for the kinematic constraints that lead to correlated motion. The Lagrange method provides an incredibly consistent and mechanistic problem-solving strategy for many-body systems subject to constraints. Expressed in terms of generalized coordinates, the Lagrange’s equations can be applied to a wide variety of physical problems including those involving fields. The manipulation of scalar quantities in a configuration space of generalized coordinates can greatly simplify problems compared with being confined to a rigid orthogonal coordinate system characterized by the Newtonian vector approach.
The use of generalized coordinates in Lagrange’s equations of motion can be applied to a wide range of physical phenomena including field theory, such as for electromagnetic fields, which are beyond the applicability of Newton’s equations of motion. The superiority of the Lagrangian approach compared to the Newtonian approach for solving problems in mechanics is apparent when dealing with holonomic constraint forces. Constraint forces must be known and included explicitly in the Newtonian equations of motion. Unfortunately, knowledge of the equations of motion is required to derive these constraint forces. For holonomic constrained systems, the equations of motion can be solved directly without calculating the constraint forces using the minimal set of generalized coordinate approach to Lagrangian mechanics. Moreover, the Lagrange approach has significant philosophical advantages compared to the Newtonian approach.
rolls without slipping down a plane inclined from the horizontal by an angle
α
. The disk has a short weightless axle of negligible radius. From this axis is suspended a simple pendulum of length
l<R
and whose bob has a mass
m
. Assume that the motion of the pendulum takes place in the plane of the disk.
What generalized coordinates would be appropriate for this situation?
Are there any equations of constraint? If so, what are they?
Find Lagrange’s equations for this system.
A Lagrangian for a particular system can be written as
L=2m(ax˙2+2bx˙y˙+cy˙2)−2K(ax2+2bxy+cy2)
where a,b, and c are arbitrary constants, but subject to the condition that b2−4ac=0.
What are the equations of motion?
Examine the case a=0=c. What physical system does this represent?
Examine the case b=0 and a=−c. What physical system does this represent?
Based on your answers to (b) and (c), determine the physical system represented by the Lagrangian given above.
Consider a particle of mass
m
moving in a plane and subject to an inverse square attractive force.
Obtain the equations of motion.
Is the angular momentum about the origin conserved?
Obtain expressions for the generalized forces. Recall that the generalized forces are defined by
Qj=i∑Fi∂qj∂xi.
Consider a Lagrangian function of the form
L(qi,qi˙,qi¨,t)
. Here the Lagrangian contains a time derivative of the generalized coordinates that is higher than the first. When working with such Lagrangians, the term “generalized mechanics” is used.
Consider a system with one degree of freedom. By applying the methods of the calculus of variations, and assuming that Hamilton’s principle holds with respect to variations which keep both q and q˙ fixed at the end points, show that the corresponding Lagrange equation is
dt2d2(∂q¨∂L)−dtd(∂q˙∂L)+∂q∂L=0.
Such equations of motion have interesting applications in chaos theory.
Apply this result to the Lagrangian
L=−2mqq¨−2kq2.
Do you recognize the equations of motion?
A bead of mass
m
slides under gravity along a smooth wire bent in the shape of a parabola
x2=az
in the vertical
(x,z)
plane.
What kind (holonomic, nonholonomic, scleronomic, rheonomic) of constraint acts on m?
Set up Lagrange’s equation of motion for x with the constraint embedded.
Set up Lagrange’s equations of motion for both x and z with the constraint adjoined and a Lagrangian multiplier λ introduced.
Show that the same equation of motion for x results from either of the methods used in part (b) or part (c).
Express λ in terms of x and x˙.
What are the x and z components of the force of constraint in terms of x and x˙?
Consider the two Lagrangians
L(q,q˙;t)andL′(q,q˙;t)=L(q,q˙;t)+dtdF(q,t)
where F(q,t) is an arbitrary function of the generalized coordinates q(t). Show that these two Lagrangians yield the same Euler-Lagrange equations. As a consequence two Lagrangians that differ only by an exact time derivative are said to be equivalent.
Consider the double pendulum comprising masses
m1
and
m2
connected by inextensible strings as shown in the figure. Assume that the motion of the pendulum takes place in a vertical plane.
Are there any equations of constraint? If so, what are they?
Find Lagrange’s equations for this system.
Consider the system shown in the figure which consists of a mass
m
suspended via a constrained massless link of length
L
where the point
A
is acted upon by a spring of spring constant
k
. The spring is unstretched when the massless link is horizontal. Assume that the holonomic constraints at
A
and
B
are frictionless.
Derive the equations of motion for the system using the method of Lagrange multipliers.
Consider a pendulum, with mass
m
, connected to a (horizontally) moveable support of mass
M
.
Determine the Lagrangian of the system.
Determine the equations of motion for θ≪1.
Find an equation of motion in θ alone. What is the frequency of oscillation?
What is the frequency of oscillation for M≫m? Does this make sense?
A sphere of radius ρ is constrained to roll without slipping on the lower half of the inner surface of a hollow cylinder of radius R. Determine the Lagrangian function, the equation of constraint, and the Lagrange equations of motion. Find the frequency of small oscillations.
A particle moves in a plane under the influence of a force f=−Arα−1 directed toward the origin; A and α(>0) are constants. Choose generalized coordinates with the potential energy zero at the origin.
Find the Lagrangian equations of motion.
Is the angular momentum about the origin conserved?
Is the total energy conserved?
Two blocks, each of mass M, are connected by an extensionless, uniform string of length l. One block is placed on a frictionless horizontal surface, and the other block hangs over the side, the string passing over a frictionless pulley. Describe the motion of the system:
when the mass of the string is negligible
when the string has mass m.
Two masses m1 and m2(m1=m2) are connected by a rigid rod of length d and of negligible mass. An extensionless string of length l1 is attached to m1 and connected to a fixed point of the support P. Similarly a string of length l2(l1=l2) connects m2 and P. Obtain the equation of motion describing the motion in the plane of m1,m2, and P, and find the frequency of small oscillation around the equilibrium position.
A thin uniform rigid rod of length 2L and mass M is suspended by a massless string of length l. Initially the system is hanging vertically downwards in the gravitational field g. Use as generalized coordinates the angles given in the diagram.
Derive the Lagrangian for the system.
Use the Lagrangian to derive the equations of motion
A horizontal impulsive force Fx in the x direction strikes the bottom end of the rod for an infinitessimal time τ. Derive the initial conditions for the system immediately after the impulse has occurred.
Draw a diagram showing the geometry of the pendulum shortly after the impulse when the displacement angles are significant.
Newtonian plausibility argument for Lagrangian mechanics¶
A justification for introducing the calculus of variations to classical mechanics becomes apparent when the concept of the Lagrangian L≡T−U is used in the functional and time t is the independent variable. It was shown that Newton’s equation of motion can be rewritten as
dtd∂q˙i∂L−∂qi∂L=FqiEX(6.12)
where FyiEX are the excluded forces of constraint plus any other conservative or non-conservative forces not included in the potential U. This corresponds to the Euler-Lagrange equation for determining the minimum of the time integral of the Lagrangian.
where the Lagrange multiplier term accounts for holonomic constraint forces, and FqiEXC includes all additional forces not accounted for by the scalar potential U, or the Lagrange multiplier terms FqiHC. The constraint forces can be included explicitly as generalized forces in the excluded term FqiEXC of Equation \text{(6.15)}.
cleverly transforms the principle of virtual work from the realm of statics to dynamics. Application of virtual work to statics primarily leads to algebraic equations between the forces, whereas d’Alembert’s principle applied to dynamics leads to differential equations.
After transforming to generalized coordinates, d’Alembert’s Principle leads to
j∑N[{dtd(∂q˙j∂T)−∂qj∂T}−Qj]δqj=0(6.38)
If all the n coordinates qj are independent, then Equation \text{(6.38)} implies that the term in the square brackets is zero for each individual value of j. That is, this implies the basic Euler-Lagrange equations of motion.
The handling of both conservative and non-conservative generalized forces Qj is best achieved by assuming that the generalized force Qj=∑inFiA⋅∂qj∂rˉi can be partitioned into a conservative velocity-independent term, that can be expressed in terms of the gradient of a scalar potential, −∇Ui, plus an excluded generalized force QjEX which contains the non-conservative, velocity-dependent, and all the constraint forces not explicitly included in the potential Uj. That is,
Qj=−∇Uj+QjEX(6.41)
Inserting \text{(6.41)} into \text{(6.38)}, and assuming that the potentialUis velocity independent, allows \text{(6.38)} to be rewritten as
Expressed in terms of the standard Lagrangian L=T−U this gives
j∑N[{dtd(∂q˙j∂L)−∂qj∂L}−QjEX]δqj=0(6.44)
Note that Equation \text{(6.44)} contains the basic Euler-Lagrange Equation \text{(6.38)} for the special case when U=0. In addition, note that if all the generalized coordinates are independent, then the square bracket terms are zero for each value of j, which leads to the ngeneral Euler-Lagrange equations of motion
{dtd(∂q˙j∂L)−∂qj∂L}=QjEX(6.45)
where n≥j≥1. Newtonian mechanics has trouble handling constraint forces because they lead to coupling of the degrees of freedom. Lagrangian mechanics is more powerful since it provides the following three ways to handle such correlated motion.
If the n coordinates qj are independent, then the square bracket equals zero for each value of j in Equation \text{(6.44)}, which corresponds to Euler’s equation for each of the n independent coordinates. If the n generalized coordinates are coupled by m constraints, then the coordinates can be transformed to a minimal set of s=n−m independent coordinates which then can be solved by applying Equation \text{(6.45)} to the minimal set of s independent coordinates.
The Lagrangian method concentrates solely on active forces, completely ignoring all other internal forces. In Lagrangian mechanics the generalized forces, corresponding to each generalized coordinate, can be partitioned three ways
Qj=−∇U+k=1∑mλk∂qj∂gk(q,t)+QjEXC
where the velocity-independent conservative forces can be absorbed into a scalar potential U, the holonomic constraint forces can be handled using the Lagrange multiplier term ∑k=1mλk∂qj∂gk(q,t), and the remaining part of the active forces can be absorbed into the generalized force QjEXC. The scalar potential energy U is handled by absorbing it into the standard Lagrangian L=T−U. If the constraint forces are holonomic then these forces are easily and elegantly handled by use of Lagrange multipliers. All remaining forces, including dissipative forces, can be handled by including them explicitly in the generalized force QjEXC.
Use of the Lagrange multipliers to handle the m constraint forces ensures that all n infinitessimals δqj are independent implying that the expression in the square bracket must be zero for each of the n values of j. This leads to n Lagrange equations plus m constraint relations
The two right-hand terms in \text{(6.60)} can be understood to be those forces acting on the system that are not absorbed into the scalar potential U component of the Lagrangian L. The Lagrange multiplier terms ∑k=1mλk∂qj∂gk(q,t) account for the holonomic forces of constraint that are not included in the conservative potential or in the generalized forces QjEXC. The generalized force
QjEXC=i∑nFiA⋅∂pj∂ri(6.17)
is the sum of the components in the qj direction for all external forces that have not been taken into account by the scalar potential or the Lagrange multipliers. Thus the non-conservative generalized force QjEXC contains non-holonomic constraint forces, including dissipative forces such as drag or friction, that are not included in U, or used in the Lagrange multiplier terms to account for the holonomic constraint forces.
Applying the Euler-Lagrange equations in mechanics:¶
The optimal way to exploit Lagrangian mechanics is as follows:
Select a set of independent generalized coordinates.
Usually velocity-dependent forces are non-holonomic. However, electromagnetism is a special case where the velocity-dependent Lorentz force F=q(E+v×B) can be obtained from a velocity-dependent potential function U(q,q.,t). It was shown that the velocity-dependent potential
U=qΦ−qv⋅A(6.74)
leads to the Lorentz force where Φ is the scalar electric potential and A the vector potential.
It was shown that time-dependent forces can lead to complicated motion having both stable regions and unstable regions of motion that can exhibit chaos.
A generalized impulse Q~j can be derived for an instantaneous impulsive force from the time integral of the impulsive forces Pi given by equation (3.12.49) using the time integral of equation (7.2.13), that is
Note that the generalized impulse Q~j can be a translational impulse P~j with corresponding translational variable qj or an angular impulsive torque T~j with corresponding angular variable ϕj.
Comparison of Newtonian and Lagrangian mechanics:¶
In contrast to Newtonian mechanics, which is based on knowing all the vector forces acting on a system, Lagrangian mechanics can derive the equations of motion using generalized coordinates without requiring knowledge of the constraint forces acting on the system. Lagrangian mechanics provides a remarkably powerful, and incredibly consistent, approach to solving for the equations of motion in classical mechanics which is especially powerful for handling systems that are subject to holonomic constraints.