Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Physics LibreTexts

2.1: Lagrange Equation

( \newcommand{\kernel}{\mathrm{null}\,}\)

In many cases, the constraints imposed on the 3D motion of a system of N particles may be described by N vector (i.e. 3N scalar) algebraic equations rk=rk(q1,q2,,qj,,qJ,t), with 1kN, where qj are certain generalized coordinates that (together with constraints) completely define the system position. Their number J3N is called the number of the actual degrees of freedom of the system. The constraints that allow such description are called holonomic. 1

For example, for the problem discussed briefly in Section 1.5, namely the bead sliding along a rotating ring (Figure 1), J=1, because with the constraints imposed by the ring, the bead’s position is uniquely determined by just one generalized coordinate - for example, its polar angle θ.

Screen Shot 2022-01-25 at 9.15.49 PM.png
Figure 2.1. A bead on a rotating ring as an example of a system with just one degree of freedom (J=1).

Indeed, selecting the reference frame as shown in Figure 1 and using the well-known formulas for the spherical coordinates, 2 we see that in this case, Eq. (1) has the form r{x,y,z}={Rsinθcosφ,Rsinθsinφ,Rcosθ}, where φ=ωt+ const , with the last constant depending on the exact selection of the axes x and y and the time origin. Since the angle φ, in this case, is a fixed function of time, and R is a fixed constant, the particle’s position in space at any instant t is completely determined by the value of its only generalized coordinate θ. (Note that its dimensionality is different from that of Cartesian coordinates!)

Now returning to the general case of J degrees of freedom, let us consider a set of small variations (alternatively called "virtual displacements") δqj allowed by the constraints. Virtual displacements differ from the actual small displacements (described by differentials dqj proportional to time variation dt ) in that δqj describes not the system’s motion as such, but rather its possible variation see Figure 1 .

Screen Shot 2022-01-25 at 9.16.23 PM.png
Figure 2.2. Actual displacement dqj vs. the virtual one (i.e. variation) δqj.

Generally, operations with variations are the subject of a special field of mathematics, the calculus of variations. 3 However, the only math background necessary for our current purposes is the understanding that operations with variations are similar to those with the usual differentials, though we need to watch carefully what each variable is a function of. For example, if we consider the variation of the radius vectors (1), at a fixed time t, as a function of independent variations δqj, we may use the usual formula for the differentiation of a function of several arguments: 4 δrk=jrkqjδqj. Now let us break the force acting upon the kth  particle into two parts: the frictionless, constraining part Nk of the reaction force and the remaining part Fk - including the forces from other sources and possibly the friction part of the reaction force. Then the 2nd  Newton law for the kth  particle of the system may be rewritten as mk˙vkFk=Nk. Since any variation of the motion has to be allowed by the constraints, its 3N-dimensional vector with N 3D-vector components δrk has to be perpendicular to the 3N-dimensional vector of the constraining forces, also with N 3D-vector components Nk. (For example, for the problem shown in Figure 2.1, the virtual displacement vector δrk may be directed only along the ring, while the constraining force N, exerted by the ring, has to be perpendicular to that direction.) This condition may be expressed as kNkδrk=0 where the scalar product of 3N-dimensional vectors is defined exactly like that of 3D vectors, i.e. as the sum of the products of the corresponding components of the operands. The substitution of Eq. (4) into Eq. (5) results in the so-called D ’Alembert principle: 5 k(mk˙vkFk)δrk=0 Now we may plug Eq. (3) into Eq. (6) to get j{kmk˙vkrkqjFj}δqj=0, where the scalars Jj, called the generalized forces, are defined as follows: 6

Generalized force

 FjkFkrkqj.

Now we may use the standard argument of the calculus of variations: for the left-hand side of Eq. (7) to be zero for an arbitrary selection of independent variations  δqj, the expressions in the curly brackets, for every  j, should equal zero. This gives us the desired set of  J3N equations

 kmk˙vkrkqjFj=0;

what remains is just to recast them in a more convenient form.

First, using the differentiation by parts to calculate the following time derivative: ddt(vkrkqj)=˙vkrkqj+vkddt(rkqj), we may notice that the first term on the right-hand side is exactly the scalar product in the first term of Eq. (9).

Second, let us use another key fact of the calculus of variations (which is, essentially, evident from Figure 3): the differentiation of a variable over time and over the generalized coordinate variation (at a fixed time) are interchangeable operations. As a result, in the second term on the right-hand side of Eq. (10) we may write ddt(rkqj)=qj(drkdt)vkqj

