We can invert the first equation to extract p~ as a function of p:
p~=2cos2q~p2
We then substitute this in the equation for q to get
q=ptanq~
These two are an equivalent description of the same transformation; we just rearranged the terms. The difference is, of course, that we are using different quantities. We started with p(p~,q~) and q(p~,q~), and now we have p~(p,q~) and q(p,q~). We exchanged p for p~ and we can now use (p,q~) as independent coordinates in phase space (though they are no longer canonical coordinates as this is not a canonical transformation).
In general, we have four coordinates q,q~,p,p~ and four ways we can mix them:
(q,q~),(p~,q),(p,q~),(p,p~)
Each of these encodes a way of describing a point in phase space when dealing with a transformation (p,q)↦(p~,q~).
Take for instance (p~,q) as independent coordinates. These, in general, will be given by
{pi=ρi(p~,q,t)q~j=μ~j(p~,q,t)
where ρi and μ~j are some appropriate functions. We can invert these to get (p,q) back:
Note that we are specifically mixing the derivatives here: pi needs a derivative in qi and q~j needs a derivative in p~j. For the inversion of q~ into q to occur, we must have
det(∂p~i∂qj∂2F2)=0
Basically, the Hessian of F2 must have nonzero determinant. We shall now make the following claim:
> the transformation is canonical and the conjugate Hamiltonian is
> $$K=\tilde{H}+\frac{ \partial F_{2} }{ \partial t }
F2 is not the only kind of function that can do this. There is actually one kind of function for each of the four pairs of mixed coordinates we saw above. These are typically called F1,F2,F3 and F4 and collectively they are known as the generating functions of canonical transformations (of the first, second, third and fourth kind). Each of these types comes equipped with a proposition similar to the one above for F2, with a different mix of coordinates:
F2 is a particularly relevant case as many interesting canonical transformations are of the second kind. For example, the identity transformation pi=p~i, q~i=qi is a second-kind transformation with
F2(p~,q,t)=i∑p~iqi
Extended point transformations are also second-kind: