Exercises — Constraints using Lagrange multipliers
Prerequisites you may want open: Euler-Lagrange Equations, d'Alembert's Principle and Virtual Work, Generalized Coordinates and Degrees of Freedom, Holonomic vs Non-holonomic Constraints, Normal Force and Tension as Constraint Forces, KKT Conditions.
Level 1 — Recognition
Goal: identify the pieces of the method without heavy algebra.
Exercise L1.1 — Name the gradient
Recall Solution
(a) Move everything to one side: . (b) , . (c) The vector is perpendicular (normal) to the line. This matters because a rail/wire pushes a bead sideways off the track — never along it. So the constraint force must point along , which is exactly what delivers. (Check: the line's direction is ; dot product , confirming perpendicular.)
Exercise L1.2 — Count the equations
Recall Solution
Unknowns: the coordinates plus the multipliers = unknown functions of time. Equations: Lagrange equations (one per coordinate) plus constraint equations = equations. Balanced: . ✓ The constraints "pay the rent" for the extra multipliers.
Level 2 — Application
Goal: run the recipe end-to-end on a clean single-constraint system.
Exercise L2.1 — Bead on a horizontal rotating-free hoop, normal force
Recall Solution
Horizontal plane ⇒ no gravity term. . -equation: . Impose so : . With : . Interpretation: is the generalized radial force. Negative means it points toward decreasing , i.e. inward — the hoop pulls the bead toward the center. Its magnitude is exactly the centripetal force. The method reproduces the familiar with . ✓
Exercise L2.2 — Vertical hoop, derive then find where the bead leaves
Recall Solution
(a) Derive from scratch. In plane polar coordinates the position height is , so (here grows upward against gravity, so the potential carries a plus by our convention). Then The constraint is , so , . The -equation of the recipe is
\;\Rightarrow\; \frac{d}{dt}(m\dot r)-\big(mr\dot\theta^2-mg\sin\theta\big)=\lambda\cdot 1.$$ So $m\ddot r-mr\dot\theta^2+mg\sin\theta=\lambda$. Now — *and only now* — impose the constraint $r=R\Rightarrow\dot r=\ddot r=0$: $$-mR\dot\theta^2+mg\sin\theta=\lambda.$$ The physical normal force is $N=\lambda\,\partial f/\partial r=\lambda\cdot 1=\lambda$, so $$\boxed{N=mg\sin\theta-mR\dot\theta^2}.$$ **Sign convention check:** at the very bottom $\theta=-90^\circ$, $\sin\theta=-1$, giving $N=-mg-mR\dot\theta^2<0$; with our convention $\lambda\partial f/\partial r$ negative means the force points toward *decreasing* $r$ (inward), i.e. the hoop pushes the bead toward the center — correct, that is where a floor-like surface pushes. **(b)** The bead presses on the *inside* while the hoop must push inward, i.e. while $N$ (as an inward magnitude) is available; it leaves when the required inward push would reverse. At the top $\theta=+90^\circ$, $\sin\theta=1$, the critical case is $N=0$: $$N=mg(1)-mR\dot\theta^2_{\text{top}}=0\ \Rightarrow\ R\dot\theta^2_{\text{top}}=g\ \Rightarrow\ v_{\text{top}}^2=(R\dot\theta)^2=gR.$$ Energy conservation from bottom ($y=-R$) to top ($y=+R$), height gain $2R$: $$\tfrac12 v_0^2=\tfrac12 v_{\text{top}}^2+g(2R)=\tfrac12 gR+2gR=\tfrac52 gR.$$ $$\boxed{v_0=\sqrt{5gR}}.$$ Having *derived* $N=\lambda$ ourselves is what let us write the "leaves the surface" condition $N=0$ directly — the whole payoff of the multiplier method.Level 3 — Analysis
Goal: multi-equation systems, extract the physical force, check signs.
Exercise L3.1 — Cylinder on incline, friction as multiplier
The figure below fixes our sign convention: is measured down the slope (amber arrow), so the disk's center moves in as it descends; friction (cyan arrow) acts up the slope at the contact point, and gravity resolves to along . Keep this picture in mind — every sign below is read off it.

Recall Solution
-equation (): . …(i) -equation (): . …(ii)
Why differentiate the rolling constraint twice? Equations (i) and (ii) contain two unknown accelerations plus the unknown — three unknowns, only two equations. The recipe promises a third equation: the constraint itself, . But relates positions, whereas (i)–(ii) are about accelerations. To make the constraint speak the same language, differentiate it twice in time: This gives , the missing third relation that lets us eliminate and solve for .
Put into (ii): . Substitute into (i): . With , so : (b) Friction magnitude . The physical friction on is , i.e. pointing in = up the slope (opposing the descent) — exactly the cyan arrow in the figure.
Exercise L3.2 — Two beads on a rigid rod (shared constraint)
Recall Solution
. . : . …(i) : . …(ii) Constraint twice-differentiated: . Add (i)+(ii): From (ii): . Interpretation: is the force in the rod. Bead 2 is dragged forward by the rod with force , and bead 1 feels the rod pulling back on it with . So the rod is in tension — the rod transmits half the applied force to the second bead, exactly what Newton predicts for two equal masses. .
Level 4 — Synthesis
Goal: combine constraints, degenerate/limiting cases, changing setups.
Exercise L4.1 — Atwood machine with heavy pulley, all limits
The figure shows the geometry: (amber block) drops by while rises by because the string is inextensible, and the pulley of moment turns by (white curved arrow) with no slip, giving the constraint . Use it to keep track of which mass moves which way.

Recall Solution
Note already carries both masses (string is inextensible), so treat as one coordinate plus . . : . …(i) : . …(ii) Constraint differentiated twice (same reasoning as L3.1: we need an acceleration-level relation to eliminate ): , so (ii) ⇒ . Into (i): . (b) : — the classic Atwood result. ✓ And : a massless pulley needs no net torque, so the tension difference between the two sides vanishes. ✓ (c) : . An infinitely heavy pulley cannot be spun, so nothing moves. The system freezes — the degenerate limit behaves sensibly. ✓
Exercise L4.2 — When the constraint force switches off (degenerate case)
Recall Solution
Why an effective gravity? We solve in the elevator's own (accelerating, non-inertial) frame, because in that frame the constraint is simply "block stays on the floor" with fixed. Newton's laws don't hold as-is in an accelerating frame; the standard fix is to add a fictitious force on every mass. The frame accelerates downward at , so the fictitious force points upward with magnitude . Combined with real gravity downward, each mass feels a net downward pull — this is the effective gravity . It is a genuine derivation, not an assertion: fictitious force + real gravity = effective gravity. With up, the effective-gravity potential is (grows as the block rises), so -equation: . Impose : (b) Contact requires . At (free fall), : the multiplier drops to zero, meaning the floor pushes with no force — the block is weightless and on the verge of floating off. For the block would need the floor to pull it (), which a floor cannot do, so the constraint breaks and is no longer valid. This is exactly the " ⇒ leaves the surface" logic. ✓
Level 5 — Mastery
Goal: full research-style problem tying gradient geometry, all cases, and interpretation together.
Exercise L5.1 — Bead on a parabolic wire, full multiplier and the "flying off" analysis
The figure shows the parabola (cyan), a bead on it, and the constraint gradient (amber arrow) pointing off the wire, normal to it — the only direction a frictionless wire can push. Notice the gradient is not a unit vector: its length grows as you move away from the vertex, which is exactly why part (c) must multiply by to get the physical force.

Recall Solution
Here points up and gravity pulls down, so by our convention enters with a minus: Gradient of the constraint: .
(a) Multiplier equations:
- : . …(i)
- : . …(ii)
(b) Constraint differentiated twice (again to reach acceleration level, as in L3.1): From (i): . From (ii): . Substitute this into (i):
(c) Back-substitute to get : Using the boxed : , so
=m\cdot\dfrac{(k\dot x^2+g)(1+k^2x^2)-k^2x^2(g+k\dot x^2)}{1+k^2x^2}.$$ The $k^2x^2$ terms cancel in the numerator, leaving $$\boxed{\lambda=\dfrac{m(g+k\dot x^2)}{1+k^2x^2}}.$$ The **normal force** magnitude is $N=|\lambda|\cdot\|\nabla f\|=|\lambda|\sqrt{(kx)^2+1}=\dfrac{m(g+k\dot x^2)}{\sqrt{1+k^2x^2}}$, because the *physical* force is the vector $\lambda\nabla f$ and $\|\nabla f\|=\sqrt{k^2x^2+1}$. **Units:** $[k]=\text{m}^{-1}$ (since $\tfrac12 kx^2$ is a length). Then $k\dot x^2$ has units $\text{m}^{-1}(\text{m/s})^2=\text{m/s}^2$, matching $g$. So $m(g+k\dot x^2)$ is $\text{kg}\cdot\text{m/s}^2=$ **newtons**, and the denominator is dimensionless. $\lambda$ is a force. ✓ **(d)** At the vertex $x=0$: $\lambda=\dfrac{m(g+k\dot x^2)}{1}=m(g+k\dot x^2)>0$. More generally the boxed $\lambda=\dfrac{m(g+k\dot x^2)}{1+k^2x^2}$ has a **strictly positive numerator** (both $g>0$ and $k\dot x^2\ge0$) and a **strictly positive denominator** for every $x$ and every $\dot x$. Therefore $\lambda>0$ **always**. Since the physical force is $\lambda\nabla f$ and $\nabla f$ points out of the bowl, the wire always presses the bead **inward/upward**: the bead can **never fly off** the concave-up parabola. This is the complete flying-off analysis — one formula, valid for all $x$, both signs of $\dot x$, and the degenerate vertex. Contrast with the top of a hoop, where the corresponding $\lambda$ *can* reach zero and the bead departs; the parabola is a bowl, so it cannot.Recap ladder
Recall One-line summary of each level
L1 — is normal to the constraint; equations = coordinates + multipliers. L2 — keep the redundant coordinate, differentiate, then impose the constraint; . L3 — the physical force is , sign included; friction/tension pop out. L4 — check limits; a sign change in means the (one-sided) constraint breaks. L5 — normal force magnitude is , not ; one formula covers all cases.