Fundamentals / Physics / Classical mechanics

Constraints and Lagrange’s equations

Eliminate an unknown tension with a generalised coordinate and identify how a pulley’s rotational inertia changes an acceleration.

From first principles

Derive the one-coordinate Lagrange equation from virtual work

For point masses with fixed, smooth ideal constraints, describe all positions as \(\mathbf r_i(q)\). An allowed instantaneous virtual displacement is

\[\delta\mathbf r_i=(\partial_q\mathbf r_i)\delta q.\]

Assume constraint reactions do zero total virtual work. Newton's equations projected along this common displacement therefore eliminate the unmeasured reactions:

\[\sum_i m_i\mathbf a_i\cdot\partial_q\mathbf r_i=\sum_i\mathbf F_i^{\rm applied}\cdot\partial_q\mathbf r_i=Q .\]

Use \(K=\sum_i m_i\mathbf v_i^2/2\) and \(\mathbf v_i=(\partial_q\mathbf r_i)\dot q\). Since \(\partial_{\dot q}\mathbf v_i=\partial_q\mathbf r_i\), differentiate \(\partial_{\dot q}K\) in time. The product term involving \(d(\partial_q\mathbf r_i)/dt\) equals \(\partial_q K\). Subtracting it leaves

\[\sum_i m_i\mathbf a_i\cdot\partial_q\mathbf r_i=\frac{d}{dt}\frac{\partial K}{\partial\dot q}-\frac{\partial K}{\partial q}.\]

If the applied forces derive from a potential \(U(q)\) then \(Q=-\partial_qU\). Moving the potential term gives the equation for \(L=K-U\):

\[\frac{d}{dt}\frac{\partial L}{\partial\dot q}-\frac{\partial L}{\partial q}=0 .\]

The coordinate choice can eliminate a tension without assuming that tension vanishes. A rolling constraint requires the virtual displacements to obey its no-slip condition.

Background · Action
\[S=\int_{t_1}^{t_2} L(q,\dot q,t)\,dt\]

Compare nearby admissible paths with the specified endpoint data. Stationarity gives a local equation of motion. In SI the action has units of joule seconds.

Derivation and applications

How does a moving pulley change the inertia seen by a load?

A string constraint fixes acceleration ratios before tensions are known. Consider a mass \(M\) carried by a light movable pulley. One end of a single inextensible string is fixed to the ceiling. It passes around the movable pulley, over a fixed pulley of radius \(R\) and moment of inertia \(I\), and down to a free counterweight \(m\). Use downward coordinate \(q\) for the movable assembly and downward coordinate \(y\) for the counterweight. The fixed pulley rotates freely about its axle. Assume a massless string, no slip, and constant lengths of the wrapped arcs.

The moving pulley changes the lengths of two vertical segments. Differentiate the length constraint to determine both the counterweight speed and the rim speed of the fixed pulley:

\[2q+y=\text{constant},\]
\[\dot y=-2\dot q,\]
\[|\omega|=2|\dot q|/R .\]

Write all kinetic and potential energies in terms of the single coordinate. Downward displacement reduces gravitational potential, and raising the counterweight contributes with the opposite sign:

\[K=\tfrac12\!\left(M+4m+4I/R^2\right)\dot q^2,\]
\[U=(-M+2m)gq+\text{constant}.\]

The Lagrange equation equates the rate of change of generalized momentum to the generalized force. The velocity ratios enter the inertia squared, whereas the displacement ratios enter gravitational work linearly:

\[(M+4m+4I/R^2)\ddot q=(M-2m)g.\]

All terms multiplying acceleration have units of mass. An ideal fixed pulley with a heavy rim still slows the motion, even though its centre does not translate. At \(M=2m\) the gravitational driving force vanishes for every value of \(I\).

Worked example

Predict a descending load and an ascending counterweight

Set \(M=1.20\) kg, \(m=0.400\) kg, \(R=0.0500\) m and \(I=2.50\times10^{-4}\) kg m². The rotational contribution is \(0.400\) kg and the effective mass is \(3.20\) kg. The driving force is \(0.400g=3.924\) N, giving \(\ddot q=1.23\) m/s² downward and counterweight acceleration \(2.45\) m/s² upward. A release from rest moves the load \(0.153\) m in \(0.500\) s if sufficient travel is available.

