Skip to content

Canonical Transformations

A canonical transformation is a change of phase-space variables that preserves the Hamiltonian structure. It sends canonical coordinates (qi,pi)(q^i,p_i) to new variables (Qi,Pi)(Q^i,P_i) in such a way that Poisson brackets keep their canonical form:

{Qi,Qj}=0,{Pi,Pj}=0,{Qi,Pj}=δji.\{Q^i,Q^j\}=0, \qquad \{P_i,P_j\}=0, \qquad \{Q^i,P_j\}=\delta^i_j.

Equivalently, Hamilton’s equations keep the same shape in the new variables after the Hamiltonian is transformed appropriately. Canonical transformations are the classical mechanics analogue of structure-preserving changes of quantum operators, especially unitary transformations.

Helpful background. Phase Space introduces q,pq,p, and Poisson Brackets supplies the test for a canonical change of variables.

Changing variables can simplify a Hamiltonian, but arbitrary variables need not satisfy Hamilton’s equations in their usual form. Canonical transformations preserve the pairing between positions and momenta. Computing the brackets of the new variables is a practical test.

Let

Qi=Qi(q,p,t),Pi=Pi(q,p,t)Q^i=Q^i(q,p,t), \qquad P_i=P_i(q,p,t)

be new phase-space variables. The transformation is canonical when the new variables satisfy the fundamental Poisson brackets:

{Qi,Qj}=0,\{Q^i,Q^j\}=0, {Pi,Pj}=0,\{P_i,P_j\}=0,

and

{Qi,Pj}=δji.\{Q^i,P_j\}=\delta^i_j.

These brackets are computed using the old canonical variables (q,p)(q,p). If the conditions hold, then any two functions F(Q,P)F(Q,P) and G(Q,P)G(Q,P) have the same bracket whether computed in old coordinates or new coordinates:

{F,G}q,p={F,G}Q,P.\{F,G\}_{q,p} = \{F,G\}_{Q,P}.

This bracket-preservation criterion is often the most direct test.

In canonical coordinates, the standard symplectic form is

ω=∑idqi∧dpi.\omega = \sum_i dq^i\wedge dp_i.

A transformation is canonical when it preserves this form. For a time-dependent change of variables, the differentials here are taken on phase space at fixed tt:

∑idQi∧dPi=∑idqi∧dpi.\sum_i dQ^i\wedge dP_i = \sum_i dq^i\wedge dp_i.

This is the geometric version of preserving Poisson brackets. Symplectic Vector Spaces develops the finite-dimensional linear-algebra viewpoint; in one degree of freedom this means preserving oriented phase-space area. In several degrees of freedom the condition preserves the full symplectic form, not the projected area of each coordinate plane separately.

For linear transformations it is useful to package phase-space coordinates into

z=(qp).z= \begin{pmatrix} q\\ p \end{pmatrix}.

For one degree of freedom, the Poisson bracket can be written using

J=(01−10).J= \begin{pmatrix} 0 & 1\\ -1 & 0 \end{pmatrix}.

A linear transformation z′=Mzz'=Mz is canonical precisely when

MJMT=J.MJM^{T}=J.

For the same matrix MM, this is equivalent to

MTJM=J.M^{T}JM=J.

The first identity preserves the Poisson brackets of coordinate functions; the second preserves the symplectic pairing of tangent vectors. They are algebraically equivalent because J−1=−JJ^{-1}=-J, not different choices for MM. For nn degrees of freedom use the block matrix J=(0I−I0)J=\begin{pmatrix}0&I\\-I&0\end{pmatrix}.

For one degree of freedom, this condition implies det⁡M=1\det M=1. In higher dimensions, determinant 11 is not enough; the full symplectic condition is stronger.

Let

Q=aq,P=pa,Q=aq, \qquad P=\frac{p}{a},

with a≠0a\ne0. Then

{Q,P}={aq,pa}=1.\{Q,P\} = \left\{aq,\frac{p}{a}\right\} = 1.

Also {Q,Q}=0\{Q,Q\}=0 and {P,P}=0\{P,P\}=0, so the transformation is canonical.

By contrast,

Q=aq,P=apQ=aq, \qquad P=ap

gives

