Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

6.1: Introduction to Lagrangian Dynamics

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)y_i(x) such that the scalar functional

F=x1x2inf[yi(x),yi(x);x]dx(6.1)F = \int^{x_2}_{x_1} \sum^n_i f[y_i (x), y^{\prime}_i (x); x] dx \tag{6.1}

is an extremum, that is, a maximum or minimum. Here xx is the independent variable, yi(x)y_i(x) are the nn dependent variables, and their derivatives yidyidxy^{\prime}_i \equiv \frac{dy_i}{dx}, where i=1,2,3,..ni = 1, 2, 3, ..n. The function f[yi(x),yi(x);x]f [ y_i(x), y^{\prime}_i (x); x] has an assumed dependence on yiy_i, yiy^{\prime}_i and xx. The calculus of variations determines the functional dependence of the dependent variables yi(x)y_i(x) on the independent variable xx, that is needed to ensure that FF is an extremum. For nn independent variables, FF has a stationary point, which is presumed to be an extremum, that is determined by solution of Euler’s differential equations

ddxfyifyi=0(6.2)\frac{d}{dx}\frac{\partial f}{\partial y_{i}^{\prime }}-\frac{\partial f}{ \partial y_{i}}=0\tag{6.2}

If the coordinates yi(x)y_{i}(x) are independent, then the Euler equations, 6.2, for each coordinate ii 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 nn coordinates, that involves mm holonomic constraints, there are s=nms=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.

  1. The minimal set of generalized coordinates approach involves finding a set of s=nms=n-m independent generalized coordinates qiq_{i} that satisfy the assumptions underlying 6.2. These generalized coordinates can be determined if the mm equations of constraint are holonomic, that is, related by algebraic equations of constraint

gk(qi;x)=0(6.3)g_{k}(q_{i};x)=0\tag{6.3}

where k=1,2,3,.m.k=1,2,3,\dots .m. These equations uniquely determine the relationship between the nn correlated coordinates. This method has the advantage that it reduces the system of nn coordinates, subject to mm constraints, to s=nms=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.

  1. The Lagrange multipliers approach takes account of the correlation between the nn coordinates and mm holonomic constraints by introducing the Lagrange multipliers λk(x)\lambda _{k}(x). These nn generalized coordinates qiq_{i} are correlated by the mm holonomic constraints.

ddxfqifqi=kmλk(x)gkqi(6.4)\frac{d}{dx}\frac{\partial f}{\partial q_{i}^{\prime }}-\frac{\partial f}{ \partial q_{i}}=\sum_{k}^{m}\lambda _{k}\left( x\right) \frac{\partial g_{k} }{\partial q_{i}}\tag{6.4}

where i=1,2,3,ni=1,2,3,\dots n. The Lagrange multiplier approach has the advantage that Euler’s calculus of variations automatically use the nn Lagrange equations, plus the mm equations of constraint, to explicitly determine both the nn coordinates qiq_{i} plus the mm forces of constraint which are related to the Lagrange multipliers λk\lambda _{k} as given in Equation 6.4. Chapter 6.2 shows that the kmλk(x)gkyi\sum_{k}^{m}\lambda _{k}\left( x\right) \frac{\partial g_{k}}{\partial y_{i}} terms are directly related to the holonomic forces of constraint.

  1. 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.26.56.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=dpdt(6.5)\tag{6.5} \mathbf{F}=\frac{d\mathbf{p}}{dt}

The kinetic energy is given by

T=12mv2=pp2m=px22m+py22m+pz22m(6.6)\tag{6.6} T=\frac{1}{2}mv^{2}=\frac{\mathbf{p}\cdot \mathbf{p}}{2m}=\frac{p_{x}^{2}}{2m }+\frac{p_{y}^{2}}{2m}+\frac{p_{z}^{2}}{2m} \notag

It can be seen that

Tx˙=px(6.7)\tag{6.7} \frac{\partial T}{\partial \dot{x}}=p_{x}

and

ddtTx˙=dpxdt=Fx(6.8)\tag{6.8} \frac{d}{dt}\frac{\partial T}{\partial \dot{x}}=\frac{dp_{x}}{dt}=F_{x}

Consider that the force, acting on a mass m,m, is arbitrarily separated into two components, one part that is conservative, and thus can be written as the gradient of a scalar potential UU, plus the excluded part of the force, FEXF^{EX}. The excluded part of the force FEXF^{EX} 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)\tag{6.9} \mathbf{F}=-\mathbf{\nabla }U+\mathbf{F}^{EX}

Along each of the xix_{i} axes,

ddtTx˙i=Uxi+FxiEX(6.10)\tag{6.10} \frac{d}{dt}\frac{\partial T}{\partial \dot{x}_{i}}=-\frac{\partial U}{ \partial x_{i}}+F_{x_{i}}^{EX}

Equation 6.10 can be extended by transforming the cartesian coordinate xix_{i} to the generalized coordinates qi.q_{i}.

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 qiq_{i} as

L(qi,q˙i)T(q˙i)U(qi)(6.11)\tag{6.11} L(q_{i},\dot{q}_{i})\equiv T(\dot{q}_{i})-U(q_{i})

Assume that the potential is only a function of the generalized coordinates qi,q_{i}, that is Uq˙i=0,\frac{\partial U}{\partial \dot{q}_{i}}=0, then

Lq˙i=Tq˙i+Uq˙i=Tq˙i(6.12)\tag{6.12} \frac{\partial L}{\partial \dot{q}_{i}}=\frac{\partial T}{\partial \dot{q} _{i}}+\frac{\partial U}{\partial \dot{q}_{i}}=\frac{\partial T}{\partial \dot{q}_{i}}

Using the above equations allows Newton’s equation of motion 6.10 to be expressed as

ddtLq˙iLqi=FqiEX(6.13)\tag{6.13} \frac{d}{dt}\frac{\partial L}{\partial \dot{q}_{i}}-\frac{\partial L}{ \partial q_{i}}=F_{q_{i}}^{EX}

The excluded force FqiEXF_{q_{i}}^{EX} can be partitioned into a holonomic constraint force FqiHC,F_{q_{i}}^{HC}, plus any remaining excluded forces FEXC,F^{EXC}, as given by

FqiEX=FqiHC+FEXC(6.14)\tag{6.14} F_{q_{i}}^{EX}=F_{q_{i}}^{HC}+F^{EXC}

A comparison of equations 6.13 and (6.1.4)(6.1.4) shows that the holonomic constraint forces FqiHC,F_{q_{i}}^{HC}, that are contained in the excluded force FEX,F^{EX}, can be identified with the Lagrange multiplier term in equation (6.1.4)(6.1.4).

FqiHCkmλk(t)gkqi(6.15)\tag{6.15} F_{q_{i}}^{HC}\equiv \sum_{k}^{m}\lambda _{k}\left( t\right) \frac{\partial g_{k}}{\partial q_{i}}

That is the Lagrange multiplier terms can be used to account for holonomic constraint forces FqiHCF_{q_{i}}^{HC}. Thus Equation 6.13 can be written as

ddtLq˙iLqi=kmλk(t)gkqi+FqiEXC(6.16)\tag{6.16} \frac{d}{dt}\frac{\partial L}{\partial \dot{q}_{i}}-\frac{\partial L}{ \partial q_{i}}=\sum_{k}^{m}\lambda _{k}\left( t\right) \frac{\partial g_{k} }{\partial q_{i}}+F_{q_{i}}^{EXC}

where the Lagrange multiplier term accounts for holonomic constraint forces, and FqiEXCF_{q_{i}}^{EXC} includes all the remaining forces that are not accounted for by the scalar potential UU, or the Lagrange multiplier terms FqiHCF_{q_{i}}^{HC}.

For holonomic, conservative forces it is possible to absorb all the forces into the potential UU plus the Lagrange multiplier term, that is FqiEXC=0.F_{q_{i}}^{EXC}=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 nn dependent coordinates to s=nms=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.

ddtLq˙iLqi=0(6.17)\tag{6.17} \frac{d}{dt}\frac{\partial L}{\partial \dot{q}_{i}}-\frac{\partial L}{ \partial q_{i}}=0

Note that Equation 6.17 is identical to Euler’s equation (5.8.1), if the independent variable xx is replaced by time tt. Thus Newton’s equation of motion are equivalent to minimizing the action integral S=t1t2LdtS= \int_{t_{1}}^{t_{2}}Ldt, that is

