🎛️Lagrangian & Hamiltonian Mechanics

Reformulate mechanics with energy and the principle of least action — the bridge to quantum and field theory.

Why a new formulation?

Newton's F⃗=ma⃗\vec F = m\vec a needs every constraint force (tensions, normal forces). For a double pendulum or a bead on a rotating hoop that gets ugly fast. Lagrange's idea: describe the system with generalised coordinates qiq_i (angles, lengths…) and work with energies, which are scalars.

The Lagrangian and the action

L(q,q˙,t)=T−V,S[q]=∫t1t2L dtL(q,\dot q,t) = T - V,\qquad S[q] = \int_{t_1}^{t_2} L\,dt Principle of stationary action: the real path makes SS stationary, δS=0\delta S = 0. Calculus of variations turns this into the Euler–Lagrange equations: ddt∂L∂q˙i−∂L∂qi=0\frac{d}{dt}\frac{\partial L}{\partial \dot q_i} - \frac{\partial L}{\partial q_i} = 0

Example: simple pendulum

T=12mℓ2θ˙2T = \tfrac12 m\ell^2\dot\theta^2, V=−mgℓcos⁡θV = -mg\ell\cos\theta. Euler–Lagrange gives mℓ2θ¨+mgℓsin⁡θ=0m\ell^2\ddot\theta + mg\ell\sin\theta = 0 — no tension force ever appeared.

Noether's theorem

Every continuous symmetry gives a conserved quantity:

SymmetryConserved
Time translationEnergy
Space translationLinear momentum
RotationAngular momentum

If ∂L/∂q=0\partial L/\partial q = 0 (a cyclic coordinate), its momentum p=∂L/∂q˙p = \partial L/\partial\dot q is conserved.

Hamiltonian mechanics

Define momenta pi=∂L/∂q˙ip_i = \partial L/\partial\dot q_i and the Hamiltonian (Legendre transform): H(q,p)=∑ipiq˙i−LH(q,p) = \sum_i p_i\dot q_i - L For most systems H=T+VH = T + V, the total energy. Motion follows Hamilton's equations: q˙i=∂H∂pi,p˙i=−∂H∂qi\dot q_i = \frac{\partial H}{\partial p_i},\qquad \dot p_i = -\frac{\partial H}{\partial q_i} The state is a point in phase space (q,p)(q,p); Liouville's theorem says phase-space volume is conserved.

The road to quantum

Replace the Poisson bracket {A,B}\{A,B\} by 1iℏ[A^,B^]\frac{1}{i\hbar}[\hat A,\hat B] and the Hamiltonian becomes the operator in the Schrödinger equation. Feynman's path integral weights every path by eiS/ℏe^{iS/\hbar} — classical mechanics is the path where the phases add constructively.

Key formulas

Lagrangian

L=T−VL = T - V

Euler–Lagrange

ddt∂L∂q˙−∂L∂q=0\frac{d}{dt}\frac{\partial L}{\partial\dot q}-\frac{\partial L}{\partial q}=0

Hamiltonian

H=∑pq˙−LH=\sum p\dot q - L

Hamilton's equations

q˙=∂H∂p,  p˙=−∂H∂q\dot q=\frac{\partial H}{\partial p},\;\dot p=-\frac{\partial H}{\partial q}

Interactive simulation

Loading simulation…

Videos

Further resources

Check your understanding

1. The Lagrangian is…

2. Time-translation symmetry implies conservation of…

Score: 0 / 2

My notes