A point mass m hangs at one end of a vertically hung hooke-like spring of force constant k. The other end of the spring is oscillated up and down according to $z=a\cos(w_1t)$. By treating a as a small quantity, obtain a first-order solution to the motion of m in time. Discuss what happens when $w_1$ is equal to $w_0$.
Attempt at a solution:
I understood the oscillating end of the spring as an oscillation of the equilibrium position of the spring, so I used the following hamiltonian:
$H=1/2m[p^2 + m^2w^2q^2-2m^2w^2qa\cos(w_1t)]$
So obviously, the unperturbed hamiltionian is that of a normal spring. Therefore, the canonical transformation that renders the unperturbed hamiltonian null is:
Where $\alpha$ and $\beta$ are the new canonical variables (the first represents the energy of the system and the second represents the phase angle).
Using these transformations gives the form of the perturbed hamiltonian in the new coordinates, and a perturbation of order 1 gives (taking initially $\alpha_0=p_0^2/2m$ and $\beta_0=0$):
Which can be integrated directly to give the solutions as a function of time.
When $w_1=w$, one can average the first equation, to get the secular change of the energy:
Which shows that the energy increases by that amount every period.
I did not go any further into the details of the problem, but I am not sure about my solution because if $w_1=nw$, where n is an integer different from 1, then the secular change in energy would be 0, which does not seem reasonable to me. This is my first attempt at a perturbation theory problem. Any comments and discussions are welcome and helpful.