{Q,P}=a2.\{Q,P\}=a^2.

This is canonical only when a2=1a^2=1. It may be invertible, but it does not preserve the canonical bracket for general aa.

The transformation

Q=p,P=−qQ=p, \qquad P=-q

is canonical because

{Q,P}={p,−q}=1.\{Q,P\} = \{p,-q\} = 1.

Geometrically this is a 90∘90^\circ rotation in the (q,p)(q,p) plane, up to units. In quantum mechanics, exchanging position and momentum is closely related to Fourier transformation, though the quantum statement requires normalization conventions and operators.

A change of configuration coordinate Q=Q(q)Q=Q(q) can be canonical if the momentum transforms as a covector. In one degree of freedom,

P=pdqdQ.P = p\frac{dq}{dQ}.

Then

{Q,P}=dQdq∂P∂p=dQdqdqdQ=1.\{Q,P\} = \frac{dQ}{dq} \frac{\partial P}{\partial p} = \frac{dQ}{dq} \frac{dq}{dQ} = 1.

This is why canonical momentum is not simply a velocity component in arbitrary coordinates. Momentum transforms according to the cotangent-space structure of phase space.

Time evolution generated by a Hamiltonian is itself a canonical transformation. If a system flows from initial variables (q(0),p(0))(q(0),p(0)) to variables (q(t),p(t))(q(t),p(t)), the map from initial phase space to time-tt phase space preserves Poisson brackets and phase-space volume.

One way to see bracket preservation is through the Jacobi identity. If observables evolve by

dfdt={f,H},\frac{df}{dt}=\{f,H\},

then the bracket evolves compatibly:

ddt{f,g}={{f,g},H}.\frac{d}{dt}\{f,g\} = \{\{f,g\},H\}.

So the bracket of two evolved observables is the evolved bracket. This is the classical analogue of unitary time evolution preserving commutators.

A phase-space function G(q,p)G(q,p) generates an infinitesimal canonical transformation by

δf=ϵ{f,G},\delta f = \epsilon\{f,G\},

where ϵ\epsilon is a small parameter. In particular,

δqi=ϵ∂G∂pi,δpi=−ϵ∂G∂qi.\delta q^i = \epsilon\frac{\partial G}{\partial p_i}, \qquad \delta p_i = - \epsilon\frac{\partial G}{\partial q^i}.

This is Hamiltonian flow with GG playing the role of a generator. Taking G=HG=H generates time translations; taking G=pG=p generates translations in qq; taking angular momentum generates rotations.

For U(ϵ)=e−iϵG^/ℏU(\epsilon)=e^{-i\epsilon\widehat G/\hbar} and the convention A↦U†AUA\mapsto U^\dagger A U, the quantum counterpart is

δA=ϵiℏ[A,G^]+O(ϵ2).\delta A=\frac{\epsilon}{i\hbar}[A,\widehat G]+O(\epsilon^2).

Conjugating in the opposite order reverses the first-order sign. The shared structure is the generator acting by a bracket.

Canonical transformations can often be built from generating functions. A common type uses a function

F2(q,P,t).F_2(q,P,t).

The transformation is defined by

pi=∂F2∂qi,Qi=∂F2∂Pi.p_i = \frac{\partial F_2}{\partial q^i}, \qquad Q^i = \frac{\partial F_2}{\partial P_i}.

These equations determine a local change of variables when the mixed Hessian ∂2F2/∂qi∂Pj\partial^2F_2/\partial q^i\partial P_j is invertible. If the generating function depends explicitly on time, the new Hamiltonian is

K(Q,P,t)=H(q,p,t)+∂F2∂t,K(Q,P,t) = H(q,p,t) + \frac{\partial F_2}{\partial t},

with qq and pp rewritten in terms of QQ, PP, and tt.

The identity transformation is generated by

F2(q,P)=∑iqiPi.F_2(q,P)=\sum_i q^iP_i.

Indeed,

pi=Pi,Qi=qi.p_i = P_i, \qquad Q^i = q^i.

For a translation by a constant aa in one degree of freedom, the choice

F2(q,P)=(q+a)PF_2(q,P)=(q+a)P

gives

p=P,Q=q+a.p=P, \qquad Q=q+a.

