UcenlyOpen in the app

Physics 1 · BE5B02PH1 · Topic 5 of 14

Analytical mechanics: Lagrange & Hamilton

Week 5. Choose generalised coordinates, write L = T − V, and let the Lagrange equations produce the motion.

Open the interactive lesson

Key ideas

Pick generalised coordinates and the Lagrangian

Independent coordinates q_k that fully describe the system are generalised coordinates (the angle for a planar pendulum). For conservative systems L=T−V.

Apply Hamilton’s principle

The realised trajectory makes the action stationary, which gives the Lagrange equations of the second kind. For the pendulum they return φ̈+(g/l) sin φ=0. A coordinate missing from L has a conserved generalised momentum.

Go to Hamilton’s equations

The Hamiltonian is the energy written in q_k and p_k. Hamilton’s canonical equations are twice as many first-order equations, which suits numerical solution.

In one line: The Lagrange equations hold in any coordinates; the only real work is writing the right L.

Formulas

Practice with worked solutions

Question 1

For the planar pendulum L = ½ m l² φ̇² + m g l cos φ the Lagrange equation gives φ̈ + (g/l) sin φ = 0. For small oscillations with l = 0.40 m and g = 10 m/s², find the angular frequency in rad/s. Enter the number only.

φ¨+glsin⁡φ=0\ddot\varphi+\frac gl\sin\varphi=0
Worked solution

Answer: 5

  1. φ¨+glφ=0 ⇒ ω=g/l=10/0.40=5.0 rad/s\ddot\varphi+\frac gl\varphi=0\ \Rightarrow\ \omega=\sqrt{g/l}=\sqrt{10/0.40}=5.0\ \mathrm{rad/s}

For small angles sin φ ≈ φ.

Question 2

A system has L = ½ m q̇² − ½ k q² with m = 3.0 kg. Find the generalised momentum p = ∂L/∂q̇ when q̇ = 4.0 m/s, in kg·m/s. Enter the number only.

p=∂L∂q˙p=\frac{\partial L}{\partial\dot q}
Worked solution

Answer: 12

  1. p=mq˙=3.0⋅4.0=12 kg m/sp=m\dot q=3.0\cdot4.0=12\ \mathrm{kg\,m/s}

Differentiate L with respect to the velocity only.

Question 3

An oscillator has H = p²/(2m) + ½ k x². For m = 2.0 kg, k = 8.0 N/m, p = 6.0 kg·m/s and x = 1.0 m, find the value of H in joules. Enter the number only.

H=p22m+12kx2H=\frac{p^2}{2m}+\frac12kx^2
Worked solution

Answer: 13

  1. H=364+12⋅8⋅1=9+4=13 JH=\frac{36}{4}+\frac12\cdot8\cdot1=9+4=13\ \mathrm J

H is the energy written in x and p.

More Physics 1 practice in Ucenly

Sources

Written by Ucenly. Based on the BE5B02PH1 course materials: