Generating functions
- UP GDC Mains
4 minute read · Updated 2026-11-15
Picking up from
In Poisson brackets, canonical transformations, we saw that canonical transformations preserve the fundamental Poisson brackets. Can such transformations be built without separately guessing new coordinates and momenta?
In one line
Generating functions construct canonical transformations through derivatives while accounting for changes in the Hamiltonian.
The idea, explained
A canonical transformation can be described by requiring the old and new action one-forms to differ by an exact differential. A one-form here is a linear combination of coordinate differentials. Writing that differential as the derivative of a scalar generating function produces the transformation equations by comparing coefficients.
Different generating-function types use different mixtures of old coordinates, new coordinates and momenta as independent arguments. A type-two function uses old coordinates and new momenta. Its derivatives give old momenta and new coordinates, while its explicit time derivative corrects the Hamiltonian. This is a construction rule rather than a guess: once a suitable nondegenerate generating function is specified, the local transformation follows. Not every chosen function defines an invertible map in the desired region, so the derivative relations must be solved and their independence checked before the transformation is used.
Core ideas
- State the generating-function type before taking derivatives. The signs and independent variables differ between types, so formulas cannot be combined indiscriminately.
- For type two, old momenta come from old-coordinate derivatives and new coordinates come from new-momentum derivatives. The new momenta remain independent inputs.
- A time-independent generator adds no explicit time-derivative term to the transformed Hamiltonian, but the old Hamiltonian must still be rewritten in the new variables.
- The identity transformation has a simple bilinear type-two generator. It is a useful reference for checking signs and constructing small canonical changes.
- An added function of time can shift the Hamiltonian by a time derivative without changing coordinate evolution. Such a shift need not represent a new physical force.
Key formulas
Type-two generating-function relations
The type-two function depends on old coordinates and new momenta .
Type-one, type-three and type-four derivative rules
Each row states its independent variables. These alternatives exchange coordinate and momentum arguments through Legendre transformations; use only the row matching the supplied function.
Transformed Hamiltonian
After differentiation, eliminate old variables in favor of to obtain the new Hamiltonian . The same explicit-time correction applies to the other stated generator types, using their own independent arguments.
List the independent variables next to the generator so that each partial derivative holds the correct quantities fixed. Obtain both transformation relations before solving either direction. If the transformation depends on time, evaluate its explicit time derivative before substituting variables. Finally verify a fundamental bracket or the action-differential relation as a check. A correct-looking coordinate transformation with the wrong momentum scaling or a missing Hamiltonian correction will not generate the intended motion.
Quick worked example
Choose with constant . Then and , giving . This reproduces the reciprocal coordinate–momentum scaling that preserves the Poisson bracket.
Where this leads
Continue to Hamilton-Jacobi theory, because Hamilton–Jacobi theory chooses a generating function that simplifies the motion itself.
Related: Poisson brackets, canonical transformations — canonical transformations preserve the fundamental Poisson brackets.
Practice this topic
Practice this topic42 questions in Assistant Professor · Physics · Physics. Sign in and practice access may be required.