derivation of the equations of rectilinear motion