← Classical Mechanics
📐

Lagrangian Mechanics

The Lagrangian formulation replaces Newton's vector equations with a single scalar function $L=T-V$. By choosing generalized coordinates that automatically satisfy the constraints, you reduce any system to as many equations as degrees of freedom — and the method is coordinate-independent.

Key Concepts

Generalized Coordinates
A minimal set of independent variables qiq_i that fully specifies the configuration of a system while automatically satisfying all constraints. For a pendulum, the angle θ\theta is a generalized coordinate; xx and yy separately are not minimal.
Lagrangian
L(q,q˙,t)=TVL(q,\dot{q},t)=T-V, the difference of kinetic and potential energies. Written in generalized coordinates, LL captures the full dynamics without explicit constraint forces.
Euler-Lagrange Equation
For each generalized coordinate: ddtLq˙iLqi=0\frac{d}{dt}\frac{\partial L}{\partial \dot{q}_i}-\frac{\partial L}{\partial q_i}=0. This yields the equation of motion directly.
Noether's Theorem
If LL does not depend on qiq_i (cyclic coordinate), then L/q˙i=\partial L/\partial\dot{q}_i= const. Translational symmetry → linear momentum; rotational symmetry → angular momentum; time symmetry → energy.

Key Equations

Lagrangian
L=TVL = T - V
Kinetic minus potential energy, expressed in generalized coordinates.
Euler-Lagrange
ddtLq˙iLqi=0\frac{d}{dt}\frac{\partial L}{\partial \dot{q}_i} - \frac{\partial L}{\partial q_i} = 0
One equation per degree of freedom; yields the equation of motion for qᵢ.
Generalized momentum
pi=Lq˙ip_i = \frac{\partial L}{\partial \dot{q}_i}
Conjugate momentum to qᵢ; conserved when qᵢ is cyclic.
Worked Example

Pendulum via Euler-Lagrange

Problem

Derive the equation of motion for a simple pendulum (mass mm, length ll) and find its small-angle angular frequency.

Solution

Generalized coordinate: q=θq=\theta. Kinetic energy: T=12ml2θ˙2T=\frac{1}{2}ml^2\dot\theta^2. Potential: V=mgl(1cosθ)V=mgl(1-\cos\theta).

L=12ml2θ˙2mgl(1cosθ)L = \frac{1}{2}ml^2\dot\theta^2 - mgl(1-\cos\theta)

Apply E-L: ddt(ml2θ˙)(mglsinθ)=0\frac{d}{dt}(ml^2\dot\theta)-(-mgl\sin\theta)=0

ml2θ¨+mglsinθ=0    θ¨=glsinθml^2\ddot\theta + mgl\sin\theta = 0 \implies \ddot\theta = -\frac{g}{l}\sin\theta

Small angle: sinθθ\sin\theta\approx\theta, giving θ¨=ω02θ\ddot\theta=-\omega_0^2\theta with ω0=g/l\omega_0=\sqrt{g/l}.

Answer ω0=g/l\omega_0 = \sqrt{g/l}; for l=1.0l=1.0 m, ω0=3.13\omega_0=3.13 rad/s.
Practice

Exercises

7 problems
1 of 7

A simple pendulum has length l=0.50l=0.50 m. Using the Lagrangian, find its small-angle angular frequency ω0\omega_0 (in rad/s).

rad/s
2 of 7

A spring-mass system has k=200k=200 N/m and m=2.0m=2.0 kg. Find ω0\omega_0 (in rad/s) from the Lagrangian.

rad/s
3 of 7

A solid cylinder (m=2.0m=2.0 kg, R=0.10R=0.10 m, I=12mR2I=\frac{1}{2}mR^2) rolls without slipping down a 30°30° incline. Find its linear acceleration (in m/s²).

Unlock Exercise 3

Subscribe to PhysWeb Pro to access all exercises and track your progress.

Upgrade to Pro →
4 of 7

A bead of mass mm slides frictionlessly on a vertical circular hoop of radius R=0.30R=0.30 m rotating at Ω=7.0\Omega=7.0 rad/s about its vertical diameter. Find the equilibrium angle θ\theta (in degrees, measured from the bottom).

Unlock Exercise 4

Subscribe to PhysWeb Pro to access all exercises and track your progress.

Upgrade to Pro →
5 of 7

A pendulum (m=0.50m=0.50 kg, l=1.0l=1.0 m) has θ˙=2.0\dot\theta=2.0 rad/s when θ=0\theta=0. What is its kinetic energy (in J) at that instant?

Unlock Exercise 5

Subscribe to PhysWeb Pro to access all exercises and track your progress.

Upgrade to Pro →
6 of 7

A bead is on a straight rod rotating in a horizontal plane at ω=3.0\omega=3.0 rad/s. At t=0t=0, r=0.20r=0.20 m and r˙=0\dot r=0. Find r˙\dot r (in m/s) when r=0.50r=0.50 m. (Energy conservation on the rotating rod.)

Unlock Exercise 6

Subscribe to PhysWeb Pro to access all exercises and track your progress.

Upgrade to Pro →
7 of 7

A particle moves in 2D with generalized coordinate q=rq=r (radial). Its angular momentum is l=4.0l=4.0 kg·m²/s and mass m=2.0m=2.0 kg. Find the centrifugal term l2/(mr3)l^2/(mr^3) (in N) at r=2.0r=2.0 m.

Unlock Exercise 7

Subscribe to PhysWeb Pro to access all exercises and track your progress.

Upgrade to Pro →

Key Takeaways

  • The Lagrangian L=TVL=T-V in generalized coordinates automatically accounts for constraints — no need to find constraint forces.
  • The Euler-Lagrange equation gives one equation of motion per degree of freedom.
  • Cyclic coordinates (absent from LL) yield conserved momenta — a direct statement of symmetry.
  • Rolling without slipping is a constraint linking translation and rotation: v=Rωv=R\omega, halving the number of independent coordinates.