Consider the pendulum of figure 7.4, suspended inside a railroad car, but suppose that the can is oscillating back and forth, so that the point of suspension has position x=Acos(wt), y=0. Use the angle Φ as the generalized coordinate and write down the equations that give the Cartesian coordinates of the bob in terms of Φ and vice versa.
Hello and thank you for posting your question to Brainmass!
The solution ...
Detailed calculations in attached documents.