When an object is confined to a wire, a moving wedge, or a curved dome, Newton's laws get stuck on the unknown normal force, so we use Lagrange's equations in generalized coordinates to find the motion directly.
Constraints and the Physical Meaning of Lagrange's Equations
In any generalized coordinate q, the Euler-Lagrange equation for L=T−V is Newton's second law written in that coordinate:
Writing the dynamics through energy L=T−V rather than vector components F=ma automatically generates geometry forces (like the centrifugal term mrθ˙2 from ∂r∂T) and makes smooth constraint forces disappear, even when the surface itself is moving.
Geometry Forces and Why Smooth Constraint Forces Vanish
Even when a moving wire pushes a bead sideways so the bead's real velocity v has a component along the normal force N, freezing time t locks the wire in place so any allowed nudge δr along the wire is perpendicular to N and does zero virtual work:
Even when a moving wire pushes a bead and does real work over time, a nudge along the wire at any frozen instant is perpendicular to the normal force and does zero virtual work.
1
Coupled Coordinates: Block Sliding on a Moving Wedge
We want to find the horizontal acceleration q¨1 of a movable wedge of mass M and incline angle α on a frictionless table, together with the downhill acceleration q¨2 of a small block of mass m sliding down its frictionless slope.
Coupled Coordinates: Block Sliding on a Moving Wedge
Text solution
Write the fixed room coordinates and build LExpress the block's fixed room coordinates (x,y) in terms of the wedge position q1 and slope distance q2, differentiate with respect to t, and substitute into L=T−V:
Write the q1 Euler-Lagrange equation (horizontal momentum conservation)Because q1 does not appear in L,∂q1∂L=0, so the total horizontal momentum is constant and differentiating gives q¨1 in terms of q¨2:
Write the q2 Euler-Lagrange equation and solve for both accelerationsDifferentiate L with respect to q˙2 and q2, then substitute q¨1 to find q¨2 and q¨1:
So the block accelerates down the slope while the wedge recoils to the left (q¨1<0), and in the heavy-wedge limit M→∞ the recoil vanishes (q¨1→0) and q¨2→gsinα.
As the wedge recoils backward at speed q˙1 while the block slides down the slope at relative speed q˙2, the vector sum in the fixed room tilts the block's true velocity steeper than the ramp and creates the 2q˙1q˙2cosα kinetic energy cross-term:
Because the wedge slides backward as the block goes down, the block drops steeper in the room than the ramp and picks up a kinetic energy cross-term.
2
Moving Constraints: Bead on a Spinning Wire
In the wedge problem, the ramp moved on its own as one of the system's coordinates. Now we want to find the radial motion r(t) of a bead of mass m sliding along a horizontal frictionless wire when an outside motor forces the wire to spin at a constant angular speed, θ(t)=ωt.
Moving Constraints: Bead on a Spinning Wire
Text solution
Write the time-dependent coordinates (x,y) and differentiate with the product ruleExpress the bead's fixed horizontal coordinates (x,y) in terms of its distance r along the wire and the forced angle θ=ωt, then take time derivatives:
Build the Lagrangian from T and VSquare and add x˙ and y˙ to find the kinetic energy on the horizontal table (V=0):
L=T−V=21m(x˙2+y˙2)=21mr˙2+21mω2r2
Write the Euler-Lagrange equation for rDifferentiate L with respect to r˙ and r to find the outward radial acceleration and effective potential energy:
So the bead flies outward exponentially as if sliding down an upside-down potential hill Veff(r)=−21mω2r2, while the motor adds mechanical energy into E=T+V=21mr˙2+21mω2r2 through the sideways normal force.
3
Non-Potential Forces and Generalized Work
When forces like viscous drag, sliding friction, or an external push act on a system, they do not come from a potential energy V(q). We want to include them in Lagrange's equations and write the equation of motion for a pendulum of mass m and length ℓ experiencing oil drag Fdrag=−bv and a horizontal push F0cos(Ωt).
Non-Potential Forces and Generalized Work
To include any non-potential force F, we freeze time t, nudge q by δq, and read off the coefficient of δq in the virtual work δW to add onto the force side of the Euler-Lagrange equation:
Find the displacements in a frozen-instant nudge δθFreeze time t and nudge the pendulum angle by δθ to find how far the bob moves along the arc and horizontally:
δs=ℓδθ,x=ℓsinθ⟹δx=ℓcosθδθ
Compute the virtual work δW and read off QθMultiply each non-potential force by the displacement along its line of action and collect the coefficient of δθ:
Insert Qθ into the Euler-Lagrange equation for θAdd Qθ onto the force side of the conservative pendulum equation from L=21mℓ2θ˙2+mgℓcosθ:
mℓ2θ¨=−mgℓsinθ−bℓ2θ˙+F0ℓcosθcos(Ωt)
So the virtual work step turns both forces into torques about the pivot, giving the full equation of motion for the damped, driven pendulum.
In a frozen-instant angular nudge δθ, projecting the bob's displacement onto each force automatically multiplies the along-arc drag by lever arm ℓ and the horizontal push by lever arm ℓcosθ to convert forces into torques:
When you nudge the bob at a frozen instant, the step along each force matches that force's lever arm about the pivot.
4
Lagrange Multipliers: Ice Cube on a Dome
Eliminating constrained coordinates hides the constraint forces, which is a problem when we need to find the constraint force itself, such as finding the angle θ where an ice cube sliding from rest at the top of a frictionless hemisphere of radius R loses contact (N=0) and flies into the air.
Lagrange Multipliers: Ice Cube on a Dome
R
θ=?
To find a constraint force, we keep the constrained coordinates free in L, write the surface constraint as f(q1,q2)=0, and add the normal force term λ∂q∂f to the force side of each Euler-Lagrange equation:
dtd(∂q˙∂L)=∂q∂L+Lagrangemultiplierλ∂q∂f
Text solution
Write L(r,θ,r˙,θ˙) with r kept free and state the surface constraintKeep both polar coordinates r and θ (measured from the top of the dome) free in L alongside the constraint equation f(r,θ)=0:
Differentiate with respect to r first, then apply the constraint to find λWrite the radial Lagrange multiplier equation before plugging in r=R,r˙=0, and r¨=0:
Use energy conservation to eliminate θ˙2 and set λ=0Equate the kinetic energy gained to the potential energy lost over the drop R(1−cosθ), substitute mRθ˙2 into λ, and solve λ=0 for the departure angle:
So at θ=arccos32≈48.2∘, the normal force λ drops to zero and the ice cube launches off the dome.
As the ice cube slides down the dome, the inward radial component of gravity mgcosθ shrinks while the outward centrifugal term mRθ˙2 grows, until the normal force λ=mgcosθ−mRθ˙2 reaches zero at θ≈48.2∘ and the ice cube leaves the surface:
As the ice cube slides down the dome, the outward normal force shrinks to zero right where the outward centrifugal term matches the inward component of gravity.
5
Coupled Constraints: Cylinder Rolling on a Ramp
On the hemisphere, the constraint f(r,θ)=r−R=0 involved only one coordinate. Now we want to find the linear acceleration x¨, the static friction force λ, and the ramp angle α where skidding begins for a solid cylinder (I=21mR2) rolling without slipping down a ramp with static friction coefficient μs.
m
R
ϕ
Rϕ
x
α
Coupled Constraints: Cylinder Rolling on a Ramp
I=21mR2
R
m
α
x¨=?
?
Text solution
Write L and the no-slip constraint with both x and ϕ freeInclude translational and rotational kinetic energy in L, and write the rolling constraint f(x,ϕ)=0 along with its partial derivatives:
Write the x and ϕ Lagrange multiplier equationsDifferentiate L and f with respect to x and ϕ to obtain the linear force equation and the rotational torque equation:
Apply x¨=Rϕ¨ to solve for x¨,λ, and the skidding angleDifferentiate the constraint twice to substitute ϕ¨=Rx¨, solve for λ and x¨, and compare ∣λ∣ with the maximum static friction μsmgcosα:
So the cylinder accelerates down the ramp at x¨=32gsinα while uphill static friction λ=−31mgsinα torques it forward, and the cylinder begins to skid as soon as the incline exceeds tanα=3μs.
As the ramp angle α increases, the required uphill static friction ∣λ∣=31mgsinα grows while the maximum available static friction μsmgcosα shrinks, until tanα passes 3μs and the unrolled arc Rϕ falls behind the distance x as the cylinder skids:
Tilt the ramp steeper to see the friction needed to roll without slipping outgrow the friction the ramp can supply.
6
Choosing Your Setup
Before writing any derivatives, we can pick the simplest setup by asking whether the problem asks for the constraint force and whether external motors or non-potential forces act on the system.
Strategy Map for Constrained Systems
constraint force?
Key concepts
If you only need the motion
build the constraint directly into your generalized coordinates q from the start and use dtd(∂q˙∂L)=∂q∂L. Write the fixed room coordinates (x,y) first whenever coordinates move or tilt relative to each other (so differentiating gives the velocity cross-terms in T) or when an outside motor moves the constraint in time (the normal force still drops out because ∂q∂L holds t frozen, even though E=T+V is not conserved).
If non-potential forces act
freeze time t, nudge q by δq, and read off the generalized force Qq from the virtual work δW=F⋅δr=Qqδq:
dtd(∂q˙∂L)=∂q∂L+Qq
If you need the constraint force
(such as when contact ends at λ=0 or skidding starts at ∣λ∣>μsN): keep the constrained coordinates free in L, write the constraint as f(q1,q2)=0, and add λ∂q∂f:
dtd(∂q˙∂L)=∂q∂L+λ∂q∂f
Take all partial derivatives first, and only then substitute f=0,f˙=0, and f¨=0.
7
Practice
1
A bead slides along a frictionless wire that an external motor pushes sideways through the room, so the normal force N from the wire has a component along the bead's real velocity v.
(a) Explain why the bead's total mechanical energy E=T+V is not conserved, yet the normal force N still does not appear in the Euler-Lagrange equation for the bead's coordinate q along the wire.
(b) When using Lagrange multipliers to find a constraint force with f(q1,q2)=0, why must you take all derivatives in the Euler-Lagrange equations before substituting the constraint rather than substituting f(q1,q2)=0 into L first?
For (a), compare the bead's displacement in real time dt with a virtual displacement δr when the derivative ∂q∂L holds t fixed. For (b), ask what happens to ∂r∂L on a dome of radius R if r is replaced by the constant R inside L before differentiating.
(a) In real time, the wire moves while pushing the bead, so the bead's true velocity v has a component along the normal force N. (A common slip is to assume that because the wire is frictionless, N does zero real work and E=T+V is conserved, or conversely that because N⋅v=0,N must appear in the Euler-Lagrange equation.) Because N⋅v=0, the motor does real work on the bead through N, adding energy to or removing energy from E=T+V. However, the force side of the Euler-Lagrange equation uses the partial derivative ∂q∂L, which holds time t frozen. At a frozen instant t, the wire is stationary, so an allowed virtual nudge δr along the wire is strictly parallel to the wire and perpendicular to N(N⋅δr=0). Because N does zero virtual work in any frozen-time nudge, it does not appear in ∂q∂L.
(b) Substituting the constraint into L before differentiating removes the constrained coordinate from L, fixing the object onto the surface so it cannot test virtual displacements perpendicular to the surface (for instance, plugging r=R into L first makes ∂r∂L=0 and eliminates the radial equation completely). Taking the partial derivatives first measures how L and f change during a virtual nudge off the surface, allowing the constraint force term λ∂q∂f to appear in the equation of motion before you apply f=0,f˙=0, and f¨=0.
2
A cart of mass M slides without friction along a horizontal track (coordinate q1=X). A simple pendulum consisting of a massless rod of length ℓ and a bob of mass m hangs from a frictionless pivot on the cart, swinging in the vertical plane at angle q2=θ measured from the downward vertical.
(a) Writing the fixed room coordinates (x,y) first, find the total kinetic energy T, potential energy V, and Lagrangian L(X,θ,X˙,θ˙), and identify the term that couples the cart and pendulum motions.
(b) Write the Euler-Lagrange equation for X, state what physical quantity is conserved, and write the Euler-Lagrange equation for θ.
(c) Show that in the limit M→∞, the equations of motion reduce to a stationary cart and a standard simple pendulum.
Be careful not to guess Tbob=21mX˙2+21mℓ2θ˙2 directly without writing (x,y) first, which misses the mℓX˙θ˙cosθ cross-term and produces uncoupled equations where the cart never feels the pendulum.
Write the bob's fixed room coordinates (x,y) by adding its horizontal offset from the pivot to the cart's position X, then differentiate with respect to t before squaring.
(a) With the pivot at (X,0), the pendulum bob's fixed room coordinates are:
x=X+ℓsinθ,y=−ℓcosθ
Differentiating with respect to t gives x˙=X˙+ℓθ˙cosθ and y˙=ℓθ˙sinθ. (Be careful not to guess Tbob=21mX˙2+21mℓ2θ˙2 directly without writing (x,y) first, which misses the mℓX˙θ˙cosθ cross-term and produces uncoupled equations where the cart never feels the pendulum.) The kinetic energy of the cart is 21MX˙2 and of the bob is:
With T=21(M+m)X˙2+21mℓ2θ˙2+mℓX˙θ˙cosθ and V=mgy=−mgℓcosθ, the Lagrangian is:
L=21(M+m)X˙2+21mℓ2θ˙2+mℓX˙θ˙cosθ+mgℓcosθ
The velocity cross-term mℓX˙θ˙cosθ couples the horizontal motion of the cart to the angular motion of the pendulum.
(b) For X,∂X∂L=0 and ∂X˙∂L=(M+m)X˙+mℓθ˙cosθ. Because ∂X∂L=0,dtd(∂X˙∂L)=0, so the total horizontal momentum of the cart-pendulum system,
(M+m)X˙+mℓθ˙cosθ=constant
is conserved. Differentiating with respect to t gives the X equation of motion:
(M+m)X¨+mℓθ¨cosθ−mℓθ˙2sinθ=0
For θ, we have ∂θ˙∂L=mℓ2θ˙+mℓX˙cosθ. Taking the time derivative using the product rule on X˙cosθ gives dtd(∂θ˙∂L)=mℓ2θ¨+mℓX¨cosθ−mℓX˙θ˙sinθ. (Forgetting the product rule on X˙cosθ misses −mℓX˙θ˙sinθ, leaving an extra +X˙θ˙sinθ term in the final equation.) The right side is ∂θ∂L=−mℓX˙θ˙sinθ−mgℓsinθ. Equating the two sides and canceling −mℓX˙θ˙sinθ and mℓ gives the θ equation of motion:
ℓθ¨+X¨cosθ+gsinθ=0
(c) Dividing the X equation by M+m gives:
X¨=−M+mmℓ(θ¨cosθ−θ˙2sinθ)
As M→∞,M+mm→0, so X¨→0 (the heavy cart does not accelerate). Substituting X¨=0 into the θ equation leaves:
θ¨=−ℓgsinθ
3
A straight frictionless wire is fixed at a constant angle α from the upward vertical z-axis and spun about the vertical axis by a motor at a constant angular speed ω, forcing the azimuthal angle to obey θ(t)=ωt. A bead of mass m slides along the wire at distance r from the pivot at the origin.
(a) Writing the fixed 3D Cartesian coordinates (x,y,z) first, find the bead's Lagrangian L(r,r˙) in terms of r,r˙,m,g,ω, and α.
(b) Derive the Euler-Lagrange equation of motion for r(t) and write down the effective potential energy Veff(r).
(c) Find the equilibrium distance r0 along the wire where the bead can move in a horizontal circle at a constant height without sliding up or down.
Be careful not to use the full slant distance r as the radius of the horizontal circle, which replaces rsinα with r and drops sin2α from the kinetic energy and equilibrium position.
Project the distance r along the wire onto the vertical z-axis and into the horizontal xy-plane first, then put θ=ωt into x and y.
(a) At distance r along the wire tilted at angle α from the vertical z-axis, the horizontal distance from the spin axis is rsinα and the height is z=rcosα. (Be careful not to use the full slant distance r as the radius of the horizontal circle, which replaces rsinα with r and drops sin2α from the kinetic energy and equilibrium position.) In fixed room coordinates with θ(t)=ωt:
x=rsinαcos(ωt),y=rsinαsin(ωt),z=rcosα
Differentiating with respect to t using the product rule gives:
Squaring and adding gives x˙2+y˙2+z˙2=r˙2(sin2α+cos2α)+r2ω2sin2α=r˙2+r2ω2sin2α. With T=21m(r˙2+r2ω2sin2α) and V=mgz=mgrcosα, the Lagrangian is:
L=21mr˙2+21mω2r2sin2α−mgrcosα
(b) From dtd(∂r˙∂L)=mr¨ and ∂r∂L=mω2rsin2α−mgcosα, the equation of motion is:
r¨=ω2rsin2α−gcosα
Writing the force side as ∂r∂L=−drdVeff (watch the minus sign so you do not write +21mω2r2sin2α in Veff) gives the effective potential energy:
Veff(r)=mgrcosα−21mω2r2sin2α
(c) Setting r¨=0 gives ω2r0sin2α=gcosα, so the equilibrium distance along the wire is:
r0=ω2sin2αgcosα
4
A bead of mass m slides along a stationary, frictionless circular wire hoop of radius R in a vertical plane. Let θ be the angle of the bead measured counterclockwise from the bottom of the hoop. As the bead moves, it experiences a viscous drag force Fdrag=−bv opposing its velocity along the hoop and a constant horizontal wind force F0 pushing to the right (+x direction).
(a) Using a frozen-instant virtual nudge δθ, find the virtual work δW done by the two non-potential forces and read off the generalized force Qθ.
(b) Write the complete Euler-Lagrange equation of motion for θ(t).
Express the bead's horizontal position x(θ) and arc length s(θ) in terms of θ measured from the bottom of the hoop, then take a frozen-time nudge δθ.
(a) With θ measured counterclockwise from the bottom of the hoop, the bead's coordinates are x=Rsinθ and y=−Rcosθ, and its speed along the arc is v=Rθ˙. In a frozen-instant virtual nudge δθ:
The bead moves along the circular arc by δs=Rδθ. The drag force −bv=−bRθ˙ points opposite the motion along the arc, doing virtual work δWdrag=(−bRθ˙)(Rδθ)=−bR2θ˙δθ.
The bead's horizontal coordinate changes by δx=Rcosθδθ. The horizontal wind force F0 acts in the +x direction, doing virtual work δWwind=F0δx=F0Rcosθδθ.
(A common mistake is to omit the lever arm R when writing the angular generalized force, which gives −bRθ˙+F0cosθ with units of force instead of torque, or to use sinθ instead of cosθ for δx.) Adding both contributions gives δW=(−bR2θ˙+F0Rcosθ)δθ, so the generalized force is:
Qθ=−bR2θ˙+F0Rcosθ
(b) For the conservative part, T=21mR2θ˙2 and V=mgy=−mgRcosθ, so L=21mR2θ˙2+mgRcosθ. Including Qθ on the force side of dtd(∂θ˙∂L)=∂θ∂L+Qθ gives:
mR2θ¨=−mgRsinθ−bR2θ˙+F0Rcosθ
5
An ice cube of mass m rests at the very top (θ=0) of a stationary, frictionless hemisphere of radius R and is given an initial horizontal speed v0 so it slides down the dome.
(a) Keep both polar coordinates r and θ free in L with the constraint f(r,θ)=r−R=0, and use the Lagrange multiplier equation for r to express the normal force λ in terms of θ and θ˙.
(b) Use conservation of energy to express λ solely as a function of θ,m,g,R, and v0, and find the angle θ at which the ice cube loses contact with the dome.
(c) What is the minimum initial speed v0 for which the ice cube flies off the very top immediately at θ=0?
Keep r free in L until you have written the radial Euler-Lagrange equation, and include the initial kinetic energy 21mv02 at the top when writing conservation of energy.
(a) Measuring θ from the top of the dome gives height y=rcosθ, so L=21m(r˙2+r2θ˙2)−mgrcosθ and f(r,θ)=r−R=0, with ∂r∂f=1 and ∂θ∂f=0. The radial Lagrange multiplier equation dtd(∂r˙∂L)=∂r∂L+λ∂r∂f gives:
mr¨=mrθ˙2−mgcosθ+λ
Applying the constraint r=R,r˙=0, and r¨=0 while the cube is on the dome gives the outward normal force:
λ=mgcosθ−mRθ˙2
(b) By conservation of mechanical energy from θ=0 (where y=R and speed is v0) to angle θ (where y=Rcosθ and speed is Rθ˙):
The ice cube loses contact when the normal force drops to zero (λ=0), which occurs at:
cosθ=32+3gRv02
(c) The cube flies off immediately at θ=0 when cosθ=1 at departure:
32+3gRv02=1⟹3gRv02=31⟹v0=gR
6
A solid sphere of mass m, radius R, and moment of inertia I=52mR2 is placed on a ramp inclined at angle α above the horizontal. The coefficient of static friction between the sphere and the ramp is μs.
(a) Keeping both the distance down the ramp x and the rotation angle ϕ in L with the no-slip constraint f(x,ϕ)=x−Rϕ=0, write the two Lagrange multiplier equations and explain what λ∂x∂f and λ∂ϕ∂f represent physically.
(b) Solve for the linear acceleration x¨ and the static friction force λ (giving both magnitude and direction along the ramp).
(c) Find the ramp angle α above which the sphere begins to skid, and state whether a solid cylinder (I=21mR2) or a solid sphere with the same μs starts skidding first as the ramp is slowly tilted up.
Be careful not to write ∂ϕ∂f=+R, which flips the torque sign in the ϕ equation and yields x¨=35gsinα, faster than a frictionless ramp.
Keep both x and ϕ independent in L with f(x,ϕ)=x−Rϕ=0, and take two time derivatives of the constraint only after writing both Lagrange multiplier equations.
(a) With T=21mx˙2+21(52mR2)ϕ˙2=21mx˙2+51mR2ϕ˙2 and V=−mgxsinα, the Lagrangian is L=21mx˙2+51mR2ϕ˙2+mgxsinα. For f(x,ϕ)=x−Rϕ=0, we have ∂x∂f=1 and ∂ϕ∂f=−R. (Be careful not to write ∂ϕ∂f=+R, which flips the torque sign in the ϕ equation and yields x¨=35gsinα, faster than a frictionless ramp.) The x and ϕ equations are:
mx¨52mR2ϕ¨=mgsinα+λ=−λR
Physically, λ∂x∂f=λ is the linear static friction force acting along the ramp, and λ∂ϕ∂f=−λR is the rotational torque about the sphere's center produced by that static friction force at lever arm R.
(b) Differentiating the constraint x=Rϕ twice gives ϕ¨=Rx¨. Substituting ϕ¨=Rx¨ into the ϕ equation gives:
52mR2(Rx¨)=−λR⟹λ=−52mx¨
Substituting λ=−52mx¨ into the x equation gives mx¨=mgsinα−52mx¨, or 57mx¨=mgsinα, so:
x¨=75gsinα
Then the static friction force is:
λ=−52m(75gsinα)=−72mgsinα
where the minus sign shows that static friction points up the ramp with magnitude 72mgsinα.
(c) The maximum static friction force the ramp can supply is μsN=μsmgcosα. The sphere starts to skid when ∣λ∣>μsmgcosα:
72mgsinα>μsmgcosα⟹tanα>27μs=3.5μs
Because a solid cylinder starts skidding at tanα>3μs and 3μs<3.5μs, the solid cylinder starts skidding first.