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.

Canonical transformations matter because they are the classical version of preserving the algebra of observables. Quantum mechanics repeatedly uses the corresponding idea:

  • position and momentum can be represented in different but equivalent ways;
  • unitary transformations preserve commutators and transition probabilities;
  • symmetry transformations act on observables without changing the physical algebra;
  • canonical quantization starts from Poisson brackets and asks for operators with matching commutators;
  • semiclassical methods often choose better phase-space coordinates before approximating an integral.

The key phrase is “preserve structure.” A canonical transformation is not merely an invertible change of coordinates. It preserves the pairing between coordinates and momenta, the Poisson bracket, and the form of Hamiltonian flow.

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:

∑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; here the practical message is that canonical transformations preserve phase-space area in each conjugate pair, and in many degrees of freedom preserve the full symplectic structure.

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.

Equivalently, with a transpose convention that uses column gradients, one often sees

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

The difference is a bookkeeping convention about whether MM acts on coordinates or on gradients. The invariant content is the same: the transformation must preserve the antisymmetric symplectic matrix.

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.

The quantum parallel is

δA∼1iℏ[A,G],\delta A \sim \frac{1}{i\hbar}[A,G],

with sign depending on active or passive convention. 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}.

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.

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 mechanicsQuantum 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 transformationunitary transformation
generator GG acts by { ⋅ ,G}\{\,\cdot\,,G\}generator GG acts by commutator
Hamiltonian flowunitary 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.
  • H. Goldstein, C. Poole, and J. Safko, Classical Mechanics, 3rd ed., Addison-Wesley, 2002.
  • V. I. Arnold, Mathematical Methods of Classical Mechanics, 2nd ed., Springer, 1989.
  • L. D. Landau and E. M. Lifshitz, Mechanics, 3rd ed., Butterworth-Heinemann, 1976.
  • R. Abraham and J. E. Marsden, Foundations of Mechanics, 2nd ed., AMS Chelsea, 2008.
  • P. A. M. Dirac, The Principles of Quantum Mechanics, 4th ed., Oxford University Press, 1958.
  • M. de Gosson, Symplectic Geometry and Quantum Mechanics, Birkhäuser, 2006.
  • B. C. Hall, Quantum Theory for Mathematicians, Springer, 2013.
  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 to find the canonical transformation it generates.
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.

  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.