δS=δt1t2L(qi,q˙i;t)dt=0(6.18)\tag{6.18} \delta S=\delta \int_{t_{1}}^{t_{2}}L(q_{i},\dot{q}_{i};t)dt=0

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

d’Alembert’s Principle of virtual work

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,\delta \mathbf{r}_{i}, that is consistent with the forces and constraints imposed on the system at the instant tt. Lagrange’s symbol δ\delta is used to designate a virtual displacement which is called “virtual” to imply that there is no change in time tt, i.e. δt=0\delta t=0. This distinguishes it from an actual displacement drid\mathbf{r} _{i} of body ii during a time interval dtdt when the forces and constraints may change.

Suppose that the system of nn particles is in equilibrium, that is, the total force on each particle ii is zero. The virtual work done by the force Fi\mathbf{F}_{i} moving a distance δri\delta \mathbf{r}_{i} is given by the dot product Fiδri\mathbf{F}_{i}\cdot \delta \mathbf{r}_{i}. For equilibrium, the sum of all these products for the NN bodies also must be zero

iNFiδri=0(6.18)\tag{6.18}\sum_{i}^{N}\mathbf{F}_{i}\cdot \delta \mathbf{r}_{i}=0

Decomposing the force Fi\mathbf{F}_{i} on particle ii into applied forces FiA\mathbf{F}_{i}^{A} and constraint forces fiC\mathbf{f}_{i}^{C} gives

iNFiAδri+iNfiCδri=0(6.19)\tag{6.19} \sum_{i}^{N}\mathbf{F}_{i}^{A}\cdot \delta \mathbf{r}_{i}+\sum_{i}^{N} \mathbf{f}_{i}^{C}\cdot \delta \mathbf{r}_{i}=0

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

iNFiAδri=0(6.20)\tag{6.20} \sum_{i}^{N}\mathbf{F}_{i}^{A}\cdot \delta \mathbf{r}_{i}=0

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.

Fi=p˙i(6.21)\tag{6.21} \mathbf{F}_{i}=\mathbf{ \dot{p}}_{i}

Equation 6.21 can be rewritten as

Fip˙i=0(6.22)\mathbf{F}_{i}-\mathbf{\dot{p}}_{i}=0\tag{6.22}

In 1742, d’Alembert developed the Principle of Dynamic Virtual Work in the form

iN(Fip˙i)δri=0(6.23)\sum^N_i (\mathbf{F}_i-\mathbf{\dot{p}}_i) \cdot \delta \mathbf{r}_i = 0 \tag{6.23}

Using equations 6.19 plus 6.23 gives

