Given the following trajectory equation with gravitational force $\left(F_G\right)$ and drag force $\left(F_D\right)$:
$$m a = F_G + F_D = m g \hat{y} - b \left( \hat{x} + \hat{y} \right)$$
and letting $k=\frac{b}{m}$ you can seperate the above equation into $x$ and $y$-equations,
$$\begin{split} x''(t)&=-k x'(t)\\ y''(t)&=-g-ky'(t) \end{split}$$
My question is: what is the math to go from $\hat{x}$ and $\hat{y}$ to $x'\left(t\right)$ and $y'\left(t\right)$?