The boundary term vanishes since η(t1)=η(t2)=0. For δS=0 for all ηBy The fundamental lemma of the calculus of variations:
∂q∂L−dtd∂q˙∂L=0
■
Intuition. Hamilton’s principle says nature is “lazy”: out of all possible paths connecting two configurations, the actual path taken is the one that makes the action stationary. This is a profound generalisation of Fermat’s principle of least time in optics.
3.4 Worked Example: Simple Pendulum
Problem. Derive the equation of motion for a simple pendulum of length l and mass m.
Solution. Take θ as the generalised coordinate. The position of the bob is (lsinθ,−lcosθ).
T=21m(x˙2+y˙2)=21ml2θ˙2
V=−mglcosθ
L=T−V=21ml2θ˙2+mglcosθ
Euler-Lagrange equation:
∂θ∂L=−mglsinθ,∂θ˙∂L=ml2θ˙
dtd(ml2θ˙)+mglsinθ=0⟹θ¨+lgsinθ=0
For small angles (sinθ≈θ): θ¨+lgθ=0Giving simple Harmonic motion with ω=g/l. ■
3.5 Worked Example: Double Pendulum
Problem. Derive the equations of motion for a double pendulum: mass m1 on rod l1Mass m2 on rod l2 attached to m1.
Solution. Generalised coordinates: angles θ1,θ2 from the vertical. Position of m1:
Problem. Two masses m1 and m2 (m1>m2) are connected by a massless inextensible string over a frictionless pulley. Find the acceleration using the Lagrangian.
Solution
Choose the vertical displacement x of m1 (downward positive) as the generalised coordinate. Since the string is inextensible, m2 moves up by x.
T=21m1x˙2+21m2x˙2=21(m1+m2)x˙2
V=−m1gx+m2gx=−(m1−m2)gx
L=21(m1+m2)x˙2+(m1−m2)gx
Euler-Lagrange equation:
∂x∂L=(m1−m2)g,∂x˙∂L=(m1+m2)x˙
(m1+m2)x¨=(m1−m2)g
a=x¨=m1+m2m1−m2g
■
3.7 Worked Example: Bead on a Rotating Hoop
Problem. A bead of mass m slides without friction on a circular hoop of radius R. The hoop rotates about a vertical diameter with constant angular velocity ω. Find the equilibrium positions and their stability.
Solution
Use the angle θ from the bottom of the hoop as the generalised coordinate. The position of the bead in cylindrical coordinates (ρ,ϕ,z):
ρ=Rsinθ,ϕ=ωt,z=−Rcosθ
Velocity:
ρ˙=Rθ˙cosθ,ϕ˙=ω,z˙=Rθ˙sinθ
Kinetic energy:
T=21m(ρ˙2+ρ2ϕ˙2+z˙2)=21mR2θ˙2+21mR2ω2sin2θ
Potential energy:
V=−mgRcosθ
Lagrangian:
L=21mR2θ˙2+21mR2ω2sin2θ+mgRcosθ
Euler-Lagrange equation:
mR2θ¨=mR2ω2sinθcosθ−mgRsinθ
θ¨=sinθ(ω2cosθ−Rg)
Equilibrium (θ¨=0, θ˙=0): sinθ=0 giving θ=0 (bottom), or cosθ=g/(Rω2) which exists only when ω2>g/R.
For ω2<g/R: only θ=0 is stable. For ω2>g/R: the bottom becomes unstable and the new equilibria at cosθ=g/(Rω2) are stable.
■
3.8 Cyclic Coordinates and Conserved Quantities
Definition. A coordinate qj is cyclic (or ignorable) if it does not appear explicitly in the Lagrangian: ∂L/∂qj=0.
Theorem 3.4. If qj is cyclic, the conjugate generalised momentum pj=∂L/∂q˙j is a constant of motion.
Proof. The Euler-Lagrange equation for a cyclic coordinate is:
dtd(∂q˙j∂L)=0⟹pj=const
■
Intuition. Cyclic coordinates correspond to symmetries of the system. Each symmetry gives a conserved quantity --- this is the essence of Noether’s theorem (Section 5).
3.9 Lagrange Multipliers for Constraints
When holonomic constraints cannot be eliminated by coordinate choice, introduce Lagrange multipliers λa:
dtd∂q˙j∂L−∂qj∂L=∑aλa∂qj∂fa
The multipliers λa are proportional to the constraint forces.
3.10 The Energy Function and Its Relation to the Hamiltonian
Definition. The energy function (also called the Jacobi integral) is:
h=∑jq˙j∂q˙j∂L−L
Theorem 3.5. If L does not depend explicitly on time, then h is conserved. Furthermore, if the transformation ri=ri(q) does not depend explicitly on time and V is velocity-independent, then h=T+V (the total energy).
The q¨j terms cancel. Using the Euler-Lagrange equation dtd∂q˙j∂L=∂qj∂L:
dtdh=−∂t∂L
If ∂L/∂t=0Then dh/dt=0.
For the second part, when ri=ri(q) (scleronomic) and V=V(q):
T=21∑i,j,kmi∂qj∂ri∂qk∂riq˙jq˙k
Is a homogeneous quadratic form in q˙j. By Euler’s theorem for homogeneous functions:
∑jq˙j∂q˙j∂T=2T
Since ∂L/∂q˙j=∂T/∂q˙j (as V is velocity-independent):
h=∑jq˙j∂q˙j∂T−T+V=2T−T+V=T+V
■
:::caution Common Pitfall The energy function h equals T+V only for natural systems (scleronomic constraints and Velocity-independent potentials). For a bead on a rotating hoop (rheonomic constraint), h is Conserved but h=T+V. Always check whether the system is natural before identifying h With the total energy.