It is certainly not the area from $-2$ to $0^-$ and $0^+$ to $1$. That area is infinite (and shouldn't be negative).
Instead it's the area of the complement, i.e. from $-\infty$ to $-2$ and $1$ to $\infty,$ but with a reversed sign, or as the area from $1$ to $-2$ going via a point at infinity (wrapping around from $+\infty$ to $-\infty$).
Assume $-\infty < a < 0 < b < \infty$. Then the area under $\frac{1}{x^2}$ from $-\infty$ to $a$ plus from $b$ to $\infty$ is
$$
\int_{-\infty}^{a} \frac{1}{x^2} dx + \int_{b}^{\infty} \frac{1}{x^2} dx
= \left[ -\frac{1}{x} \right]_{-\infty}^{a} + \left[ -\frac{1}{x} \right]_{b}^{\infty}
= -\frac{1}{a} + \frac{1}{b} \\
= - \left[ -\frac{1}{x} \right]_a^b
= - \left[ \int \frac{1}{x^2} dx \right]_a^b
= \left[ \int \frac{1}{x^2} dx \right]_b^a
$$