So we have $\int_{0}^{+\infty}\dfrac{x^2-a^2}{x^2+a^2}\cdot\dfrac{\sin x}{x}dx$. ($a>0$). I considered that we can just calculate the half of the imaginary part of $$\int_{-\infty}^{+\infty}\dfrac{x^2-a^2}{x^2+a^2}\cdot\dfrac{e^{ix}}{x}dx$$
I considered taking a contour of big upper half circle with radius $R$, and $[-R,-\epsilon]$,$[\epsilon,R]$, with a small lower half circle with radius $\epsilon$. I estimated that the integral of upper large circle is zero as $R$ tends to $\infty$. However, I can not seem to estimate the integral over the small circle since the rational function part is quite tricky.
Can anyone help with this? Any hint would be appreciated!