Physlib.ClassicalMechanics.HamiltonsEquations
4 declarations
Hamilton equation operator
#hamiltonEqOpGiven a Hamiltonian function , a momentum trajectory , and a position trajectory , the Hamilton equation operator is defined as the function mapping each time to the pair: \[ \left( \frac{dq}{dt}(t) - \nabla_p H(t, p(t), q(t)), \ -\frac{dp}{dt}(t) - \nabla_q H(t, p(t), q(t)) \right) \] In this expression, and denote the time derivatives of the trajectories, denotes the gradient of the Hamiltonian with respect to the momentum (the first argument), and denotes the gradient with respect to the position (the second argument). The vanishing of this operator is equivalent to the classical Hamilton's equations and .
Explicit formula for the Hamilton equation operator
#hamiltonEqOp_eqLet be a Hamiltonian function, be a momentum trajectory, and be a position trajectory. The Hamilton equation operator is the function mapping each time to the pair: \[ \left( \frac{dq}{dt}(t) - \nabla_p H(t, p(t), q(t)), \ -\frac{dp}{dt}(t) - \nabla_q H(t, p(t), q(t)) \right) \] where and denote the time derivatives of the trajectories, and and denote the gradients of the Hamiltonian with respect to the momentum (the first argument) and the position (the second argument), respectively.
is equivalent to Hamilton's equations
#hamiltonEqOp_eq_zero_iff_hamiltons_equationsLet be a Hamiltonian function, where the first argument corresponds to momentum and the second to position. For a momentum trajectory and a position trajectory , the Hamilton equation operator vanishes if and only if the trajectories satisfy Hamilton's canonical equations for all : \[ \frac{dq}{dt}(t) = \nabla_p H(t, p(t), q(t)) \quad \text{and} \quad \frac{dp}{dt}(t) = -\nabla_q H(t, p(t), q(t)) \] where and denote the gradients of the Hamiltonian with respect to its momentum and position arguments, respectively.
The variational gradient of the action is the Hamilton equation operator
#hamiltons_equations_varGradientLet be a smooth Hamiltonian function, where the two arguments represent momentum and position respectively. Let be a smooth trajectory in phase space, denoted as . The variational gradient (functional derivative) of the action functional evaluated at the trajectory is equal to the Hamilton equation operator , which maps each time to the pair: where and are time derivatives, and and are the gradients of the Hamiltonian with respect to momentum and position respectively.
