Advanced Physics‹›⌂ 0:00 studied

Module 1 · 12 min read · Free chapter

Lagrangian problems: sliding wedges, rotating planes, spring pendulums and coupled particles

In short

Exam problems in Lagrangian mechanics follow one recipe: choose coordinates that satisfy the constraints, write T in an inertial frame, write V, and apply Lagrange's equations. A Lagrange multiplier gives the constraint force, such as where a particle leaves a sphere at cos theta = 2/3. The sliding wedge, spring pendulum and rotating plane are the most repeated problems.

What are you preparing for? We show the practice and previous year questions of your exam.

Start from zero: where the method pays off

The previous chapter derived Lagrange's equations and used them on easy problems. The method really pays off when parts of a system move together: a block on a wedge that itself slides, a pendulum on a spring, a plane that is being tilted while something slides on it. With Newton's laws each of these needs several free-body diagrams and unknown contact forces.

UPSC and IFoS papers return to such problems again and again. This chapter works through the standard ones in full, in the same order an examiner expects: coordinates, Lagrangian, equations, solution and a physical check.

It also shows how to get a constraint force when you do want it, using a Lagrange multiplier. Hamilton's principle, cyclic coordinates and symmetries are treated more deeply in the next chapter.

Strategy, and finding constraint forces

Choosing coordinates.

  • Let the coordinates satisfy the constraints automatically: distance along an incline, angle on a hoop.
  • Measure a part's position relative to the part it rides on, then add velocities as vectors.
  • Write T in an inertial frame; never put pseudo-forces into a Lagrangian.
  • Before solving, scan L for coordinates that do not appear (cyclic coordinates). Each gives a conserved momentum and an easy first integral.

Lagrange multipliers. To find a normal force, do not remove the constrained coordinate. Keep it, write the constraint as g(q)=0g(q) = 0, and add λ∂g∂qj\lambda\dfrac{\partial g}{\partial q_j} to the right side of each Lagrange equation. The multiplier λ turns out to be the constraint force.

Worked example: sliding off a sphere. A particle starts from rest at the top of a smooth fixed sphere of radius R. Use polar coordinates (r, θ) with θ from the vertical and constraint r − R = 0. With L=12m(r˙2+r2θ˙2)−mgrcos⁡θL = \dfrac{1}{2}m\left(\dot r^2 + r^2\dot\theta^2\right) - mgr\cos\theta, the r-equation is

mr¨−mrθ˙2+mgcos⁡θ=λm\ddot r - mr\dot\theta^2 + mg\cos\theta = \lambda

On the sphere r = R and r¨=0\ddot r = 0, so λ=mgcos⁡θ−mRθ˙2\lambda = mg\cos\theta - mR\dot\theta^2. Energy conservation gives Rθ˙2=2g(1−cos⁡θ)R\dot\theta^2 = 2g(1 - \cos\theta), hence

λ=mg(3cos⁡θ−2)\lambda = mg(3\cos\theta - 2)

λ is the normal reaction. It falls to zero, and the particle leaves the surface, when cos⁡θ=23\cos\theta = \dfrac{2}{3}, about 48° from the top. Newton's method gives the same answer, but here the force came out of the formalism without a free-body diagram.

Worked example: a block on a sliding wedge (IFoS 2021, 2022)

A wedge of mass M and angle α rests on a smooth floor. A block of mass m slides without friction down its face. There are two degrees of freedom: X, the wedge's horizontal position, and q, the block's distance down the incline measured from a mark on the wedge.

Velocities. Take the incline to descend in the +x direction. Relative to the wedge the block moves at q˙\dot q along the slope, with components (q˙cos⁡α,−q˙sin⁡α)\left(\dot q\cos\alpha, -\dot q\sin\alpha\right). Adding the wedge's velocity X˙\dot X,

T=12MX˙2+12m[(X˙+q˙cos⁡α)2+q˙2sin⁡2α]=12(M+m)X˙2+mX˙q˙cos⁡α+12mq˙2T = \frac{1}{2}M\dot X^2 + \frac{1}{2}m\left[\left(\dot X + \dot q\cos\alpha\right)^2 + \dot q^2\sin^2\alpha\right] = \frac{1}{2}(M + m)\dot X^2 + m\dot X\dot q\cos\alpha + \frac{1}{2}m\dot q^2

and V=−mgqsin⁡αV = -mgq\sin\alpha.

Equations. X is cyclic, so its momentum is conserved:

(M+m)X¨+mq¨cos⁡α=0(M + m)\ddot X + m\ddot q\cos\alpha = 0

