I have the following problem to solve:
Express the integral $$\int_{-\infty}^\infty \frac{1}{1+x^2}\frac{1}{1+(x-t)^2}dx$$ in terms of $t$.
My solution is as follows:
We quickly realize that we have that the integral is just the convolution $f * f$ where
$$f := \frac{1}{1+x^2}$$
Furthermore, if we define the integral as $I(t)$, we have that $\mathcal{F}(I) = \mathcal{F}(f * f) = (\mathcal{F}(f))^2 $. So,
$$I(t) = \mathcal{F}^{-1}((\mathcal{F}(f))^2)$$
Now $\mathcal{F}(f) = \pi e^{-|x|}$, so
$$(\mathcal{F}(f))^2 = \pi^2 e^{-|2x|} = 2\pi \cdot \pi/2e^{-|2x|} = \mathcal{F}\left(2\pi \frac{1}{1+(2t)^2}\right)$$
And so by the property of uniqueness for Fourier transform, we have that: $$I = 2\pi \frac{1}{1+4t^2}$$
Is this correct? And also, is there any other easier way to solve it? Also, I'm struggling oftenly to keep $x$ and $t$'s separated which makes me confused whether I should do the inverse fourier or the regular Fourier transform of a function. Is there any easy trick to distinguish these variables?
Sorry, too long for a comment
As @eyeballfrog provided the link in the comment, WolframAlpha gives $\displaystyle I(t)=\frac{2\pi}{4+t^2}$ (please, pay attention that not $\displaystyle \frac{2\pi}{1+4t^2}$).
I may suppose thay you define FT as $\displaystyle \hat f(k)=\int_{-\infty}^\infty f(x)e^{ikx}dx$. In this case you do get $\displaystyle\int_{-\infty}^\infty \frac{e^{ikx}}{1+x^2}dx=\pi e^{-|k|}$.
To find an answer, you could also use the Plancherel' theorem (here), which states (for the above chosen FT) that $$\int_{-\infty}^\infty f(x)g^*(x)dx=\frac{1}{2\pi}\int_{-\infty}^\infty \hat f(k)\hat g^*(k)dk$$ Taking $\,\displaystyle g(x)=\frac{1}{1+x^2},\,\, f(x)=\frac{1}{1+(x-t)^2}$, you get $\,\displaystyle \hat g(k)=\pi e^{-|k|}; \hat f(k)=\pi e^{-|k|}e^{ikt}$ $$I=\frac{\pi^2}{2\pi}\int_{-\infty}^\infty e^{-2|k|}e^{ikx}dk=\pi\, \Re\,\int_0^\infty e^{-2k}e^{ikx}dk=\pi\, \Re\,\frac{1}{2-it}=\frac{2\pi}{4+t^2}$$