Back

Lagrangian, Newtonian, and Hamiltonian: the same dynamics

What you are seeing: a planar pendulum drawn three ways. Newton: force balance on the bob; tension and gravity are arrows. Lagrangian: a single generalized coordinate θ\theta and its conjugate velocity; equations come from L=TVL = T - V. Hamiltonian: H=p2/(2mL2)mgLcosθH = p^2/(2mL^2) - mgL\cos\theta on a phase plane.

Figure 1. Three formalisms; one trajectory.
θ_01.50
ω_00.00
view

WHAT TO TRY

  • Vary each control and watch the rail readouts respond.
  • Compare the diagnostic plot against the live scene.