iN(FiAp˙i)δri+iN(fiCδri=0(6.24)\sum^N_i (\mathbf{F}^A_i-\mathbf{\dot{p}}_i) \cdot \delta \mathbf{r}_i + \sum^N_i (\mathbf{f}^C_i \cdot \delta \mathbf{r}_i = 0 \tag{6.24}

For the special case where the forces of constraint are zero, then Equation 6.24 reduces to d’Alembert’s Principle

iN(FiAp˙i)δri=0(6.25)\tag{6.25} \sum_{i}^{N}(\mathbf{F}_{i}^{A}-\mathbf{ \dot{p}}_{i})\cdot \delta \mathbf{r}_{i}=0

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.

Transformation to generalized coordinates

In classical mechanical systems the coordinates δri\delta \mathbf{r}_{i} 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 nn independent generalized coordinates qi q_{i \text{ }}of the system for which the constraint force term infiCδqi=0\sum_{i}^{n} \mathbf{f}_{i}^{C}\cdot \delta \mathbf{q}_{i}=0. Then the individual variational coefficients δqi\delta q_{i} are independent and (FiAp˙i)δqi=0(\mathbf{F} _{i}^{A}-\mathbf{\dot{p}}_{i})\cdot \delta \mathbf{q}_{i}=0 can be equated to zero for each value of ii.

The transformation of the NN-body system to nn independent generalized coordinates qkq_{k} can be expressed as

ri=ri(q1,q2,q3,qn,t)(6.26)\tag{6.26} \mathbf{r}_{i}=\mathbf{r}_{i}(q_{1},q_{2},q_{3} \dots ,q_{n},t)

Assuming nn independent coordinates, then the velocity vi\mathbf{v}_{i} can be written in terms of general coordinates qkq_{k} using the chain rule for partial differentiation.

vidridt=jnriqjq˙j+rit(6.27)\tag{6.27} \mathbf{v}_{i}\equiv \frac{d\mathbf{r}_{i}}{dt}=\sum_{j}^{n}\frac{\partial \mathbf{r}_{i}}{ \partial q_{j}}\dot{q}_{j}+\frac{\partial \mathbf{r}_{i}}{\partial t}

The arbitrary virtual displacement δri\delta \mathbf{r}_{i} can be related to the virtual displacement of the generalized coordinate δqj\delta q_{j} by

δri=jnriqjδqj(6.28)\tag{6.28} \delta \mathbf{r}_{i}=\sum_{j}^{n}\frac{\partial \mathbf{r}_{i}}{\partial q_{j}}\delta q_{j}

Note that by definition, a virtual displacement considers only displacements of the coordinates, and no time variation δt\delta 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

inFiAδri=i,jnFiAriqjδqj=jnQjδqj(6.29)\tag{6.29} \sum_{i}^{n}\mathbf{F}_{i}^{A}\cdot \delta \mathbf{r}_{i}=\sum_{i,j}^{n} \mathbf{F}_{i}^{A}\cdot \frac{\partial \mathbf{r}_{i}}{\partial q_{j}}\delta q_{j}=\sum_{j}^{n}Q_{j}\delta q_{j}

where QjQ_{j} are called components of the generalized force,[1] defined as

QjinFiAriqj(6.30)\tag{6.30} Q_{j}\equiv \sum_{i}^{n}\mathbf{F}_{i}^{A}\cdot \frac{\partial \mathbf{r}_{i}}{\partial q_{j}}

Note that just as the generalized coordinates qjq_{j} need not have the dimensions of length, so the QjQ_{j} do not necessarily have the dimensions of force, but the product QjδqjQ_{j}\delta q_{j} must have the dimensions of work. For example, QjQ_{j} could be torque and δqj\delta q_{j} could be the corresponding infinitessimal rotation angle.

The second term in d’Alembert’s Principle 6.25 can be transformed using Equation 6.28

inp˙iδri=inmir¨iδri=(inmir¨iriqj)δqj(6.31)\tag{6.31} \sum_{i}^{n}\mathbf{\dot{p}}_{i}\cdot \delta \mathbf{r}_{i}=\sum_{i}^{n}m_{i} \mathbf{\ddot{r}}_{i}\cdot \delta \mathbf{r}_{i}=\left( \sum_{i}^{n}m_{i} \mathbf{\ddot{r}}_{i}\cdot \frac{\partial \mathbf{r}_{i}}{\partial q_{j}} \right) \delta q_{j}

The right-hand side of 6.31 can be rewritten as

(inmir¨iriqj)δqj=in{ddt(mir˙iriqj)mir˙iddt(riqj)}δqj(6.32)\tag{6.32} \left( \sum_{i}^{n}m_{i}\mathbf{\ddot{r}}_{i}\cdot \frac{\partial \mathbf{r} _{i}}{\partial q_{j}}\right) \delta q_{j}=\sum_{i}^{n}\left\{ \frac{d}{dt} \left( m_{i}\mathbf{\dot{r}}_{i}\cdot \frac{\partial \mathbf{r}_{i}}{ \partial q_{j}}\right) -m_{i}\mathbf{\dot{r}}_{i}\cdot \frac{d}{dt}\left( \frac{\partial \mathbf{r}_{i}}{\partial q_{j}}\right) \right\} \delta q_{j}

Note that Equation 6.27 gives that

viq˙j=riqj(6.33)\tag{6.33} \frac{\partial \mathbf{v}_{i}}{\partial \dot{q}_{j}}=\frac{\partial \mathbf{r }_{i}}{\partial q_{j}}

therefore the first right-hand term in 6.32 can be written as

ddt(mir˙iriqj)=ddt(miviviq˙j)(6.34)\tag{6.34} \frac{d}{dt}\left( m_{i}\mathbf{\dot{r}}_{i}\cdot \frac{\partial \mathbf{r} _{i}}{\partial q_{j}}\right) =\frac{d}{dt}\left( m_{i}\mathbf{v}_{i}\cdot \frac{\partial \mathbf{v}_{i}}{\partial \dot{q}_{j}}\right)

The second right-hand term in 6.32 can be rewritten by interchanging the order of the differentiation with respect to tt and qjq_{j}

ddt(riqj)=viqj(6.35)\tag{6.35} \frac{d}{dt}\left( \frac{\partial \mathbf{r}_{i}}{\partial q_{j}}\right) = \frac{\partial \mathbf{v}_{i}}{\partial q_{j}}

Substituting 6.34 and 6.35 into 6.32 gives

inp˙iδri=(inmir¨iriqj)δqj=iN{ddt(miviviq˙j)miviviqj}δqj(6.36)\tag{6.36} \sum_{i}^{n}\mathbf{\dot{p}}_{i}\cdot \delta \mathbf{r}_{i}=\left( \sum_{i}^{n}m_{i}\mathbf{\ddot{r}}_{i}\cdot \frac{\partial \mathbf{r}_{i}}{ \partial q_{j}}\right) \delta q_{j}=\sum_{i}^{N}\left\{ \frac{d}{dt}\left( m_{i}\mathbf{v}_{i}\cdot \frac{\partial \mathbf{v}_{i}}{\partial \dot{q}_{j}} \right) -m_{i}\mathbf{v}_{i}\cdot \frac{\partial \mathbf{v}_{i}}{\partial q_{j}}\right\} \delta q_{j}

Inserting 6.29 and 6.36 into d’Alembert’s Principle 6.25 leads to the relation

in(FiAp˙i)δri=jN{ddt(q˙j(i12mivi2))qj(iN12mivi2)Qj}δqj=0(6.37)\tag{6.37} \sum_{i}^{n}(\mathbf{F}_{i}^{A}-\mathbf{\dot{p}}_{i})\cdot \delta \mathbf{r} _{i}=-\sum_{j}^{N}\left\{ \frac{d}{dt}\left( \frac{\partial }{\partial \dot{q }_{j}}\left( \sum_{i}\frac{1}{2}m_{i}v_{i}^{2}\right) \right) -\frac{ \partial }{\partial q_{j}}\left( \sum_{i}^{N}\frac{1}{2}m_{i}v_{i}^{2} \right) -Q_{j}\right\} \delta q_{j}=0

The in12mivi2\sum_{i}^{n}\frac{1}{2}m_{i}v_{i}^{2} term can be identified with the system kinetic energy TT. Thus d’Alembert Principle reduces to the relation

jN[{ddt(Tq˙j)Tqj}Qj]δqj=0(6.38)\tag{6.38} \sum_{j}^{N}\left[ \left\{ \frac{d}{dt}\left( \frac{\partial T}{\partial \dot{q}_{j}}\right) -\frac{\partial T}{\partial q_{j}}\right\} -Q_{j}\right] \delta q_{j}=0

For cartesian coordinates TT is a function only of velocities (x˙,y˙,z˙)(\dot{x}, \dot{y},\dot{z}) and thus the term Tqj=0.\frac{\partial T}{\partial q_{j}}=0. However, as discussed in appendix 19.3, for curvilinear coordinates Tqj0\frac{\partial T}{\partial q_{j}}\neq 0 due to the curvature of the coordinates as is illustrated for polar coordinates where v=r˙r^+rθ˙θ^\mathbf{v=}\dot{r} \mathbf{\hat{r}}+r\dot{\theta}\mathbf{\hat{\theta}}.

{ddt(Tq˙j)Tqj}=Qj(6.39)\tag{6.39} \left\{ \frac{d}{dt}\left( \frac{\partial T}{\partial \dot{q}_{j}}\right) - \frac{\partial T}{\partial q_{j}}\right\} =Q_{j}

where nj1n\geq j\geq 1. That is, this leads to nn Euler-Lagrange equations of motion for the generalized forces QjQ_{j}. As discussed in chapter 5.8,5.8, when mm holonomic constraint forces apply, it is possible to reduce the system to s=nms=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.2T. That is,

δt1t2Tdt=0(6.40)\tag{6.40} \delta \int_{t_{1}}^{t_{2}}Tdt=0

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.

Lagrangian

The handling of both conservative and non-conservative generalized forces QjQ_{j} is best achieved by assuming that the generalized force Qj=inFiArˉiqjQ_{j}=\sum_{i}^{n}\mathbf{F}_{i}^{A}\cdot \frac{\partial \mathbf{\bar{r}}_{i} }{\partial q_{j}} can be partitioned into a conservative velocity-independent term, that can be expressed in terms of the gradient of a scalar potential, Ui,-\mathbf{\nabla }U_{i}, plus an excluded generalized force QjEXQ_{j}^{EX} which contains the non-conservative, velocity-dependent, and all the constraint forces not explicitly included in the potential UjU_{j}. That is,

Qj=Uj+QjEX(6.41)\tag{6.41} Q_{j}=-\mathbf{\nabla }U_{j}+Q_{j}^{EX}

Inserting 6.41 into 6.38, and assuming that the potential UU is velocity independent, allows 6.38 to be rewritten as

j[{ddt((TU)q˙j)(TU)qj}QjEX]δqj=0(6.42)\tag{6.42} \sum_{j}\left[ \left\{ \frac{d}{dt}\left( \frac{\partial (T-U)}{\partial \dot{q}_{j}}\right) -\frac{\partial (T-U)}{\partial q_{j}}\right\} -Q_{j}^{EX}\right] \delta q_{j}=0

The standard definition of the Lagrangian is

LTU(6.43)\tag{6.43} L\equiv T-U

then 6.42 can be written as

jN[{ddt(Lq˙j)Lqj}QjEX]δqj=0(6.44)\tag{6.44} \sum_{j}^{N}\left[ \left\{ \frac{d}{dt}\left( \frac{\partial L}{\partial \dot{q}_{j}}\right) -\frac{\partial L}{\partial q_{j}}\right\} -Q_{j}^{EX} \right] \delta q_{j}=0

Note that if all the generalized coordinates are independent, then the square bracket terms are zero for each value of jj, which leads to the general Euler-Lagrange equations of motion.

{ddt(Lq˙j)Lqj}=QjEX(6.45)\tag{6.45} \left\{ \frac{d}{dt}\left( \frac{\partial L}{\partial \dot{q}_{j}}\right) - \frac{\partial L}{\partial q_{j}}\right\} =Q_{j}^{EX}

where nj1n\geq j\geq 1.

Chapter 6.5.3 will show that the holonomic constraint forces can be factored out of the generalized force term QjEXQ_{j}^{EX} 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 functional SS

S=t1t2L(q,q˙,t)dtS=\int_{t_{1}}^{t_{2}}L(\mathbf{q, \dot{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 δ,\delta , as

δS=δt1t2Ldt=0\delta S=\delta \int_{t_{1}}^{t_{2}}Ldt=0

Variational calculus therefore implies that a system of ss independent generalized coordinates must satisfy the basic Lagrange-Euler equations

ddtLq˙jLqj=0\frac{d}{dt}\frac{\partial L}{\partial \dot{q}_{j}}-\frac{\partial L}{ \partial q_{j}}=0

Note that for QjEX=0Q_j^{EX} = 0, this is the same as equation (6.3.28)(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.

6.5: Constrained Systems

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.

Choice of generalized coordinates

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)(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\sum_{i}^{n}\mathbf{f}_{i}^{C}\cdot \delta \mathbf{r}_{i} term in equation (6.3.2)(6.3.2) can be omitted from the action integral. Generalized coordinates allow reducing the number of unknowns from nn to s=nms=n-m when the system has mm holonomic constraints. In addition, generalized coordinates facilitate using both the Lagrange multipliers, and the generalized forces, approaches for determining the constraint forces.

Minimal set of generalized coordinates

The set of nn generalized coordinates qiq_{i} 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 the mm constraints are holonomic, then it is possible to find sets of s=nms=n-m independent generalized coordinates qjq_{j} that contain the mm constraint conditions implicitly in the transformation equations

ri=ri(q1,q2,q3,qs,t)(6.49)\tag{6.49} \mathbf{r}_{i}=\mathbf{r}_{i}(q_{1},q_{2},q_{3}\dots ,q_{s},t)

For the case of s=nms=n-m unknowns, any virtual displacement δqj\delta q_{j} is independent ofδqk\delta q_{k}, therefore the only way for (6.3.27)(6.3.27) to hold is for the term in brackets to vanish for each value of jj, that is

{ddt(Lq˙j)Lqj}=QjEX(6.50)\tag{6.50} \left\{ \frac{d}{dt}\left( \frac{\partial L}{\partial \dot{q}_{j}}\right) -\frac{ \partial L}{\partial q_{j}}\right\} =Q_{j}^{EX}

where j=1,2,3,..j=1,2,3,.. s.s. These are the Lagrange equations for the minimal set of ss independent generalized coordinates**.**

If all the generalized forces are conservative plus velocity independent, and are included in the potential U,U, and QjEX=0Q_{j}^{EX}=0, then 6.50 simplifies to

{ddt(Lq˙j)Lqj}=0(6.51)\tag{6.51} \left\{ \frac{d}{dt}\left( \frac{\partial L}{\partial \dot{q}_{j}}\right) - \frac{\partial L}{\partial q_{j}}\right\} =0

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\delta \int_{t_{1}}^{t_{2}}Ldt=0 as stated by Hamilton’s Principle.

Lagrange multipliers approach

Equation (6.3.27)(6.3.27) sums over all nn coordinates for NN particles, providing nn equations of motion. If the mm constraints are holonomic they can be expressed by mm algebraic equations of constraint

gk(q1,q2,..qn,t)=0(6.52)\tag{6.52} g_{k}(q_{1},q_{2},..q_{n},t)=0

where k=1,2,3,m.k=1,2,3,\dots m. Kinematic constraints can be expressed in terms of the infinitessimal displacements of the form

j=1ngkqj(q,t)dqj+gktdt=0(6.53)\tag{6.53} \sum_{j=1}^{n} \frac{\partial g_{k}}{\partial q_{j}}(\mathbf{q},t)dq_{j}+\frac{\partial g_{k}}{\partial t}dt=0

where k=1,2,3,mk=1,2,3,\dots m, j=1,2,3,nj=1,2,3,\dots n, and where the gkqj\frac{\partial g_{k}}{ \partial q_{j}}, and gkt\frac{\partial g_{k}}{\partial t} are functions of the generalized coordinates qjq_{j}, described by the vector q,\mathbf{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 gkt=0\frac{\partial g_{k}}{\partial t}=0 then the kthk^{th} constraint is scleronomic.

The discussion of Lagrange multipliers in chapter 5.9.1, showed that, for virtual displacements δqj,\delta q_{j}, 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\lambda _{k} and summing over all mm constraints. Generalized forces can be partitioned into a Lagrange multiplier term plus a remainder force. That is

QjEX=k=1mλkgkqj(q,t)+QjEXC(6.54)\tag{6.54} Q_{j}^{EX}=\sum_{k=1}^{m}\lambda _{k} \frac{\partial g_{k}}{\partial q_{j}}(\mathbf{q},t)+Q_{j}^{EXC}

since by definition δt=0\delta 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)L^{\prime }(\mathbf{q,\dot{ q},\lambda ,}t) where

L(q,q˙,λ,t)=L(q,q˙,t)+k=1mj=1nλkgkqj(q,t)(6.55)\tag{6.55} L^{\prime }(\mathbf{q,\dot{q},\lambda ,}t)=L(\mathbf{q,\dot{q},} t)+\sum_{k=1}^{m}\sum_{j=1}^{n}\lambda _{k}\frac{\partial g_{k}}{\partial q_{j}}(\mathbf{q},t)

Finding the extremum for the extended Lagrangian L(q,q˙,λ,t)L^{\prime }(\mathbf{q,\dot{ q},\lambda ,}t) using (6.4.2)(6.4.2) gives

jn[{ddt(Lq˙j)Lqj}k=1mλkgkqj(q,t)QjEXC]δqj=0(6.56)\tag{6.56} \sum_{j}^{n}\left[ \left\{ \frac{d}{dt}\left( \frac{\partial L}{\partial \dot{q}_{j}}\right) -\frac{\partial L}{\partial q_{j}}\right\} -\sum_{k=1}^{m}\lambda _{k}\frac{\partial g_{k}}{\partial q_{j}}(\mathbf{q} ,t)-Q_{j}^{EXC}\right] \delta q_{j}=0

where QjEXCQ_{j}^{EXC} is the remaining part of the generalized force QjQ_{j} after subtracting both the part of the force absorbed in the potential energy UU, which is buried in the Lagrangian LL, as well as the holonomic constraint forces which are included in the Lagrange multiplier terms k=1mλkgkqj(q,t)\sum_{k=1}^{m}\lambda _{k}\frac{\partial g_{k}}{\partial q_{j}}(\mathbf{q} ,t). The mm Lagrange multipliers λk\lambda _{k} can be chosen arbitrarily in 6.56. Utilizing the free choice of the mm Lagrange multipliers λk\lambda _{k} allows them to be determined in such a way that the coefficients of the first mm infinitessimals, i.e. the square brackets vanish. Therefore the expression in the square bracket must vanish for each value of  1jm\ 1\leq j\leq m. Thus it follows that

{ddt(Lq˙j)Lqj}k=1mλkgkqj(q,t)QjEXC=0(6.57)\tag{6.57} \left\{ \frac{d}{dt}\left( \frac{\partial L}{\partial \dot{q}_{j}}\right) - \frac{\partial L}{\partial q_{j}}\right\} -\sum_{k=1}^{m}\lambda _{k}\frac{ \partial g_{k}}{\partial q_{j}}(\mathbf{q},t)-Q_{j}^{EXC}=0

when j=1,2,..m.j=1,2,..m. Thus 6.56 reduces to a sum over the remaining coordinates between m+1jnm+1\leq j\leq n

j=m+1n[{ddt(Lq˙j)Lqj}k=1mλkgkqj(q,t)QjEXC]δqj=0(6.58)\tag{6.58} \sum_{j=m+1}^{n}\left[ \left\{ \frac{d}{dt}\left( \frac{\partial L}{\partial \dot{q}_{j}}\right) -\frac{\partial L}{\partial q_{j}}\right\} -\sum_{k=1}^{m}\lambda _{k}\frac{\partial g_{k}}{\partial q_{j}}(\mathbf{q} ,t)-Q_{j}^{EXC}\right] \delta q_{j}=0

In Equation 6.58 the s=nms=n-m infinitessimals δqj\delta q_{j} can be chosen freely since the s=nms=n-m degrees of freedom are independent. Therefore the expression in the square bracket must vanish for each value of m+1jnm+1\leq j\leq n. Thus it follows that

{ddt(Lq˙j)Lqj}k=1mλkgkqj(q,t)QjEXC=0(6.59)\tag{6.59} \left\{ \frac{d}{dt}\left( \frac{\partial L}{\partial \dot{q}_{j}}\right) - \frac{\partial L}{\partial q_{j}}\right\} -\sum_{k=1}^{m}\lambda _{k}\frac{ \partial g_{k}}{\partial q_{j}}(\mathbf{q},t)-Q_{j}^{EXC}=0

where j=m+1,m+2,..n.j=m+1,m+2,..n. Combining equations 6.57 and 6.59 then gives the important general relation that for 1jn1\leq j\leq n

{ddt(Lq˙j)Lqj}=k=1mλkgkqj(q,t)+QjEXC(6.60)\tag{6.60} \left\{ \frac{d}{dt}\left( \frac{\partial L}{\partial \dot{q}_{j}}\right) - \frac{\partial L}{\partial q_{j}}\right\} =\sum_{k=1}^{m}\lambda _{k}\frac{ \partial g_{k}}{\partial q_{j}}(\mathbf{q},t)+Q_{j}^{EXC}

To summarize, the Lagrange multiplier approach 6.60 automatically solves the nn equations plus the mm holonomic equations of constraint, which determines the n+mn+m unknowns, that is, the nn coordinates plus the mm forces of constraint. The beauty of the Lagrange multipliers is that all nn variables, plus the mm constraint forces, are found simultaneously by using the calculus of variations to determine the extremum for the expanded Lagrangian L(q,q˙,λ,t)L^{\prime }(\mathbf{q, \dot{q},\lambda ,}t).

Generalized forces approach

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 UU component of the Lagrangian LL. The Lagrange multiplier terms k=1mλkgkqj(q,t)\sum_{k=1}^{m} \lambda _{k} \frac{\partial g_{k}}{\partial q_{j}}(\mathbf{q},t) account for the holonomic forces of constraint that are not included in the conservative potential or in the generalized forces QjEXCQ_{j}^{EXC}. The generalized force

QjEXC=inFiAriqj(6.61)\tag{6.61} Q_{j}^{EXC}=\sum_{i}^{n}\mathbf{F}_{i}^{A}\cdot \frac{\partial \mathbf{r}_{i} }{\partial q_{j}}

is the sum of the components in the qjq_{j} 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 QjEXCQ_{j}^{EXC} contains non-holonomic constraint forces, including dissipative forces such as drag or friction, that are not included in U,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\delta q_{i}, (taken from table C4C4) and the generalized force for the three coordinates. Note that QiQ_{i} has the dimensions of force and Qi.δqiQ_{i}.\delta q_{i} has the units of energy. By contrast equation (6.3.13)(6.3.13) gives that Qθ=FθrQ_{\theta }=F_{\theta }r and Qϕ=FϕrQ_{\phi }=F_{\phi }r which have the dimensions of torque. However, QθδθQ_{\theta }\delta \theta and QϕδϕQ_{\phi }\delta \phi both have the dimensions of energy as is required in equation (6.3.13)(6.3.13). This illustrates that the units used for generalized forces depend on the units of the corresponding generalized coordinate.

Unit vectorsδqi\delta q_{i}QiQ_{i}QiδqiQ_{i}\cdot \delta q_{i}
r^\hat{r}r^dr\mathbf{\hat{r}}drr^Fr\mathbf{\hat{r}}F_{r}FrdrF_{r}dr
θ^\mathbf{\hat{\theta}}θ^rdθ\mathbf{\hat{\theta}}rd\thetaθ^Fθr\mathbf{\hat{ \theta}}F_{\theta }rFθrdθF_{\theta }rd\theta
ϕ^\mathbf{\hat{\phi}}ϕ^rsinθdϕ\mathbf{\hat{\phi}}r\sin \theta d\phiϕ^Fϕrsinθ\mathbf{ \hat{\phi}}F_{\phi }r\sin \thetaFϕrsinθdϕF_{\phi }r\sin \theta d\phi

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)(q_{i},\overset{.}{q_{i}},t) is the one that minimizes the action integral t1t2L(qj,qj.;t)dt.\int_{t_{1}}^{t_{2}}L(q_{j}, \overset{.}{q_{j}};t)dt. As a consequence, the Euler equations for the calculus of variations lead to the Lagrange equations of motion.

{ddt(Lq˙j)Lqj}ΛjL=k=1mλkgkqj(q,t)+QjEXC(6.60)\tag{6.60} \left\{ \frac{d}{dt}\left( \frac{\partial L}{\partial \dot{q}_{j}}\right) -\frac{ \partial L}{\partial q_{j}}\right\} \equiv \Lambda_j L =\sum_{k=1}^{m}\lambda _{k}\frac{ \partial g_{k}}{\partial q_{j}}(\mathbf{q},t)+Q_{j}^{EXC}

for nn variables, with mm equations of constraint. The generalized forces QjEXCQ_{j}^{EXC} are not included in the conservative, potential energy U,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

2) Partition of the active forces:

The active forces should be partitioned into the following three groups:

  1. Conservative one-body forces plus the velocity-dependent electromagnetic force which can be characterized by the scalar potential UU, that is absorbed into the Lagrangian. The gravitational forces plus the velocity-dependent electromagnetic force can be absorbed into the potential UU as discussed in chapter 6.10. This approach is by far the easiest way to account for such forces in Lagrangian mechanics.

  2. 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.

  3. 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.

3) Minimal set of generalized coordinates:

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.

4) Derive the Lagrangian:

The Lagrangian is derived in terms of the generalized coordinates and including the conservative forces that are buried into the scalar potential U.U.

5) Derive the equations of motion:

Equation 6.60 is solved to determine the nn generalized coordinates, plus the mm Lagrange multipliers characterizing the holonomic constraint forces, plus any generalized forces that were included. The holonomic constraint forces then are given by evaluating the λkgkqj(q,t)\lambda _{k} \frac{\partial g_{k}}{\partial q_{j}}(\mathbf{q},t) terms for the mm 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;

  1. Velocity-independent conservative forces are taken into account using scalar potentials UiU_{i}.

  2. Holonomic constraint forces can be determined using Lagrange multipliers.

  3. Non-holonomic constraints require use of generalized forces QjEXCQ_{j}^{EXC}.

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+mn+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\Lambda_j, as described in table 19.6.1.

Λjddtq˙jqj\Lambda_j \equiv \frac{d}{dt} \frac{\partial}{\partial \dot{q}_j} - \frac{\partial}{\partial q_j}

where Λj\Lambda_j operates on the Lagrangian LL. Then Euler’s equations can be written compactly in the form ΛjL=0\Lambda_jL = 0.

6.7: Applications to unconstrained systems

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)(6.6.1) simplify to ΛjL=0\Lambda _{j}L=0 where j=1,2,..n,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.