Second application

Measure a pulley inertia from a reversed acceleration

With the same \(M\) and \(R\), change the counterweight to \(m=0.800\) kg. A camera records upward load acceleration \(0.8175\) m/s². The signed numerator is now \(-3.924\) N, so the measured effective mass is \(4.80\) kg. Subtracting \(M+4m=4.40\) kg leaves \(4I/R^2=0.400\) kg, recovering \(I=2.50\times10^{-4}\) kg m² to measurement precision. The reversal tests both the sign of gravitational work and the factor of two in the length constraint.

Try it · Pulley

Vary the physical parameters in the derived relation. Use the units and assumptions in the readout to connect the curves to the two worked examples. A parameter study can test the forward prediction; the same relation can then be inverted to infer a parameter from a measurement.

Which parts of a vertical loop need a two-sided constraint?

A bead of mass 100 g moves in a frictionless circular groove of radius \(R\). It starts at the bottom with speed \(v_0\). At angle \(\theta\) from the downward vertical, energy conservation gives

\[v^2=v_0^2-2gR(1-\cos\theta).\]

The inward radial equation is

\[N-mg\cos\theta=mv^2/R.\]

The sign of the groove force \(N\) is measurable. A two-sided groove can reverse this force; a bead held only against the inside of a smooth rail would lose contact where the required inward force first becomes negative.

The graph ends at the first turning point if the energy cannot reach the top. Compare the speed needed just to reach the height of the top with the speed needed to maintain one-sided contact there. The former has \(v_0^2=4gR\); setting \(N=0\) at the top gives \(v_0^2=5gR\) for the latter. A conserved integral of motion and a constraint inequality answer different experimental questions.

Count independent motions

Two hanging masses and a massive pulley appear to introduce two translations, a rotation and several forces. Yet an inextensible taut string and rolling contact without slip leave just one independent motion. Let mass \(m_2\) descend a distance \(q\) while mass \(m_1\) rises by the same distance. For a fixed axle and pulley radius \(R\), the rotation is \(\theta=q/R\) relative to its initial value. Assume the masses stay clear of the pulley, the string is light, the axle friction is negligible and the pulley’s moment of inertia about the axle is \(I\).

A constraint relates permitted displacements before any force balance is written. The fact that both ends move the same distance follows from length conservation. It does not require equal tensions. A massive accelerating pulley needs a net torque, so replacing the tensions by a common value would remove its angular acceleration from the model. This example is a useful test of when a constraint allows us to remove coordinates and when it also allows us to remove forces.

Background · How can an ideal constraint transfer energy?

A bead slides without friction on a rail whose shape and position can change with time. An admissible virtual displacement compares nearby positions at the same time. It is tangent to the rail, so the normal reaction does no virtual work. The actual laboratory velocity also contains the motion of the rail itself. Write a point on the rail as \(\mathbf r(q,t)\) and take its time derivative.

\[P_{\rm rail}=\mathbf N\cdot\dot{\mathbf r}=\mathbf N\cdot\left(\frac{\partial\mathbf r}{\partial q}\dot q+\frac{\partial\mathbf r}{\partial t}\right)=\mathbf N\cdot\frac{\partial\mathbf r}{\partial t}.\]

A horizontal rail lifted vertically at constant speed \(u\) gives the simplest check. The bead's vertical acceleration is zero and the normal force is \(mg\). The rail supplies power \(mgu\), exactly the rate at which gravitational potential energy rises. The constraint can be ideal while an external actuator supplies the energy.

Construct the stationarity equation

For ideal time-independent constraints the reaction forces do no total work on allowed virtual displacements. Form the Lagrangian \(\mathcal L=K-U\) using the independent coordinates. Consider two paths with the same initial and final values of \(q\), differing by a small variation \(\delta q(t)\). The first variation of the action is \(\int(\partial_q\mathcal L\,\delta q+\partial_{\dot q}\mathcal L\,\delta\dot q)dt\). Integrate the second term by parts. The endpoint term vanishes and stationarity for arbitrary interior variations requires

\[\frac{d}{dt}\frac{\partial\mathcal L}{\partial\dot q}-\frac{\partial\mathcal L}{\partial q}=0.\]

