Generalized Coordinates and Lagrange's Equations
CSIR NET classical mechanics: constraints, degrees of freedom, generalized coordinates, D'Alembert's principle, Lagrange's equations, cyclic coordinates.
- 22 min
On this page · 13 sections
Prerequisites
- Metric Spaces and Several Variables: the multivariable chain rule. Every step of the derivation below is the chain rule applied to \( \mathbf{r}_i(q_1, \dots, q_n, t) \).
- Existence, Uniqueness and First-Order IVPs: Lagrange’s equations are second-order ODEs; you will solve a few, and you should know when a solution is unique.
- School mechanics: Newton’s second law, kinetic and potential energy, work.
The Hook: A Bead That Newton Makes Hard
Constraints and Degrees of Freedom
A system of \( N \) particles in space needs \( 3N \) Cartesian coordinates. Constraints are restrictions on the positions or velocities.
| Type | Definition | Example |
|---|---|---|
| Holonomic | expressible as \( f(\mathbf{r}_1, \dots, \mathbf{r}_N, t) = 0 \) | rigid rod: \( \lvert \mathbf{r}_1 - \mathbf{r}_2 \rvert = \ell \); bead on a fixed wire |
| Non-holonomic | not of that form: an inequality, or a relation among velocities that cannot be integrated | particle outside a sphere, \( r \ge a \); vertical disc rolling on a plane |
| Scleronomic | no explicit time dependence | pendulum with a fixed support |
| Rheonomic | explicit time dependence | bead on a rotating wire; pendulum whose length is changed in time |
| Bilateral / unilateral | equality / inequality | string kept taut (bilateral only while taut) |
Degrees of freedom. With \( k \) independent holonomic constraints, the number of degrees of freedom is
$$\boxed{n = 3N - k}$$and you can choose \( n \) independent generalized coordinates \( q_1, \dots, q_n \) such that
$$\mathbf{r}_i = \mathbf{r}_i(q_1, \dots, q_n, t), \qquad i = 1, \dots, N,$$satisfies every constraint identically. For a system in a plane, replace \( 3N \) by \( 2N \).
| System | Degrees of freedom | A natural choice of \( q \) |
|---|---|---|
| particle on a sphere | 2 | polar and azimuthal angles \( \theta, \varphi \) |
| simple pendulum in a plane | 1 | angle \( \theta \) |
| double pendulum in a plane | 2 | \( \theta_1, \theta_2 \) |
| two particles joined by a rigid rod (space) | \( 6 - 1 = 5 \) | centre of mass (3) + direction of the rod (2) |
| free rigid body | 6 | centre of mass (3) + three angles |
| rigid body with one point fixed | 3 | three Euler angles |
| lamina moving in its own plane | 3 | \( x_G, y_G, \theta \) |
| disc rolling without slipping along a straight line | 1 | \( x \) (the rolling condition \( x = a\phi \) integrates) |
| vertical disc rolling without slipping on a plane | 4 coordinates \( (x, y, \theta, \phi) \), 2 non-integrable constraints | no 2-coordinate description exists |
Generalized coordinates need not be lengths: they can be angles, amplitudes, or any parameters that fix the configuration. The space of all \( (q_1, \dots, q_n) \) is the configuration space; the \( \dot q_j \) are the generalized velocities.
From D’Alembert’s Principle to Lagrange’s Equations
Virtual displacements and ideal constraints
A virtual displacement \( \delta\mathbf{r}_i \) is an infinitesimal change of configuration consistent with the constraints at a fixed instant (time is frozen, so \( \delta t = 0 \)):
$$\delta\mathbf{r}_i = \sum_{j=1}^n \frac{\partial \mathbf{r}_i}{\partial q_j}\,\delta q_j.$$Constraints are ideal (workless) if the constraint forces do no work in any virtual displacement. A smooth surface, a rigid rod and rolling without slipping are ideal; friction with slipping is not. Note that on a rheonomic constraint (the moving wire) the reaction can do real work, while its virtual work is still zero, because a virtual displacement is taken with the wire frozen.
D’Alembert’s principle
Write Newton’s law as \( \mathbf{F}_i + \mathbf{R}_i - \dot{\mathbf{p}}_i = 0 \), with \( \mathbf{F}_i \) the applied force and \( \mathbf{R}_i \) the constraint force. Dot with \( \delta\mathbf{r}_i \), sum, and drop the workless \( \mathbf{R}_i \):
$$\boxed{\sum_{i=1}^N \left(\mathbf{F}_i - \dot{\mathbf{p}}_i\right)\cdot\delta\mathbf{r}_i = 0.}$$Two identities
From \( \dot{\mathbf{r}}_i = \sum_j \frac{\partial \mathbf{r}_i}{\partial q_j}\dot q_j + \frac{\partial \mathbf{r}_i}{\partial t} \):
$$\frac{\partial \dot{\mathbf{r}}_i}{\partial \dot q_j} = \frac{\partial \mathbf{r}_i}{\partial q_j} \quad (\text{"cancellation of dots"}), \qquad \frac{d}{dt}\left(\frac{\partial \mathbf{r}_i}{\partial q_j}\right) = \frac{\partial \dot{\mathbf{r}}_i}{\partial q_j}.$$The result
Define the generalized force \( Q_j = \sum_i \mathbf{F}_i\cdot\frac{\partial \mathbf{r}_i}{\partial q_j} \), so that the virtual work is \( \sum_j Q_j\,\delta q_j \). Using the identities, \( \sum_i \dot{\mathbf{p}}_i\cdot\frac{\partial\mathbf{r}_i}{\partial q_j} = \frac{d}{dt}\frac{\partial T}{\partial \dot q_j} - \frac{\partial T}{\partial q_j} \), where \( T = \sum_i \frac{1}{2}m_i\dot{\mathbf{r}}_i^2 \). Since the \( \delta q_j \) are independent (holonomic constraints),
$$\frac{d}{dt}\left(\frac{\partial T}{\partial \dot q_j}\right) - \frac{\partial T}{\partial q_j} = Q_j, \qquad j = 1, \dots, n.$$If the applied forces come from a potential, \( Q_j = -\frac{\partial V}{\partial q_j} \) with \( V = V(q, t) \), and since \( V \) does not depend on \( \dot q \), we can put \( L = T - V \):
Extensions you should recognise.
- Velocity-dependent (generalized) potential. If \( Q_j = -\frac{\partial U}{\partial q_j} + \frac{d}{dt}\frac{\partial U}{\partial \dot q_j} \), then \( L = T - U \) works. The standard case is a charge \( e \) in fields \( \mathbf{E} = -\nabla\phi - \partial_t\mathbf{A} \), \( \mathbf{B} = \nabla\times\mathbf{A} \): \( U = e\phi - e\,\mathbf{A}\cdot\mathbf{v} \), giving the Lorentz force.
- Dissipation. For friction proportional to velocity, use Rayleigh’s dissipation function \( \mathcal{F} = \frac{1}{2}\sum_i k_i\dot{\mathbf{r}}_i^2 \): \( \frac{d}{dt}\frac{\partial L}{\partial \dot q_j} - \frac{\partial L}{\partial q_j} + \frac{\partial \mathcal{F}}{\partial \dot q_j} = 0 \).
- Non-holonomic constraints \( \sum_j a_{lj}\dot q_j + a_{lt} = 0 \) are handled with Lagrange multipliers: the right side becomes \( \sum_l \lambda_l a_{lj} \), and the multipliers are the constraint forces.
The structure of \( T \)
Substituting \( \dot{\mathbf{r}}_i \) into \( T \):
$$T = T_2 + T_1 + T_0, \qquad T_2 = \tfrac{1}{2}\sum_{j,k} m_{jk}(q, t)\,\dot q_j\dot q_k,$$with \( T_1 \) linear in the \( \dot q \) and \( T_0 \) free of them. For scleronomic transformations, \( T = T_2 \), a positive-definite quadratic form in the velocities. \( T_1 \) and \( T_0 \) appear only with time-dependent transformations, such as coordinates in a rotating frame.
The Lagrangian is not unique
Standard Lagrangians
| System | \( L \) | Equation of motion |
|---|---|---|
| simple pendulum, length \( \ell \) | \( \frac{1}{2}m\ell^2\dot\theta^2 + mg\ell\cos\theta \) | \( \ddot\theta = -\frac{g}{\ell}\sin\theta \) |
| Atwood machine (massless pulley) | \( \frac{1}{2}(m_1 + m_2)\dot x^2 + (m_1 - m_2)gx \) | \( \ddot x = \frac{m_1 - m_2}{m_1 + m_2}g \) |
| plane polar, central \( V(r) \) | \( \frac{1}{2}m(\dot r^2 + r^2\dot\theta^2) - V(r) \) | \( m\ddot r - mr\dot\theta^2 + V'(r) = 0 \), \( \frac{d}{dt}(mr^2\dot\theta) = 0 \) |
| spherical polar | \( \frac{1}{2}m(\dot r^2 + r^2\dot\theta^2 + r^2\sin^2\theta\,\dot\varphi^2) - V \) | \( p_\varphi = mr^2\sin^2\theta\,\dot\varphi \) conserved if \( V \) is free of \( \varphi \) |
| bead on a straight wire rotating in a horizontal plane at \( \omega \) | \( \frac{1}{2}m(\dot r^2 + \omega^2r^2) \) | \( \ddot r = \omega^2 r \) |
| bead on a hoop rotating about the vertical diameter | \( \frac{1}{2}ma^2(\dot\theta^2 + \omega^2\sin^2\theta) + mga\cos\theta \) | \( a\ddot\theta = \sin\theta\,(a\omega^2\cos\theta - g) \) |
| double pendulum (masses \( m_1, m_2 \), lengths \( \ell_1, \ell_2 \)) | \( \frac{1}{2}(m_1 + m_2)\ell_1^2\dot\theta_1^2 + \frac{1}{2}m_2\ell_2^2\dot\theta_2^2 + m_2\ell_1\ell_2\dot\theta_1\dot\theta_2\cos(\theta_1 - \theta_2) + (m_1 + m_2)g\ell_1\cos\theta_1 + m_2g\ell_2\cos\theta_2 \) | coupled; linearised in Small Oscillations |
Conservation Laws from the Lagrangian
Cyclic coordinates
The generalized (canonical) momentum conjugate to \( q_j \) is \( p_j = \frac{\partial L}{\partial \dot q_j} \). If \( L \) does not contain \( q_j \) (it may contain \( \dot q_j \)), \( q_j \) is cyclic (ignorable) and
$$\frac{\partial L}{\partial q_j} = 0 \;\Longrightarrow\; p_j = \frac{\partial L}{\partial \dot q_j} = \text{constant}.$$- In the central-force Lagrangian, \( \theta \) is cyclic: \( p_\theta = mr^2\dot\theta \) is the angular momentum, and its constancy is Kepler’s equal-area law.
- \( p_j \) need not be \( m\dot q_j \): for a charge in a magnetic field, \( \mathbf{p} = m\mathbf{v} + e\mathbf{A} \).
- More generally, if \( L \) is unchanged by a continuous family of transformations (a symmetry), there is a conserved quantity (Noether). Translation invariance \( \Rightarrow \) linear momentum, rotation invariance \( \Rightarrow \) angular momentum, time-translation invariance \( \Rightarrow \) the energy function below. If \( L \) depends on \( x \) and \( y \) only through \( x - y \), shifting both by the same amount is a symmetry, and \( p_x + p_y \) is conserved.
The energy function (Jacobi integral)
$$h(q, \dot q, t) = \sum_j \dot q_j\frac{\partial L}{\partial \dot q_j} - L, \qquad \boxed{\frac{dh}{dt} = -\frac{\partial L}{\partial t}.}$$So \( h \) is conserved whenever \( L \) has no explicit \( t \). By Euler’s theorem on homogeneous functions, \( \sum_j \dot q_j\frac{\partial T_k}{\partial \dot q_j} = kT_k \), so
$$h = T_2 - T_0 + V.$$| Conditions | \( h \) conserved? | \( h = T + V \)? |
|---|---|---|
| scleronomic, \( V = V(q) \) | yes | yes |
| rheonomic but \( L \) free of \( t \) (bead on a wire turning at constant \( \omega \)) | yes | no: \( h = T_2 - T_0 + V \) |
| scleronomic, \( V = V(q, t) \) | no | yes |
Memory Tricks
Don’t Confuse
| This | vs | That |
|---|---|---|
| holonomic: \( f(q, t) = 0 \) | non-holonomic: inequality, or non-integrable velocity relation | |
| scleronomic (no \( t \) in the constraint) | rheonomic (constraint moves) | |
| virtual displacement: time frozen, \( \delta t = 0 \) | actual displacement \( d\mathbf{r} \) in time \( dt \) | |
| generalized momentum \( \partial L/\partial \dot q_j \) | mechanical momentum \( m\dot q_j \) (differ in rotating frames and magnetic fields) | |
| cyclic: \( q_j \) absent from \( L \) | \( \dot q_j \) absent from \( L \) (then \( \partial L/\partial q_j = 0 \) is an algebraic constraint, not a conservation law) | |
| \( h \) conserved \( \iff \partial L/\partial t = 0 \) | \( h = T + V \iff T = T_2 \) and \( V \) free of \( \dot q \) | |
| \( L \) and \( L + \frac{dF(q,t)}{dt} \): same motion | \( L \) and \( L + G(q, \dot q) \) with \( G \) not a total derivative: different motion |
Common Mistakes
Practice
All questions below are original practice questions written for this page. They are not from any CSIR NET paper. In Level 3, as in Part C of the Mathematical Sciences paper, one or more options may be correct.
Level 1: Foundation
- How many degrees of freedom does a system of two particles joined by a rigid massless rod have in space?
- Classify the constraint on a bead sliding on a wire whose shape is \( y = x^2 + t \).
- For \( L = \frac{1}{2}m(\dot r^2 + r^2\dot\theta^2) + \frac{k}{r} \), which coordinate is cyclic, and what is conserved?
Answers
- 5. Six Cartesian coordinates minus one constraint \( \lvert \mathbf{r}_1 - \mathbf{r}_2 \rvert = \ell \).
- Holonomic and rheonomic. It is an equation among coordinates and time, \( y - x^2 - t = 0 \), with explicit \( t \).
- \( \theta \), so \( p_\theta = mr^2\dot\theta \) (angular momentum) is conserved. Since \( L \) has no explicit \( t \) and \( T = T_2 \), the energy \( \frac{1}{2}m(\dot r^2 + r^2\dot\theta^2) - \frac{k}{r} \) is also conserved.
Level 2: Part B Style
Practice Q1. The Lagrangian \( L = e^{\gamma t}\left(\frac{1}{2}m\dot q^2 - \frac{1}{2}kq^2\right) \), with constants \( \gamma, m, k > 0 \), gives the equation of motion:
(a) \( m\ddot q + kq = 0 \) (b) \( m\ddot q + \gamma m\dot q + kq = 0 \) (c) \( m\ddot q - \gamma m\dot q + kq = 0 \) (d) \( m\ddot q + \gamma m\dot q - kq = 0 \)
Answer: (b)
\( \frac{\partial L}{\partial \dot q} = e^{\gamma t}m\dot q \), so \( \frac{d}{dt}\frac{\partial L}{\partial \dot q} = e^{\gamma t}(m\ddot q + \gamma m\dot q) \). Also \( \frac{\partial L}{\partial q} = -e^{\gamma t}kq \). Lagrange’s equation, divided by \( e^{\gamma t} \): \( m\ddot q + \gamma m\dot q + kq = 0 \), a damped oscillator. A time-dependent Lagrangian can describe dissipation.
Practice Q2. A bead moves on a smooth circular hoop of radius \( a \) that spins about its vertical diameter at constant angular speed \( \omega \). The lowest point of the hoop is a linearly stable equilibrium (real, non-zero small-oscillation frequency) if and only if:
(a) \( \omega^2 < \frac{g}{a} \) (b) \( \omega^2 > \frac{g}{a} \) (c) \( \omega^2 < \frac{2g}{a} \) (d) for every \( \omega \)
Answer: (a)
\( V_{\text{eff}}''(0) = ma(g - a\omega^2) \), positive iff \( \omega^2 < \frac{g}{a} \). (At exactly \( \omega^2 = \frac{g}{a} \) the quadratic term vanishes and the quartic term \( \frac{1}{8}ma^2\omega^2\theta^4 \) makes the point stable but not linearly so; “if and only if” with strict inequality is the intended linear-stability answer.)
Practice Q3. An Atwood machine has masses \( m_1 > m_2 \) on a light string over a pulley of radius \( R \) and moment of inertia \( I \), the string not slipping. The acceleration of \( m_1 \) is:
(a) \( \frac{(m_1 - m_2)g}{m_1 + m_2} \) (b) \( \frac{(m_1 - m_2)g}{m_1 + m_2 + I/R^2} \) (c) \( \frac{(m_1 + m_2)g}{m_1 - m_2 + I/R^2} \) (d) \( \frac{(m_1 - m_2)g}{m_1 + m_2 + IR^2} \)
Answer: (b)
With \( x \) the descent of \( m_1 \), the pulley turns at \( \dot x/R \): \( L = \frac{1}{2}\left(m_1 + m_2 + \frac{I}{R^2}\right)\dot x^2 + (m_1 - m_2)gx \). So \( \ddot x = \frac{(m_1 - m_2)g}{m_1 + m_2 + I/R^2} \). Option (d) has the wrong dimensions.
Practice Q4. For \( L = \frac{1}{2}m(\dot x^2 + \dot y^2) - V(x - y) \), with \( V \) a non-constant smooth function, which quantity is necessarily conserved?
(a) \( m\dot x \) (b) \( m(\dot x - \dot y) \) (c) \( m(\dot x + \dot y) \) (d) \( m(x\dot y - y\dot x) \)
Answer: (c)
\( L \) is unchanged under \( x \to x + \varepsilon \), \( y \to y + \varepsilon \). Formally, put \( u = x - y \), \( s = x + y \): then \( \dot x^2 + \dot y^2 = \frac{1}{2}(\dot u^2 + \dot s^2) \), \( s \) is cyclic, and \( p_s = \frac{1}{2}m\dot s = \frac{1}{2}m(\dot x + \dot y) \) is conserved. Equivalently \( m\ddot x = -V'(u) \) and \( m\ddot y = +V'(u) \) add to zero. (a) and (b) change because \( V' \ne 0 \); (d) needs rotational symmetry, which \( V(x - y) \) lacks.
Level 3: Part C Style
Practice Q5. A bead moves on a smooth hoop of radius \( a \) spinning about its vertical diameter at constant \( \omega \), with \( \omega^2 = \frac{2g}{a} \). Let \( \theta \) be the angle from the lowest point. Which statements are true?
(a) \( \theta = 0 \) is an unstable equilibrium. (b) \( \theta = \frac{\pi}{3} \) is an equilibrium. (c) Small oscillations about \( \theta = \frac{\pi}{3} \) have angular frequency \( \frac{\sqrt 3}{2}\omega \). (d) The total mechanical energy \( T + V \) of the bead is conserved.
Answer: (a), (b) and (c)
- (a) True. \( V_{\text{eff}}''(0) = ma(g - a\omega^2) = -mag < 0 \).
- (b) True. \( \cos\theta_0 = \frac{g}{a\omega^2} = \frac{1}{2} \).
- (c) True. \( V_{\text{eff}}''(\theta_0) = ma^2\omega^2\sin^2\theta_0 \) and the effective mass is \( ma^2 \), so the frequency is \( \omega\sin\theta_0 = \frac{\sqrt 3}{2}\omega \).
- (d) False. The constraint is rheonomic. The conserved quantity is \( h = T_2 - T_0 + V = \frac{1}{2}ma^2\dot\theta^2 - \frac{1}{2}ma^2\omega^2\sin^2\theta - mga\cos\theta \), not \( T + V = T_2 + T_0 + V \). They differ by \( 2T_0 = ma^2\omega^2\sin^2\theta \), which is not constant along a general motion, so \( T + V \) changes: the motor does work.
Practice Q6. Consider \( L = \frac{1}{2}(\dot q_1^2 + \dot q_2^2) + q_1\dot q_2 \). Which statements are true?
(a) \( \dot q_2 + q_1 \) is a constant of the motion. (b) \( q_1 \) is a cyclic coordinate. (c) \( \dot q_1^2 + \dot q_2^2 \) is a constant of the motion. (d) \( L + \frac{d}{dt}(q_1q_2) \) gives the same equations of motion as \( L \).
Answer: (a), (c) and (d)
The equations: \( \frac{\partial L}{\partial \dot q_1} = \dot q_1 \), \( \frac{\partial L}{\partial q_1} = \dot q_2 \), so \( \ddot q_1 = \dot q_2 \); \( \frac{\partial L}{\partial \dot q_2} = \dot q_2 + q_1 \), \( \frac{\partial L}{\partial q_2} = 0 \), so \( \ddot q_2 = -\dot q_1 \). The velocity vector rotates at unit angular speed, like a charge in a uniform magnetic field.
- (a) True. \( q_2 \) is cyclic; its conjugate momentum is \( \dot q_2 + q_1 \).
- (b) False. \( L \) contains \( q_1 \) in the term \( q_1\dot q_2 \).
- (c) True. \( \frac{d}{dt}(\dot q_1^2 + \dot q_2^2) = 2\dot q_1\dot q_2 - 2\dot q_2\dot q_1 = 0 \). Also \( h = \dot q_1^2 + \dot q_2^2 + q_1\dot q_2 - L = \frac{1}{2}(\dot q_1^2 + \dot q_2^2) \) and \( L \) has no explicit \( t \).
- (d) True. Adding a total time derivative of a function of \( q \) never changes the equations.
Practice Q7. Which statements about constraints and degrees of freedom are true?
(a) A rigid body with one point fixed has 3 degrees of freedom. (b) A disc rolling without slipping along a straight line in its own plane has one degree of freedom, and the rolling constraint is holonomic. (c) A particle required to stay outside a sphere of radius \( a \) is subject to a holonomic constraint. (d) \( N \) particles in space subject to \( k \) independent holonomic constraints have \( 3N - k \) degrees of freedom.
Answer: (a), (b) and (d)
- (a) True. Six for a free body, minus three for the fixed point; the three Euler angles describe it.
- (b) True. \( \dot x = a\dot\phi \) integrates to \( x = a\phi + c \), so \( \phi \) is determined by \( x \).
- (c) False. \( r \ge a \) is an inequality, so it is non-holonomic (unilateral).
- (d) True. This is the definition used for holonomic systems.
Quick Revision Table
| Idea | Fact |
|---|---|
| Degrees of freedom | \( 3N - k \) (holonomic); rigid body 6; one point fixed 3; lamina in plane 3 |
| Holonomic | \( f(q, t) = 0 \); inequalities and non-integrable velocity relations are not |
| Virtual displacement | consistent with constraints at frozen \( t \) |
| D’Alembert | \( \sum(\mathbf{F}_i - \dot{\mathbf{p}}_i)\cdot\delta\mathbf{r}_i = 0 \) |
| Generalized force | \( Q_j = \sum_i \mathbf{F}_i\cdot\partial\mathbf{r}_i/\partial q_j \) |
| Lagrange | \( \frac{d}{dt}\frac{\partial L}{\partial \dot q_j} - \frac{\partial L}{\partial q_j} = 0 \), \( L = T - V \) |
| Charged particle | \( L = \frac{1}{2}mv^2 - e\phi + e\mathbf{A}\cdot\mathbf{v} \) |
| Rayleigh dissipation | add \( \partial\mathcal{F}/\partial\dot q_j \) |
| Gauge | \( L + \frac{dF(q, t)}{dt} \) gives the same motion |
| Cyclic \( q_j \) | \( p_j = \partial L/\partial\dot q_j \) conserved |
| Energy function | \( h = \sum\dot q_j p_j - L = T_2 - T_0 + V \); \( \dot h = -\partial L/\partial t \) |
| Rotating hoop | bottom stable iff \( \omega^2 < g/a \); off-axis \( \cos\theta_0 = g/(a\omega^2) \), frequency \( \omega\sin\theta_0 \) |
Key Takeaways
What’s Next
- Hamilton’s Principle and the Principle of Least Action: the same equations from a variational principle.
- Hamilton’s Canonical Equations: trade \( \dot q \) for \( p \) and get first-order equations.
- Small Oscillations: linearise Lagrange’s equations about a stable equilibrium.
- Classical Mechanics chapter overview.