I have been given the integral $$\int_0^\infty \cos(bx)(x-\ln(e^x-1))dx$$ from a friend. I found an answer in terms of the digamma function, but he told me that the answer is obtainable without imaginary numbers. I am completely dumbfounded on how he got the answer.
I have absolutely no idea where to start without using complex numbers. When $b=0$, it's pretty easy to show that it evaluates to $\zeta(2)$ or $\frac{\pi^2}{6}$. But I can't figure out a general form without using digamma.