This equation supplies one independent balance for each independent coordinate. If an applied nonconservative force does work \(\delta W=Q\,\delta q\), its generalised force \(Q\) enters the right-hand side. For an angular coordinate \(Q\) has units of torque; for this translational coordinate it has units of force. It must be calculated using the same sign choice as the coordinate.

Find a conserved quantity from a continuous symmetry

Constraints identify which coordinates can vary independently. A symmetry asks a different question: which small change of those coordinates leaves the action unchanged? Let \(q_i\mapsto q_i+\varepsilon\xi_i(q,t)\) at fixed time and \(p_i=\partial L/\partial\dot q_i\). Along a solution the Euler–Lagrange equations turn the variation into a total derivative,

\[\frac{\delta L}{\varepsilon}=\sum_i\left(\dot p_i\xi_i+p_i\dot\xi_i\right)=\frac{d}{dt}\sum_i p_i\xi_i .\]

If the left side vanishes for every path, \(Q=\sum_i p_i\xi_i\) is conserved on solutions. More generally, a change \(\delta L=\varepsilon\,dB/dt\) changes only endpoint terms in the action, and \(Q=\sum_i p_i\xi_i-B\) is conserved. This is Noether's theorem for this fixed-time transformation. Separate conservation of mechanical energy requires time-translation symmetry.

Consider a bead of mass \(m\) on a smooth horizontal table. A light string attached to the bead passes through a central hole. Pulling the string prescribes the radius \(r(t)\). Its tension has no azimuthal component. Rotation of the entire trajectory through a constant azimuth leaves \(L=m(\dot r^2+r^2\dot\phi^2)/2\) unchanged. Therefore \(mr^2\dot\phi\) is constant even when a pulling device supplies work. For \(m=0.250\) kg, \(r_i=0.400\) m and \(\dot\phi_i=3.00\) rad/s, \(Q=0.120\) kg m²/s. Halving the radius raises angular speed to \(12.0\) rad/s. With zero radial speed at each endpoint, kinetic energy rises from \(0.180\) to \(0.720\) J. A central force can do work while exerting no torque about the centre.

Practise on sheet 2 · Recognize translation symmetry on a moving pair. Further reading · University of Cambridge · David Tong, Classical Dynamics · §2.4.1 Noether’s Theorem.

Add every energy contribution

Both hanging masses move at speed \(|\dot q|\). The pulley contributes rotational kinetic energy \(I(\dot q/R)^2/2\). Raising the first mass increases its gravitational potential, while lowering the second decreases it. Omitting an arbitrary constant gives

\[U=(m_1-m_2)gq.\]

The full kinetic energy is

\[K=(m_1+m_2+I/R^2)\dot q^2/2.\]

Substitution yields

\[(m_1+m_2+I/R^2)\ddot q=(m_2-m_1)g.\]

The quantity \(I/R^2\) enters like an additional translational mass. It stores kinetic energy without changing the gravitational driving force. A constant opposing axle torque of magnitude \(\tau_f\) would give a generalised resisting force \(\tau_f/R\) while the second mass descends. Applying a single constant sign across a reversal would incorrectly model dry friction.

Verify the reactions by restoring the constraints

Take \(m_1=1.00\) kg, \(m_2=1.50\) kg, \(R=0.100\) m and \(I=0.0050\) kg·m². The effective mass is 3.00 kg and the unbalanced weight is 4.905 N. Thus \(\ddot q=1.635\) m/s². From rest, a descent of 0.300 m produces a speed \(\sqrt{2(1.635)(0.300)}=0.990\) m/s. The drop in potential energy is 1.472 J, equal to the gain in translational and rotational energy together.

Now isolate each hanging body. Upward acceleration on the lighter side requires

\[T_1=m_1(g+\ddot q)=11.45\,\mathrm{N}.\]

The heavier side gives

\[T_2=m_2(g-\ddot q)=12.26\,\mathrm{N}.\]

The tension difference times radius is about 0.082 N·m. The pulley independently requires

\[I\ddot q/R=0.0818\,\mathrm{N\,m}.\]

Agreement checks both the direction convention and the contribution of pulley inertia. The energy description solved for observable motion first. The separate body balances recovered forces that a mount or a string must actually withstand.

