Generating function (physics) explained

In physics, and more specifically in Hamiltonian mechanics, a generating function is, loosely, a function whose partial derivatives generate the differential equations that determine a system's dynamics. Common examples are the partition function of statistical mechanics, the Hamiltonian, and the function which acts as a bridge between two sets of canonical variables when performing a canonical transformation.

In canonical transformations

There are four basic generating functions, summarized by the following table:[1]

Generating functionIts derivatives

F=F1(q,Q,t)

p=~~

\partialF1
\partialq

and

P=-

\partialF1
\partialQ

\

\begin{align}F&=F2(q,P,t)\ &=F1+QP\end{align}

p=~~

\partialF2
\partialq

and

Q=~~

\partialF2
\partialP

\

\begin{align}F&=F3(p,Q,t)\ &=F1-qp\end{align}

q=-

\partialF3
\partialp

and

P=-

\partialF3
\partialQ

\

\begin{align}F&=F4(p,P,t)\ &=F1-qp+QP\end{align}

q=-

\partialF4
\partialp

and

Q=~~

\partialF4
\partialP

\

Example

Sometimes a given Hamiltonian can be turned into one that looks like the harmonic oscillator Hamiltonian, which is

H = aP^2 + bQ^2.

For example, with the Hamiltonian

H = \frac + \frac,

where is the generalized momentum and is the generalized coordinate, a good canonical transformation to choose would be

This turns the Hamiltonian into

H = \frac + \frac,

which is in the form of the harmonic oscillator Hamiltonian.

The generating function for this transformation is of the third kind,

F = F_3(p,Q).

To find explicitly, use the equation for its derivative from the table above,

P = - \frac,

and substitute the expression for from equation, expressed in terms of and :

\frac = - \frac

Integrating this with respect to results in an equation for the generating function of the transformation given by equation :

To confirm that this is the correct generating function, verify that it matches :

q = - \frac = \frac

See also

Notes and References

  1. Book: Goldstein. Herbert. Classical Mechanics. Poole. C. P.. Safko. J. L.. Addison-Wesley. 2001. 978-0-201-65702-9. 3rd. 373.