Prerequisites
No prerequisite chain available for this subject.
Functionals and the calculus of variations
A configuration is specified by generalized coordinates $q_1,\ldots,q_n$. A motion is a path $q_i(t)$ through configuration space. A functional assigns a number to an entire path:
An admissible path satisfies the endpoint, smoothness, and constraint conditions allowed by the problem. A stationary path has zero first-order change under every permitted small variation; it need not be a minimum.
Write a varied path as $q_\varepsilon=q+\varepsilon\eta$, with $\eta(t_1)=\eta(t_2)=0$. Stationarity means
The first variation is
Integration by parts and the fundamental lemma of the calculus of variations give the Euler–Lagrange equation:
For several coordinates, apply this equation to every $q_i$. If $F$ does not depend explicitly on $q_i$, then $\partial F/\partial\dot q_i$ is constant; $q_i$ is called cyclic or ignorable.
Hamilton’s principle
For a conservative system,
Hamilton’s principle says that the physical path makes $S$ stationary among nearby paths with the same endpoints. It is a local first-variation statement, not a claim that nature searches through paths in real time.
Worked example: pendulum
For a pendulum of length $\ell$ and mass $m$, use angle $\theta$ from the downward vertical:
so $L=T-V$. Then
Euler–Lagrange gives
For small angles, $\sin\theta\approx\theta$, so the motion is simple harmonic with $\omega_0=\sqrt{g/\ell}$.
Constraints and generalized forces
A constraint removes possible configurations or velocities.
A holonomic constraint can be written $f_a(q,t)=0$.
A nonholonomic constraint restricts differentials or velocities without necessarily integrating to a position equation.
An ideal constraint does no virtual work for allowed virtual displacements.
A virtual displacement $\delta q$ is an imagined instantaneous displacement at fixed time that respects the constraints. If
then $Q_j$ is the generalized force conjugate to $q_j$:
It need not have units of newtons; it has units of energy divided by the units of $q_j$. With nonconservative applied forces,
For holonomic constraints, introduce multipliers:
Variation with respect to $\lambda_a$ recovers the constraints; the multiplier equations encode the reaction forces. Eliminate coordinates when only the motion is wanted, and use multipliers when reaction forces are important.
Symmetry and Noether’s theorem
A continuous symmetry is a smooth transformation that leaves the action unchanged, or changes $L$ only by a total time derivative. Noether’s theorem turns each such symmetry into a conserved quantity. For an infinitesimal change $q_i\mapsto q_i+\varepsilon\Delta q_i$ with no boundary contribution,
is conserved. The most useful cases are:
| Symmetry | Conserved quantity |
|---|---|
| spatial translation | linear momentum |
| rotation | angular momentum |
| time translation | energy |
If $L$ has no explicit time dependence,
is constant. For $L=T-V$ with a velocity-independent potential, this is $T+V$. Explicit time dependence or an external drive can break this conservation law.
Hamiltonian mechanics
Define canonical momentum and the Legendre transform:
The velocity–momentum relation must be invertible before $H$ is a regular Hamiltonian. In phase space, Hamilton’s equations are
For $L=\tfrac12m\dot x^2-V(x)$,
The Hamiltonian is often total energy, but that identification must be checked for time-dependent coordinates, velocity-dependent potentials, and electromagnetic systems.
Poisson brackets
For phase-space functions $f(q,p,t)$ and $g(q,p,t)$,
The fundamental brackets are $\{q_i,q_j\}=0$, $\{p_i,p_j\}=0$, and $\{q_i,p_j\}=\delta_{ij}$. Time evolution is
Thus $f$ is conserved when $\{f,H\}+f_t=0$. The bracket is bilinear, antisymmetric, obeys the product rule, and satisfies the Jacobi identity:
For $H=p^2/(2m)+V(x)$, $\{p,H\}=-V'(x)$, recovering Newton’s law.
Canonical transformations
A transformation $(q,p)\mapsto(Q,P)$ is canonical when it preserves Hamilton’s equations and the symplectic structure. A practical test is preservation of the fundamental brackets:
A type-2 generating function $F_2(q,P,t)$ defines
The identity choice $F_2=\sum_iq_iP_i$ gives $Q=q$ and $P=p$. A time-dependent transformation changes the Hamiltonian to $K$, so the old $H$ cannot simply be reused.
Hamilton–Jacobi theory
Hamilton’s principal function $S(q,t)$ is a generating function chosen so that the new momenta and Hamiltonian are constants. It satisfies the Hamilton–Jacobi equation:
For a time-independent Hamiltonian, set $S=W(q)-Et$ to obtain
For one particle,
so $dW/dx=p(x)=\pm\sqrt{2m(E-V(x))}$. Separation can reduce trajectory finding to quadratures and connects mechanics to geometric optics and semiclassical quantum mechanics.
Common mistakes and workflow
A stationary action need not be a minimum; maxima and saddle points also satisfy Euler–Lagrange.
Fixed endpoints mean the variation vanishes there.
Do not confuse partial derivatives with the total derivative in Euler–Lagrange.
“Ideal constraint” means zero virtual work, not necessarily zero real work in every motion.
Generalized forces have coordinate-dependent units.
Check the Legendre transform before calling $H$ equal to $T+V$.
Conservation laws require the corresponding symmetry; explicit time or coordinate dependence can break them.
Preserve the sign in the Poisson bracket and canonical equations.
In Hamilton–Jacobi theory, retain both $H(q,\nabla S,t)$ and $\partial S/\partial t$.
Workflow: list coordinates and constraints; state assumptions; build $T$, $V$, and $L$; apply Euler–Lagrange; search for cyclic coordinates and symmetries; then check dimensions, limits, and agreement with Newtonian mechanics.
Formula sheet and summary
Newton emphasizes forces, Lagrange emphasizes stationary action and configuration space, and Hamilton emphasizes flow in phase space. These are complementary descriptions of the same classical dynamics when their assumptions are satisfied.
Practice problems
Derive the equation of motion from $L=\tfrac12m\dot x^2-V(x)$.
If $L$ does not contain $\theta$, identify the conserved quantity.
For $H=p^2/(2m)+kx^2/2$, find $\dot x$ and $\dot p$.
Compute $\{x,p^2\}$.
Test whether $Q=q$ and $P=p+aq$ is canonical.
For a free particle, find a separated $S(x,t)$ with constant momentum $p_0$.
Short solutions
$m\ddot x=-V'(x)$.
$p_\theta=\partial L/\partial\dot\theta$ is constant.
$\dot x=p/m$ and $\dot p=-kx$.
$\{x,p^2\}=2p$.
$\{Q,P\}=\{q,p+aq\}=1$ and the remaining fundamental brackets vanish, so it is canonical.
$S=p_0x-p_0^2t/(2m)+C$, since $E=p_0^2/(2m)$.
Recommended next topics
Differential geometry and symplectic manifolds
Rigid-body dynamics and Euler angles
Continuum mechanics and field-theoretic Lagrangians
Perturbation theory and action–angle variables
Sources
Taylor, Classical Mechanics
Goldstein, Poole, and Safko, Classical Mechanics
Lanczos, The Variational Principles of Mechanics