Skip to content

Hamiltonian brackets & symplectic coordinates

When can a change of variables preserve Hamilton’s equations, and why do conserved quantities need a separate commutativity check? The canonical Poisson bracket answers both questions. This bridge teaches you to calculate the bracket, test a proposed coordinate pair, and exhibit two conserved functions that do not commute. The examples use finite-dimensional, smooth classical dynamics; the final exercise returns these tools to the open Toda chain.

Required background. Differentiate functions of several real variables and use the chain rule. The entry check repairs the signs and the meaning of a partial derivative before any Hamiltonian calculation.

Helpful background. The Toda introduction explains why these tests enter an integrability argument. No differential geometry is required for the calculations below.

The canonical bracket and Hamilton’s equations

Section titled “The canonical bracket and Hamilton’s equations”

Let UU be an open region of R2n\mathbb R^{2n}, with real coordinates (q1,…,qn,p1,…,pn)(q_1,\ldots,q_n,p_1,\ldots,p_n). A point in this phase space specifies all coordinates and momenta at one instant. Take a smooth, time-independent Hamiltonian H:U→RH:U\to\mathbb R. For smooth real functions f,gf,g on UU, define

{f,g}=∑j=1n(∂f∂qj∂g∂pj−∂f∂pj∂g∂qj).\{f,g\}=\sum_{j=1}^n \left( \frac{\partial f}{\partial q_j}\frac{\partial g}{\partial p_j} -\frac{\partial f}{\partial p_j}\frac{\partial g}{\partial q_j} \right).

Here a partial derivative holds all other phase-space coordinates fixed. In particular,

{qi,qj}=0,{pi,pj}=0,{qi,pj}=δij,\{q_i,q_j\}=0,\qquad \{p_i,p_j\}=0,\qquad \{q_i,p_j\}=\delta_{ij},

where δij\delta_{ij} is one when i=ji=j and zero otherwise. These are the canonical bracket relations. Exchanging the arguments reverses the sign: {g,f}=−{f,g}\{g,f\}=-\{f,g\}.

Hamilton’s equations in this convention are

q˙i={qi,H}=∂H∂pi,p˙i={pi,H}=−∂H∂qi.\dot q_i=\{q_i,H\}=\frac{\partial H}{\partial p_i}, \qquad \dot p_i=\{p_i,H\}=-\frac{\partial H}{\partial q_i}.

They specify a vector field, hence local evolution from each initial point. We make claims only for times when the solution remains in its stated domain. These signs agree with Cannas da Silva, January 2006 revision, § 18.2, p. 107, PDF. The canonical relations and the additional requirement of commuting integrals also appear in Torrielli 2016, § 2.1, pp. 3–4, equations (2.1)–(2.3), PDF.

All explicit examples below use dimensionless coordinates, momenta, Hamiltonians and time. Physical units can be restored for the harmonic oscillator; the bracket convention itself is unchanged.

For one pair (q,p)(q,p), take f=q2pf=q^2p and g=p2g=p^2. Find fq,fp,gq,gpf_q,f_p,g_q,g_p, then calculate {f,g}\{f,g\}. Is the answer the same as {g,f}\{g,f\}? Try the calculation before opening the repair.

Repair: differentiate first, then subtract

The four derivatives are

fq=2qp,fp=q2,gq=0,gp=2p.f_q=2qp,\quad f_p=q^2,\quad g_q=0,\quad g_p=2p.

Therefore {f,g}=(2qp)(2p)−(q2)(0)=4qp2\{f,g\}=(2qp)(2p)-(q^2)(0)=4qp^2, whereas {g,f}=−4qp2\{g,f\}=-4qp^2. The symbol pp is an independent coordinate when differentiating with respect to qq; do not replace it by a possible trajectory p(t)p(t) in this step.

For a short retry, {q2,p}=2q\{q^2,p\}=2q and {p,q2}=−2q\{p,q^2\}=-2q. These checks fix the sign used in p˙=−Hq\dot p=-H_q.

Evolution and conservation are bracket calculations

Section titled “Evolution and conservation are bracket calculations”

Along a solution, the ordinary chain rule gives

ddtf(q(t),p(t))=∑j(fqjq˙j+fpjp˙j)=∑j(fqjHpj−fpjHqj)={f,H}.\begin{aligned} \frac{d}{dt}f(q(t),p(t)) &=\sum_j\left(f_{q_j}\dot q_j+f_{p_j}\dot p_j\right)\\ &=\sum_j\left(f_{q_j}H_{p_j}-f_{p_j}H_{q_j}\right) =\{f,H\}. \end{aligned}

