If you have the position vector along a path $\vec{r}(q)$ parametrized by $q$, where $q$ can be time, angle, distance, or whatever then the derivatives are:
$$ \vec{v}(q,\dot{q}) = \frac{\partial \vec{r}(q)}{\partial q} \dot{q} $$
$$ v = \| \vec{v} \|$$
$$ \vec{e} = \frac{ \vec{v}}{v} $$
$$ \vec{a}(q,\dot{q},\ddot{q}) = \frac{\partial \vec{v}(q,\dot{q})}{\partial q} \dot{q} + \frac{\partial \vec{v}(q,\dot{q})}{\partial \dot{q}} \ddot{q}$$
$$ \vec{a} = \dot{v} \vec{e} + \frac{v^2}{\rho} \vec{n} $$
General Example
An object follows an ellipse. Its location is defined by a parameter $\theta$:
- Position vector $\vec{r}(\theta) = (10 \cos\theta, 3 \sin \theta)$
- Velocity vector $\vec{v}(\theta,\dot{\theta}) = \frac{\partial (10 \cos\theta, 3 \sin \theta)}{\partial \theta} \dot{\theta} = (-10 \dot{\theta} \sin\theta, 3 \dot\theta \cos\theta)$
- Speed $v=\|\vec{v}\| = \dot{\theta} \sqrt{10^2+(3^2-10^2)\cos^2\theta}$
- Tangent vector $\vec{e}(\theta) = \frac{\vec{v}}{\|\vec{v}\|} = \frac{(-10 \sin\theta,3 \cos\theta)}{\sqrt{10^2+(3^2-10^2)\cos^2\theta}}$
- If I know the speed to be $v=\sqrt{309}$ at $\theta=\frac{\pi}{3}$ then
- $\dot{\theta} = \frac{\sqrt{309}}{\sqrt{10^2+(3^2-10^2)\cos^2\frac{\pi}{3}}}=2$
- $\vec{v} =v \vec{e} = \frac{(-10 \sqrt{309} \sin\frac{\pi}{3},3 \sqrt{309} \cos\frac{\pi}{3})}{\sqrt{10^2+(3^2-10^2)\cos^2\frac{\pi}{3}}} = (-10\sqrt{3},3)$
Simple Example
If your position vector is $\vec{r}(t) = (5-10 t,0)$ then the velocity vector is
$$ \vec{v} = \frac{\partial \vec{r}}{\partial t} \dot{t} = (-10,0) $$
since the time rate of time is one $\dot{t}=1$