The previous page reviewed the calculus of variations. The rest of Section 1.5 of Stewart's notes (pp. 23–28) introduces Lagrange multipliers, the same idea as in constrained optimisation in 18.02, now applied to equations of motion, and ends Chapter 1 with three examples. This page follows the notes in order, in its own words, with its own worked example.
Why multipliers#
Choosing independent coordinates removes holonomic constraints, but it also hides the forces that maintain them. Multipliers help in two situations (notes p. 23), assuming for now that all forces come from a potential, :
- when we want the forces of holonomic constraints, for instance to know when a constraint stops holding;
- when the constraints are semi-holonomic, so no choice of coordinates removes them.
The method#
Take coordinates and constraints, labelled by , each linear in the velocities (notes p. 24):
In words
g sub alpha (q, q dot, t) equals a sub j alpha (q, t) q sub j dot plus a sub t alpha (q, t) equals 0
with repeated indices summed. Multiplying by , , and a virtual displacement has , so
In words
the sum from j equals 1 to n of a sub j alpha delta q sub j equals 0
These are conditions on the . Multiply each by a function , a Lagrange multiplier, and add them up: the sum is still zero, and adding zero to d'Alembert's principle changes nothing:
In words
the quantity d over d t ( partial L over partial q sub j dot ) minus partial L over partial q sub j minus lambda sub alpha a sub j alpha, delta q sub j equals 0
summed over and . Summed over first, the multiplier term is zero for any . Now look instead at each separately. Only of the can be chosen freely, so for those the bracket must vanish. For the other values of , choose the multipliers so that their brackets vanish too. Then every bracket is zero:
In words
d over d t ( partial L over partial q sub j dot ) minus partial L over partial q sub j equals lambda sub alpha a sub j alpha
These are equations, one per , each with a sum over on the right. The right side is the generalized force of constraint . Together with the constraints there are equations for the unknowns and .
Holonomic constraints, . Then , so and
In words
d over d t ( partial L over partial q sub j dot ) minus partial L over partial q sub j equals the sum from alpha equals 1 to k of lambda sub alpha partial f sub alpha over partial q sub j
The same follows from Hamilton's principle with an enlarged Lagrangian, varying both the and the :
In words
capital J ( q sub j, lambda sub alpha ) equals the integral from t one to t two of the quantity L plus lambda sub alpha f sub alpha, d t
(varying gives back ). One can read as an extra potential energy, which costs work to leave the surface . Its force, , points along the gradient of , normal to the constraint surface, as a constraint force should (notes p. 25).
Semi-holonomic constraints, with :
In words
d over d t ( partial L over partial q sub j dot ) minus partial L over partial q sub j equals the sum from alpha equals 1 to k of lambda sub alpha partial g sub alpha over partial q sub j dot
In general this does not follow from Hamilton's principle; it needs d'Alembert's principle, which is why the notes spent time on it. Static friction enforcing rolling is such a constraint, and the force term has the same form as the friction force from the dissipation function of the previous section.
A mass sliding off a sphere#
A particle of mass sits at the top of a frictionless sphere of radius , is nudged to a small angle , and slides down (notes pp. 25–26). Where does it leave the surface? Use spherical coordinates with measured from the top, and drop the azimuth by symmetry. The true constraint is an inequality, but while the particle touches the sphere holds, and the particle leaves where the force of this constraint drops to zero. With and , the and equations are
In words
m r double dot minus m r theta dot squared plus m g cos theta equals lambda
In words
d over d t (m r squared theta dot ) minus m g r sine theta equals 0
(, so no multiplier in the second). With these are three equations for , and . On the sphere , leaving and . Multiplying the first by and integrating from rest at the top gives , and then
In words
lambda equals m g of the quantity 3 cos theta minus 2
the radial constraint force. It vanishes, and the mass leaves the sphere, at , .
The multiplier depends on how the constraint is written. With and multiplier , the force is at , so : a multiplier with another meaning and other units, but the same constraint force (notes p. 26).
After leaving. For the constraint is gone and the equations lose their . Leaving happens at , , and . Cartesian coordinates , are now simpler:
In words
L equals m over 2, times the quantity x dot squared plus z dot squared, all minus m g z
so and , starting from and with velocities and :
In words
x(t) equals x one dot the quantity t minus t one, all plus x one, z(t) equals minus g over 2, times the quantity t minus t one, all squared plus z 1 dot the quantity t minus t one, all plus z sub 1
The time of leaving follows from the speed on the sphere,
In words
theta dot squared equals 2 g over a, times the quantity 1 minus cos theta, equals 4 g over a, times sine squared ( theta over 2 )
so . The integral grows without limit as : a particle starting exactly at the top, at rest, would stay there.
A hoop rolling down a ramp#
A hoop of mass and radius rolls without slipping down a ramp inclined at (notes pp. 26–27). Let be the distance travelled down the slope, with the bottom of the ramp at so that vanishes there, and the angle the hoop has turned. Rolling means ; this could be integrated to a holonomic constraint, but the notes treat it as semi-holonomic, . (The notes print "" at the end of this; it should be .) With ,
In words
L equals capital T minus V equals m over 2, times x dot squared plus m a squared over 2, times theta dot squared plus m g of the quantity x minus ell, sine phi
With and , eq. (1.91) gives
In words
m x double dot minus m g sine phi equals minus lambda, m a squared theta double dot equals lambda a
(The notes write in the first equation; the sign must be minus, since , and only then do the results below follow.) Differentiating the constraint, , so the second equation says . The first then gives :
In words
x double dot equals g over 2, times sine phi, lambda equals one half m g sine phi
The hoop accelerates at half the rate of a frictionless sliding block, is the static friction force pointing up the slope (along ), and .
A block on a wedge on ice#
Last, a wedge of mass and angle slides without friction on ice, and a block of mass slides without friction down its sloping face (notes pp. 27–28). Two constraints are of interest (the one keeping the wedge from rotating is ignored): the wedge stays on the ice, , and the block stays on the face, . With and , where is the height of the wedge's centre of mass above its base, eq. (1.89) gives
In words
m one x one double dot equals minus lambda one tan alpha, m one y one double dot plus m one g equals lambda one, m two x two double dot equals lambda one tan alpha, m two y 2 double dot plus m two g equals minus lambda one plus lambda two
Number these (1) to (4), and the two constraints (5) and (6). From (6), , so (4) says : is the push of the ice on the wedge and the vertical part of the push of the wedge on the block. Adding (1) and (3) gives : no horizontal force acts on the pair. Differentiating (5) twice, , and using (1) to (3),
In words
lambda one equals m one m two g cos squared alpha over the quantity m two plus m one sine squared alpha
(the notes write it as divided by ; this is the same over a common denominator). It is a constant, so all the accelerations are constant:
In words
x two double dot equals tan alpha over m two, times lambda one, x one double dot equals minus tan alpha over m one, times lambda one, y one double dot equals lambda one over m one minus g
Two checks. A very heavy wedge, , does not move, , and then , and : a block on a fixed incline. And as the wedge flattens onto the ice and both accelerations vanish.
The pull of a pendulum rod
A bob of mass kg on a light rigid rod of length is released from rest with the rod horizontal. Use a Lagrange multiplier to find the force of the rod on the bob as a function of the angle from the downward vertical, and its value at the lowest point.
Set up
Keep as a coordinate, with the constraint . Measuring from the downward vertical, .
The radial equation
The equation is . On the constraint , so . It is negative: the rod pulls the bob inwards, a tension of size .
The speed
The equation, or energy conservation, gives when starting from rest at . So and , whatever the length of the rod.
At the bottom
At , N, three times the bob's weight of N.
Summary#
- Constraints , multiplied by and added to d'Alembert's principle, give ; with the constraints, equations for and .
- The right side is the generalized force of constraint: for holonomic constraints (also from ), for semi-holonomic ones (from d'Alembert only).
- A mass sliding from the top of a sphere feels and leaves at ; rewriting the constraint changes the multiplier, not the force.
- A hoop rolling down a ramp accelerates at with friction .
- A block on a wedge on ice has constant accelerations set by the constant multiplier , and reduces to a block on a fixed incline as .