Suppose I have a function $\rho(x(X,t),t)$, and I perform the partial derivative based on chain rule, what I have is $\frac{\partial \rho}{\partial t} = \frac{\partial\rho}{\partial x}\frac{\partial x}{\partial t}+\frac{\partial \rho}{\partial t}$.
I am confused, both side has$\frac{\partial \rho}{\partial t}$.
The derivative on the left side shouldn’t be written using partial derivatives; rather, it is the total derivative. The term on the right side is the partial derivative in $t$ viewing $x$ as fixed.