Solution (source code)

= Solution

On the negative half-line, an <antiderivative> of $1/x$ is $\ln|x|$. The <fundamental theorem of calculus> therefore gives
$$
\int_{-2}^{-1}\frac{dx}{x}=\big[\ln|x|\big]_{-2}^{-1}=\ln1-\ln2=\boxed{-\ln2}.
$$
The negative sign agrees with the negative integrand throughout the interval.