advanced30 min studyLesson 442 in Mathematics

Hamiltonian vector fields and Poisson brackets

Derive Hamilton’s equations from a fixed contraction convention and identify conserved quantities through the bracket.

On this page

What you’ll understand

  • Compute a Hamiltonian vector field with consistent signs.
  • Use Poisson brackets to differentiate observables along a flow.
  • Distinguish symplectic vector fields from globally Hamiltonian ones.

An energy function does not produce motion until a geometric rule converts its differential into a vector field. Nondegeneracy of the symplectic form provides exactly that conversion. We define the Hamiltonian field by contracting ω with X_H to obtain dH. With our form dq∧dp, this yields the familiar q̇=H_p and ṗ=−H_q. The Poisson bracket then describes how any observable changes along that motion. Keeping this convention explicit is especially useful when comparing texts that place a minus sign in the contraction definition instead.

Nondegeneracy converts an energy gradient into motion

For a smooth real function H on a symplectic manifold, the equation ι_{X_H}ω=dH has a unique smooth solution. In canonical coordinates, contracting a vector (a,b) with dq∧dp gives a dp−b dq. Comparing coefficients with dH therefore gives a=H_p and b=−H_q. A critical point of H gives an equilibrium, but a noncritical level set is typically traversed rather than descended. Hamiltonian motion is not gradient descent: the symplectic pairing rotates the differential into a direction tangent to the energy level.

Cartan’s identity gives L_{X_H}ω=d(ι_{X_H}ω)+ι_{X_H}dω=0. Thus the local Hamiltonian flow preserves ω wherever it exists. It also preserves H because dH(X_H)=ω(X_H,X_H)=0. A time-dependent Hamiltonian still generates symplectic time evolution, but its numerical energy value can change through explicit time dependence. Smoothness alone does not guarantee a complete flow on a noncompact manifold: solutions can escape in finite time, so global time assertions need an additional completeness argument.

ιXHω=dH,XH=∑j(∂H∂pj∂∂qj−∂H∂qj∂∂pj),LXHω=0\iota_{X_H}\omega=dH,\qquad X_H=\sum_j\left(\frac{\partial H}{\partial p_j}\frac{\partial}{\partial q_j}-\frac{\partial H}{\partial q_j}\frac{\partial}{\partial p_j}\right),\qquad \mathcal L_{X_H}\omega=0
The contraction sign is fixed for the whole module. Conservation and symplectic preservation hold on the interval where the flow is defined.↔ Scroll wide equations horizontally.

The bracket measures observable evolution

Define {f,g}=ω(X_f,X_g), equal in canonical coordinates to the sum of f_qg_p−f_pg_q. Then X_Hf={f,H}. In particular {q_j,p_k}=δ_jk, and an autonomous observable f is conserved precisely when its bracket with H vanishes along the trajectories under consideration. A function with explicit time dependence instead has total derivative f_t+{f,H}. Antisymmetry makes {H,H}=0, recovering energy conservation without another coordinate calculation. The bracket also satisfies the Leibniz rule and Jacobi identity, allowing algebraic manipulation of observables.

If {f,g}=0, their Hamiltonian flows commute wherever both compositions are defined. Under our convention the general vector-field identity is [Xf,Xg]=−X{f,g}[X_f,X_g]=-X_{\{f,g\}}, so the zero-bracket conclusion is unaffected by the minus sign. A nonzero constant bracket also produces commuting vector fields, since a constant has zero Hamiltonian field; translations generated by q and p provide a useful example. Consequently commuting flows alone do not force the bracket itself to vanish on a connected manifold: it can be a nonzero constant.

{f,g}=∑j(fqjgpj−fpjgqj),ddtf(t,q(t),p(t))=ft+{f,H},{qj,pk}=δjk\{f,g\}=\sum_j(f_{q_j}g_{p_j}-f_{p_j}g_{q_j}),\qquad\frac{d}{dt}f(t,q(t),p(t))=f_t+\{f,H\},\qquad\{q_j,p_k\}=\delta_{jk}
The observable is the first bracket argument and the Hamiltonian the second. Reversing them reverses the sign of the evolution.↔ Scroll wide equations horizontally.

Preserving the form can be weaker than having a global energy

