Suppose I have a gas of particles that is initially uniformly distributed so that the number density is $n_0$ (number of particles per unit volume), and then I displace the particles by the vector field $\vec{d}(\vec{x})$ (i.e. the particle initially at position $\vec{x}$ is displaced by the vector $\vec{d}$). How is the resulting number density $n(\vec{x})$ related to the displacement vector $\vec{d}(\vec{x})$?
I'm sure this must be done somewhere in a standard textbook but I can't find where.