Type-3 and Type-4 Generating Functions
Two members of the generating-function family remain, and they answer a question the first two quietly dodged: what if the natural handle on the old state is its momentum, not its position? Type 1 and type 2 both steer with the old coordinate . Types 3 and 4 steer with the old momentum — paired with the new coordinate () or the new momentum (). Nothing deep changes: each is one more Legendre transform applied to the master identity, the same and bookkeeping that built from . But the sign pattern shifts in a way worth mastering once and never again by memorization: whenever the old momentum becomes an independent argument, the old coordinate is recovered with a minus sign, . Why keep two more types on the shelf? Coverage. Every type has a blind spot where its argument pair degenerates: type 1 cannot make the identity, type 2 cannot make the full coordinate–momentum exchange. The momentum-driven types own exactly the maps the others fumble — the sign flip falls out of in one line, and the phase-space quarter-turn out of . Together the four form an atlas: every canonical transformation is representable by at least one chart, possibly different types for different degrees of freedom. The taxonomy and master table live in Generating Functions and the Four Types; this page owns the momentum-side machinery and its own worked transformations — including the harmonic oscillator solved from the momentum side, landing on the same action–angle chart as the type-1 route.
- and complete the family: the old momentum becomes an independent argument in place of the old coordinate.
- Type-3 rules: , ; type-4 rules: , . The universal Hamiltonian rule holds for all four types.
- They are Legendre transforms of the first two: and ; the recurring minus on is the standard Legendre sign.
- generates the sign flip , (a 180° phase-space rotation); generates the exchange , (a 90° rotation) — the two staple maps types 1 and 2 handle awkwardly or not at all.
- Existence conditions: , ; when one type degenerates, another covers the map.
- Key idea: types 3 and 4 are Legendre transforms of types 1 and 2 that replace the old coordinate by the old momentum as an independent variable — and the minus signs in and are the direct signature of that transform.
Type-3 and Type-4 are Legendre transforms of Type-1 and Type-2 that replace the old coordinate by the old momentum as an independent variable. The minus signs in and are the direct signature of that Legendre transform.
Where this lives today
The canonical quarter-turn is implemented, or closely approximated, in many physical systems. In quantum optics, a light mode's quadratures and are a conjugate pair — literally the and of an oscillator — and letting the mode evolve a quarter cycle, or shifting the local oscillator's phase by in a homodyne detector, enacts precisely the exchange: what was position noise is read out as momentum noise. Squeezed-light interferometry — since 2019 a permanent upgrade in LIGO and Virgo — lives on choosing which rotated quadrature carries the squeezing, i.e. on dialing a one-parameter family of type-4-like rotations to put quantum noise where the measurement is not looking. The same map runs in classical hardware: a converging lens performs an optical Fourier transform between its focal planes, exchanging transverse position for transverse spatial frequency — a literal quarter-turn in ray phase space, generalized in modern beam optics to fractional Fourier transforms of arbitrary angle. When an optical engineer cascades lenses to reshape a beam's phase-space footprint, she is composing momentum-driven canonical transformations, Goldstein's Table 9.1 running at the speed of light.
The physical picture
For each conjugate pair — old and new — a generating function must pick one steering variable. Two pairs, two choices each: a four-entry menu. That is the entire taxonomy, and it is worth seeing as a grid:
The picture to keep for the two flagship maps is rotation of the phase plane. The exchange is a quarter-turn: the position axis rotates onto the momentum axis. Apply it twice and you get the sign flip — a half-turn. Apply it four times and you are home: the exchange is a fourth root of the identity, exactly like multiplying by in the complex plane. This is not a metaphor. In the plane with suitable units, implements the rotation matrix by , and the harmonic oscillator's own time evolution — which circulates phase points around ellipses — interpolates the quarter-turn continuously.
Why does driving with the old momentum bring a minus sign? Because the Legendre swap trades the term for : the coefficient of the new independent differential is minus the old conjugate. There is nothing to memorize once you can write that one identity — every sign in the four-type table regenerates from it in seconds.
The momentum-side rules, built from the master identity
All four types descend from one statement — the old and new phase-space one-forms differ by an exact differential:
where: — old pair; — new pair; — old and new Hamiltonians; — the generating function, whose natural arguments are decided by which differentials survive on the left. As written, the surviving differentials are and — the type-1 configuration. Legendre transforms rearrange them. To make the old momentum independent, swap the first term:
where: — the Legendre term exchanging for , the mirror image of exchanging for (see Legendre Transformation). Carrying the differentials through (Derivation A) yields the type-3 rules:
where: each derivative holds the other member of fixed. Read the signs structurally: the old slot is now a momentum, so its conjugate returns negated; the new slot is still a coordinate, so — exactly as in type 1 — its conjugate returns negated too. Both minus signs trace to the orientation of (1). One more Legendre transform, on the new pair this time, produces the all-momentum type:
where: the two routes — old-side swap of , or new-side swap of — must agree, and Derivation C checks that they do. The working rules:
where: old-momentum slot negates its conjugate (as in type 3); new-momentum slot returns its conjugate positively (as in type 2). The Hamiltonian rule never changes: Legendre transforms shuffle phase-space slots and leave the time slot untouched. Existence is a non-degeneracy condition, one per type:
where: the mixed Hessians must be invertible for the implicit relations to be solvable for the map. When your target transformation kills one Hessian, it generically leaves another alive — that is the atlas at work.
We are deriving the type-3 relations without any detour through : starting from the master identity (1), we perform the Legendre swap on the old pair and read off coefficients. This is the cleanest template for generating any of the four types — learn this once and the whole table becomes reproducible on demand. The step to watch is the absorption of the exact piece into a redefinition of the generating function; that redefinition is what "changing type" means.
Step 1. Start from the master identity, with the type-1-configured generator:
Step 2. Swap the old-pair term using the product rule, :
Why this is the whole trick: the exact differential can be moved across the equation and bundled into the generator, because "generator plus any function of phase space" is still a legitimate boundary term. The bundle is, by inspection of the left side, naturally a function of — its surviving differentials.
Step 3. Define and match coefficients of the independent differentials , , :
Step 4. Sanity-check on the linear generator : the rules give and — the sign flip, a half-turn of phase space. Bracket check in old variables: ✓. Note: the same two-step template with instead of regenerates the type-2 rules, confirming that the same Legendre-transform procedure generates the rules for every generating-function type.
Go deeper · Derivation B · 1 minThe exchange map from F4 and its canonicity
We are constructing the canonical transformation generated by the simplest all-momentum generator, , and verifying canonicity by the fundamental Poisson bracket. This map — the phase-space quarter-turn — is the signature transformation of the momentum-driven types: type 2 cannot represent it at all (its pair degenerates on it), while for it is the baseline, playing the role plays for the identity. Watch how few moves it takes.
Step 1. Apply the type-4 rules to :
Step 2. Solve for the new variables: and . Coordinate becomes momentum, momentum becomes minus coordinate — a rotation of the phase plane by . Why the minus sits where it does: a rotation must preserve orientation. The naive swap , is a reflection — it reverses the sense of circulation in phase space, and would flip the sign of every Poisson bracket. The minus is not decorative; it is the difference between a canonical map and an anticanonical one.
Step 3. Verify with the fundamental bracket, computed in the old chart:
Step 4. Iterate the map: applying it twice sends — the type-3 sign flip; four applications return the identity. Successive applications generate the cyclic group : four quarter-turns return the identity. The bracket value confirms canonicity, and the composition check — two applications of the quarter-turn send — agrees with the sign-flip map.
Go deeper · Derivation C · 1 minTwo routes to F4 must agree — an internal consistency check
We are confirming that the two definitions in equation (4) — (swap the old pair of type 2) and (swap the new pair of type 3) — generate identical transformation rules. This is more than pedantry: it verifies that the four types form a consistent commuting square of Legendre transforms, so the atlas has no seams. The strategy is to compute along both routes and compare coefficients.
Step 1. Route one. From the type-2 differential , subtract :
The terms cancel; surviving differentials — correct type-4 arguments.
Step 2. Route two. From the type-3 differential , add :
The terms cancel. The right-hand sides of Steps 1 and 2 are identical.
Step 3. Match coefficients in either expression:
Why the agreement was guaranteed: Legendre transforms on independent pairs commute — the old-pair swap touches only terms, the new-pair swap only terms. The four types are the four corners of a commuting square, and is reachable along either edge. Both routes reproduce the same type-4 rules, and traversing the square in the reverse direction — — returns the type-1 rules, confirming that the four types form a closed commuting square of Legendre transforms.
Limiting cases
| Case | Result | Meaning |
|---|---|---|
| Sign flip | half-turn of phase space; type 1 cannot generate it | |
| Exchange | quarter-turn; the baseline map of the momentum-driven types | |
| Momentum-side point transformation | any invertible relabeling written from the inverse side — useful when is simple but is ugly | |
| Time-independent generator | universal across all four types | |
| Identity | no exists (, dependent there) | the exchange map's blind spot mirror-images type 1's; use |
| Degenerate Hessian (6) | type unavailable | switch types, or mix types across degrees of freedom |
Worked examples
1 · The quarter-turn on a numbered oscillator (confidence builder)
Apply to the oscillator with , , at the phase point , . Find the new variables and , and verify both canonical equations numerically.
Step 1. Run the type-4 rules: gives ; . The quarter-turn in numbers: .
Step 2. Build the new Hamiltonian by substituting , (no explicit time, so re-expressed):
Value check: , equal to ✓. Note the roles have traded: the kinetic-looking term now carries , the spring-looking term carries — the oscillator is self-similar under the quarter-turn, which is precisely its phase-space rotational symmetry.
Step 3. First canonical equation: . Directly: ✓.
Step 4. Second canonical equation: . Directly: ✓. The rotated chart runs on canonical equations with the substituted , no extra work — and the numbers confirm each sign in the type-4 rules.
2 · The oscillator solved from the momentum side (exam level)
Solve the oscillator of the type-1 article — , , , at — using the type-3 generator . Find the action, the initial angle, and at ; the answer must match the type-1 route.
Step 1. Run the type-3 rules. and, using , — positive, as an action must be.
Step 2. Invert: from the -relation, then from Step 1. Substitute into :
Same rectified Hamiltonian as the type-1 route — the chart differs (this angle is offset by a quarter period), the physics does not.
Step 3. Numbers. Energy: , so the action is — identical to the type-1 computation, as it must be (the action is chart-independent). Amplitudes: , .
Step 4. Initial angle from this chart's map: and , so sits in the second quadrant: . (Compare in the type-1 chart: exactly — the two angle charts differ by a quarter turn, the signature of the Legendre swap.)
Step 5. March and map back: , and
matching the type-1 route's to the digit ✓. Cross-check against direct integration, ✓. Two different generating functions, two different intermediate charts, one physical answer.
Origins · 1 minPaul Dirac and how this was discovered
No one took the equal standing of and — the symmetry that types 3 and 4 formalize — more seriously than Dirac. His 1926 thesis and the 1927 "transformation theory" rebuilt the new quantum mechanics as a theory of transformations between representations: the position representation and the momentum representation are two charts on one state space, connected by a unitary map whose classical shadow is exactly the exchange-type canonical transformation of this page (the kernel is a generating function in disguise — Dirac says so explicitly in his 1933 paper on the Lagrangian in quantum mechanics, the seed Feynman grew into the path integral). Famously taciturn — his Cambridge colleagues coined the "dirac", one word per hour — he assembled The Principles of Quantum Mechanics (1930) around the canonical formalism: Poisson brackets promoted to commutators, canonical transformations to unitaries, the classical types surviving as the freedom to quantize in any chart. Engineering-trained at Bristol before Cambridge, he kept an engineer's economy: when asked how he found the relativistic electron equation, he answered that he found it beautiful. The momentum-side generating functions are a small room in the palace he built, but the palace's floor plan — physics as geometry of transformations — is his.
Going further
References. Goldstein, Poole & Safko, Classical Mechanics (3rd ed.), §9.1 Table 9.1 · Landau & Lifshitz, Mechanics (Vol. 1, 3rd ed.), §45 · Morin, Introduction to Classical Mechanics, Ch. 15 (canonical transformations) · Taylor, Classical Mechanics, Ch. 13 The Legendre-transform definitions and reproduce the partial-derivative relations listed above; the Poisson bracket for the example confirms canonicity; and the universal rule holds across all four types. The only numerical constant entering the general theory is the bracket value . The numeric examples — quarter-turn at with , ; momentum-side oscillator with , — are worked out in the sections above, and the second recovers , matching the type-1 route.
Builds on: Definition of Canonical Transformations · Generating Functions and the Four Types · Type-1 Generating Function F1(q,Q,t) · Type-2 Generating Function F2(q,P,t) Leads to: Symplectic Condition · Poisson Brackets as a Test for Canonicity · Symplectic Group and Phase-Space Geometry
Where does the minus sign in q = −∂F₃/∂p really come from? I keep losing it.
From one line of calculus: . When you absorb into the generator to make independent, the surviving term is — coefficient minus . Every sign in the four-type table is the coefficient of a surviving differential after such swaps, so the reliable procedure is: write the one-form identity, do the swaps your argument choice demands, read the coefficients. It reproduces the whole of Goldstein's Table 9.1 in under a minute and is immune to memory failure.
Honestly, will I ever use F3 or F4, or are they textbook completeness?
Less often than , genuinely — but "rarely" is not "never," and the situations are characteristic. You reach for them when the momentum is the natural handle: writing a point transformation from its inverse side ( when is simple but is not), generating phase-space rotations and exchanges (), and in perturbation-theory constructions where a chart must keep some momenta as labels. They also carry conceptual weight out of proportion to their usage: the exchange map they own is the classical shadow of the position–momentum Fourier duality in quantum mechanics.
Why is there no generating function with arguments (q, p) — both old variables?
Because such a function could not encode a map. A generator works by mixing one label from each side, so that its cross-derivatives tie old to new; the pair already coordinatizes the old phase space completely, and any would carry zero information about where points go. The four legitimate types are exactly the four old/new mixed pairs. (Same reason is excluded.) The deeper statement: a canonical transformation is a Lagrangian submanifold of the doubled phase space, and the types are the four coordinate charts on it that project nicely.
Can I use different types for different degrees of freedom in one transformation?
Yes, and for many-body problems you frequently must. The generator is a sum in which each mixes its own pair in whatever type is non-degenerate there — say type 2 for the coordinates you keep and type 4 for a pair you rotate. The differentials add, so the rules apply slot by slot. Goldstein makes this point with a two-freedom example (: identity on the first pair, exchange-like on the second). The atlas metaphor is literal: charts are chosen locally, per pair.
Is the F4 exchange map related to the Fourier transform in quantum mechanics?
Directly. Quantize the exchange : the unitary that implements it maps the position representation to the momentum representation — it is the Fourier transform, up to phase conventions. Dirac's transformation theory makes the correspondence exact: unitary changes of representation descend from canonical transformations, and mixed-variable kernels like play the role of generating functions. The oscillator makes it vivid: its quarter-period evolution operator is the fractional Fourier transform, interpolating what does in one jump.
The sign flip Q = −q, P = −p is canonical, but is plain q → −q with p untouched also canonical?
No — and checking is instructive. For , : . That map is a reflection of the phase plane (orientation-reversing), so it is anticanonical: it preserves areas in magnitude but flips their sign, and it maps Hamilton's equations onto themselves only with . Parity in mechanics acts on coordinates and momenta together, — the half-turn generates — precisely so that it stays canonical.
Why does F4 fail on the identity when F2 fails on the exchange? Is there a pattern?
A clean duality. A type exists when its argument pair can independently label a phase point through the map. For the identity, : the pair is one variable twice — 's Hessian degenerates. For the exchange, makes degenerate — fails. In general, applying the exchange map to any transformation swaps which types can represent it (, up to signs), which is why the family needs exactly its four members: they are one construction seen through the quarter-turn's eyes.
Do types 3 and 4 change the rule for time-dependent Hamiltonians?
No. holds verbatim for all four types, with the partial derivative taken at fixed values of the type's own two arguments. The reason is structural: the Legendre transforms that convert between types add terms like or that carry no explicit time dependence, so the coefficient in the one-form identity is never touched. What does change between types is only which variables you hold fixed while computing — a bookkeeping point that matters when your generator's arguments are themselves time-dependent expressions.