A particle slides on a smooth inclined plane whose inclination is $\theta$ is increasing at a constant rate $w$. If $\theta = 0$, at time t = 0 at which time the particle start from rest, Find the subsequent motion of the particle.
This problem can be solved with Lagrangian methods. The kinetic and potential energies are
$$T = \frac{1}{2}m\dot{x}^2 + \frac{1}{2}m(\omega^2x^2)$$ $$V = mgh = m g x \sin(wt) \, .$$
Where does the $\frac{1}{2}m(\omega^2x^2)$ come from?