i am trying to understand something about Cauchy sequences in $L^2$, why is $\int_0^\infty \frac{1}{x^2}|1_{[n,n+1]}-1_{[m,m+1]}|^2\;dx=\int_n^{n+1}\frac{1}{x^2}dx+\int_m^{m+1}\frac{1}{x^2}dx$, where $1_A(x)$ is the indicator function.
there seems that there is a identity about subtracting indicator functions.

