Calcuate the integral $$I=\int_{-\infty}^\infty\frac{\sin a\omega\sin b\omega}{\omega\cdot \omega}d\omega.$$
First I noticed that $$\mathcal{F}(\mathbb{1}_{[-h,h]})(\omega)=\frac{\sin h \omega}{\omega}$$ and by the definition of fourier transform $$I=\int_{-\infty}^\infty\widehat{1_{[-a,a]}\cdot1_{[-b,b]}}\cdot e^{i\omega\cdot 0} d\omega=({1_{[-a,a]}\ast 1_{[-b,b]}})(0)$$If we denote $c:=\min\{a,b\}$, then the convolution is simply $$({1_{[-a,a]}\ast 1_{[-b,b]}})(0)=\int_{-c}^c1dt=2c$$but when I use Mathematica I don't get these values.
What is my mistake in the calculation?
Maybe you have missed factors of $\sqrt{2\pi}$. For example, $$ \chi_{[-a,a]}^{\wedge}(s)=\frac{1}{\sqrt{2\pi}}\int_{-a}^{a}e^{-isx}dx = \frac{1}{\sqrt{2\pi}}\frac{e^{-isa}-e^{+isa}}{-is}= \sqrt{\frac{2}{\pi}}\frac{\sin(as)}{s}. $$ And don't forget: $(f\star g)^{\wedge}=\sqrt{2\pi}f^{\wedge}g^{\wedge}$. Therefore, $$ \begin{align} \int_{-\infty}^{\infty}\frac{\sin(as)\sin(bs)}{s^{2}}e^{isx}ds & = \frac{\pi}{2}\int_{-\infty}^{\infty}\chi_{[-a,a]}^{\wedge}(s)\chi_{[-b,b]}^{\wedge}(s)e^{isx}ds \\ & = \frac{1}{\sqrt{2\pi}}\frac{\pi}{2}\int_{-\infty}^{\infty}(\chi_{[-a,a]}\star \chi_{[-b,b]})^{\wedge}(s)e^{isx}ds \\ & = \frac{\pi}{2}(\chi_{[-a,a]}\star\chi_{[-b,b]})(x) \end{align}. $$ Hence, $$ \int_{-\infty}^{\infty}\frac{\sin(as)\sin(bs)}{s^{2}}ds = 2\frac{\pi}{2}\min\{b,a\} = \pi\min\{b,a\}. $$ As a quick check, Parseval's identity gives $$ \int_{-\infty}^{\infty}\frac{\sin^{2}(as)}{s^{2}}ds = \frac{\pi}{2}\int_{-\infty}^{\infty}|\chi_{[-a,a]}^{\wedge}(s)|^{2}=\frac{\pi}{2}\int_{-a}^{a}dx=\pi a. $$