# Definite integral problem $\int_0^{\infty} \frac{\sin(nx)e^{-anx}}{x^2-\pi^2}\,dx$

$$\int_0^{\infty} \frac{\sin(nx)e^{-anx}}{x^2-\pi^2}\,dx$$

$n$ is an integer and $a>0$.

I came across this integral while solving an another problem but I have no idea about evaluating it. I tried to use $\sin(nx)=\Im(e^{inx})$ but that doesn't help. Wolfram Alpha returns nothing.

Any help is appreciated. Many thanks!

• Set $k=n(-a+i)$, then: $$\Im(\int_{0}^\infty\frac{e^{kx}}{x^2-\pi^2}dx)=\Im(\int_{0}^\infty\frac{e^{-anx}(\cos(nx)+i\sin(nx))}{x^2-\pi^2})$$ $$=\int_{0}^\infty\frac{\sin(nx)e^{-anx}}{x^2-\pi^2} dx$$ – Ethan Jun 8 '14 at 8:29
• @Ethan: Yes, I know that but I don't think it is easy to solve $$\int_0^{\infty} \frac{e^{kx}}{x^2-\pi^2}\,dx$$ or maybe I am missing something? – Pranav Arora Jun 8 '14 at 8:32
• Not sure, but you could always send $a\rightarrow \frac{a}{n}$ and then your problem is really just evaluating $$\int_{0}^\infty \frac{\sin(nx)e^{-ax}}{x^2-\pi^2} dx$$ Where $n$ is an integer and $a>0$, though I don't think that's necessarily easier to work with either. – Ethan Jun 8 '14 at 8:34

$$\frac{e^{-a n \pi }}{8\pi} \left[ 4 e^{2 a n \pi } \pi +2 i e^{2 a n \pi }\, \text{Ei}[-(-i+a) n \pi ]-2 i\, \text{Ei}[(-i+a) n \pi ]-2 i e^{2 a n \pi } \text{Ei}[-(i+a) n \pi ]+2 i\, \text{Ei}[(i+a) n \pi ] \right]$$ It seems that there is no simpler expression.
• Darn! I expected a nicer result to use it for this problem: math.stackexchange.com/questions/822477/… . Can you please check if the derivative of the expression you wrote wrt $a$ results in a nice expression? Many thanks! – Pranav Arora Jun 8 '14 at 11:48
• @Pranav The derivative is $\frac{1}{4} e^{-n a \pi } \left(n e^{2n a \pi } (2 \pi +i \text{Ei}[-n (-i+a) \pi ]-i \text{Ei}[-n (i+a) \pi ])+n i (\text{Ei}[n (-i+a) \pi ]-\text{Ei}[n (i+a) \pi ])\right)$ after simplification by Mathematica. – user111187 Jun 8 '14 at 11:51