Consider the following integral :
$$\int_0^\infty\frac{(a+bx)^n}{e^{cx}-1}dx$$
Here a,b,c,n are constants
How to calculate above integral ?
Also, similarly:
$$\int_0^\infty\frac{(1+ix)^{2n-1}-(1-ix)^{2n-1}}{e^{2πx}-1}dx$$
How to calculate this for n=1,2..?
I know the following:
$$\int_0^\infty\frac{(1+ix)^{2n}-(1-ix)^{2n}}{e^{2πx}-1}dx=\frac{i (2n-1)}{2(2n+1)}$$
Hint: You should first try and figure out when the integral converges in the first place(looking at the limit in $x = 0$) and then maybe try per partes.