The generalized coordinates selected for the compound pendulum are the x, y coordinates of the lower end and the rotation angle of the upper bar. Perform a kinematical analysis to derive the velocity constraint equation relating these variables. Then perform a geometrical analysis of position to derive the configuration constraint. Prove that differentiating the configuration constraint leads to the velocity constraint.