A vector field X is symplectic when L_Xω=0. Since ω is closed, this says ι_Xω is a closed one-form. It is Hamiltonian only when that one-form is globally exact. On a small contractible chart, closed implies exact, but a global topological obstruction can remain. On the two-torus with angular coordinates q,p and form dq∧dp, translation X=∂q contracts to dp. Its integral around the p-circle is nonzero, so no single-valued global real Hamiltonian has differential dp.

The distinction affects conservation and transformations. Every globally Hamiltonian vector field is symplectic, but a form-preserving isotopy need not be generated by one global Hamiltonian. Nor does preserving the symplectic volume imply preserving the full form in higher dimensions. These are different classes of motion. When deriving a candidate field from data, test the contraction, its closedness and its global periods rather than calling any divergence-free phase-space motion Hamiltonian. The next lesson supplies a canonical global form on a cotangent bundle, where these definitions connect directly to momenta.

A nonunit oscillator with consistent signs

Let H(q,p)=p²/2+2q². Find X_H, differentiate f=qp, and evaluate both at (q,p)=(1,3).

  1. The derivatives are H_p=p and H_q=4q, so X_H=p∂q−4q∂p. At (1,3), the velocity is (3,−4).

  2. For f=qp, f_q=p and f_p=q. Thus {f,H}=p²−4q², which equals 5 at the chosen point.

  3. Direct differentiation agrees: d(qp)/dt=q̇p+qṗ=3·3+1·(−4)=5. The energy derivative is 4q q̇+p ṗ=12−12=0.

The result

The observable qp changes even though energy is constant. Its bracket sign agrees with direct time differentiation.

Explore the model

Interactive lab

Interactive lab · oscillator

Match an analytic Hamiltonian orbit

Pause and Reset, then set damping ratio ζ=0 and natural frequency ω₀=2. Predict q(t)=cos(2t), p(t)=−2sin(2t), matching H=p²/2+2q² with q(0)=1,p(0)=0. Step to t=0.5 and verify H=2 from the readouts. For a fresh comparison Reset and set ζ=0.5,ω₀=2; energy now decreases, so this damped model is not the same autonomous Hamiltonian flow.

Match an analytic Hamiltonian orbitUnit mass, x(0) = 1 and v(0) = 0. The analytic solution includes underdamped, critically damped and overdamped cases; time is measured in seconds. Current readings: Displacement x(t): 1; Velocity v(t): 0; Regime: underdamped. All parameters are adjustable with the labeled controls below.02.557.510−1.15−0.5700.571.15Time · sDisplacementunderdamped
Displacement x(t)Current time
Displacement x(t)
1
Velocity v(t)
0
Regime
underdamped
t = 0 s

Unit mass, x(0) = 1 and v(0) = 0. The analytic solution includes underdamped, critically damped and overdamped cases; time is measured in seconds. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.

Look forHamiltonian rotation preserves the energy level; adding damping changes the geometric class of the dynamics.

Check your understanding

With ι_XHω=dH and {q,p}=1, what is the derivative of an autonomous observable f along X_H?

Try it yourself

For H=qp on R², solve the flow and verify that it preserves ω=dq∧dp even though typical trajectories are unbounded.

Take a moment to make a prediction or work it out on paper. Open a hint when you need one.

Give me a hint

Hamilton’s equations separate into q̇=q and ṗ=−p. Compute the pullback of dq∧dp under the resulting time-t map.

Compare with the solution

The solution is q(t)=exp(t)q₀ and p(t)=exp(−t)p₀. The time-t map pulls the form back to exp(t)dq₀∧exp(−t)dp₀=dq₀∧dp₀, and qp=q₀p₀ remains constant. Nonzero q₀ gives unbounded q as t grows, but every finite t has a well-defined solution; the flow is complete. Conservation and symplecticity do not imply bounded trajectories or periodic motion.

Take it with you

  • Our signs give X_H=(H_p,−H_q) and observable evolution {f,H}.
  • Hamiltonian flows preserve the form and autonomous energy on their existence interval.
  • A symplectic vector field can fail to have a global Hamiltonian because of nonzero one-form periods.

Read further

Original sources and deeper explanations to follow at your own pace.

Optional progress, saved in this browser when available. Revisit any lesson at any time.

Lesson not marked complete.