If I ask Mathematica to compute the Fourier transform of $\frac{1}{x^2}$ using the FourierTransform
function, it gives me a result of
$$\mathcal{F}\biggl[\frac{1}{x^2}\biggr] = -\sqrt{\frac{\pi}{2}}k\operatorname{sign}k\tag{1}$$
Similarly if I ask for the Fourier transform of $\frac{1}{x^2 + y^2}$, I get
$$\mathcal{F}\biggl[\frac{1}{x^2 + y^2}\biggr] = -\gamma_E + \ln\frac{1}{\sqrt{k_x^2 + k_y^2}}\tag{2}$$
(Mathematica claims this is true as long as $k_x > 0$; I'm not convinced that's necessary, but I'm happy to accept that restriction for the scope of this question.)
But the integrals I would normally expect to do to obtain these results, namely
$$\begin{align} &\frac{1}{\sqrt{2\pi}}\int_{\mathbb{R}} \frac{e^{ikx}}{x^2}\mathrm{d}x & &\frac{1}{2\pi}\iint_{\mathbb{R}^2} \frac{e^{i(k_x x + k_y y)}}{x^2 + y^2}\mathrm{d}x\,\mathrm{d}y \end{align}$$
don't converge. So when Mathematica gives me the results (1) and (2), what is it really telling me? In what sense are those functions the Fourier transforms of $1/x^2$ and $1/(x^2 + y^2)$? How would I derive these results?
I'm assuming that there is some mathematical meaning to the results, and it's not just something that Mathematica "decided" to do arbitrarily (but of course if that's not the case I'd like to know).