How can one compute the Fourier transform in $L^2(\mathbb{R})$ of the function $f(x)= \frac{x}{x^2+a^2} \in L^2(\mathbb{R})$, where $a$ is some positive real constant? The Fourier transform in $L^1(\mathbb{R})$ is defined as $\hat{f}(t)= \int_{\mathbb{R}}f(x) e^{- i t x }dx$ and Fourier transform for $ f\in L^2(\mathbb{R})$ is defined as $$\hat{f}= l.i.m._{ n \rightarrow \infty} \int_{-n}^{n} f(x) e^{- i t x }dx$$
(It is limit in $L^2$-norm, as defined in book "Fourier and Wavelet Analysis" from authors Bachman & Narici).
Thanks a lot in advance.
We have $$f_a(x):={x\over x^2+a^2}={1\over 2i}\left [{1\over ix+a}+{1\over ix-a}\right ]$$ Observe that $$\int_0^\infty e^{-at}e^{itx}\,dt=-{1\over ix-a},\quad \int_{-\infty}^0 e^{at}e^{itx}\,dt={1\over ix+a}$$ Let $$g_a(t)=-{1\over 2i}{\rm sgn}\,(t)e^{-a|t|}={i\over 2}{\rm sgn}\,(t)e^{-a|t|}$$ By the Fourier inversion formula we get $$\widehat{f_a}(t)=2\pi g_a(t)=\pi i\,{\rm sgn}\,(t)e^{-a|t|}$$