Write the lagrangian equations for:
A simple pendulum whose suspension point oscillates horizontally in its plan according to the law
x = a.cos(ωt)
My problem is trying to know which are the generalized coordinates.
i considered :
x (θ) = a.cos(ωt) + l.sinθ
y (θ) = l.cos θ
Is that correct?