A massless spring of length b and spring constant k connects two particles of masses m1 and m2. The system rests on a smooth table and may oscillate and rotate.
(a) Determine Lagrange's equations of motion.
(b) What are the generalized momenta associated with any cyclic coordinates?
(c) Determine Hamilton's equations of motion.