The q-equation is mq¨+mX¨cos⁡α=mgsin⁡αm\ddot q + m\ddot X\cos\alpha = mg\sin\alpha. Eliminating X¨\ddot X,

q¨=(M+m)gsin⁡αM+msin⁡2α,X¨=−mgsin⁡αcos⁡αM+msin⁡2α\ddot q = \frac{(M + m)g\sin\alpha}{M + m\sin^2\alpha}, \qquad \ddot X = -\frac{mg\sin\alpha\cos\alpha}{M + m\sin^2\alpha}

The minus sign means the wedge recoils opposite to the block's horizontal motion; if the block slides towards −x, the wedge moves towards +x with this magnitude.

Checks. (1) If M → ∞, X¨→0\ddot X \to 0 and q¨→gsin⁡α\ddot q \to g\sin\alpha, the fixed-incline result. (2) If α = 0 or α = 90°, X¨=0\ddot X = 0: a flat plate or a vertical wall cannot be pushed sideways. (3) The horizontal momentum (M+m)X˙+mq˙cos⁡α(M + m)\dot X + m\dot q\cos\alpha stays zero, so the centre of mass falls straight down. Getting the normal force from Newton's laws would have taken two free-body diagrams; here it was never needed.

Worked example: a plane raised at a constant rate (IFoS 2019)

A particle rests on a smooth plane lying flat. At t = 0 the plane starts to turn about a horizontal hinge at constant rate α, so its inclination is θ = αt. The constraint is rheonomic. One coordinate suffices: r, the particle's distance from the hinge along the plane, measured up the slope.

Lagrangian. The particle moves along the plane at r˙\dot r and, because the plane turns, perpendicular to it at rαr\alpha. Its height is rsin⁡αtr\sin\alpha t. So

L=12m(r˙2+α2r2)−mgrsin⁡αtL = \frac{1}{2}m\left(\dot r^2 + \alpha^2r^2\right) - mgr\sin\alpha t

Equation of motion.

r¨−α2r=−gsin⁡αt\ddot r - \alpha^2r = -g\sin\alpha t

The term α2r\alpha^2r is the centrifugal effect of the turning plane; the right side is the component of gravity along the slope, growing as the plane steepens.

Solution. A particular solution is rp=Asin⁡αtr_p = A\sin\alpha t with −2α2A=−g-2\alpha^2A = -g, so A=g2α2A = \dfrac{g}{2\alpha^2}. The general solution is r=Ceαt+De−αt+g2α2sin⁡αtr = Ce^{\alpha t} + De^{-\alpha t} + \dfrac{g}{2\alpha^2}\sin\alpha t. With r(0)=r0r(0) = r_0 and r˙(0)=0\dot r(0) = 0,

r(t)=r0cosh⁡αt+g2α2(sin⁡αt−sinh⁡αt)r(t) = r_0\cosh\alpha t + \frac{g}{2\alpha^2}\left(\sin\alpha t - \sinh\alpha t\right)

Reading the result. At early times sinh⁡αt≈αt\sinh\alpha t \approx \alpha t and sin⁡αt≈αt\sin\alpha t \approx \alpha t cancel, and the cosh term pushes the particle slightly outward. Soon the growing sinh terms decide: if r0<g2α2r_0 < \dfrac{g}{2\alpha^2} the particle slides down towards the hinge, while if r0>g2α2r_0 > \dfrac{g}{2\alpha^2} it is flung outward. The energy is not conserved, because the motor raising the plane does work on the particle.

Worked example: the spring pendulum (IFoS 2024)

A bob of mass m hangs from a fixed pivot on a spring of constant k and natural length l0l_0, and moves in a vertical plane. Two coordinates are needed: the length r and the angle θ from the downward vertical.

Lagrangian.

L=12m(r˙2+r2θ˙2)+mgrcos⁡θ−12k(r−l0)2L = \frac{1}{2}m\left(\dot r^2 + r^2\dot\theta^2\right) + mgr\cos\theta - \frac{1}{2}k\left(r - l_0\right)^2

Equations of motion.

mr¨=mrθ˙2+mgcos⁡θ−k(r−l0)m\ddot r = mr\dot\theta^2 + mg\cos\theta - k\left(r - l_0\right)
ddt(mr2θ˙)=−mgrsin⁡θ⇒rθ¨+2r˙θ˙+gsin⁡θ=0\frac{d}{dt}\left(mr^2\dot\theta\right) = -mgr\sin\theta \quad\Rightarrow\quad r\ddot\theta + 2\dot r\dot\theta + g\sin\theta = 0

