Skip to main content

Chapter 9 · 4 hours

Lagrangian Dynamics

Practice questions

Practice questions and answers

3 exam-style questions on this chapter, written for this site from the official syllabus. We haven’t found past IOE papers for this subject yet; if you have some, share them in the community.

  • Practice · 5 marks

Define degrees of freedom and generalised coordinates. Classify constraints as holonomic and non-holonomic. Give the number of degrees of freedom and suitable generalised coordinates for (a) a simple pendulum, (b) a double pendulum, (c) a particle moving in space, (d) a free rigid body in space, and (e) a disc rolling without slipping on a straight line.

Answer

Degrees of freedom (DOF) is the minimum number of independent coordinates required to completely specify the configuration of a system at any instant. For NN particles in space with cc independent constraint equations, n=3N−cn = 3N - c.

Generalised coordinates q1,q2,…,qnq_1, q_2, \dots, q_n are any set of nn independent quantities (lengths, angles, etc.) that fix the configuration of a system with nn degrees of freedom; they need not have the dimension of length, and they automatically satisfy the constraints.

Constraints

  • Holonomic: can be expressed as an equation connecting coordinates (and time) only, f(x1,x2,…,t)=0f(x_1, x_2, \dots, t) = 0; for example a rigid link of fixed length x2+y2=l2x^2 + y^2 = l^2. They reduce the number of coordinates.
  • Non-holonomic: cannot be integrated into such an equation, being inequalities or non-integrable velocity relations; for example a particle moving on the outside of a sphere (it can leave, r≥Rr \ge R), or a rolling sphere on a rough plane.

Further classes: scleronomic (not explicitly time dependent) and rheonomic (time dependent).

Examples

SystemDOFGeneralised coordinates
(a) Simple pendulum1angle θ\theta
(b) Double pendulum2angles θ1, θ2\theta_1,\ \theta_2
(c) Particle in space3x,y,zx, y, z (or r,θ,ϕr, \theta, \phi)
(d) Free rigid body in space63 translations of a point + 3 rotation angles (Euler angles)
(e) Disc rolling without slip on a line1xx of the centre (angle θ=x/r\theta = x/r follows)

For the pendulum in (a) the particle has 2 coordinates in the plane (x,y)(x, y) and one constraint x2+y2=l2x^2 + y^2 = l^2, so 2−1=12 - 1 = 1 DOF. Using generalised coordinates removes the constraint reaction (rod tension) from the equations of motion.

  • Practice · 8 marks

Starting from D'Alembert's principle, derive Lagrange's equations of motion for a system of particles with holonomic constraints in terms of generalised coordinates. Show how the equations reduce to the form with the Lagrangian L = T - V for a conservative system.

Answer

Consider NN particles with positions ri(q1,…,qn,t)\mathbf{r}_i(q_1,\dots,q_n,t) in terms of nn independent generalised coordinates qjq_j (holonomic constraints). Let Fi\mathbf{F}_i be the applied force on particle ii (constraint forces do no virtual work on smooth constraints).

Step 1: D'Alembert-Lagrange principle

D'Alembert's principle with virtual displacements: the virtual work of the real forces plus the inertia forces is zero:

∑i(Fi−mir¨i)⋅δri=0\sum_i (\mathbf{F}_i - m_i\ddot{\mathbf{r}}_i)\cdot\delta\mathbf{r}_i = 0

Step 2: Express in generalised coordinates

Since δri=∑j∂ri∂qjδqj\delta\mathbf{r}_i = \sum_j \dfrac{\partial\mathbf{r}_i}{\partial q_j}\delta q_j, the applied-force term becomes ∑jQj δqj\sum_j Q_j\,\delta q_j, where the generalised force is

Qj=∑iFi⋅∂ri∂qjQ_j = \sum_i \mathbf{F}_i\cdot\frac{\partial\mathbf{r}_i}{\partial q_j}

The inertia term is ∑j[∑imir¨i⋅∂ri∂qj]δqj\sum_j\left[\sum_i m_i\ddot{\mathbf{r}}_i\cdot\dfrac{\partial\mathbf{r}_i}{\partial q_j}\right]\delta q_j.

Step 3: Convert the inertia term to kinetic energy

The velocity is r˙i=∑j∂ri∂qjq˙j+∂ri∂t\dot{\mathbf{r}}_i = \sum_j \dfrac{\partial\mathbf{r}_i}{\partial q_j}\dot q_j + \dfrac{\partial\mathbf{r}_i}{\partial t}. Two identities follow:

∂r˙i∂q˙j=∂ri∂qjddt(∂ri∂qj)=∂r˙i∂qj\frac{\partial\dot{\mathbf{r}}_i}{\partial\dot q_j} = \frac{\partial\mathbf{r}_i}{\partial q_j} \qquad \frac{d}{dt}\left(\frac{\partial\mathbf{r}_i}{\partial q_j}\right) = \frac{\partial\dot{\mathbf{r}}_i}{\partial q_j}

Then

∑imir¨i⋅∂ri∂qj=ddt(∑imir˙i⋅∂r˙i∂q˙j)−∑imir˙i⋅∂r˙i∂qj\sum_i m_i\ddot{\mathbf{r}}_i\cdot\frac{\partial\mathbf{r}_i}{\partial q_j} = \frac{d}{dt}\left(\sum_i m_i\dot{\mathbf{r}}_i\cdot\frac{\partial\dot{\mathbf{r}}_i}{\partial\dot q_j}\right) - \sum_i m_i\dot{\mathbf{r}}_i\cdot\frac{\partial\dot{\mathbf{r}}_i}{\partial q_j}