A useful check is to let one inertia become dominant. If the pulley’s moment of inertia is made very large while its radius and both hanging masses stay fixed, the effective inertia in the denominator grows and acceleration approaches zero. The two string tensions then approach their respective hanging weights, which can remain unequal despite the tiny acceleration. The finite difference supplies torque to a very large rotational inertia. Equality of tension throughout a string that wraps around a massive pulley is therefore an additional physical assumption that must be justified.

Rolling without slipping and the force enforcing it

A constraint can remove an unknown contact force from the equation of motion while leaving a definite physical condition for its realization. Consider a cylinder of mass \(m\), radius \(R\) and moment of inertia \(I\) about its centre, rolling straight down a plane inclined at angle \(\alpha\). Let \(x\) increase down the plane, and take the spin angle \(\theta\) positive for forward rolling. A stationary contact point on the plane requires

\[\dot x=R\dot\theta.\]

In this straight-line geometry the velocity constraint integrates directly to \(x-R\theta=\mathrm{constant}\). General rolling on a surface with changing direction requires more care because the analogous constraints need not integrate to coordinate relations.

Use \(x\) as the sole coordinate. The centre falls through \(x\sin\alpha\) and kinetic energy contains both translation and rotation. The reduced Lagrangian is

\[L=\tfrac12(m+I/R^2)\dot x^2+mgx\sin\alpha .\]

The Euler–Lagrange equation gives

\[\ddot x=g\sin\alpha/(1+I/(mR^2)).\]

For a body released from rest, the speed follows by integrating \(\dot x\,d\dot x/dx=\ddot x\). Different mass distributions at fixed radius and mass therefore arrive at different times even if their initial gravitational energies are equal. Some of that energy appears in spin, whose contribution grows with \(I\).

To determine the unknown friction, return to the original translational and rotational balances. If \(f\) points up the plane,

\[m\ddot x=mg\sin\alpha-f,\]
\[I\ddot\theta=fR.\]

Combining with the rolling constraint gives

\[f=(I/R^2)\ddot x.\]

The absence of \(f\) from the reduced Lagrangian came from zero virtual work under an admissible rolling displacement. It did not imply zero force.

Decide whether a solid cylinder will actually roll

A uniform solid cylinder has \(I=mR^2/2\). Let \(m=2.00\) kg, \(R=0.100\) m and \(\alpha=30.0^\circ\). Predicted acceleration is

\[9.81(0.5)/(1.5)=3.27\,\mathrm{m/s^2}.\]

The required upward friction is \((m/2)\ddot x=3.27\) N, while the normal force is

\[mg\cos30^\circ=17.0\,\mathrm{N}.\]

Static friction can maintain rolling only for \(\mu_s\ge f/N=0.192\). This comparison tests an assumption that could not be checked from the acceleration equation alone.

After travelling 1.00 m from rest a rolling cylinder reaches \(2.56\) m/s and spins at \(25.6\) rad/s. Translational energy is \(6.54\) J and rotational energy is \(3.27\) J, accounting for the \(9.81\) J released by gravity. In the limit \(I/(mR^2)\to0\), nearly all energy goes into translation, acceleration tends to \(g\sin\alpha\) and the required friction tends to zero. A surface with a measured coefficient below the threshold instead permits slipping. The translation and rotation must then be solved independently using the sliding contact law.

Rolling tests can be run without knowing the cylinder’s mass distribution in advance. Obtain acceleration from two light gates at known positions and use \(I/(mR^2)=g\sin\alpha/\ddot x-1\) to infer a dimensionless inertia. Repeat at a shallower inclination. A genuine moment of inertia has the same inferred value in both runs, whereas slipping can appear only above a limiting angle. The most direct test tracks a painted mark on the rim as well as the centre. Admissible rolling requires the increase in centre displacement to equal radius times accumulated spin angle in each time interval.

Study the full derivation

Virtual work and the forces hidden by a constraint · Analytical mechanics from constraints to invariants

A bead follows a wire, a pendulum remains the same length, and a rolling wheel obeys a relation between translation and rotation. Their reduced equations describe the motion but can conceal the largest forces in the apparatus. Determine which forces disappear under a virtual displacement, recover their values, and decide when the assumed motion ceases to be physically admissible.