In the context of a cosmology text, I have found the following function, called a spatial top-hat filter:
$$W_{TH,R}(r)=\dfrac{3\theta(R-r)}{4\pi R^3}$$
It is claimed that this leads to:
$$W_{TH,R}(r)=3\dfrac{\sin(kR)-(kR)\cos(kR)}{(kR)^3}$$
which I assume is the Fourier transform of the expression given above. I want to be able to reproduce this result, so I attempted the following:
$$W_{TH,R}(k)=\int d^3r\ e^{-i\vec{k}\cdot\vec{r}}\cdot W_{TH,R}(r)=\int d^3r\ e^{-i\vec{k}\cdot\vec{r}}\cdot\dfrac{3\theta(R-r)}{4\pi R^3}=$$
$$=\int_0^{2\pi}d\phi\int_0^\pi d\theta\int_0^\infty dr\ r^2\sin\theta\cdot e^{-ikr\cos\theta}\cdot\dfrac{3\theta(R-r)}{4\pi R^3}=$$
$$=2\pi\dfrac{3}{4\pi R^3}\int_0^\pi d\theta\int_0^\infty dr\ r^2\theta(R-r)\sin\theta\cdot e^{-ikr\cos\theta}=$$
$$\dfrac{3}{2R^3}\int_0^\infty dr \int_0^\pi d\theta\ r^2\theta(R-r)\sin\theta\cdot e^{-ikr\cos\theta}$$
But I cannot imagine how to proceed any further. I would like to be able to change variables as $u=\cos\theta$, but the extra $\theta$ in front of the exponential makes it seem like this would not solve anything.
Any help would be greatly appreciated!