6.9: Applications involving Non-holonomic Constraints

In general, non-holonomic constraints can be handled by use of generalized forces QjEXCQ_{j}^{EXC} in the Lagrange-Euler equations (6.5.12)(6.5.12). The following examples, 6.9.16.9.46.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μstaticF>N\mu _{static} where μstatic\mu _{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.

6.10: Velocity-dependent Lorentz force

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)\mathbf{F}=q(\mathbf{E}+\mathbf{v}\times \mathbf{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=ρε0×E+Bt=0B=0×Bμ0ε0Et=J\begin{align} \mathbf{\nabla \cdot E} &\mathbf{=}& \frac{\rho }{\varepsilon _{0}} \\ \mathbf{\nabla \times E+}\frac{\partial \mathbf{B}}{\partial t} &=&0 \notag \\ \mathbf{\nabla \cdot B} &\mathbf{=}&0 \notag \\ \mathbf{\nabla \times B-}\mu _{0}\varepsilon _{0}\frac{\partial \mathbf{E}}{ \partial t} &=&\mathbf{J} \notag\end{align}

$$

Since B=0\mathbf{\nabla \cdot B=}0 then it follows from Appendix 19.8 that B\mathbf{B}****can be represented by the curl of a vector potential, A,\mathbf{A,} that is

B=×A\mathbf{B=\nabla \times A}

Substituting this into ×E+Bt=0\mathbf{\nabla \times E+}\frac{\partial \mathbf{B}}{ \partial t}=0 gives that

×E+×At=0×(E+At)=0\begin{align} \mathbf{\nabla \times E+}\frac{\partial \mathbf{\nabla \times A}}{\partial t} &=&0 \\ \mathbf{\nabla \times }\left( \mathbf{E}+\frac{\partial \mathbf{A}}{\partial t}\right) &=&0 \notag\end{align}

Since this curl is zero it can be represented by the gradient of a scalar potential UU

E+At=U\mathbf{E}+\frac{\partial \mathbf{A}}{\partial t}=-\mathbf{\nabla }U

The following shows that this relation corresponds to taking the gradient of a potential UU for the charge qq where the potential UU is given by the relation

U=q(ΦAv)U=q(\Phi -\mathbf{A\cdot v)}

where Φ\Phi is the scalar electrostatic potential. This scalar potential UU can be employed in the Lagrange equations using the Lagrangian

L=12mvvq(ΦAv)(6.67)L=\frac{1}{2}m\mathbf{v}\cdot \mathbf{v}-q(\Phi -\mathbf{A\cdot v)} \tag{6.67}

The Lorentz force can be derived from this Lagrangian by considering the Lagrange equation for the cartesian coordinate xx

ddtLx˙Lx=0(6.68)\frac{d}{dt}\frac{\partial L}{\partial \dot{x}}-\frac{\partial L}{\partial x} =0 \tag{6.68}

Using the above Lagrangian 6.67 gives

mx¨+q[dAxdt+ΦxAxv]=0(6.69)m\ddot{x}+q\left[ \frac{dA_{x}}{dt}+\frac{\partial \Phi }{\partial x}-\frac{ \partial \mathbf{A}}{\partial x}\cdot \mathbf{v}\right] =0 \tag{6.69}

But

dAxdt=Axt+Axxx˙+Axyy˙+Axzz˙(6.70)\frac{dA_{x}}{dt}=\frac{\partial A_{x}}{\partial t}+\frac{\partial A_{x}}{ \partial x}\dot{x}+\frac{\partial A_{x}}{\partial y}\dot{y}+\frac{\partial A_{x}}{\partial z}\dot{z}\tag{6.70}

and

Axv=Axxx˙+Ayxy˙+Azxz˙(6.71)\frac{\partial \mathbf{A}}{\partial x}\cdot \mathbf{v=}\frac{\partial A_{x}}{ \partial x}\dot{x}+\frac{\partial A_{y}}{\partial x}\dot{y}+\frac{\partial A_{z}}{\partial x}\dot{z}\tag{6.71}

Inserting equations 6.70 and 6.71 into 6.69 gives

Fx=mx¨=q[(ΦxAxt)+(AyxAxy)y˙(AxzAzx)z˙]=q[E+v×B]x(6.72)F_{x}=m\ddot{x}=q\left[ \left( -\frac{\partial \Phi }{\partial x}-\frac{ \partial A_{x}}{\partial t}\right) +\left( \frac{\partial A_{y}}{\partial x}- \frac{\partial A_{x}}{\partial y}\right) \dot{y}-\left( \frac{\partial A_{x} }{\partial z}-\frac{\partial A_{z}}{\partial x}\right) \dot{z}\right] =q \left[ \mathbf{E+v}\times \mathbf{B}\right] _{x}\tag{6.72}

Corresponding expressions can be obtained for FyF_{y} and FzF_{z}. Thus the total force is the well-known Lorentz force

F=q(E+v×B)\mathbf{F}=q(\mathbf{E}+\mathbf{v}\times \mathbf{B})

This has demonstrated that the electromagnetic scalar potential

U=q(ΦAv)U=q(\Phi -\mathbf{A\cdot 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\mathbf{E} is conservative, and because (v×B×v)dt=0,(\mathbf{v} \times \mathbf{B\times v)}dt\mathbf{=}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.

6.11: Time-dependent forces

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 tt, 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)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.

6.12: Impulsive Forces

Colliding bodies often involve large impulsive forces that act for a short time. As discussed in chapter 2.12.8,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 τ\tau of the impulse and assuming τ0\tau \rightarrow 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

ddt(Lq˙j)Lqj=QjEXC(6.75)\frac{d}{dt}\left( \frac{\partial L}{\partial \dot{q}_{j}}\right) -\frac{ \partial L}{\partial q_{j}}=Q_{j}^{EXC} \tag{6.75}

where the impulsive force is introduced using the generalized force QjEXCQ_{j}^{EXC}. Knowing the initial conditions at time t,t, the conditions at the time t+τt+\tau are given by integration of Equation 6.75 over the duration τ\tau of the impulse which gives

tt+τddt(Lq˙j)dτtt+τLqjdτ=tt+τQjEXCdτ(6.76)\int_{t}^{t+\tau }\frac{d}{dt}\left( \frac{\partial L}{\partial \dot{q}_{j}} \right) d\tau -\int_{t}^{t+\tau }\frac{\partial L}{\partial q_{j}}d\tau =\int_{t}^{t+\tau }Q_{j}^{EXC}d\tau \tag{6.76}

This integration determines the conditions at time t+τt+\tau which then are used as the initial conditions for the motion when the impulsive force QjEXCQ_{j}^{EXC} is zero.

The second approach is to realize that Equation 6.76 can be rewritten in the form

limτ0tt+τddt(Lq˙j)dt=limτ0Lq˙jtt+τ=Δpj=limτ0tt+τ((Lqj)+QjEXC)dτ(6.77)\lim_{\tau \rightarrow 0}\int_{t}^{t+\tau }\frac{d}{dt}\left( \frac{\partial L}{\partial \dot{q}_{j}}\right) dt=\lim_{\tau \rightarrow 0}\left. \frac{ \partial L}{\partial \dot{q}_{j}}\right\vert _{t}^{t+\tau }=\Delta p_{j}=\lim_{\tau \rightarrow 0}\int_{t}^{t+\tau }\left( \left( \frac{ \partial L}{\partial q_{j}}\right) +Q_{j}^{EXC}\right) d\tau \tag{6.77}

Note that in the limit that τ0\tau \rightarrow 0 then the integral of the generalized momentum pj=Lq˙jp_{j}=\frac{\partial L}{\partial \dot{q}_{j}} simplifies to give the change in generalized momentum Δpj\Delta p_{j}. In addition, assuming that the non-impulsive forces (Lqj)\left( \frac{\partial L}{ \partial q_{j}}\right) are finite and independent of the instantaneous impulsive force during the infinitessimal duration τ\tau, then the contribution of the non-impulsive forces tt+τ(Lqj)dτ\int_{t}^{t+\tau }\left( \frac{ \partial L}{\partial q_{j}}\right) d\tau during the impulse can be neglected relative to the large impulsive force term; limτ0tt+τQjEXCdτ\lim_{\tau \rightarrow 0}\int_{t}^{t+\tau }Q_{j}^{EXC}d\tau. Thus it can be assumed that

Δpj=limτ0tt+τQjEXCdτ=Q~j(6.78)\Delta p_{j}=\lim_{\tau \rightarrow 0}\int_{t}^{t+\tau }Q_{j}^{EXC}d\tau = \tilde{Q}_{j} \tag{6.78}

where Q~j\tilde{Q}_{j} is the generalized impulse associated with coordinate j=1,2,3,....,nj=1,2,3,....,n. This generalized impulse can be derived from the time integral of the impulsive forces Pi\mathbf{P}_{i} given by equation (2.12.49)(2.12.49) using the time integral of Equation 6.77, that is

Δpj=Q~j=limτ0tt+τQjEXCdτlimτ0tt+τiPiriqjdτ=iP~iriqj(6.79)\Delta p_{j}=\tilde{Q}_{j}=\lim_{\tau \rightarrow 0}\int_{t}^{t+\tau }Q_{j}^{EXC}d\tau \equiv \lim_{\tau \rightarrow 0}\int_{t}^{t+\tau }\sum_{i} \mathbf{P}_{i} \cdot \frac{\partial \mathbf{r}_{i}}{\partial q_{j}}d\tau =\sum_{i}\mathbf{\tilde{P}}_{i}\cdot \frac{\partial \mathbf{r}_{i}}{ \partial q_{j}} \tag{6.79}

Note that the generalized impulse Q~j\tilde{Q}_{j} can be a translational impulse P~j\mathbf{\tilde{P}}_{j} with corresponding translational variable qj,q_{j}, or an angular impulsive torque τ~j\mathbf{\tilde{\tau}}_{j} with corresponding angular variable ϕj\phi _{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\tau \rightarrow 0 then impulse changes the generalized velocities q˙j\dot{q}_{j} but not the generalized coordinates qjq_{j}. 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, qiq_{i}, where 1in1\leq i\leq n, plus the corresponding velocities q˙i\dot{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 NN normal modes of coupled oscillator systems, or action-angle variables. Moreover, very different generalized coordinates can be used for each of the nn 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.

6.E: Lagrangian Dynamics (Exercises)

  1. A disk of mass

    MM

    and radius

    RR

    rolls without slipping down a plane inclined from the horizontal by an angle

    α\alpha

    . The disk has a short weightless axle of negligible radius. From this axis is suspended a simple pendulum of length

    l<Rl<R

    and whose bob has a mass

    mm

    . Assume that the motion of the pendulum takes place in the plane of the disk.

    1. What generalized coordinates would be appropriate for this situation?

    2. Are there any equations of constraint? If so, what are they?

    3. Find Lagrange’s equations for this system.

  2. A Lagrangian for a particular system can be written as

L=m2(ax˙2+2bx˙y˙+cy˙2)K2(ax2+2bxy+cy2)L=\frac{m}{2}(a\dot{x}^{2}+2b\dot{x}\dot{y}+c\dot{y}^{2})-\frac{K}{2} (ax^{2}+2bxy+cy^{2})\nonumber

where a,b,a,b, and cc are arbitrary constants, but subject to the condition that b24ac0b^{2}-4ac\neq 0.

  1. What are the equations of motion?

  2. Examine the case a=0=ca=0=c. What physical system does this represent?

  3. Examine the case b=0b=0 and a=ca=-c. What physical system does this represent?

  4. Based on your answers to (b) and (c), determine the physical system represented by the Lagrangian given above.

  5. Consider a particle of mass

    mm

    moving in a plane and subject to an inverse square attractive force.

    1. Obtain the equations of motion.

    2. Is the angular momentum about the origin conserved?

    3. Obtain expressions for the generalized forces. Recall that the generalized forces are defined by

      Qj=iFixiqj.Q_{j}=\sum_{i}F_{i}\frac{\partial x_{i}}{\partial q_{j}}.\nonumber
  6. Consider a Lagrangian function of the form

    L(qi,qi˙,qi¨,t)L(q_{i},\dot{q_{i} },\ddot{q_{i}},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.

    1. 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 qq and q˙\dot{q} fixed at the end points, show that the corresponding Lagrange equation is

d2dt2(Lq¨)ddt(Lq˙)+Lq=0.\frac{d^{2}}{dt^{2}}\left( \frac{\partial L}{\partial \ddot{q}}\right) - \frac{d}{dt}\left( \frac{\partial L}{\partial \dot{q}}\right) +\frac{ \partial L}{\partial q}=0.\nonumber
  Such equations of motion have interesting applications in chaos theory.
  1. Apply this result to the Lagrangian

L=m2qq¨k2q2.L=-\frac{m}{2}q\ddot{q}-\frac{k}{2}q^{2}.\nonumber
  Do you recognize the equations of motion?
  1. A bead of mass

    mm

    slides under gravity along a smooth wire bent in the shape of a parabola

    x2=azx^{2}=az

    in the vertical

    (x,z)(x,z)

    plane.

    1. What kind (holonomic, nonholonomic, scleronomic, rheonomic) of constraint acts on mm?

    2. Set up Lagrange’s equation of motion for xx with the constraint embedded.

    3. Set up Lagrange’s equations of motion for both xx and zz with the constraint adjoined and a Lagrangian multiplier λ\lambda introduced.

    4. Show that the same equation of motion for xx results from either of the methods used in part (b) or part (c).

    5. Express λ\lambda in terms of xx and x˙\dot{x}.

    6. What are the xx and zz components of the force of constraint in terms of xx and x˙\dot{x}?

  2. Consider the two Lagrangians

L(q,q˙;t)andL(q,q˙;t)=L(q,q˙;t)+dF(q,t)dtL(q,\dot{q};t) \quad \mathrm{and} \quad L^{\prime }(q,\dot{q};t)=L(q, \dot{q};t)+\frac{dF(q,t)}{dt}\nonumber

where F(q,t)F(q,t) is an arbitrary function of the generalized coordinates q(t)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.

  1. Consider the double pendulum comprising masses

    m1m_{1}

    and

    m2m_{2}

    connected by inextensible strings as shown in the figure. Assume that the motion of the pendulum takes place in a vertical plane.

    1. Are there any equations of constraint? If so, what are they?

    2. Find Lagrange’s equations for this system.

      Figure
  2. Consider the system shown in the figure which consists of a mass

    mm

    suspended via a constrained massless link of length

    LL

    where the point

    AA

    is acted upon by a spring of spring constant

    kk

    . The spring is unstretched when the massless link is horizontal. Assume that the holonomic constraints at

    AA

    and

    BB

    are frictionless.

    1. Derive the equations of motion for the system using the method of Lagrange multipliers.

      Figure
  3. Consider a pendulum, with mass

    mm

    , connected to a (horizontally) moveable support of mass

    MM

    .

    1. Determine the Lagrangian of the system.

    2. Determine the equations of motion for θ1\theta \ll 1.

    3. Find an equation of motion in θ\theta alone. What is the frequency of oscillation?

    4. What is the frequency of oscillation for MmM\gg m? Does this make sense?

  4. A sphere of radius ρ\rho is constrained to roll without slipping on the lower half of the inner surface of a hollow cylinder of radius R.R. Determine the Lagrangian function, the equation of constraint, and the Lagrange equations of motion. Find the frequency of small oscillations.

  5. A particle moves in a plane under the influence of a force f=Arα1f = −Ar^{\alpha - 1} directed toward the origin; AA and α(>0)\alpha (> 0) are constants. Choose generalized coordinates with the potential energy zero at the origin.

    1. Find the Lagrangian equations of motion.

    2. Is the angular momentum about the origin conserved?

    3. Is the total energy conserved?

  6. Two blocks, each of mass MM, are connected by an extensionless, uniform string of length ll. 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:

    1. when the mass of the string is negligible

    2. when the string has mass mm.

  7. Two masses m1m_{1} and m2m_{2} (m1m2)(m_{1}\neq m_{2}) are connected by a rigid rod of length dd and of negligible mass. An extensionless string of length l1l_{1} is attached to m1m_{1} and connected to a fixed point of the support PP. Similarly a string of length l2l_{2} (l1l2)(l_{1}\neq l_{2}) connects m2m_{2} and PP. Obtain the equation of motion describing the motion in the plane of m1,m2,m_{1},m_{2}, and PP, and find the frequency of small oscillation around the equilibrium position.

  8. A thin uniform rigid rod of length 2L2L and mass MM is suspended by a massless string of length ll. Initially the system is hanging vertically downwards in the gravitational field gg. Use as generalized coordinates the angles given in the diagram.

    1. Derive the Lagrangian for the system.

    2. Use the Lagrangian to derive the equations of motion

    3. A horizontal impulsive force FxF_{x} in the xx direction strikes the bottom end of the rod for an infinitessimal time τ\tau. Derive the initial conditions for the system immediately after the impulse has occurred.

    4. Draw a diagram showing the geometry of the pendulum shortly after the impulse when the displacement angles are significant.

      Figure

6.S: Lagrangian Dynamics (Summary)

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 LTUL\equiv T-U is used in the functional and time tt is the independent variable. It was shown that Newton’s equation of motion can be rewritten as

ddtLq˙iLqi=FqiEX(6.12)\frac{d}{dt}\frac{\partial L}{\partial \dot{q}_{i}}-\frac{\partial L}{ \partial q_{i}}=F_{q_{i}}^{EX} \tag{6.12}

where FyiEXF_{y_{i}}^{EX} are the excluded forces of constraint plus any other conservative or non-conservative forces not included in the potential U.U. This corresponds to the Euler-Lagrange equation for determining the minimum of the time integral of the Lagrangian.

Equation 6.12 can be written as

ddtLq˙iLqi=kmλk(t)gkqi+FqiEXC(6.15)\frac{d}{dt}\frac{\partial L}{\partial \dot{q}_{i}}-\frac{\partial L}{ \partial q_{i}}=\sum_{k}^{m}\lambda _{k}\left( t\right) \frac{\partial g_{k} }{\partial q_{i}}+F_{q_{i}}^{EXC}\tag{6.15}

where the Lagrange multiplier term accounts for holonomic constraint forces, and FqiEXCF_{q_{i}}^{EXC} includes all additional forces not accounted for by the scalar potential UU, or the Lagrange multiplier terms FqiHCF_{q_{i}}^{HC}. The constraint forces can be included explicitly as generalized forces in the excluded term FqiEXCF_{q_{i}}^{EXC} of Equation \text{(6.15)}.

d’Alembert’s Principle

It was shown that d’Alembert’s Principle

iN(FiAp˙i)δri=0(6.25)\sum_{i}^{N}(\mathbf{F}_{i}^{A}-\mathbf{\dot{p}}_{i})\cdot \delta \mathbf{r} _{i}=0 \tag{6.25}

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.

Lagrange equations from d’Alembert’s Principle

After transforming to generalized coordinates, d’Alembert’s Principle leads to

jN[{ddt(Tq˙j)Tqj}Qj]δqj=0(6.38)\sum_{j}^{N} \left[ \left\{ \frac{d}{dt}\left( \frac{\partial T}{\partial \dot{q} _{j}}\right) -\frac{\partial T}{\partial q_{j}}\right\} -Q_{j}\right] \delta q_{j}=0\tag{6.38}

If all the nn coordinates qjq_{j} are independent, then Equation \text{(6.38)} implies that the term in the square brackets is zero for each individual value of jj. That is, this implies the basic Euler-Lagrange equations of motion.

The handling of both conservative and non-conservative generalized forces QjQ_j is best achieved by assuming that the generalized force Qj=inFiArˉiqjQ_j = \sum^n_i \mathbf{F}_i^A \cdot \frac{\partial \mathbf{\bar{r}}_i}{\partial q_j} can be partitioned into a conservative velocity-independent term, that can be expressed in terms of the gradient of a scalar potential, Ui-\nabla U_i, plus an excluded generalized force QjEXQ^{EX}_j which contains the non-conservative, velocity-dependent, and all the constraint forces not explicitly included in the potential UjU_j. That is,

Qj=Uj+QjEX(6.41)Q_j = -\nabla U_j + Q_j^{EX} \tag{6.41}

Inserting \text{(6.41)} into \text{(6.38)}, and assuming that the potential UU is velocity independent, allows \text{(6.38)} to be rewritten as

j[{ddt((TU)q˙j)(TU)qj}QjEX]δqj=0(6.42)\sum_{j} \left[ \left\{ \frac{d}{dt}\left( \frac{\partial (T - U)}{\partial \dot{q} _{j}}\right) -\frac{\partial (T - U)}{\partial q_{j}}\right\} -Q_{j}^{EX} \right] \delta q_{j}=0\tag{6.42}

Expressed in terms of the standard Lagrangian L=TUL = T - U this gives

jN[{ddt(Lq˙j)Lqj}QjEX]δqj=0(6.44)\sum_{j}^{N} \left[ \left\{ \frac{d}{dt}\left( \frac{\partial L}{\partial \dot{q} _{j}}\right) -\frac{\partial L}{\partial q_{j}}\right\} -Q_{j}^{EX} \right] \delta q_{j}=0\tag{6.44}

Note that Equation \text{(6.44)} contains the basic Euler-Lagrange Equation \text{(6.38)} for the special case when U=0U = 0. In addition, note that if all the generalized coordinates are independent, then the square bracket terms are zero for each value of jj, which leads to the nn general Euler-Lagrange equations of motion

{ddt(Lq˙j)Lqj}=QjEX(6.45)\left\{ \frac{d}{dt}\left( \frac{\partial L}{\partial \dot{q} _{j}}\right) -\frac{\partial L}{\partial q_{j}}\right\} = Q_{j}^{EX} \tag{6.45}

where nj1n \geq j \geq 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.

1) Minimal set of generalized coordinates

If the nn coordinates qjq_j are independent, then the square bracket equals zero for each value of jj in Equation \text{(6.44)}, which corresponds to Euler’s equation for each of the nn independent coordinates. If the nn generalized coordinates are coupled by mm constraints, then the coordinates can be transformed to a minimal set of s=nms = n − m independent coordinates which then can be solved by applying Equation \text{(6.45)} to the minimal set of ss independent coordinates.

2) Lagrange multipliers approach

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=1mλkgkqj(q,t)+QjEXCQ_{j}=-\nabla U+\sum_{k=1}^{m}\lambda _{k}\frac{\partial g_{k}}{\partial q_{j}}(\mathbf{q},t)+Q_{j}^{EXC} \nonumber

where the velocity-independent conservative forces can be absorbed into a scalar potential UU, the holonomic constraint forces can be handled using the Lagrange multiplier term k=1mλkgkqj(q,t)\sum_{k=1}^{m}\lambda _{k}\frac{\partial g_{k} }{\partial q_{j}}(\mathbf{q},t), and the remaining part of the active forces can be absorbed into the generalized force QjEXCQ_{j}^{EXC}. The scalar potential energy UU is handled by absorbing it into the standard Lagrangian L=TUL=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 QjEXCQ_{j}^{EXC}.

Combining the above two equations gives

jN[{ddt(Lq˙j)Lqj}QjEXCk=1mλkgkqj(q,t)]δqj=0(6.56)\sum_{j}^{N}\left[ \left\{ \frac{d}{dt}\left( \frac{\partial L}{\partial \dot{q}_{j}}\right) -\frac{\partial L}{\partial q_{j}}\right\} -Q_{j}^{EXC}-\sum_{k=1}^{m}\lambda _{k}\frac{\partial g_{k}}{\partial q_{j}}( \mathbf{q},t)\right] \delta q_{j}=0 \tag{6.56}

Use of the Lagrange multipliers to handle the mm constraint forces ensures that all nn infinitessimals δqj\delta q_{j} are independent implying that the expression in the square bracket must be zero for each of the nn values of jj. This leads to nn Lagrange equations plus mm constraint relations

{ddt(Lq˙j)Lqj}=QjEXC+k=1mλkgkqj(q,t)(6.60)\left\{ \frac{d}{dt}\left( \frac{\partial L}{\partial \dot{q}_{j}}\right) - \frac{\partial L}{\partial q_{j}}\right\} =Q_{j}^{EXC}+\sum_{k=1}^{m}\lambda _{k}\frac{\partial g_{k}}{\partial q_{j}}(\mathbf{q},t) \tag{6.60}

where j=1,2,3,n.j = 1,2,3, \dots n.

3) Generalized forces approach

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 UU component of the Lagrangian LL. The Lagrange multiplier terms k=1mλkgkqj(q,t)\sum_{k=1}^{m}\lambda _{k}\frac{\partial g_{k}}{\partial q_{j}}(\mathbf{q},t) account for the holonomic forces of constraint that are not included in the conservative potential or in the generalized forces QjEXCQ_j^{EXC}. The generalized force

QjEXC=inFiAripj(6.17)Q^{EXC}_j = \sum^{n}_i \mathbf{F}^A_i \cdot \frac{\partial \mathbf{r}_i}{\partial p_j} \tag{6.17}

is the sum of the components in the qjq_j 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 QjEXCQ^{EXC}_j contains non-holonomic constraint forces, including dissipative forces such as drag or friction, that are not included in UU, 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:

  1. Select a set of independent generalized coordinates.

  2. Partition the active forces into three groups:

    1. Conservative one-body forces

    2. Holonomic constraint forces

    3. Generalized forces

  3. Minimize the number of generalized coordinates.

  4. Derive the Lagrangian

  5. Derive the equations of motion

Velocity-dependent Lorentz force:

Usually velocity-dependent forces are non-holonomic. However, electromagnetism is a special case where the velocity-dependent Lorentz force F=q(E+v×B)\mathbf{F}=q(\mathbf{E}+\mathbf{v\times B}) can be obtained from a velocity-dependent potential function U(q,q.,t)U(q,\overset{.}{q},t). It was shown that the velocity-dependent potential

U=qΦqvA(6.74)U=q\Phi -q\mathbf{v}\cdot \mathbf{A} \tag{6.74}

leads to the Lorentz force where Φ\Phi is the scalar electric potential and A\mathbf{A} the vector potential.

Time-dependent forces:

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.

Impulsive forces:

A generalized impulse Q~j\tilde{Q}_{j} can be derived for an instantaneous impulsive force from the time integral of the impulsive forces Pi\mathbf{P} _{i} given by equation (3.12.49)(3.12.49) using the time integral of equation (7.2.13)(7.2.13), that is

Δpj=Q~j=limτ0tt+τQjEXCdτlimτ0tt+τiFiriqjdτ=iP~iriqj(6.79)\Delta p_{j}=\tilde{Q}_{j}=\lim_{\tau \rightarrow 0}\int_{t}^{t+\tau }Q_{j}^{EXC}d\tau \equiv \lim_{\tau \rightarrow 0}\int_{t}^{t+\tau }\sum_{i} \mathbf{F}_{i}^\cdot \frac{\partial \mathbf{r}_{i}}{\partial q_{j}}d\tau =\sum_{i}\mathbf{\tilde{P}}_{i}^\cdot \frac{\partial \mathbf{r}_{i}}{ \partial q_{j}} \tag{6.79}

Note that the generalized impulse Q~j\tilde{Q}_{j} can be a translational impulse P~j\mathbf{\tilde{P}}_{j} with corresponding translational variable qjq_{j} or an angular impulsive torque T~j\mathbf{\tilde{T}}_{j} with corresponding angular variable ϕj\phi _{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.

Footnotes
  1. This proof, plus the notation, conform with that used by Goldstein [Go50] and by other texts on classical mechanics.

  2. This problem is solved in detail in example 3.19 of “Classical Mechanics and Relativity”. by Muller-Kirsten [Mu06]\left[ Mu06\right].