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

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Physics LibreTexts

5.9: Lagrange multipliers for Holonomic Constraints

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

Algebraic equations of constraint

The Lagrange multiplier technique provides a powerful, and elegant, way to handle holonomic constraints using Euler’s equations1. The general method of Lagrange multipliers for n variables, with m constraints, is best introduced using Bernoulli’s ingenious exploitation of virtual infinitessimal displacements, which Lagrange signified by the symbol δ. The term "virtual" refers to an intentional variation of the generalized coordinates δqi in order to elucidate the local sensitivity of a function F(qi,x) to variation of the variable. Contrary to the usual infinitessimal interval in differential calculus, where an actual displacement dqi occurs during a time dt, a virtual displacement is imagined to be an instantaneous, infinitessimal, displacement of a coordinate, not an actual displacement, in order to elucidate the local dependence of F on the coordinate. The local dependence of any functional F, to virtual displacements of all n coordinates, is given by taking the partial differentials of F.

δF=niFqiδqi

The function F is stationary, that is an extremum, if Equation ??? equals zero. The extremum of the functional F, given by equation (5.5.1), can be expressed in a compact form using the virtual displacement formalism as δF=δx2x1nif[qi(x),qi(x);x]dx=niFqiδqi=0

The auxiliary conditions, due to the m holonomic algebraic constraints for the n variables qi, can be expressed by the m equations

gk(q)=0

where 1km and 1in with m<n. The variational problem for the m holonomic constraint equations also can be written in terms of m differential equations where 1km δgk=ni=1gkqiδqi=0

Since equations ??? and ??? both equal zero, the m equations ??? can be multiplied by arbitrary undetermined factors λk, and added to equations ??? to give.

δF(qi,x)+λ1δg1+λ2δg2λkδgkλmδgm=0

Note that this is not trivial in that although the sum of the constraint equations for each yi is zero; the individual terms of the sum are not zero.

Insert equations ??? plus ??? into ???, and collect all n terms, gives ni(Fqi+mk=1λkgkqi)δqi=0

Note that all the δqi are free independent variations and thus the terms in the brackets, which are the coefficients of each δqi, individually must equal zero. For each of the n values of i, the corresponding bracket implies

Fqi+mk=1λkgkqi=0

This is equivalent to what would be obtained from the variational principle

δF+mk=1λkδgk=0

Equation ??? is equivalent to a variational problem for finding the stationary value of F

δ(F)=δ(F+mkλkgk)=0

where F is defined to be

F(F+mk=1λkgk)

The solution to Equation ??? can be found using Euler’s differential equation (5.5.4) of variational calculus. At the extremum δ(F)=0 corresponds to following contours of constant F which are in the surface that is perpendicular to the gradients of the terms in F. The Lagrange multiplier constants are required because, although these gradients are parallel at the extremum, the magnitudes of the gradients are not equal.

The beauty of the Lagrange multipliers approach is that the auxiliary conditions do not have to be handled explicitly, since they are handled automatically as m additional free variables during solution of Euler’s equations for a variational problem with n+m unknowns fit to n+m equations. That is, the n variables qi are determined by the variational procedure using the n variational equations

ddx(Fqi)(Fqi)=ddx(Fqi)(Fqi)mkλkgkqi=0

simultaneously with the m variables λk which are determined by the m variational equations

ddx(Fλk)(Fλk)=0

Equation ??? usually is expressed as

(Fqi)ddx(Fqi)+mkλkgkqi=0

The elegance of Lagrange multipliers is that a single variational approach allows simultaneous determination of all n+m unknowns. Chapter 6.2 shows that the forces of constraint are given directly by the λkgkqi terms.

Example 5.9.1: Two dependent variables coupled by one holonomic constraint

The powerful, and generally applicable, Lagrange multiplier technique is illustrated by considering the case of only two dependent variables, y(x), and z(x), with the function f(y(x),y(x),z(x),z(x);x) and with one holonomic equation of constraint coupling these two dependent variables. The extremum is given by requiring

Fϵ=x2x1[(fyddxfy)yϵ+(fzddxfz)zϵ]dx=0

with the constraint expressed by the auxiliary condition

g(y,z;x)=0

Note that the variations yϵ and zϵ are no longer independent because of the constraint equation, thus the the two terms in the brackets of Equation A are not separately equal to zero at the extremum. However, differentiating the constraint Equation B gives

dgdϵ=(gyyϵ+gzzϵ)=0

No gx term applies because, for the independent variable, xϵ =0. Introduce the neighboring paths by adding the auxiliary functions

y(ϵ,x)=y(x)+ϵη1(x)z(ϵ,x)=z(x)+ϵη2(x)

Insert the differentials of equations D and E , into C gives

dgdϵ=(gyη1(x)+gzη2(x))=0

implying that

η2(x)=gygzη1(x)

Equation A can be rewritten as

