PRACTICE →↑ BACK TO TOP

Let's talk

contact@adriamics.com

Mathematical Mechanics

GitHub Changelog -

  • 1

Functionals and the calculus of variations

A configuration is specified by generalized coordinates . A motion is a path 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 , with . 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 . If does not depend explicitly on , then is constant; is called cyclic or ignorable.

Hamilton’s principle

For a conservative system,

Hamilton’s principle says that the physical path makes 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 and mass , use angle from the downward vertical:

so . Then

Euler–Lagrange gives

For small angles, , so the motion is simple harmonic with .

Constraints and generalized forces

A constraint removes possible configurations or velocities.

  • A holonomic constraint can be written .

  • 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 is an imagined instantaneous displacement at fixed time that respects the constraints. If

then is the generalized force conjugate to :

It need not have units of newtons; it has units of energy divided by the units of . With nonconservative applied forces,

For holonomic constraints, introduce multipliers:

Variation with respect to 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 only by a total time derivative. Noether’s theorem turns each such symmetry into a conserved quantity. For an infinitesimal change with no boundary contribution,

is conserved. The most useful cases are:

SymmetryConserved quantity
spatial translationlinear momentum
rotationangular momentum
time translationenergy

If has no explicit time dependence,

is constant. For with a velocity-independent potential, this is . 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 is a regular Hamiltonian. In phase space, Hamilton’s equations are

For ,

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 and ,

The fundamental brackets are , , and . Time evolution is

Thus is conserved when . The bracket is bilinear, antisymmetric, obeys the product rule, and satisfies the Jacobi identity:

For , , recovering Newton’s law.

Canonical transformations

A transformation 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 defines

The identity choice gives and . A time-dependent transformation changes the Hamiltonian to , so the old cannot simply be reused.

Hamilton–Jacobi theory

Hamilton’s principal function 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 to obtain

For one particle,

so . 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 equal to .

  • 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 and .

Workflow: list coordinates and constraints; state assumptions; build , , and ; 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

  1. Derive the equation of motion from .

  2. If does not contain , identify the conserved quantity.

  3. For , find and .

  4. Compute .

  5. Test whether and is canonical.

  6. For a free particle, find a separated with constant momentum .

Short solutions

  1. .

  2. is constant.

  3. and .

  4. .

  5. and the remaining fundamental brackets vanish, so it is canonical.

  6. , since .

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