The first is the radial equation, with the centripetal term mrθ˙2mr\dot\theta^2. The second is the torque equation; the term 2r˙θ˙2\dot r\dot\theta is a Coriolis-type term that appears because the length changes.

Small oscillations. At equilibrium θ = 0 and re=l0+mgkr_e = l_0 + \dfrac{mg}{k}. For small motions the two equations separate into a bounce at ωr=km\omega_r = \sqrt{\frac{k}{m}} and a swing at ωθ=gre\omega_\theta = \sqrt{\frac{g}{r_e}}. At larger amplitude the terms rθ˙2r\dot\theta^2 and r˙θ˙\dot r\dot\theta couple them, and the motion can become complicated, even chaotic.

Worked example: N particles joined by equal springs (Geo-Scientist 2023)

The Lagrangian is

L=12∑i=1Nmix˙i2−12K∑i=1N∑j=1N(xi−xj)2L = \frac{1}{2}\sum_{i=1}^Nm_i\dot x_i^2 - \frac{1}{2}K\sum_{i=1}^N\sum_{j=1}^N\left(x_i - x_j\right)^2

Every pair is joined by the same spring, and the double sum counts each pair twice.

Differentiating. The coordinate xkx_k appears in the double sum both when i = k and when j = k, giving two equal contributions:

∂L∂xk=−12K[∑j2(xk−xj)+∑i2(xk−xi)]=−2K∑j(xk−xj)\frac{\partial L}{\partial x_k} = -\frac{1}{2}K\left[\sum_j2\left(x_k - x_j\right) + \sum_i2\left(x_k - x_i\right)\right] = -2K\sum_j\left(x_k - x_j\right)

So the equations of motion are

mkx¨k=−2K∑j=1N(xk−xj)=−2KN(xk−xˉ),xˉ=1N∑jxjm_k\ddot x_k = -2K\sum_{j=1}^N\left(x_k - x_j\right) = -2KN\left(x_k - \bar x\right), \qquad \bar x = \frac{1}{N}\sum_jx_j

Conservation of momentum. Adding all N equations, the right sides cancel in pairs, so ∑mkx¨k=0\sum m_k\ddot x_k = 0. The Lagrangian depends only on differences of positions: it is unchanged if every particle is shifted by the same amount, and that symmetry gives conservation of total momentum.

Equal masses. Then xˉ\bar x is the centre of mass, which moves uniformly. Each displacement yk=xk−xˉy_k = x_k - \bar x obeys y¨k=−2NKmyk\ddot y_k = -\dfrac{2NK}{m}y_k. There is one zero-frequency mode (uniform drift) and N − 1 modes all at the same frequency 2NKm\sqrt{\frac{2NK}{m}}. The many-fold repeated frequency is a sign of the high symmetry: every particle is coupled to every other in the same way.

Deep dive: when bouncing turns into swinging

Start a spring pendulum bouncing straight up and down with only a tiny sideways nudge. If the spring is tuned so that ωr=2ωθ\omega_r = 2\omega_\theta, the bouncing slowly dies away and the bob starts to swing like an ordinary pendulum. A little later the swing fades and the bouncing returns. The energy sloshes back and forth between the two motions.

Why the factor of two? The radial motion changes the effective length of the pendulum twice per swing cycle. A swing driven by a length that varies at twice its own frequency is amplified, just as a child on a playground swing pumps by standing and squatting twice per cycle. This is parametric resonance; here the system pumps itself, so it is called autoparametric resonance.

The same physics elsewhere. In the carbon dioxide molecule, the symmetric stretch vibration has almost exactly twice the frequency of the bending vibration. The two mix strongly, splitting lines in its infrared and Raman spectra. This Fermi resonance was explained by Enrico Fermi in 1931. Engineers guard against autoparametric resonance in tall structures and ship hulls, where one mode can feed energy into another.

None of this is visible in the small-oscillation equations, which treat the two motions as independent. It appears only in the full nonlinear Lagrangian equations, which is one reason examiners ask for them in full.

Critiques and debates: Lagrange or Newton for these problems?

Lagrange's method is not always shorter. A useful rule: use it when there are moving supports, several connected bodies or curvilinear coordinates; use Newton when you need the internal forces anyway or when friction dominates.