Thus a time-independent function ff is conserved along every local solution in UU exactly when {f,H}=0\{f,H\}=0 throughout UU. One direction follows by substitution. Conversely, each point can be used as an initial condition, so conservation for all such solutions forces the derivative to vanish at each point. This is the coordinate form of Cannas da Silva, § 18.4, p. 109, Theorem 18.9, PDF.

For the unit oscillator,

H=12(p2+q2),q˙=p,p˙=−q.H=\frac12(p^2+q^2),\qquad \dot q=p,\qquad \dot p=-q.

Its kinetic energy T=p2/2T=p^2/2 and potential energy V=q2/2V=q^2/2 obey

{T,H}=−pq,{V,H}=pq.\{T,H\}=-pq,\qquad \{V,H\}=pq.

Each term can change while their sum stays constant: {H,H}=0\{H,H\}=0. At q=0q=0, both displayed derivatives vanish at that instant. This does not make TT or VV conserved functions: neither bracket vanishes throughout phase space.

If ff depends explicitly on time, include that dependence:

dfdt={f,H}+∂f∂t.\frac{df}{dt}=\{f,H\}+\frac{\partial f}{\partial t}.

For example, for the free Hamiltonian H=p2/2H=p^2/2, the function f=q−ptf=q-pt is constant along trajectories because {f,H}=p\{f,H\}=p and ∂tf=−p\partial_t f=-p. The criterion {f,H}=0\{f,H\}=0 alone applies to functions with no explicit time dependence.

Canonical coordinates preserve the bracket

Section titled “Canonical coordinates preserve the bracket”

Suppose Q=Q(q,p)Q=Q(q,p) and P=P(q,p)P=P(q,p) are a smooth, time-independent change of variables with a smooth inverse on the region being used. For one degree of freedom, the chain rule shows that

{F(Q,P),G(Q,P)}q,p=(FQGP−FPGQ){Q,P}q,p.\{F(Q,P),G(Q,P)\}_{q,p} =\left(F_QG_P-F_PG_Q\right)\{Q,P\}_{q,p}.

The subscripts identify the original variables in which the bracket is calculated. Consequently {Q,P}q,p=1\{Q,P\}_{q,p}=1 makes the bracket take the same canonical form in (Q,P)(Q,P). For nn pairs, the corresponding test is the full set

{Qi,Qj}=0,{Pi,Pj}=0,{Qi,Pj}=δij.\{Q_i,Q_j\}=0,\qquad \{P_i,P_j\}=0,\qquad \{Q_i,P_j\}=\delta_{ij}.

Expanding by the chain rule in all variables proves the same statement: the brackets of coordinate functions are the coefficients of the transformed bracket. Checking only the nn diagonal relations misses possible cross terms. A globally valid coordinate system additionally needs a globally one-to-one map on the stated domain; bracket identities alone do not establish that property.

Write the Hamiltonian in the new variables as K(Q,P)=H(q(Q,P),p(Q,P))K(Q,P)=H(q(Q,P),p(Q,P)). For a canonical, time-independent change,

Q˙i=∂K∂Pi,P˙i=−∂K∂Qi.\dot Q_i=\frac{\partial K}{\partial P_i}, \qquad \dot P_i=-\frac{\partial K}{\partial Q_i}.

The function describing the energy has changed its expression, but the dynamics and physical time have not changed.

The geometric object preserved by canonical changes is the symplectic form

ω=∑idqi∧dpi.\omega=\sum_i dq_i\wedge dp_i.

For one pair, the wedge symbol records oriented infinitesimal area. Expanding the differentials gives

dQ∧dP=(QqPp−QpPq)dq∧dp={Q,P} dq∧dp.dQ\wedge dP =\left(Q_qP_p-Q_pP_q\right)dq\wedge dp =\{Q,P\}\,dq\wedge dp.

So the one-pair bracket test preserves this area with its orientation. For several pairs the canonical test preserves the full form ω\omega, a stronger condition than preserving total phase-space volume.

