Consider the Hamiltonian
H = p1^2 / 2m + 1/2m (p - kq1)^2
Determine the constants A and B so that the transformation
Q1 = Ap1,
P1 = p2 - kq1,
Q2 = B(p1 - kq2),
P2 = p2,
is canonical.
Use this canonical transformation to solve the equations of motion of the transformed Hamiltonian, find q1(t), q2(t), p1(t) and p2(t).