Screen Shot 2022-01-25 at 9.18.00 PM.png
Figure 2.3. The variation of the differential (of any smooth function f ) is equal to the differential of its variation.

Finally, let us differentiate Eq. (1) over time: vkdrkdt=jrkqj˙qj+rkt. This equation shows that particle velocities vk may be considered to be linear functions of the generalized velocities ˙qj considered as independent variables, with proportionality coefficients vk˙qj=rkqj. With the account of Eqs. (10), (11), and (13), Eq. (9) turns into ddtkmkvkvk˙qjkmkvkvkqjFj=0 This result may be further simplified by making, for the total kinetic energy of the system, Tkmk2v2k=12kmkvkvk, the same commitment as for vk, i.e. considering T a function of not only the generalized coordinates qj and time t but also of the generalized velocities ˙qi as variables independent of qj and t. Then we may calculate the partial derivatives of T as Tqj=kmkvkvkqj,T˙qj=kmkvkvk˙qj and notice that they are exactly the two sums participating in Eq. (14). As a result, we get a system of J Lagrange equations, 7 ddtT˙qjTqjFj=0, for j=1,2,,J Their big advantage over the initial Newton law equations (4) is that the Lagrange equations do not include the constraining forces Nk, and thus there are only J of them - typically much fewer than 3N.

This is as far as we can go for arbitrary forces. However, if all the forces may be expressed in the form similar to, but somewhat more general than Eq. (1.22), Fk=kU(r1,r2,,rN,t), where U is the effective potential energy of the system, 8 and k denotes the spatial differentiation over coordinates of the kth  particle, we may recast Eq. (8) into a simpler form: TjkFkrkqj=k(Uxkxkqj+Uykykqj+Uziziqj)Uqj. Since we assume that U depends only on particle coordinates (and possibly time), but not velocities: U/˙qj=0, with the substitution of Eq. (18), the Lagrange equation (17) may be represented in the socalled canonical form: ddtL˙qjLqj=0, where L is the Lagrangian function (sometimes called just the "Lagrangian"), defined as LTU (It is crucial to distinguish this function from the mechanical energy (1.26),E=T+U.)

Note also that according to Eq. (2.18), for a system under the effect of an additional generalized external force Tj(t) we have to use, in all these relations, not the internal potential energy U(int)  of the system, but its Gibbs potential energy UU(int )Jjqj see the discussion in Sec. 1.4.

Using the Lagrangian approach in practice, the reader should always remember that, first, each system has only one Lagrange function (19b), but is described by J1 Lagrange equations (19a), with j taking values 1,2,,J, and second, that differentiating the function L, we have to consider the generalized velocities as its independent arguments, ignoring the fact they are actually the time derivatives of the generalized coordinates.


1 Possibly, the simplest counter-example of a non-holonomic constraint is a set of inequalities describing the hard walls confining the motion of particles in a closed volume. Non-holonomic constraints are better dealt with other methods, e.g., by imposing proper boundary conditions on the (otherwise unconstrained) motion.

2 See, e.g., MA Eq. (10.7).

3 For a concise introduction to the field see, e.g., either I. Gelfand and S. Fomin, Calculus of Variations, Dover, 2000 , or L. Elsgolc, Calculus of Variations, Dover, 2007. An even shorter review may be found in Chapter 17 of Arfken and Weber - see MA Sec. 16. For a more detailed discussion, using many examples from physics, see R. Weinstock, Calculus of Variations, Dover, 2007.

4 See, e.g., MA Eq. (4.2). In all formulas of this section, all summations over j are from 1 to J, while those over the particle number k are from 1 to N, so that for the sake of brevity, these limits are not explicitly specified.

5 It was spelled out in a 1743 work by Jean le Rond d’Alembert, though the core of this result has been traced to an earlier work by Jacob (Jean) Bernoulli (1667 - 1748) - not to be confused with his son Daniel Bernoulli (17001782) who is credited, in particular, for the Bernoulli equation for ideal fluids, to be discussed in Sec. 8.4 below.

6 Note that since the dimensionality of generalized coordinates may be arbitrary, that of generalized forces may also differ from the newton.

7 They were derived in 1788 by Joseph-Louis Lagrange, who pioneered the whole field of analytical mechanics not to mention his key contributions to the number theory and celestial mechanics.

8 Note that due to the possible time dependence of U, Eq. (17) does not mean that the forces Fk have to be conservative - see the next section for more discussion. With this understanding, I will still use for function U the convenient name of "potential energy".


This page titled 2.1: Lagrange Equation is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Konstantin K. Likharev via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?