AB is a straight frictionless wire fixed at a point A on the vertical axis OA with constant velocity w(omega). A bead of mass m is constrained to move on the wire.

Set up the Lagrangian's equation.

I know that the lagrangian's equation is L=T-V where V is the potential energy and T is the kinetic Energy.

I was taking as generalised coordinates w but i don't know how to proceed and get the kinetic and potential energy.

Help please! thank youuuu