Why is the following equation true?
$$\frac{\partial \mathbf{v}_i}{\partial \dot{q}_j} = \frac{\partial \mathbf{r}_i}{\partial q_j}$$
where $\mathbf{v}_i$ is velocity, $\mathbf{r}_i$ is the displacement, and $q_j$ is the generalized coordinate into which $\mathbf{r}_i$ is transformed.
In reading further, I find that it's related to
$$ \mathbf{v}_i \equiv \frac{\mathrm{d}\mathbf{r}_i}{\mathrm{d}t} = \sum_k \frac{\partial \mathbf{r}_i}{\partial q_k}\dot{q}_k + \frac{\partial \mathbf{r}_i}{\partial t} $$
I know that in transforming the virtual displacement $\delta\mathbf{r}_i$ into generalized coordinates, I can use
$$ \delta\mathbf{r}_i = \sum_k \frac{\partial\mathbf{r}_i}{\partial q_k}\dot{q}_k $$
The first equation above is of course equivalent to
$$\frac{\partial \dot{\mathbf{r}}_i}{\partial \dot{q}_j} = \frac{\partial \mathbf{r}_i}{\partial q_j}$$
I'm not sure why the dots vanish just like that. How do these all connect?
In a non-mathematical explanation, I can understand that as $q_j$ changes, $\mathbf{r}_i$ changes as well. In the same way, as $\dot{q}_j$ changes, $\mathbf{v}_i$ changes, too. I'd like to know, mathematically, how these changes (for $\mathbf{r}_i$ and $\mathbf{v}_i$) turn out to be equal.