What is $f(x)=\frac12\int_{-\infty}^\infty \frac{\operatorname{sgn} (x-t)}t dt$ in closed form?
The integral should be understood as the Cauchy principal value and regularized values when diverges.
The question arose in the context of natural integral.
It seems to me, the correct answer is $f(x)=\ln |x|$, but the Fourier transform method using Mathematica gives $f(x)=\ln |x| - \gamma$.


if we split the integral we get: $$\int_{-\infty}^x\frac{1}{t}dt - \int_{x}^{\infty}\frac{1}{t}dt$$ using the Cauchy principal we get: $$\lim\limits_{R \to \infty}\int_{-R}^x\frac{1}{t}dt - \int_{x}^{R}\frac{1}{t}dt$$ $$\lim\limits_{R \to \infty}(ln(|x|)-ln(|-R|))-(ln(|R|)-ln (x))$$ R cancels out and we get: $$\frac{1}{2}\int_{-\infty}^{\infty}\frac{sgn(x-t)}{t}dt=ln(|x|)$$