The following is the definition of Riemannian metrics in Riemannian Geometry by do Carmo:
I don't quite understand the underlined sentence.
In the book, the following is the definition of "differentials":
Here is my question:
How does one get $$ \frac{\partial}{\partial x_i}(q)=dx_q(0,...,1,...,0)? $$


The map $x:U\subseteq \mathbb R^n\longrightarrow \phi(U)$ is a diffeomorphism with respect to the smooth structure $U$ inherits from $\mathbb R^n$ and the smooth structure $\phi(U)$ inherits from $M$. Hence: $$dx_p:T_pU=\mathbb R^n\longrightarrow T_{x(p)}\phi(U)=T_{x(p)}M,$$ is an isomorphism for every $p\in U$. Therefore you can transport the cannonical basis of $\mathbb R^n$ to a basis of $T_{x(p)}M$ setting $$\frac{\partial}{\partial x_j}(p):=dx_p(e_j),$$ where $e_j$ is the $j$-th cannonical vector in $\mathbb R^n$.