The problem I'm supposed to solve is finding , such that is a canonical transformation. In this case and the new hamiltonian is . This means and Since and are time independent and . Now I use a generating function of canonical transformations so: Then \begin{equation} F_{4}=-\int\sqrt{2P-p^{2}}dp\quad\Rightarrow\quad Q=-\int \frac{\partial\sqrt{2P-p^{2}}}{\partial P}dp=-arcsin\left(\frac{p}{\sqrt{2P}}\right)=-arcsin\left(\frac{p}{\sqrt{p^{2}+q^{2}}}\right) \end{equation} . Therefore this transformation is canonical. However I also tried to find with the generating function , where \begin{equation} \frac{\partial F_{1}}{\partial Q}=-P\quad\quad\mbox{and}\quad\quad\frac{\partial F_{1}}{\partial q}=p \end{equation} Then \begin{equation} F_{1}=\int\frac{-p^{2}-q^{2}}{2}dQ\quad\Rightarrow\quad p=\int \frac{\partial\left(\frac{-p^{2}-q^{2}}{2}\right)}{\partial q}dQ=\int -qdQ=-qQ\quad\Rightarrow\quad Q=-\frac{p}{q} \end{equation} This is very different with respect to the first found, and which can only be equal to 1 if . But if we assume this is a canonical transformation then and , and \begin{equation} \dot{Q}=\frac{\partial Q}{\partial q}\dot{q}+\frac{\partial Q}{\partial p}\dot{p}=\frac{p^{2}}{q^{2}}+1=1\Rightarrow p=0 \end{equation} I think the second result can't be possible, if then ; so my question is why I could not obtain with , did I miss something?
Contradiction in canonical transformation
7962991

