I have to show that by defining $$\langle u, f\rangle=\lim_{\varepsilon\rightarrow 0}\int_{-\infty}^{-\varepsilon}+\int_{\varepsilon}^{\infty}\frac{f(x)}{x}dx$$
with $f\in\mathcal{D}(\mathbb{R})$, we have $u\in\mathcal{D}'(\mathbb{R})$ and find $u'$.
The tip is to use the mean value theorem. I did the second part with $u'$ but my problem is to show that it is well defined.
So I got $$\int_{-\infty}^{-\varepsilon}\frac{f(x)}{x}dx=\int_{\varepsilon}^{\infty}\frac{f(-x)}{x}dx$$
so
$$\int_{-\infty}^{-\varepsilon}+\int_{\varepsilon}^{\infty}\frac{f(x)}{x}dx=\int_{\varepsilon}^{\infty} \frac{f(x)+f(-x)}{x}dx$$
It would be great if I got $\frac{f(x)-f(-x)}{x}$ because then
$$\frac{f(x)-f(-x)}{x}=2\frac{f(x)-f(-x)}{x-(-x)}=2f'(y)$$
for some $y\in(-x,x)$. But now how can I apply the mean value theorem to show that it is well defined?