'Two-dimensional' lagrangian problem. [It is a problem for which we will use two generalized coordinates, but it is not genuinely a 2-D problem.] A frictionless slab of mass m is attached to a wall via a spring. Rolling w/o slipping on the frictionless slab is a circular cylinder of mass M and radius R. Determine the frequency of oscillation of this combination.

Use two generalized coordinates

Notice that pz is a constant of the motion because the Lagrangian does not contain the coordinate z. (The other constant of the motion is energy)

From pz = constant we get (M+I/R^2) z-dot-dot = - M x-dot-dot

We put this in the x-equation of motion and get