If you encounter the vector-field notation, our convention is ιXHω=dH\iota_{X_H}\omega=dH, meaning that inserting XHX_H into the first slot of ω\omega gives dHdH. It yields XHf={f,H}X_Hf=\{f,H\} and the equations already derived. This matches Cannas da Silva, §§ 18.1–18.3, pp. 105–108, PDF. Torrielli instead writes ∑idpi∧dqi\sum_i dp_i\wedge dq_i and XF(g)={F,g}X_F(g)=\{F,g\} in equations (2.8)–(2.10): both signs change together. Translate these conventions together when comparing formulas.

Worked example: square the coordinate, adjust the momentum

Section titled “Worked example: square the coordinate, adjust the momentum”

On the half-plane q>0q\gt0, define

Q=q2,P=p2q.Q=q^2,\qquad P=\frac{p}{2q}.

The derivatives are Qq=2qQ_q=2q, Qp=0Q_p=0, Pp=1/(2q)P_p=1/(2q) and Pq=−p/(2q2)P_q=-p/(2q^2). Therefore {Q,P}=1\{Q,P\}=1. The smooth inverse is

q=Q,p=2Q P,Q>0,P∈R.q=\sqrt Q,\qquad p=2\sqrt Q\,P, \qquad Q\gt0,\quad P\in\mathbb R.

For the unit oscillator, the transformed energy and equations are

K(Q,P)=2QP2+Q2,Q˙=4QP,P˙=−2P2−12.\begin{aligned} K(Q,P)&=2QP^2+\frac Q2,\\ \dot Q&=4QP,\qquad \dot P=-2P^2-\frac12. \end{aligned}

Check these independently in the old variables:

Q˙=2qq˙=2qp=4QP,P˙=p˙2q−pq˙2q2=−12−p22q2=−12−2P2.\begin{aligned} \dot Q&=2q\dot q=2qp=4QP,\\ \dot P&=\frac{\dot p}{2q}-\frac{p\dot q}{2q^2} =-\frac12-\frac{p^2}{2q^2} =-\frac12-2P^2. \end{aligned}

The map is undefined at q=0q=0. Extending its formula to both signs of nonzero qq would also identify (q,p)(q,p) with (−q,−p)(-q,-p), losing a unique inverse. An oscillator may cross q=0q=0 during entirely regular physical motion; this coordinate chart then ceases to apply. A coordinate failure need not be a singularity of the dynamics.

Now try Q~=q2\widetilde Q=q^2, P~=p\widetilde P=p on the same half-plane. This map is invertible, but {Q~,P~}=2q=2Q~\{\widetilde Q,\widetilde P\}=2q=2\sqrt{\widetilde Q}, so it is not canonical. In these variables,

K~=P~2+Q~2,Q~˙=2Q~ P~,P~˙=−Q~.\widetilde K=\frac{\widetilde P^2+\widetilde Q}{2}, \qquad \dot{\widetilde Q}=2\sqrt{\widetilde Q}\,\widetilde P, \qquad \dot{\widetilde P}=-\sqrt{\widetilde Q}.

Using the canonical rule without the bracket factor would give the wrong velocities. An invertible change of variables is useful, but it does not automatically create canonical coordinates.

Conserved functions need not commute with one another

Section titled “Conserved functions need not commute with one another”

Two functions F,GF,G are in involution when {F,G}=0\{F,G\}=0. Conservation instead asks whether each commutes with the chosen Hamiltonian. These are different tests.

On R4\mathbb R^4, consider two uncoupled unit oscillators with equal frequency:

H=E1+E2,E1=12(p12+q12),E2=12(p22+q22),L=q1p2−q2p1.\begin{aligned} H&=E_1+E_2,\\ E_1&=\frac12(p_1^2+q_1^2),\qquad E_2=\frac12(p_2^2+q_2^2),\\ L&=q_1p_2-q_2p_1. \end{aligned}

The separate energies commute because they involve different canonical pairs, hence {E1,H}=0\{E_1,H\}=0. Direct differentiation of LL along the motion gives

L˙=p1p2−q1q2−p2p1+q2q1=0.\dot L=p_1p_2-q_1q_2-p_2p_1+q_2q_1=0.

Nevertheless,

{E1,L}=(q1)(−q2)−(p1)(p2)=−q1q2−p1p2,\begin{aligned} \{E_1,L\} &=(q_1)(-q_2)-(p_1)(p_2)\\ &=-q_1q_2-p_1p_2, \end{aligned}

