find the speed of the particle as the function of vertical distance Y.