In relation to this question, $\ln|x|$ vs.$\ln(x)$? When is the $\ln$ antiderivative marked as an absolute value?
"On the other hand, if $x$ takes negative values then the derivative of $\ln(−x)$ is $x^{−1}$: you can check this by differentiation."
How?
$$ \frac d {dx} \ln(-x) = \frac 1 {-x} \cdot -1 = \frac 1 x$$
Now plug in a negative value for $x$ and you get $\frac 1 {-x}$. But if I do it right away, $\ln(-x) = \ln(x)$ and all is good.
What am I missing? Why does the order of substitution matter?
Thanks.