which is not the zero function. At q1=q2=1q_1=q_2=1 and p1=p2=0p_1=p_2=0, it is −1-1. Thus E1E_1 and LL are both conserved under HH but are not mutually in involution. Equal frequencies matter to the conservation of this particular LL; no assertion about a coupled or unequal-frequency system is being made.

The system still has a commuting choice, E1,E2E_1,E_2. Their differentials are independent wherever neither oscillator is at its origin. In a Liouville argument, a suitable set must satisfy both conditions: mutual involution and independence. Adding every conserved quantity to that set is unnecessary and can destroy involution. See the Toda independence lesson for an explicit rank test, and the Liouville–Arnold reference for the further hypotheses needed to obtain invariant tori and action–angle coordinates.

Guided: an instantaneous zero is not conservation

Section titled “Guided: an instantaneous zero is not conservation”

For the unit oscillator, take D=qpD=qp. Complete Dq=p‾D_q=\underline{\phantom{p}} and Dp=q‾D_p=\underline{\phantom{q}}, then calculate {D,H}\{D,H\}. At the initial point (q,p)=(1,1)(q,p)=(1,1), D˙=0\dot D=0. Does that make DD conserved? Compare with H2H^2: is it conserved, and is it independent of HH?

Hint

Check the bracket away from (1,1)(1,1), or differentiate D˙\dot D once more there. For independence, compare d(H2)d(H^2) with dHdH.

Solution

The derivatives are Dq=pD_q=p and Dp=qD_p=q, so

D˙={D,H}=p2−q2.\dot D=\{D,H\}=p^2-q^2.

This vanishes at the chosen point but not throughout phase space. More strongly, along the solution starting there,

D¨=2pp˙−2qq˙=−4pq=−4at t=0.\ddot D=2p\dot p-2q\dot q=-4pq=-4 \quad\text{at }t=0.

Hence DD changes immediately beyond its stationary instant. By the product rule, {H2,H}=2H{H,H}=0\{H^2,H\}=2H\{H,H\}=0, so H2H^2 is conserved. But d(H2)=2H dHd(H^2)=2H\,dH: it adds no independent integral, even where the two functions have different values.

Independent: logarithmic canonical coordinates

Section titled “Independent: logarithmic canonical coordinates”

On q>0q\gt0, set Q=log⁡qQ=\log q and P=qpP=qp. Prove that this is a canonical change onto R2\mathbb R^2, find its inverse, and express the unit-oscillator Hamiltonian as K(Q,P)K(Q,P). Derive both transformed equations and check them against the chain rule. At q=2,p=3q=2,p=3, calculate Q,P,Q˙,P˙Q,P,\dot Q,\dot P.

Hint

Use Qq=1/qQ_q=1/q and Pp=qP_p=q. Inverting the first equation determines qq uniquely on this domain, then pp follows from the second.

Solution

The bracket is (1/q)q=1(1/q)q=1. The inverse is q=eQq=e^Q, p=e−QPp=e^{-Q}P, with arbitrary real Q,PQ,P, so the map and inverse are smooth on their stated domains. Substitution gives

K=12(e−2QP2+e2Q),Q˙=e−2QP,P˙=e−2QP2−e2Q.\begin{aligned} K&=\frac12\left(e^{-2Q}P^2+e^{2Q}\right),\\ \dot Q&=e^{-2Q}P,\\ \dot P&=e^{-2Q}P^2-e^{2Q}. \end{aligned}

Independently, Q˙=q˙/q=p/q\dot Q=\dot q/q=p/q and P˙=q˙ p+qp˙=p2−q2\dot P=\dot q\,p+q\dot p=p^2-q^2, which give exactly these expressions after substitution. At the specified point,

Q=log⁡2,P=6,Q˙=32,P˙=5.Q=\log2,\quad P=6,\quad \dot Q=\frac32,\quad \dot P=5.

The factor e−2Qe^{-2Q} depends on QQ: treating it as a constant when finding KQK_Q would lose the kinetic contribution to P˙\dot P. As in the squared-coordinate example, this chart does not extend through q=0q=0.

Transfer: Toda variables and a missing coordinate

Section titled “Transfer: Toda variables and a missing coordinate”

For two open Toda particles, use the dimensionless Hamiltonian

H=12(p12+p22)+eq1−q2.H=\frac12(p_1^2+p_2^2)+e^{q_1-q_2}.

