In my textbook, the author derives the displacement wave equation in a gas within a cylindrical pipe (when the deformation of the gas is small):
$$\frac{\partial^2\xi}{\partial t^2} = \frac{B}{\rho_0} \frac{\partial^2\xi}{\partial x^2}$$
where $B$ is the bulk modulus of elasticity of the gas and $\rho_0$ is the initial density of the gas, the steps are the followings:
When the pressure of the gas is disturbed, a volume element such as $Adx$ is set in motion, as a result, section $A$ is displaced an amount $\xi$; and section $A'$ an amount $\xi'$. The mass within the undisturbed volume is $\rho_0 Adx$, if $\rho$ is the density of the disturbed gas, the mass of the disturbed volume element is $\rho A(dx + d\xi)$. The conservation of the matter requires that both masses be equal, i.e.
$$\rho A(dx+d\xi)=\rho_0 Adx$$
from this, we get that
$$\rho = \frac{\rho_0}{1 + \partial\xi/\partial x}$$
when $\partial\xi/\partial x$ is small we can approximate it by:
$$\rho = \rho_0\left(1-\frac{\partial\xi}{\partial x}\right)$$
here is where my problem arises, $\partial\xi/\partial x$ is the deformation of the volume element at $x'$ and $\rho$ is the density of the perturbed gas which is at $x' + \xi(x')$, then the last equality can be written more formally as:
$$\rho\big(x' + \xi(x')\big) = \rho_0\left(1-\left.\frac{\partial\xi}{\partial x}\right|_{x=x'}\right)$$
But in the next steps, the equality is regarded as if both sides were valued at the same point, i.e.
$$\rho\big(x'\big) = \rho_0\left(1-\left.\frac{\partial\xi}{\partial x}\right|_{x=x'}\right)$$
I think that this is because $\xi(x')$ is small compared with $x'$, Is this what is happening? What am I doing wrong?