I am stuck on an exercise of which I do not understand the solution. The exercise is the following:
Consider the Hamiltonian system $$H(\theta, p, t) = \dfrac{(p-\omega t)^2}{2} - k\cos(\theta)$$ Find a generating function for a canonical transformation that completes the relation $$P = p-\omega t$$ and calculate the new Hamiltonian and find $k$ such that an elliptic equilibrium point does exit.
Solution
A generating function of second type can be written as
$$F(\theta, P) = \theta(P + \omega t) ~~~~~~~~~~~~~~~~~ \textbf{why??}$$
and the hew Hamiltonian becomes
$$H(\phi, P) = \dfrac{P^2}{2} - k\cos\phi + \omega \phi ~~~~~~~~~~~~~ \textbf{why??}$$
The fixed point can be found by solving the equations
$$P = 0 ~~~~~~~~~~~~~ -k\sin\phi = \omega ~~~~~~~~~~~~~~~~~ \textbf{why??}$$
hence the condition for an elliptic point is $-1 < \omega / k < 1$.
I really need some calrifications to understand those points...
Thank you!