PhysicsScore

Hamiltonian and Hamilton's equations

  • CSIR NET
  • GATE
  • UP Assistant Professor
  • UP GDC Mains

3 minute read · Updated 2026-11-15

Picking up from

In Generalized momenta, Legendre transformation, we saw that a Legendre transform replaces velocities with canonical momenta. How does the transformed function determine the actual time evolution?

In one line

Hamilton’s equations generate motion as coupled first-order equations for canonical coordinates and momenta.

The idea, explained

Phase space records both generalized coordinates and their conjugate momenta. A regular Lagrangian system with a given number of configuration degrees of freedom has twice that many phase-space coordinates. After the Legendre transformation, the Hamiltonian generates their evolution through two sets of partial derivatives: momentum derivatives give coordinate velocities, while negative coordinate derivatives give momentum rates.

These are first-order equations, but they contain the same dynamical information as the corresponding second-order Lagrange equations. Initial coordinates and momenta specify a phase-space point, and evolution traces a trajectory through phase space. The Hamiltonian’s explicit time dependence controls whether it is conserved along that trajectory. This is distinct from whether the algebraic expression happens to look like total energy; canonical transformations and moving coordinates can alter that interpretation while leaving the Hamiltonian evolution rule valid.

Core ideas

  • Treat canonical coordinates and momenta as independent arguments when taking Hamiltonian partial derivatives. Do not substitute a velocity relation back into those derivatives midway.
  • For a Hamiltonian without explicit time dependence, its value is conserved along the Hamiltonian flow. Momentum and position can still vary continuously while their combination stays fixed.
  • An absent coordinate gives a conserved conjugate momentum. An absent momentum gives a constant coordinate, which is a different statement.
  • The signs in the two Hamilton equations are opposite. Losing the minus sign in the momentum equation turns a restoring force into an instability.
  • Hamilton’s equations assume canonical phase-space variables. An arbitrary coordinate–momentum relabeling must be checked before the same derivative form is reused.

Key formulas

Canonical Hamilton 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 Hamiltonian H(q,p,t)H(q,p,t) evolves each canonical pair (qi,pi)(q_i,p_i) using opposite-sign derivatives.

Hamiltonian change along a trajectory

dHdt=∂H∂t\frac{dH}{dt}=\frac{\partial H}{\partial t}

The coordinate and momentum contributions cancel by Hamilton’s equations; only explicit time dependence remains.

Start from a Hamiltonian expressed entirely in canonical variables. Calculate the two partial derivatives separately, label their physical units, and only then combine equations if a familiar second-order form is useful. To test conservation, distinguish an explicit time derivative from the total derivative along the trajectory. Plotting a constant-energy curve can check qualitative motion, but it does not replace the time evolution unless the initial point and direction are also specified.

Quick worked example

For H=p2/(2m)+kx2/2H=p^2/(2m)+kx^2/2, the equations are x˙=p/m\dot x=p/m and p˙=−kx\dot p=-kx. Differentiate the first equation and use the second. The result x¨=−(k/m)x\ddot x=-(k/m)x agrees with the Lagrangian spring equation.

Where this leads

Continue to Cyclic coordinates and conservation laws, because coordinates absent from that function expose conserved momenta directly.

Related: Generalized momenta, Legendre transformation — a Legendre transform replaces velocities with canonical momenta.

Practice this topic

Practice this topic

42 questions in Assistant Professor · Physics · Physics. Sign in and practice access may be required.

Other exam sections