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.
There are four basic generating functions, summarized by the following table:[1]
Generating function | Its derivatives | ||||||||
---|---|---|---|---|---|---|---|---|---|
F=F1(q,Q,t) | p=~~
P=-
\ | ||||||||
F=F2(q,P,t)=F1+QP | p=~~
Q=~~
\ | ||||||||
F=F3(p,Q,t)=F1-qp | q=-
P=-
\ | ||||||||
F=F4(p,P,t)=F1-qp+QP | q=-
Q=~~
\ |
Sometimes a given Hamiltonian can be turned into one that looks like the harmonic oscillator Hamiltonian, which is
H=aP2+bQ2.
For example, with the Hamiltonian
H=
1 | |
2q2 |
+
p2q4 | |
2 |
,
where p is the generalized momentum and q is the generalized coordinate, a good canonical transformation to choose would be
This turns the Hamiltonian into
H=
Q2 | |
2 |
+
P2 | |
2 |
,
which is in the form of the harmonic oscillator Hamiltonian.
The generating function F for this transformation is of the third kind,
F=F3(p,Q).
To find F explicitly, use the equation for its derivative from the table above,
P=-
\partialF3 | |
\partialQ |
,
and substitute the expression for P from equation, expressed in terms of p and Q:
p | |
Q2 |
=-
\partialF3 | |
\partialQ |
Integrating this with respect to Q results in an equation for the generating function of the transformation given by equation :
F3(p,Q)=
|
To confirm that this is the correct generating function, verify that it matches :
q=-
\partialF3 | |
\partialp |
=
-1 | |
Q |