When we have a random variable $x$ with a probability density $p(x)$, and a function $y = f(x)$ that is differentiable and can be solved for $x = g(y)$, the change of variable formula leads us to a density for $y$ given by
$$ p(x) \, dx = p(x) \left| g'(y) \right| \, dy = p(x) \left| \frac{1}{f'(x)} \right| \, dy = p(x) \left| \frac{dx}{dy} \right| \, dy $$ where $\frac{dx}{dy}$ is called (to my knowledge even in the univariate case) the Jacobian of the transformation (as in Zill & Wright, p. 792). In general this would be a determinant of a Jacobian matrix $\mathbf{J}(\mathbf{g}(\mathbf{y}))$, obviously. But I never understood why does it enter in absolute value? I have read somewhere that it's because $f(x)$ could have a negative derivative whereas probabilities are confined to be positive, but that sounds more like a post-hoc justification than a mathematical result. Is there a way to derive this fact?