Constraint Forces via Lagrange Multipliers
Statement
For a system whose configuration coordinates q1,…,qn are subject to m independent holonomic constraints fα(q,t)=0, adjoining each constraint to Lagrange's equations with an undetermined multiplier λα(t) gives the unreduced equations of motion, and the adjoined terms Qic=Σαλα ∂fα/∂qi are exactly the generalized forces of constraint that would otherwise have to be supplied by hand.
Why it matters
The usual virtue of Lagrangian mechanics is that constraint forces vanish from the equations: choose independent coordinates and the normal reactions, tensions and rail forces never appear. But those forces are frequently the physical quantity you actually want — the tension that snaps a cable, the normal force that decides when a car leaves a hump, the rail load on a track. The multiplier method keeps the constraints as live equations and returns the forces as a by-product, at the price of a few extra unknowns.
It also unifies statics, dynamics and constrained optimization under one theorem: the multipliers here are the same objects as the Karush–Kuhn–Tucker multipliers in optimization and the “shadow prices” of duality. Understanding that the multiplier is a force is the conceptual pivot.
Assumptions
Derivation
Result
Reading. The generalized force of constraint on coordinate qi is a superposition of the constraint-surface normals ∂fα/∂qi, each weighted by its own multiplier λα. The multiplier is therefore the strength of that reaction: a single scalar per constraint that measures how hard the surface must push to keep fα=0. Because the force points along ∇fα it is normal to the constraint manifold, which is exactly why an ideal constraint does no work on motions tangent to that manifold.
Units check. Qic is conjugate to qi, so it carries units of [energy]/[qi]. The gradient ∂fα/∂qi carries [fα]/[qi], hence λα carries [energy]/[fα]. For a length-type constraint f=r−ℓ ([f]=m) this gives [λ]=J/m=N — the multiplier is literally a force in newtons.
Limiting cases
- Single constraint (m=1). Qic=λ ∂f/∂qi; the one multiplier is the signed magnitude of the single normal reaction (string tension, rail force).
- Force-free direction. If ∂fα/∂qk=0 for all α, then Qkc=0: the constraint exerts nothing along qk and motion there is free.
- Statics. Setting accelerations to zero recovers ∂V/∂qi=Σαλα ∂fα/∂qi — the method of virtual work, with λ the equilibrium reaction.
- Scleronomic constraint (∂fα/∂t=0). The constraint force does zero work over the motion, so mechanical energy is conserved even though Qc≠0.
Breaks when
- Genuinely non-holonomic constraints. A non-integrable velocity constraint Σiaαi(q,t)q̇i+bα=0 has no fα(q,t) to differentiate; multipliers can still be introduced on the Pfaffian form, but the coordinates cannot be reduced and the reaction is no longer the gradient of any configuration function (rolling coin, skate).
- Non-ideal constraints. With friction the constraint force has a tangential component that does work; the multiplier returns only the workless normal part, so λ ∇f underestimates the true reaction unless the friction is added by hand.
- Rank-deficient Jacobian. Redundant or degenerately-meeting constraints (Jacobian rank <m, or a singular configuration) leave the multipliers undetermined or divergent — the linear system in step 7 is not invertible.
- Impulsive / unilateral constraints. At impact or when a one-sided constraint (f≥0) is about to release, λ can jump or must change sign; the smooth-equality treatment fails and one needs complementarity conditions (λ≥0, λf=0).
Failure modes
- Reduce-and-multiply double count. Eliminating a constraint by choosing independent coordinates and still keeping its multiplier — once the constraint is used up its force is gone; you cannot get it back from the reduced description.
- Assuming λ is constant. The multiplier is a function of time (and generally of the state); freezing it turns a correct reaction into a wrong one except in trivial steady motion.
- Reading ∂f/∂qi as the physical force. It is only the direction; the newton-valued force is λ times that gradient, summed over all constraints and converted to Cartesian.
- Sign of the tension. Forgetting that Qrc=λ can be negative (inward pull) and quoting a negative “tension” instead of |λ|.
- Assuming [λ]=N always. The multiplier's units depend on the units of fα; for an angle- or area-type constraint it is not a force in newtons.
- Claiming the constraint does work. Computing Qc·v and getting nonzero without noticing the constraint is rheonomic (∂f/∂t≠0) — only the explicit time dependence carries energy in or out.
Discussion
The geometric picture is the cleanest way to hold the result. The constraints cut out a submanifold of configuration space; admissible velocities and virtual displacements are tangent to it, while the constraint gradients ∇fα span the normal directions. The multiplier equation says the reaction lives entirely in that normal space — it is a covector (a force) built from the constraint gradients, with the λα as its components in the gradient basis. This is precisely why ideal constraints drop out when you work in tangent (independent) coordinates: a force normal to the surface has no component along tangential displacements.
There is a genuine engineering trade-off between the two routes. Reducing to n−m independent coordinates gives the smallest system and hides the forces; keeping the multipliers gives n+m equations but hands you every reaction directly. When the reaction is the design quantity — will the cable hold, when does the wheel lift — the multiplier route is not a detour, it is the whole point. Numerically it produces a differential-algebraic system, and stabilization schemes (Baumgarte, index reduction) exist precisely because the algebraic constraint tends to drift.
The deepest reading is that λα is a sensitivity. In constrained optimization the multiplier equals the rate of change of the optimum with respect to relaxing the constraint — the shadow price — and the Karush–Kuhn–Tucker conditions are the static, inequality-augmented twin of what we derived. In field theory the same device enforces first-class constraints: in electromagnetism the scalar potential φ enters as the multiplier whose equation of motion is Gauss's law, and Dirac's constraint analysis generalizes the counting of steps 7–8 to infinite dimensions. The undetermined multiplier and the physical reaction are, in every one of these settings, the same mathematical object wearing different clothes.
Common misconceptions. The multiplier is not just a bookkeeping device with no physical content — it is a measurable force (the tension you could read off a spring scale). And “constraint forces do no work” is a statement about virtual displacements consistent with the instantaneous constraint, not about real displacements: a moving (rheonomic) constraint, such as a bead on a wire being cranked, does exchange energy with the system even though it is ideal.
Worked examples
Example 1 — Tension in a plane pendulum. A bob of mass m hangs on a light inextensible string of length ℓ; polar coordinates (r,θ) about the pivot, θ from the downward vertical. Find the string tension.
Reading. The multiplier λ≈−6.65 N is the radial reaction; its magnitude is the string tension, larger than the static value mg cosθ=4.25 N because of the centripetal demand.
Units check. m ℓ θ̇2 = kg·m·s−2 = N, and mg cosθ = N. Consistent.
Example 2 — String tension in an Atwood machine. Masses m1,m2 hang over an ideal pulley; coordinates x1,x2 measured downward. Find the tension.
Reading. The single multiplier is the common string tension. It lies between the two weights (m2g=19.6 N and m1g=29.4 N), as it must for the lighter mass to accelerate up and the heavier down.
Units check. 2m1m2g/(m1+m2) has units kg·(m/s2)=N; a has units m/s2. Consistent.
Problems
- Pendulum tension at the bottom. A bob m=0.8 kg on a string ℓ=0.50 m is released from rest with the string horizontal. Find the tension as it passes the lowest point.
Solution
Energy from horizontal to bottom: drop h=ℓ, so v2=2gℓ. From Example 1, T=m(g+v2/ℓ)=m(g+2g)=3mg. Thus T=3×0.8×9.81=23.5 N. The multiplier is λ=−23.5 N (inward); tension is three times the bob's weight at the bottom of a horizontal release. - Atwood numbers. For m1=5.0 kg and m2=3.0 kg, find the acceleration and the string tension.
Solution
a=(m1−m2)g/(m1+m2)=(2.0)(9.81)/8.0=2.45 m/s2. T=2m1m2g/(m1+m2)=2(5)(3)(9.81)/8=36.8 N (so λ=−36.8 N). Check: m2g=29.4 N < T < m1g=49.1 N. ✓ - Normal force on a frictionless incline. A block m=2.0 kg rests on a fixed frictionless plane of angle β=30°. Using along-slope and perpendicular coordinates (s,n) with constraint f=n=0, find the multiplier and identify the normal force.
Solution
Height is s sinβ+n cosβ, so L=½m(ṡ2+ṅ2)−mg(s sinβ+n cosβ). The n-equation: mn̈+mg cosβ=λ ∂f/∂n=λ. On the constraint n̈=0, so λ=mg cosβ=N. Numerically N=2.0×9.81×cos30°=17.0 N. The s-equation gives the free slide s̈=−g sinβ=−4.9 m/s2, with no multiplier — the constraint exerts nothing along the slope, as expected for a frictionless surface. - Where a particle leaves a sphere. A particle starts at rest at the top of a frictionless sphere of radius R and slides down. Using the constraint f=r−R=0, show the multiplier is the normal reaction and find the angle θ (from the upward vertical) at which the particle leaves the surface.
Solution
With L=½m(ṙ2+r2θ̇2)+mgr cosθ and f=r−R, the r-equation on r=R gives −mRθ̇2−mg cosθ=λ, i.e. the outward normal is N=mg cosθ+λ… more directly, radial Newton: mg cosθ−N=mv2/R with N=−λ. Energy: v2=2gR(1−cosθ). The particle leaves when N=0 (λ=0): mg cosθ=m 2g(1−cosθ) ⇒ 3cosθ=2 ⇒ cosθ=2/3, θ=48.2°. The multiplier vanishing is exactly the physical condition “contact force goes to zero.” - Conical pendulum tension. A bob m=0.30 kg on a string ℓ=1.0 m moves in a steady horizontal circle with the string at α=30° to the vertical. Using the constraint r=ℓ, find the tension (the radial multiplier) and the period.
Solution
For steady conical motion the radial multiplier along the string is −T. Force balance: vertical T cosα=mg ⇒ T=mg/cosα; horizontal T sinα=mω2(ℓ sinα) ⇒ ω2=g/(ℓ cosα). Numbers: T=0.30×9.81/cos30°=2.943/0.8660=3.40 N (so λ=−3.40 N). ω2=9.81/(1.0×0.8660)=11.33, ω=3.37 rad/s, period Tp=2π/ω=1.87 s. The tension exceeds the weight mg=2.94 N by the factor 1/cosα.