A bar of mass resting on a smooth horizontal plane starts moving due to the force of constant magnitude. In the process of its rectilinear motion the angle between the direction of this force and the horizontal varies as where is a constant, and is the distance traversed by the bar from its initial position. Find the velocity of the bar as a function of the angle .