Canonical Transformations

Variable changes preserving Hamiltonian form. Theory, formulas, worked examples and applications.

Conceptual context

Why can Hamiltonian mechanics change coordinates and momenta almost freely, while Lagrangian mechanics can only change coordinates? The answer is that Hamiltonian phase space has an extra structure — the symplectic structure, encoded in Poisson brackets — that transformations must preserve, and that extra freedom (mixing positions and momenta) is exactly what makes the Hamiltonian formalism so powerful: sometimes a clever choice of new variables turns a hard problem into a trivial one.

This leaf covers canonical transformations generated by a type-2 generating function, F2F_2, depending on the old coordinate qiq_i and the new momentum PiP_i. Its partial derivatives give the old momentum pip_i and the new coordinate QiQ_i; the transformed Hamiltonian KK may differ from the original HH if the generator depends explicitly on time, via ∂F2/∂t\partial F_2/\partial t; and the condition CC checks that the proposed transformation actually preserves the symplectic structure.

🟢 Essential level

The essential idea is that a change of variables (q,p)→(Q,P) is not automatically valid in Hamiltonian mechanics, even if it seems reasonable. It is only "canonical" — it only preserves the form of Hamilton's equations in the new variables — if it keeps intact a certain algebraic structure between the variables, the fundamental Poisson bracket.

The most practical way to guarantee that preservation, without having to check it by hand every time, is to generate the whole transformation from a single function, the generating function. Any transformation correctly derived from a generating function is automatically canonical; that is why this leaf focuses on how to use that function, not on verifying the condition from scratch each time.

A celebrated example illustrating the power of this idea: there is a canonical transformation turning the simple harmonic oscillator, with its quadratic Hamiltonian in position and momentum, into a system where the new coordinate is simply the phase angle advancing at a constant rate. The problem, which in the original variables requires solving a differential equation, becomes trivial in the new variables.

🔵 Formal level

Basic formulas

This first formal layer presents the reference relation used to recognize the model and read its variables before entering more abstract derivations. Identify what each term represents, which assumptions make it valid, and how the chosen coordinates connect to the physical motion that the model is intended to describe.

The formal level rests on four relations:

Type-2 generating relation (old momentum)

pi=∂F2∂qip_i=\frac{\partial F_2}{\partial q_i}

New coordinate from the generator

Qi=∂F2∂PiQ_i=\frac{\partial F_2}{\partial P_i}

Transformed Hamiltonian

K=H+∂F2∂tK=H+\frac{\partial F_2}{\partial t}

Real student questions

"Why isn't it enough to check that the transformation is invertible, as with any change of variables?" Because invertibility is a much weaker condition than canonicity: there are infinitely many invertible transformations of (q,p) that do not preserve the symplectic structure and are therefore not canonical.

"How do I choose which type of generating function to use (F₁ to F₄)?" It depends on which pair of variables one wants to fix as independent: type 2 (used in this leaf) fixes the old coordinate and the new momentum; the other three types fix different combinations.

Final synthesis

By the end of this leaf, the student should be able to derive a complete transformation from a type-2 generating function, verify it is canonical via the Poisson brackets, and build the transformed Hamiltonian including the temporal correction when appropriate.

The relevant final check is one of consistency: verifying that Hamilton's equations written with KK in the new variables (Q,P) produce exactly the same physics (the same trajectories) as the original equations with HH in (q,p).

Formal development

This section is part of the complete theory. See the subscription options to access it.

🔴 Structural level

This section is part of the complete theory. See the subscription options to access it.

Deep physical interpretation

This section is part of the complete theory. See the subscription options to access it.

Order of magnitude

This section is part of the complete theory. See the subscription options to access it.

Personalized resolution method

This section is part of the complete theory. See the subscription options to access it.

Special cases and extended example

This section is part of the complete theory. See the subscription options to access it.

Cross-cutting connections and study paths

This section is part of the complete theory. See the subscription options to access it.