Generating functions are useful because they build canonical transformations automatically, rather than requiring one to check the bracket conditions afterward. Hamilton–Jacobi Theory turns this idea into a method: a suitable action function can generate a canonical transformation to constants of motion.

Suppose a time-independent canonical transformation rewrites the old variables in terms of new variables:

q=q(Q,P),p=p(Q,P).q=q(Q,P), \qquad p=p(Q,P).

The new Hamiltonian is the old Hamiltonian expressed in the new variables:

K(Q,P)=H(q(Q,P),p(Q,P)).K(Q,P)=H(q(Q,P),p(Q,P)).

Hamilton’s equations keep their canonical form:

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}.

If the transformation is time dependent, the extra ∂F/∂t\partial F/\partial t term in the generating function changes the Hamiltonian. This is the classical version of the familiar quantum fact that a time-dependent unitary transformation adds an extra generator term to the transformed Hamiltonian.

Worked example: a moving coordinate origin

Section titled “Worked example: a moving coordinate origin”

Consider a free particle with H=p2/(2m)H=p^2/(2m) and m>0m>0. Let the coordinate origin follow a prescribed twice-differentiable trajectory a(t)a(t). This is a passive change of description, generated by

F2(q,P,t)=[q−a(t)]P,Q=q−a(t),P=p.F_2(q,P,t)=[q-a(t)]P, \qquad Q=q-a(t),\qquad P=p.

The type-22 rule, including its time derivative, gives

K(Q,P,t)=P22m−a˙(t)P,Q˙=Pm−a˙(t),P˙=0.K(Q,P,t)=\frac{P^2}{2m}-\dot a(t)P, \qquad \dot Q=\frac{P}{m}-\dot a(t),\qquad \dot P=0.

Hence Q¨=−a¨\ddot Q=-\ddot a: a freely moving particle accelerates relative to an accelerating origin. Keeping only HH expressed in the new variables would miss this effect. The same result follows from the transformed Lagrangian L′=m(Q˙+a˙)2/2L'=m(\dot Q+\dot a)^2/2: its conjugate momentum is P=m(Q˙+a˙)P=m(\dot Q+\dot a), and its Legendre transform is KK. In this choice of variables, PP remains the laboratory momentum, rather than mQ˙m\dot Q.

The generator KK is also different from the laboratory energy E=P2/(2m)E=P^2/(2m). Along the motion,

dEdt=0,dKdt=∂K∂t=−a¨(t)P.\frac{dE}{dt}=0, \qquad \frac{dK}{dt}=\frac{\partial K}{\partial t}=-\ddot a(t)P.

For constant origin velocity, both quantities are conserved but differ by −a˙P-\dot aP. For an accelerating origin, KK generally changes even though the laboratory particle remains free. Picture transformations makes the corresponding distinction between a quantum frame’s state generator and its energy observable. The general time-dependent generating-function rules are derived in Sussman and Wisdom, §5.4.3.

Canonical transformations preserve Poisson brackets. Unitary transformations preserve commutators:

[UAU†,UBU†]=U[A,B]U†.[UAU^\dagger,UBU^\dagger] = U[A,B]U^\dagger.

This is why the analogy is natural:

Classical mechanics Quantum mechanics
phase-space functions f(q,p)f(q,p) operators AA
Poisson bracket {f,g}\{f,g\} commutator [A,B]/(iℏ)[A,B]/(i\hbar)
canonical transformation unitary transformation
generator GG acts by { ⋅ ,G}\{\,\cdot\,,G\} generator GG acts by commutator
Hamiltonian flow unitary time evolution

The analogy is not an identity. Not every classical canonical transformation has a globally simple quantum unitary implementation. Ordering, domains, topology, and the double-cover behavior of some linear symplectic transformations can matter. The safe statement is that canonical transformations preserve the classical bracket structure that quantum unitary transformations preserve after quantization.

There are two common readings of a canonical transformation:

  • passive: a change of phase-space coordinates used to describe the same physical point;
  • active: a map that moves points or observables through phase space.

Both viewpoints are useful, but mixing them causes sign errors. The same warning appears in quantum mechanics when comparing A↦UAU†A\mapsto UAU^\dagger with A↦U†AUA\mapsto U^\dagger A U.

