Consider a particle moving in a straight line whose position is given by s(t)=t3−2t2+t+1. Compute the velocity as a function of time.