From Rudin's book, we are to calculate $\int_\mathbb{R} \Big(\frac{\sin x}{x}\Big)^2 e^{itx}dx$ where $i$ is the imaginary number and $t\in\mathbb{R}$.
I'm looking for a hint on how to get started. I know the Residue Theorem, but I'm unsure whether it would be better to take a path which includes or excludes the singularity at $z=0$ (after converting the integrand to a complex function of the variable $z$). I have a solution which shows how to integrate $\int_\mathbb{R}\frac{\sin x}{x}dx$ from John B. Conway's text, but I am unsure if I am able to adapt this to the current problem. Any hints you may have would be greatly appreciated. Thanks in advance!
Assuming you have the line of real numbers. Then you can extend it to a complex plane by adding a line of imaginary numbers perpendicular to the line of real numbers. You can form a very very big half-circle connecting the two Ends of the real lines. On this half-circle, your Integrand is Zero (because of the $x$ in the denominator). Now you extend your real $x$ to a complex number $z$, i.e. $x=z$ and your integral over all real numbers can be Extended to a closed contour integral over the complex plane involving the half-circle. Now you can evaluate the contour integral by Cauchy's integral formula.