Problem Lagrange advantage What Newton gives more easily
Block on sliding wedge no normal force; X cyclic gives momentum at once the normal force itself
Plane tipped at constant rate rheonomic constraint handled automatically the reaction force from the plane
Spring pendulum two clean equations in r and θ the spring tension directly
N coupled particles one formula for all k; symmetry visible little
Sliding off a sphere multiplier gives the normal force equally quick

A subtle point: Lagrange's equations are only as good as the Lagrangian. Forgetting that a support moves, or writing T in a rotating frame, gives wrong answers that look perfectly reasonable.

Concept clarifications: commonly confused ideas

Writing a 20-mark answer

Question: "A block of mass m slides without friction on a wedge of mass M and angle α, which rests on a smooth horizontal floor. Using Lagrange's equations find the accelerations of the block and the wedge, and comment on the conserved quantities." (20 marks)

  1. Figure and coordinates (3 marks). X for the wedge, q along the incline; two degrees of freedom; constraints automatic.
  2. Kinetic and potential energy (5 marks). Vector addition of velocities; T with the cross term mX˙q˙cos⁡αm\dot X\dot q\cos\alpha; V = −mgq sin α.
  3. Equations (5 marks). X cyclic gives momentum conservation; q-equation.
  4. Solution (4 marks). Both accelerations; direction of wedge recoil.
  5. Checks and comments (3 marks). M → ∞, α = 0 and 90°; centre of mass falls vertically; total energy conserved since the floor is fixed.

Mains practice: questions to try

These are practice questions written by us, not past papers. The UPSC questions on this topic are shown in the previous year questions panel.

# Question Marks What it tests
1 Find the normal force on a bead sliding on a smooth vertical circle of radius R released from the top. 10 Lagrange multiplier
2 Find the normal reaction between the block and the wedge in the sliding-wedge problem. 15 multiplier with two bodies
3 A pendulum hangs from a block of mass M that slides freely on a horizontal rail. Find the frequency of small oscillations. 15 moving support
4 Show that the spring pendulum has a conserved energy and find it. Why is angular momentum not conserved? 10 conservation laws
5 Three equal masses on a ring are joined by three equal springs. Find the normal-mode frequencies. 15 coupled oscillations

Quick revision

  • Multiplier: add λ∂g∂q\lambda\dfrac{\partial g}{\partial q}; sliding off a sphere λ=mg(3cos⁡θ−2)\lambda = mg(3\cos\theta - 2), leaves at cos⁡θ=23\cos\theta = \dfrac{2}{3}.
  • Wedge: q¨=(M+m)gsin⁡αM+msin⁡2α\ddot q = \dfrac{(M + m)g\sin\alpha}{M + m\sin^2\alpha}, ∣X¨∣=mgsin⁡αcos⁡αM+msin⁡2α\lvert\ddot X\rvert = \dfrac{mg\sin\alpha\cos\alpha}{M + m\sin^2\alpha}; X cyclic.
  • Rotating plane: r¨−α2r=−gsin⁡αt\ddot r - \alpha^2r = -g\sin\alpha t; r=r0cosh⁡αt+g2α2(sin⁡αt−sinh⁡αt)r = r_0\cosh\alpha t + \dfrac{g}{2\alpha^2}\left(\sin\alpha t - \sinh\alpha t\right).
  • Spring pendulum: two coordinates; rθ¨+2r˙θ˙+gsin⁡θ=0r\ddot\theta + 2\dot r\dot\theta + g\sin\theta = 0; resonance at ωr=2ωθ\omega_r = 2\omega_\theta.
  • N particles: mkx¨k=−2K∑(xk−xj)m_k\ddot x_k = -2K\sum\left(x_k - x_j\right); momentum conserved; equal masses 2NKm\sqrt{\frac{2NK}{m}}.
  • Strategy: automatic constraints, relative velocities, inertial T, look for cyclic coordinates.

Mains answer practice

