Statement

Let (M,ω,H)(M,\omega,H) be an . In (q1,,qn,p1,,pn)(q^1,\ldots,q^n,p_1,\ldots,p_n), where

ω=i=1ndqidpi,\omega=\sum_{i=1}^n dq^i\wedge dp_i,

a curve t(q(t),p(t))t\mapsto(q(t),p(t)) is a Hamiltonian trajectory if and only if it satisfies Hamilton's equations

q˙i=Hpi,p˙i=Hqi\dot q^i=\frac{\partial H}{\partial p_i}, \qquad \dot p_i=-\frac{\partial H}{\partial q^i}

for every ii. These signs correspond to the convention ιXHω=dH\iota_{X_H}\omega=dH. The equations give the local coordinate form of the intrinsic vector-field equation γ˙=XH\dot\gamma=X_H.

Derivation

Write

XH=i(aiqi+bipi).X_H=\sum_i\left(a^i\frac{\partial}{\partial q^i} +b_i\frac{\partial}{\partial p_i}\right).

Contracting with the Darboux form gives

ιXHω=i(aidpibidqi).\iota_{X_H}\omega=\sum_i(a^i\,dp_i-b_i\,dq^i).

Comparison with dH=i(Hqidqi+Hpidpi)dH=\sum_i(H_{q^i}\,dq^i+H_{p_i}\,dp_i) yields ai=Hpia^i=H_{p_i} and bi=Hqib_i=-H_{q^i}. Since trajectories satisfy γ˙=XH\dot\gamma=X_H, the coordinate equations follow. See Abraham and Marsden, §3.3.

Examples and time dependence

For H(q,p)=p2/(2m)+mΩ2q2/2H(q,p)=p^2/(2m)+m\Omega^2q^2/2, Hamilton's equations are

q˙=p/m,p˙=mΩ2q,\dot q=p/m,\qquad \dot p=-m\Omega^2q,

and hence q¨+Ω2q=0\ddot q+\Omega^2q=0.

For a H(t,q,p)H(t,q,p), the same formulas hold with the evaluated at time tt. The resulting evolution is nonautonomous, and HH need not be conserved Arnol'd, Chapter 9.

Conventions and scope
References
  1. V. I. Arnol'd, Mathematical Methods of Classical Mechanics, 2nd ed., Springer, 1989. DOI record. Relevant: Chapters 8–9, Hamilton's equations and time-dependent systems.
  2. Ralph Abraham and Jerrold E. Marsden, Foundations of Mechanics, 2nd ed., AMS Chelsea Publishing, 2008. DOI record. Relevant: §3.3, Hamiltonian systems in canonical coordinates.