I'm asked to compute
$$\int_{-\infty}^{\infty}\frac{\sin(ax)}{x(1+x^4)}dx$$
To do this, I consider the function
$$f(z)=\frac{e^{aiz}}{z(1+z^4)}$$
and the contour composed by the segment on the real positive line going from $\epsilon$ to $R$, the half-upper circumference, the segment from $-R$ to $-\epsilon$ and the half-lower circumference around zero. When the radius of the small circumference tends to zero, the border of the contour contains a pole of the function, $0$ in particular. What should I do in this case?
Can you please show me how to compute this integral? Thanks in advance.
Define $$f(z)=\frac{e^{aiz}}{z(1+z^4)}$$ Let $C_R, C_\epsilon$ to be the half-upper circumferences with radius $R,\epsilon$, respectively and $C_1, C_2$ to the segments from $-R$ to $-\epsilon$, $\epsilon$ to $R$, respectively. For big $R$ and small $\epsilon$, inside $C_R$-$C_1$-$C_\epsilon^-$-$C_2$, $f(z)$ has two poles $$ z_{1,2}=\pm\frac{\sqrt2}{2}+\frac{\sqrt2}{2}i, z_{1,2}^4=-1. $$ So $$ \int_{C_R}f(z)dz+\int_{C_1}f(z)dz -\int_{C_\epsilon}f(z)dz+\int_{C_2}f(z)dz=2\pi i\bigg[\text{Re}(f,z_1)+\text{Re}(f,z_2)\bigg]. $$ Note \begin{eqnarray} \text{Re}(f,z_1)+\text{Re}(f,z_2)=\frac{e^{aiz_1}}{4z_1^4}+\frac{e^{aiz_2}}{4z_2^4}=-\frac{1}{2}e^{-\frac{\sqrt2}{2}a}\cos(\frac{\sqrt2}{2}a) \\ \int_{C_1}f(z)dz=\int_{-R}^{-\epsilon}f(x)dx, \int_{C_2}f(z)dz=\int^{R}_{\epsilon}f(x)dx. \end{eqnarray} Since $$ \bigg|\int_{C_R}f(z)dz\bigg|\le\int_{C_R}|f(z)||dz|\le\frac{e^{-aR\sin\theta}}{R(R^4-1)}\pi R=\frac{\pi e^{-aR\sin\theta}}{R^4-1} $$ and $$ \int_{C_\epsilon}f(z)dz=\pi i\text{Re}(f,0)=\pi i$$ letting $R\to\infty,\epsilon\to0$, one has $$ \int_{-\infty}^\infty f(x)dx-\pi i= -\pi ie^{-\frac{\sqrt2}{2}a}\cos(\frac{\sqrt2}{2}a) $$ Taking imaginary parts in both sides gives $$ \int_{-\infty}^{\infty}\frac{\sin(ax)}{x(x^4+1)}dx=\pi- \pi e^{-\frac{\sqrt2}{2}a}\cos(\frac{\sqrt2}{2}a) $$