On a youtube video about Einstein's field equations, the author writes the following equation (https://youtu.be/foRPKAKZWx8?t=1078):
$$d\phi=\sum_{n} \frac{\partial \phi}{\partial x^n} dx^n\tag{1}$$
Where $d\phi$ is the gradient of a tensor field. After some explanations regarding metrics, he changes equation (1) to (https://youtu.be/foRPKAKZWx8?t=2844):
$$dx^m=\frac{\partial x^m}{\partial y^r}dy^r\tag{2}$$
where the summation over $r$ is implied.
Why this can be done? I don't understand the change from $d\phi$ to $dx^m$.