In an infinitesimal canonical transformation, we have:
where the \(\delta q_i\) and \(\delta p_i\) are small changes in the variables that are consistent with a canonical transformation (rather than an arbitrary virtual displacement). This transformation can be related to the identity transformation by:
where \(G\) is some arbitrary function and \(\epsilon\) is small. The transformation for a canonical transformation of the second type are:
We can thus identify:
The first term can be written as:
to first order in \(\epsilon\). That is, for a small value of \(\epsilon\), the derivative with respect to \(P_i\) is almost the same as with respect to \(p_i\). From the properties of Poisson Brackets, this can also be written as:
if \(G\) is taken to be the Hamiltonian, then we have:
and the displacement, \(\epsilon\frac{dq(p)}{dt}\) are in the direction of time. That is, the Hamiltonian is the generator of the transformation that takes the variable \(q_i\) and \(p_i\) to variables \(Q_i\) and \(P_i\) an infinitesimal time later.