find the maximum velocity attained by the particle.