Jump to content

Hamilton's principle/Mathematics/Lagrange multipliers: Difference between revisions

From The Invariance Itself
m 1 revision imported
Pipe internal links so cross-references read as titles, not paths
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:Lagrange multipliers}}
{{Plebeian|Hamilton's principle/Explainers/Multipliers}}
{{Plebeian|Hamilton's principle/Explainers/Multipliers}}


Line 5: Line 6:
unknown function per constraint, and it returns the constraint forces as a
unknown function per constraint, and it returns the constraint forces as a
by-product. This page derives the method for the holonomic constraints defined on
by-product. This page derives the method for the holonomic constraints defined on
[[Hamilton's principle/Mathematics/Holonomic constraints]].
[[Hamilton's principle/Mathematics/Holonomic constraints|Holonomic constraints]].


== Statement ==
== Statement ==
Line 30: Line 31:


Take <math>r = 1</math> and drop the index. From
Take <math>r = 1</math> and drop the index. From
[[Hamilton's principle/Mathematics/Holonomic constraints]], stationarity gives
[[Hamilton's principle/Mathematics/Holonomic constraints|Holonomic constraints]], stationarity gives


:<math>\int_a^b \sum_{i=1}^n E_i\, \eta_i \, dx = 0
:<math>\int_a^b \sum_{i=1}^n E_i\, \eta_i \, dx = 0
Line 122: Line 123:


Return to the system of
Return to the system of
[[Hamilton's principle/Mathematics/Holonomic constraints]]:
[[Hamilton's principle/Mathematics/Holonomic constraints|Holonomic constraints]]:


:<math>L = \tfrac{1}{2}m(\dot y_1^2 + \dot y_2^2) + m g_0 y_2,
:<math>L = \tfrac{1}{2}m(\dot y_1^2 + \dot y_2^2) + m g_0 y_2,
Line 161: Line 162:
once rather than pointwise. Its multiplier is then a single constant. Those are
once rather than pointwise. Its multiplier is then a single constant. Those are
'''isoperimetric''' constraints, and they are the subject of
'''isoperimetric''' constraints, and they are the subject of
[[Hamilton's principle/Mathematics/Isoperimetric problems]].
[[Hamilton's principle/Mathematics/Isoperimetric problems|Isoperimetric problems]].


Confusing the two is a common error. The test is whether the constraint is one
Confusing the two is a common error. The test is whether the constraint is one
Line 179: Line 180:
Provenance: the attribution to Lagrange is editorial. The
Provenance: the attribution to Lagrange is editorial. The
''Mécanique analytique'' rows of the survey on
''Mécanique analytique'' rows of the survey on
[[Hamilton's principle/Sources]] are PROVISIONAL, and the 1788 and 1811 editions
[[Hamilton's principle/Sources|Sources]] are PROVISIONAL, and the 1788 and 1811 editions
are tracked separately because they differ substantially. No equation on this
are tracked separately because they differ substantially. No equation on this
page is attributed to either edition. The Hamilton citation is ESTABLISHED.
page is attributed to either edition. The Hamilton citation is ESTABLISHED.
Line 186: Line 187:
== Next ==
== Next ==


[[Hamilton's principle/Mathematics/Isoperimetric problems]] treats the
[[Hamilton's principle/Mathematics/Isoperimetric problems|Isoperimetric problems]] treats the
constant-multiplier case.
constant-multiplier case.


Line 192: Line 193:


<references />
<references />

Latest revision as of 04:57, 16 September 2026

Plain-language version: Multipliers

The method of multipliers restores the independence that a constraint destroys. It buys back the select-one-index argument by introducing one new unknown function per constraint, and it returns the constraint forces as a by-product. This page derives the method for the holonomic constraints defined on Holonomic constraints.

Statement

Tension in a swinging load.

Theorem. Let y=(y1,…,yn) be stationary for

J[y]=∫abL(x,yi,yi′)dx(1)

among admissible paths satisfying the r independent holonomic constraints gβ(x,y)=0. Then there exist functions λ1(x),…,λr(x) such that y is stationary for the augmented functional

J∗[y,λ]=∫ab[L+∑β=1rλβ(x)gβ(x,y)]dx(2)

with y and λ now varied independently.

Derivation for one constraint

Take r=1 and drop the index. From Holonomic constraints, stationarity gives

∫ab∑i=1nEiηidx=0(3)

for every variation obeying the admissibility condition

∑i=1n∂g∂yiηi=0(4)

Step 1. Pick an index the constraint actually constrains. By the rank assumption there is some index — relabel it n — with ∂g/∂yn≠0 on the interval. Solve (4) for ηn:

ηn=−(∂g∂yn)−1∑i=1n−1∂g∂yiηi(5)

The first n−1 variations are now free, and the last is determined by them.

Step 2. Define the multiplier so as to kill the n-th term. Set

λ(x)=−En(∂g∂yn)−1(6)

This is a definition, not an assumption. λ is whatever (6) says it is, and it is continuous because En and the partial are. By construction,

En+λ∂g∂yn=0(7)

so the n-th equation of the target system holds automatically.

Step 3. Substitute and use the freedom. Add ∫λ∑i(∂g/∂yi)ηidx to (3), which is legitimate because that integral is zero by (4):

∫ab∑i=1n[Ei+λ∂g∂yi]ηidx=0(8)

The i=n term vanishes identically by (7), leaving a sum over i=1,…,n−1 whose variations are free by Step 1. The select-one-index argument now applies, and the fundamental lemma gives

Ei+λ∂g∂yi=0,i=1,…,n−1(9)

Together with (7), the relation holds for all n indices. ◼

The pattern is worth naming: one index is spent buying freedom for the rest. The multiplier is defined precisely so that the spent index costs nothing, and the remaining indices are then unconstrained. With r constraints, r indices are spent and the same argument runs with an invertible r×r block in place of the single nonzero partial.

Why the augmented functional works

Varying (2) with respect to yi gives (9) directly, since g contains no yi′ and contributes only λ∂g/∂yi to the yi equation. Varying with respect to λβ gives

∂J∗∂λβ:gβ(x,y)=0(10)

which returns the constraint. So the augmented problem is unconstrained in n+r unknowns, and its stationarity conditions are the n equations (9) plus the r constraints. The count balances, and the constraint is enforced by a variation rather than by restricting the admissible set.

That last point is the conceptual content of the method. A restriction on the domain has been traded for an addition to the integrand.

The multiplier is the constraint force

Equation (9) reads Ei=−λ∂g/∂yi. The right side is normal to the constraint surface, with λ setting its magnitude. So λ is not bookkeeping: it is the force the constraint exerts, in the units the coordinates imply, and it is usually the answer the engineer wanted.

Worked example: the pendulum, with tension

Return to the system of Holonomic constraints:

L=12m(y˙12+y˙22)+mg0y2,g=y12+y22−ℓ2(11)

Then ∂g/∂y1=2y1 and ∂g/∂y2=2y2, and (9) gives

my¨1=−2λy1,my¨2−mg0=−2λy2(12)

together with y12+y22=ℓ2. Substituting y1=ℓsin⁡θ, y2=ℓcos⁡θ into (12) and combining so as to eliminate λ reproduces

mℓ2θ¨+mg0ℓsin⁡θ=0(13)

as before. Combining the other way, so as to keep λ, gives

2λℓ=mg0cos⁡θ−mℓθ˙2(14)

and the rod tension is T=2λℓ, containing both the weight component and the centripetal term. The elimination method on the previous page produced (13) and could not produce (14). That is the practical case for multipliers.

Constant multipliers

In (2) the multipliers are functions of x, because the constraint is imposed at every point. A different kind of constraint fixes a single number — the total length of a curve, the total mass of a distribution — and is imposed once rather than pointwise. Its multiplier is then a single constant. Those are isoperimetric constraints, and they are the subject of Isoperimetric problems.

Confusing the two is a common error. The test is whether the constraint is one equation per point or one equation for the whole path.

Historical note

The method is Lagrange's, and multipliers appear in the Mécanique analytique as the device by which the equations of constrained systems are written without first eliminating coordinates. Hamilton reproduces the technique in the 1834 essay, introducing factors λ1,…,λk to adjoin the equations of condition before decomposing the variation.[1]

Provenance: the attribution to Lagrange is editorial. The Mécanique analytique rows of the survey on Sources are PROVISIONAL, and the 1788 and 1811 editions are tracked separately because they differ substantially. No equation on this page is attributed to either edition. The Hamilton citation is ESTABLISHED.

Next

Isoperimetric problems treats the constant-multiplier case.

References

  1. ↑ Hamilton, On a General Method in Dynamics (1834), equations (31.) to (D1.). The multipliers are Hamilton's λ and Λ. ESTABLISHED source.