The acceleration of a particle moving along a straight line is inversely proportional to its speed with the constant of proportionality being k. The body starts from the position s=x0i with initial speed v0. Determine the velocity of the particle as a function of time t, and as a function of position s.