A particle of mass m moves frictionlessly under the influence of gravity on a curve defined by:
$x=a(\phi+\sin\phi)$ and $y=a(1-\cos\phi)$.
a) Set up the terms for the kinetic and potential energy.
b)Use a suitable generalized variable $q=f(\phi)$ to turn both terms into a purely quadratic form.
c)Set up the Lagrange-function $L=L(q,\dot{q})$ and derive the equations of motion from that.
We just started talking about generalized variables and Lagrange functions in class and to be honest I don't really understand the concept yet.
I mean I don't even know how to derive the kinetic and potential energy.
My only ideas for the kinetic energy were to get $\dot{x}$ and $\dot{y}$ and then going with $\frac{1}{2}m(\dot{x}^2+\dot{y}^2)$ where as $\dot{x}=a(\dot{\phi}+\dot{\phi}\sin{\phi})$ and $\dot{y}=-a\dot{\phi}\cos{\phi}$, right?
Simplification on KE: $$1/2m(a^2(\dot{\phi}^2+2\dot{\phi}^2\sin(\phi)^2+\dot{\phi}^2\sin(\phi)^2)+a^2\dot{\phi}^2\cos{\phi}^2)=1/2ma^2\dot{\phi}^2\cos(\phi)$$
Following Divergent Queries' comment the potential energy is then just $V=mga(1-\cos(\phi))$? Anyway, I hope someone with more knowledge with this than me could help me.