When checking formulas, state which variables are old, which variables are new, and whether the transformation acts on coordinates, states, or observables.

  • Assuming every invertible change of variables is canonical.
  • Checking only phase-space volume preservation instead of the full Poisson-bracket conditions.
  • Forgetting that momenta transform as covectors under coordinate changes.
  • Ignoring the extra Hamiltonian term for time-dependent generating functions.
  • Treating canonical transformations and quantum unitary transformations as exactly the same object.
  • Mixing active and passive sign conventions.
  • Believing that determinant 11 is sufficient for a canonical transformation in more than one degree of freedom.
  1. Decide whether Q=2qQ=2q and P=p/2P=p/2 is canonical.
Solution

Compute

{Q,P}={2q,p2}=1.\{Q,P\} = \left\{2q,\frac{p}{2}\right\} = 1.

Also {Q,Q}=0\{Q,Q\}=0 and {P,P}=0\{P,P\}=0. Therefore the transformation is canonical.

  1. Decide whether Q=2qQ=2q and P=2pP=2p is canonical.
Solution

Compute

{Q,P}={2q,2p}=4.\{Q,P\} = \{2q,2p\} = 4.

The canonical condition would require {Q,P}=1\{Q,P\}=1. The transformation is invertible, but it is not canonical.

  1. Use F2(q,P)=qP+aPF_2(q,P)=qP+aP, with constant aa, to find the canonical transformation it generates. Then describe a free particle using F2(q,P,t)=(q−12bt2)PF_2(q,P,t)=(q-\tfrac12bt^2)P, where bb is a constant acceleration. Find KK and Q(t)Q(t) for initial laboratory data q(0)=q0q(0)=q_0, p(0)=p0p(0)=p_0.
Solution

For a type-22 generating function,

p=∂F2∂q=P,Q=∂F2∂P=q+a.p=\frac{\partial F_2}{\partial q}=P, \qquad Q=\frac{\partial F_2}{\partial P}=q+a.

Thus the transformation translates the coordinate by aa and leaves the momentum equal to the new momentum.

For the accelerating origin, Q=q−bt2/2Q=q-bt^2/2 and P=pP=p, so

K=P22m−btP,Q(t)=q0+p0mt−12bt2,P(t)=p0.K=\frac{P^2}{2m}-btP, \qquad Q(t)=q_0+\frac{p_0}{m}t-\frac12bt^2, \qquad P(t)=p_0.

The trajectory follows either from Hamilton’s equations for KK or by transforming the laboratory free trajectory. It has Q¨=−b\ddot Q=-b. Meanwhile dK/dt=−bp0dK/dt=-bp_0 and the laboratory energy p02/(2m)p_0^2/(2m) remains constant.

  1. Let G=pG=p in one degree of freedom. Use δf=ϵ{f,G}\delta f=\epsilon\{f,G\} to find the infinitesimal transformations of qq and pp.
Solution

For the coordinate,

δq=ϵ{q,p}=ϵ.\delta q = \epsilon\{q,p\} = \epsilon.

For the momentum,

δp=ϵ{p,p}=0.\delta p = \epsilon\{p,p\} = 0.

Thus pp generates translations of qq.

  1. Show that a unitary transformation preserves commutators.
Solution

Use U†U=IU^\dagger U=I:

[UAU†,UBU†]=UAU†UBU†−UBU†UAU†.[UAU^\dagger,UBU^\dagger] = UAU^\dagger UBU^\dagger - UBU^\dagger UAU^\dagger.

Therefore

[UAU†,UBU†]=UABU†−UBAU†=U[A,B]U†.[UAU^\dagger,UBU^\dagger] = UABU^\dagger - UBAU^\dagger = U[A,B]U^\dagger.
  • V. I. Arnold, Mathematical Methods of Classical Mechanics, 2nd ed., Springer, 1989.
  • H. Goldstein, C. Poole, and J. Safko, Classical Mechanics, 3rd ed., Addison-Wesley, 2002.
  • G. J. Sussman and J. Wisdom, Structure and Interpretation of Classical Mechanics, 2nd ed., MIT Press, 2015, §5.4.3 — time-dependent generating functions and the transformed Hamiltonian.