The variables a=e(q1−q2)/2a=e^{(q_1-q_2)/2}, b1=p1b_1=p_1, b2=p2b_2=p_2 are useful for the Lax matrix. Compute {a,b1}\{a,b_1\}, {a,b2}\{a,b_2\} and {b1,b2}\{b_1,b_2\}. Explain why these three variables cannot be a canonical coordinate system on the original four-dimensional phase space.

Then retain the missing center coordinate by introducing

Q=q1−q2,P=p1−p22,C=q1+q22,Π=p1+p2.Q=q_1-q_2,\quad P=\frac{p_1-p_2}{2},\quad C=\frac{q_1+q_2}{2},\quad \Pi=p_1+p_2.

Check that (Q,P)(Q,P) and (C,Π)(C,\Pi) are canonical pairs with vanishing cross brackets. Express HH in these variables and derive their four equations of motion. What does this say about the role of a=eQ/2a=e^{Q/2}?

Hint

Since {f,pi}=∂qif\{f,p_i\}=\partial_{q_i}f, the first brackets need only two derivatives. A simultaneous shift of q1,q2q_1,q_2 leaves a,b1,b2a,b_1,b_2 unchanged. For the complete transformation, invert the two sums and differences before substituting in HH.

Solution

The brackets are

{a,b1}=a2,{a,b2}=−a2,{b1,b2}=0.\{a,b_1\}=\frac a2,\qquad \{a,b_2\}=-\frac a2,\qquad \{b_1,b_2\}=0.

They are not the bracket relations of two canonical pairs. Moreover, three variables cannot give an invertible coordinate chart on four-dimensional phase space: aa retains only the relative displacement. Both qi↦qi+cq_i\mapsto q_i+c give the same (a,b1,b2)(a,b_1,b_2).

For the full transformation, the nonzero fundamental brackets are

{Q,P}=12+12=1,{C,Π}=12+12=1.\{Q,P\}=\frac12+\frac12=1, \qquad \{C,\Pi\}=\frac12+\frac12=1.

All cross brackets vanish; for example, {Q,Π}=1−1=0\{Q,\Pi\}=1-1=0 and {C,P}=1/4−1/4=0\{C,P\}=1/4-1/4=0. The inverse is global on R4\mathbb R^4:

q1=C+Q2,q2=C−Q2,p1=Π2+P,p2=Π2−P.q_1=C+\frac Q2,\quad q_2=C-\frac Q2,\quad p_1=\frac\Pi2+P,\quad p_2=\frac\Pi2-P.

Therefore

K=Π24+P2+eQ,K=\frac{\Pi^2}{4}+P^2+e^Q,

and the canonical equations are

Q˙=2P,P˙=−eQ,C˙=Π2,Π˙=0.\dot Q=2P,\qquad \dot P=-e^Q,\qquad \dot C=\frac\Pi2,\qquad \dot\Pi=0.

The center moves freely while the interaction depends only on QQ. The useful exponential variable satisfies a˙=(a/2)Q˙=aP\dot a=(a/2)\dot Q=aP; it can be evolved by the chain rule without pretending that (a,b1,b2)(a,b_1,b_2) is a canonical chart. A useful Lax parametrization and a canonical coordinate system serve different purposes.

You can now test a coordinate change by its bracket relations and inverse, distinguish conservation from involution, and recognize a domain where an otherwise correct chart fails. Return to Derive the open Toda equations to use Hamilton’s rule with exponential forces, or to Test independence and Poisson commutativity to apply the separate tests to spectral invariants. For a complete trajectory calculation in two coordinate systems, continue to Solve an oscillator two ways.

The calculations here concern canonical coordinates on explicit finite-dimensional domains. They do not assert global coordinates across singular sets or establish action–angle variables for a general Hamiltonian system.

  • Cannas da Silva, Ana. Lectures on Symplectic Geometry. Lecture Notes in Mathematics 1764. Springer, 2001. DOI: 10.1007/978-3-540-45330-7. Author’s January 2006 revision, PDF, §§ 18.1–18.4, pp. 105–110; especially Definition 18.5 and Theorem 18.9.
  • Torrielli, Alessandro. Lectures on Classical Integrability. Lecture notes for the Durham Young Researchers Integrability School, July 2015. arXiv:1606.02946v1 [hep-th], 9 June 2016. Version record. Open PDF, § 2.1, pp. 3–5, equations (2.1)–(2.3) and (2.8)–(2.10).