The velocity is the derivative of the position function $\mathbf{r}(t)$. So, we differentiate $\mathbf{r}(t)$ with respect to $t$ to get the velocity $\mathbf{v}(t)$:
\[\mathbf{v}(t) = \frac{d\mathbf{r}}{dt} = (2t-2)\mathbf{i} + \mathbf{j}\]
Show more…