PhysicsScore

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

pi=∂F2(q,P,t)∂qi,Qi=∂F2(q,P,t)∂Pip_i=\frac{\partial F_2(q,P,t)}{\partial q_i},\qquad Q_i=\frac{\partial F_2(q,P,t)}{\partial P_i}

The type-two function F2F_2 depends on old coordinates qiq_i and new momenta PiP_i.

Type-one, type-three and type-four derivative rules

F1(q,Q,t):pi=∂qiF1,Pi=−∂QiF1,F3(p,Q,t):qi=−∂piF3,Pi=−∂QiF3,F4(p,P,t):qi=−∂piF4,Qi=∂PiF4.\begin{aligned} F_1(q,Q,t):\quad &p_i=\partial_{q_i}F_1,\quad P_i=-\partial_{Q_i}F_1,\\ F_3(p,Q,t):\quad &q_i=-\partial_{p_i}F_3,\quad P_i=-\partial_{Q_i}F_3,\\ F_4(p,P,t):\quad &q_i=-\partial_{p_i}F_4,\quad Q_i=\partial_{P_i}F_4. \end{aligned}

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

K(Q,P,t)=H(q,p,t)+∂F2∂tK(Q,P,t)=H(q,p,t)+\frac{\partial F_2}{\partial t}

After differentiation, eliminate old variables in favor of (Q,P,t)(Q,P,t) to obtain the new Hamiltonian KK. 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 F2(q,P)=aqPF_2(q,P)=a qP with constant a≠0a\ne0. Then p=aPp=aP and Q=aqQ=aq, giving P=p/aP=p/a. 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 topic

42 questions in Assistant Professor · Physics · Physics. Sign in and practice access may be required.

Other exam sections