notesonly.in

One notebook for every subject — open it anywhere.

Log in

Canonical Transformations: Basics, Idea and Simple Uses

In Hamiltonian mechanics the state of a system is described by coordinates q and momenta p together, and the equations of motion have a beautifully symmetric form. A canonical transformation is a change of variables from (q, p) to a new set (Q, P) that preserves this symmetric form of Hamilton's equations. It is like rotating your map: the landscape is the same, but the new coordinates may make the journey far easier — a problem that looked impossible in (q, p) can become trivial in (Q, P).

Why does this matter? Many hard problems become easy in the right variables. The transformation to action-angle variables turns every periodic system into "angle increases steadily, action stays constant." Time evolution itself is a canonical transformation, and the quantum-mechanical idea of unitary transformations is the direct descendant of this classical concept. Canonical transformations are the power tools of advanced mechanics.

Key Concepts

  • Canonical coordinates: a set (Q, P) is canonical if Hamilton's equations keep their standard form Q̇ = ∂K/∂P, Ṗ = −∂K/∂Q for some new Hamiltonian K(Q, P, t).
  • Generating functions: special functions that produce a canonical transformation through differentiation. The four types F₁(q, Q, t), F₂(q, P, t), F₃(p, Q, t), F₄(p, P, t) mix old and new variables.
  • Poisson bracket test: a transformation is canonical exactly when the fundamental brackets are preserved: {Qᵢ, Qⱼ} = 0, {Pᵢ, Pⱼ} = 0, {Qᵢ, Pⱼ} = δᵢⱼ.
  • New Hamiltonian: K = H + ∂F/∂t. If the generating function has no explicit time dependence, K is just H rewritten in the new variables.
  • Identity transformation: generated by F₂ = Σ qᵢPᵢ, giving Qᵢ = qᵢ and Pᵢ = pᵢ — the transformation that changes nothing.

Formulas

  • Type-2 generator F₂(q, P, t): Qᵢ = ∂F₂/∂Pᵢ and pᵢ = ∂F₂/∂qᵢ. (Other types give analogous rules, e.g. for F₁(q, Q, t): pᵢ = ∂F₁/∂qᵢ, Pᵢ = −∂F₁/∂Qᵢ.)
  • Transformed Hamiltonian: K(Q, P, t) = H(q, p, t) + ∂F/∂t, with old variables eliminated using the transformation equations.
  • Canonicity condition: {Qᵢ, Pⱼ}_{q,p} = δᵢⱼ, where the bracket is computed with respect to the original variables.
  • Harmonic oscillator action-angle map: q = √(2P/mω) sin Q, p = √(2mωP) cos Q, generated by F₁ = (mωq²/2) cot Q, giving K = ωP.

Worked Example

Transform the harmonic oscillator H = p²/2m + ½mω²q² using F₁(q, Q) = (mωq²/2) cot Q. Differentiating: p = ∂F₁/∂q = mωq cot Q and P = −∂F₁/∂Q = (mωq²/2) csc²Q. Inverting gives q = √(2P/mω) sin Q and p = √(2mωP) cos Q. Substituting into H: H = (2mωP cos²Q)/2m + ½mω²(2P/mω) sin²Q = ωP(cos²Q + sin²Q) = ωP, so K = ωP. Hamilton's equations are now Q̇ = ∂K/∂P = ω and Ṗ = −∂K/∂Q = 0. Try numbers: m = 1 kg, ω = 2 rad/s, with initial q = 0.5 m, p = 0. The energy is E = ½ × 1 × 4 × 0.25 = 0.5 J, so P = E/ω = 0.25 J·s. From p = √(2mωP) cos Q = 0 we get Q = π/2, and q = √(2 × 0.25/2) sin(π/2) = 0.5 m, matching the start. The full motion is simply Q(t) = π/2 + 2t with P fixed, giving q(t) = 0.5 cos(2t) — the familiar oscillation, obtained with no differential equation to solve.

Common Misconceptions

  1. "Any change of variables is canonical." No — most are not. A transformation must preserve the fundamental Poisson brackets; a random mixing of q and p will destroy the Hamiltonian structure.
  2. "Canonical transformations preserve the energy." The new Hamiltonian K can differ from H by ∂F/∂t, so the numerical value of the energy function can change even though the physics is identical.
  3. "Q must be a position and P a momentum." Not at all. In action-angle variables, Q is an angle and P is an action (energy divided by frequency) — the names are just labels for canonically conjugate pairs.

Real-World Applications

  • Action-angle variables: the standard language for periodic motion, from planetary orbits to molecular vibrations.
  • Perturbation theory: small disturbances (like Jupiter's pull on an asteroid) are handled by canonical transformations that keep the unperturbed motion simple.
  • Hamilton-Jacobi theory: seeks the ultimate canonical transformation — one that makes K = 0 so the new variables are all constants.
  • Quantum mechanics: unitary transformations of operators and states are the quantum version of canonical transformations.

A canonical transformation is a change of viewpoint that keeps Hamilton's equations intact. Pick the viewpoint wisely — through a generating function — and hard problems like the oscillator collapse into steady, uniform motion.