i have been trying to solve this past exam problem, a simple pendulum of length l and bob with mass m is attracted to a massless support moving horizontally with constant acceleration a. Determine the lagrange's equations of motion and the period of small oscillations.
here's what i solved...