Show that $$ \int_0^{\infty} \frac{\sin \pi \omega \sin x\omega}{1-\omega^2}d\omega= \begin{cases} \frac{\pi}{2}\sin x,&\mbox{ if } 0\leq x\leq\pi\\ \quad\\ 0,&\mbox{ if } x\geq\pi \end{cases} $$
Here is what I did $$ f(x)= \begin{cases} \sin x,&\mbox{ if } 0\leq x\leq\pi\\ \quad\\ 0,&\mbox{ if } x\geq\pi \end{cases} $$ Then I tried to compute the integral
$$ \int_0^{\infty}[A(\omega)\cos(\omega x)+B(\omega)\sin(\omega x)]d\omega $$
But I never reach my target. What is wrong?
I should have defined $f$ as follows $$ f(x)= \begin{cases} \sin x,&\mbox{ if } |x|\leq\pi\\ \quad\\ 0,&\mbox{ if } |x|\geq\pi \end{cases} $$ So, $A(\omega)$ and $B(\omega)$ are going to be evaluated from $-\pi$ to $\pi.$ The rest is straight forward.