Write your answer first, then open the points a good answer should cover.

  1. Use a Lagrange multiplier to find where a particle sliding from rest at the top of a smooth sphere leaves the surface.

    Show answer points
    • keep r with constraint r - R = 0
    • r-equation: m r̈ - m r θ̇² + mg cosθ = λ
    • on sphere λ = mg cosθ - mRθ̇²
    • energy: Rθ̇² = 2g(1 - cosθ)
    • λ = mg(3cosθ - 2) = 0 at cosθ = 2/3
  2. A block of mass m slides on a smooth wedge of mass M and angle α resting on a smooth floor. Find the acceleration of the wedge using Lagrange's equations.

    Show answer points
    • coordinates X (wedge) and q (along incline)
    • T = ½(M + m)Ẋ² + mẊq̇ cosα + ½mq̇²
    • V = -mgq sinα; X cyclic
    • (M + m)Ẍ + m q̈ cosα = 0 and q̈ + Ẍ cosα = g sinα
    • |Ẍ| = mg sinα cosα/(M + m sin²α)
  3. In the sliding-wedge problem, find the block's acceleration relative to the wedge and check the limits.

    Show answer points
    • eliminate Ẍ from the two equations
    • q̈ = (M + m)g sinα/(M + m sin²α)
    • M → ∞ gives g sinα
    • α = 0 or 90° gives Ẍ = 0
    • centre of mass falls vertically
  4. A smooth plane is raised about a horizontal hinge at constant rate α from horizontal, with a particle initially at rest on it at distance r0. Find the Lagrangian, the equation of motion and its solution.

    Show answer points
    • rheonomic: θ = αt
    • L = ½m(ṙ² + α²r²) - mgr sin αt
    • r̈ - α²r = -g sin αt
    • particular solution (g/2α²) sin αt
    • r = r0 cosh αt + (g/2α²)(sin αt - sinh αt)
  5. Construct the Lagrangian of a pendulum whose string is replaced by a spring (constant k, rest length l0) and find the equations of motion.

    Show answer points
    • coordinates r and θ
    • L = ½m(ṙ² + r²θ̇²) + mgr cosθ - ½k(r - l0)²
    • m r̈ = m r θ̇² + mg cosθ - k(r - l0)
    • r θ̈ + 2ṙθ̇ + g sinθ = 0
    • equilibrium r_e = l0 + mg/k
  6. Explain autoparametric resonance in a spring pendulum. When does it occur?

    Show answer points
    • small oscillations: ω_r = √(k/m), ω_θ = √(g/r_e)
    • nonlinear terms couple the modes
    • resonance when ω_r = 2ω_θ
    • energy sloshes between bounce and swing
    • analogue: Fermi resonance in CO2
  7. For L = ½Σ m_i ẋ_i² - ½K ΣΣ (x_i - x_j)², find the equations of motion of all particles and a conserved quantity.

    Show answer points
    • x_k appears for i = k and j = k
    • ∂L/∂x_k = -2K Σ_j (x_k - x_j)
    • m_k ẍ_k = -2K Σ_j (x_k - x_j)
    • sum over k: Σ m_k ẍ_k = 0, momentum conserved
    • equal masses: deviations oscillate at √(2NK/m)
  8. List four rules for choosing generalised coordinates in Lagrangian problems.

    Show answer points
    • constraints satisfied automatically
    • positions relative to moving parts
    • T written in an inertial frame
    • look for cyclic coordinates
    • fewest coordinates equal to degrees of freedom

Previous year questions

Previous year questions for UPSC CSE will appear here once each one is checked word for word against the official question paper.

Learn with AI

A tutor that asks instead of telling, a partner that argues the other side, and this chapter told through your own district.

Tell the tutor what you are stuck on. It will guide you with questions and give the answer after a few tries.

🙋 Raise a doubt or feedback

Stuck somewhere, or spotted a mistake? Write to the ExamHike team. We usually reply within a day, and you will see the reply on My progress.

Log in to ask a doubt or send feedback →

Frequently asked questions

What is the acceleration of a wedge on a smooth floor?

For a block of mass m on a wedge of mass M and angle alpha, the wedge moves with mg sin alpha cos alpha divided by (M + m sin² alpha). The centre of mass falls straight down because no horizontal force acts.

How does a Lagrange multiplier give the constraint force?

Keep the constrained coordinate, add lambda times the constraint equation, and solve. The multiplier equals the force that maintains the constraint, for example the normal reaction mg(3 cos theta - 2) on a sphere.

What is autoparametric resonance in a spring pendulum?

When the spring frequency is twice the swing frequency, nonlinear coupling pumps energy back and forth between bouncing and swinging. The same effect appears as Fermi resonance in the CO2 molecule.

How should generalised coordinates be chosen?

Pick as many coordinates as degrees of freedom, so constraints are satisfied automatically. Measure positions relative to moving parts but write the kinetic energy in an inertial frame, and look for cyclic coordinates.

More in this module: Mechanics of particles

Official sources

Facts in this chapter were checked against these official sources.

  1. IGNOU PHE-01 Elementary Mechanics and BPHCT-131 Block 4: Lagrangian and Hamiltonian formulations
  2. MIT OpenCourseWare 8.09 Classical Mechanics III, lecture notes on Lagrangian mechanics