x2x1[(fyddxfy)η1(x)+(fzddxfz)η2(x)]dx=0x2x1[(fyddxfy)(fzddxfz)gygz]η1(x)dx=0

Equation G now contains only a single arbitrary function η1(x) that is not restricted by the constraint. Thus the bracket in the integrand of Equation G must equal zero for the extremum. That is

(fyddxfy)(gy)1=(fzddxfz)(gz)1λ(x)

Now the left-hand side of this equation is only a function of f and g with respect to y and y while the right-hand side is a function of f and g with respect to z and z. Because both sides are functions of x then each side can be set equal to a function λ(x). Thus the above equations can be written as

ddxfyfy=λ(x)gyddxfzfz=λ(x)gz

The complete solution of the three unknown functions. y(x),z(x), and λ(x). is obtained by solving the two equations, H, plus the equation of constraint F. The Lagrange multiplier λ(x) is related to the force of constraint. This example of two variables coupled by one holonomic constraint conforms with the general relation for many variables and constraints given by Equation ???.

Integral equations of constraint

The constraint equation also can be given in an integral form which is used frequently for isoperimetric problems . Consider a one dependent-variable isoperimetric problem, for finding the curve q=q(x) such that the functional has an extremum, and the curve q(x) satisfies boundary conditions such that q(x1)=a and q(x2)=b. That is

F(y)=x2x1f(q,q;x)dx

is an extremum such that the fixed length l of the perimeter satisfies the integral constraint G(y)=x2x1g(q,q;x)dx=l

Analogous to ??? these two functionals can be combined requiring that

δK(q,x,λ)δ[F(q)+λG(q)]=δx2x1[f+λg]dx=0

That is, it is an extremum for both q(x) and the Lagrange multiplier λ. This effectively involves finding the extremum path for the function K(q,x,λ)=F(q,x)+λG(q,x) where both q(x) and λ are the minimized variables. Therefore the curve q(x) must satisfy the differential equation

ddxfqifqi+λ[ddxgqigqi]=0

subject to the boundary conditions q(x1)=a, q(x2)=b, and G(q)=l.

Example 5.9.2: Catenary

One isoperimetric problem is the catenary which is the shape a uniform rope or chain of fixed length l that minimizes the gravitational potential energy. Let the rope have a uniform mass per unit length of σ kg/m.

5.9.1.PNG
Figure 5.9.1: The catenary

The gravitational potential energy is

U=σg21yds=σg21ydx2+dy2=σg21y1+y2dx

The constraint is that the length be a constant l

l=21ds=211+y2dx

Thus the function is f(y,y;x)=y1+y2 while the integral constraint sets g=1+y2

These need to be inserted into the Euler Equation ??? by defining

F=f+λg=(y+λ)1+y2

Note that this case is one where Fx=0 and λ is a constant; also defining z=y+λ then z=y. Therefore the Euler’s equations can be written in the integral form

FzFz=c=constant

Inserting the relation F=z1+z2 gives

z1+z2zzz1+z2=c

where c is an arbitrary constant. This simplifies to

z2=(zc)21

The integral of this is

z=ccosh(x+bc)

where b and c are arbitrary constants fixed by the locations of the two fixed ends of the rope.

Example 5.9.3: The Queen Dido problem

A famous constrained isoperimetric legend is that of Dido, first Queen of Carthage. Legend says that, when Dido landed in North Africa, she persuaded the local chief to sell her as much land as an oxhide could contain. She cut an oxhide into narrow strips and joined them to make a continuous thread more than four kilometers in length which was sufficient to enclose the land adjoining the coast on which Carthage was built. Her problem was to enclose the maximum area for a given perimeter. Let us assume that the coast line is straight and the ends of the thread are at ±a on the coast line. The enclosed area is given by

A=+aaydx

The constraint equation is that the total perimeter equals l.

aa1+y2dx=l

Thus we have that the functional f(y,y,x)=y and g(y,y,x)=1+y2. Then fy=1,fy=0,gy=0 and gy=y1+y2. Insert these into the Euler-Lagrange Equation ??? gives

1λddx[y1+y2]=0

That is

ddx[y1+y2]=1λ

Integrate with respect to x gives

λy1+y2=xb

where b is a constant of integration. This can be rearranged to give

y=±(xb)λ2(xb)2

The integral of this is

y=λ2(xb)2+c

Rearranging this gives

(xb)2+(yc)2=λ2

This is the equation of a circle centered at (b,c). Setting the bounds to be (a,0) to (a,0) gives that b=c=0 and the circle radius is λ. Thus the length of the thread must be l=πλ. Assuming that l=4km then λ=1.27km and Queen Dido could buy an area of 2.53km2.


1This textbook uses the symbol qi to designate a generalized coordinate, and qi to designate the corresponding first derivative with respect to the independent variable, in order to differentiate the spatial coordinates from the more powerful generalized coordinates.


This page titled 5.9: Lagrange multipliers for Holonomic Constraints is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Douglas Cline via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?