With kinetic energy T=∑i12mir˙i2T = \sum_i\tfrac12 m_i\dot{\mathbf{r}}_i^2, this equals ddt(∂T∂q˙j)−∂T∂qj\dfrac{d}{dt}\left(\dfrac{\partial T}{\partial\dot q_j}\right) - \dfrac{\partial T}{\partial q_j}.

Step 4: Lagrange's equations

Because the δqj\delta q_j are independent, each coefficient must vanish:

ddt(∂T∂q˙j)−∂T∂qj=Qj(j=1,…,n)\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)

Conservative systems

For conservative forces Qj=−∂V∂qjQ_j = -\dfrac{\partial V}{\partial q_j}, where V=V(q)V = V(q) does not depend on velocities. Define the Lagrangian L=T−VL = T - V. Since ∂V∂q˙j=0\dfrac{\partial V}{\partial\dot q_j} = 0:

ddt(∂L∂q˙j)−∂L∂qj=0\frac{d}{dt}\left(\frac{\partial L}{\partial\dot q_j}\right) - \frac{\partial L}{\partial q_j} = 0

If some forces are non-conservative, they appear as QjncQ_j^{nc} on the right-hand side. The number of equations equals the number of DOF, and constraint forces never appear.

  • Practice · 3+5 marks

(a) State the conservation theorems of Lagrangian dynamics (cyclic coordinate and energy). (b) Using Lagrange's equation, find the acceleration of the masses of an Atwood machine having masses 3 kg and 5 kg connected by a light inextensible string over a smooth massless pulley. Also find the tension in the string.

Answer

(a) Conservation theorems

  1. Cyclic (ignorable) coordinate theorem: if the Lagrangian does not contain a coordinate qkq_k (so ∂L/∂qk=0\partial L/\partial q_k = 0), then Lagrange's equation gives ddt(∂L∂q˙k)=0\dfrac{d}{dt}\left(\dfrac{\partial L}{\partial\dot q_k}\right) = 0, i.e. the generalised momentum pk=∂L∂q˙kp_k = \dfrac{\partial L}{\partial\dot q_k} is constant. Examples: if LL is independent of xx, the linear momentum px=mx˙p_x = m\dot x is conserved; if independent of θ\theta (central force), the angular momentum pθ=mr2θ˙p_\theta = mr^2\dot\theta is conserved.
  2. Energy conservation: if LL does not depend explicitly on time and the constraints are scleronomic (time independent), the Hamiltonian H=∑jq˙j∂L∂q˙j−LH = \sum_j\dot q_j\dfrac{\partial L}{\partial\dot q_j} - L is constant. For such conservative systems H=T+VH = T + V, so the total mechanical energy is conserved.

(b) Atwood machine

Given: m1=3m_1 = 3 kg, m2=5m_2 = 5 kg; string length ll is constant.

       ___
      /   \   smooth massless pulley
     |     |
    [m1]  [m2]
     ^      | x (downward for m2)

Coordinate: one DOF. Let xx be the downward displacement of m2m_2 from the pulley level; then m1m_1 is at (l−x)(l - x) (it rises when m2m_2 goes down), and both have speed x˙\dot x.

T=12(m1+m2)x˙2V=−m2gx−m1g(l−x)T = \tfrac12(m_1 + m_2)\dot x^2 \qquad V = -m_2 g x - m_1 g(l - x) L=T−V=12(m1+m2)x˙2+m2gx+m1g(l−x)L = T - V = \tfrac12(m_1 + m_2)\dot x^2 + m_2 g x + m_1 g(l - x)

Lagrange's equation ddt(∂L∂x˙)−∂L∂x=0\dfrac{d}{dt}\left(\dfrac{\partial L}{\partial\dot x}\right) - \dfrac{\partial L}{\partial x} = 0:

(m1+m2)x¨−(m2−m1)g=0(m_1 + m_2)\ddot x - (m_2 - m_1)g = 0 x¨=(m2−m1)gm1+m2=(5−3)(9.81)8=2.4525 m/s2\ddot x = \frac{(m_2 - m_1)g}{m_1 + m_2} = \frac{(5 - 3)(9.81)}{8} = 2.4525\ \text{m/s}^2

m2m_2 accelerates downward and m1m_1 upward at this rate.

Tension (from Newton's law for m1m_1): T−m1g=m1x¨T - m_1 g = m_1\ddot x

T=m1(g+x¨)=3(9.81+2.4525)=36.79 NT = m_1(g + \ddot x) = 3(9.81 + 2.4525) = 36.79\ \text{N}

(Check using m2m_2: m2(g−x¨)=5(9.81−2.4525)=36.79m_2(g - \ddot x) = 5(9.81 - 2.4525) = 36.79 N. It agrees. Also T=2m1m2gm1+m2T = \dfrac{2m_1m_2g}{m_1+m_2}.)

Answer: Acceleration = 2.453 m/s² (5 kg down, 3 kg up); tension = 36.79 N.

Written from the official syllabus. Questions and answers are written for this site; check them against your class notes.

Chapter titles and hours from the IOE syllabus ↗