I'm trying to evaluate the improper integral,
$$I(a)=\int_{0}^{\infty}\frac{\tan^{-1}{x}}{e^{ax}-1}\mathrm{d}x,~~~\text{where }a\in\mathbb{R}^+.$$
Does this integral have a simple closed form expression? And if so, how best to obtain it?
My attempt
My first idea was to integrate by parts using $f=\tan^{-1}{x}$ and $dg=\frac{\mathrm{d}x}{e^{ax}-1}$, with the hope that the resulting integral would be amenable to solution by differentiating under the integral sign. So I found the indefinite integral,
$$\int\frac{\tan^{-1}{x}}{e^{ax}-1}\mathrm{d}x=\tan^{-1}{x}\left(\frac{1}{a}\log{(1-e^{ax})}-x\right)-\int\left(\frac{\log{(1-e^{ax})}}{a(x^2+1)}-\frac{x}{x^2+1}\right)\mathrm{d}x,$$
but then I realized that this would result in an imaginary boundary term for the corresponding definite integral over $[0,\infty)$ since,
$$\begin{cases}\lim_{x\to\infty}\tan^{-1}{x}\left(\frac{1}{a}\log{(1-e^{ax})}-x\right)=i\frac{\pi^2}{2a},\\ \lim_{x\to0}\tan^{-1}{x}\left(\frac{1}{a}\log{(1-e^{ax})}-x\right)=0.\end{cases}$$
I want to avoid complex variables if at all possible, so I don't know if I want to continue down this route.
Can anyone offer any hints or suggestions?
CORRECTION: As Vladimir pointed out, the correct anti-derivative is actually,
$$\int\frac{\tan^{-1}{x}}{e^{ax}-1}\mathrm{d}x=\tan^{-1}{x}\left(\frac{1}{a}\log{(e^{ax}-1)}-x\right)-\int\left(\frac{\log{(e^{ax}-1)}}{a(x^2+1)}-\frac{x}{x^2+1}\right)\mathrm{d}x.$$
Then, since,
$$\begin{cases}\lim_{x\to\infty}\tan^{-1}{x}\left(\frac{1}{a}\log{(e^{ax}-1)}-x\right)=\frac{\pi}{2}\cdot0=0,\\ \lim_{x\to0}\tan^{-1}{x}\left(\frac{1}{a}\log{-e^{ax}-1)}-x\right)=0,\end{cases}$$
we have,
$$I(a)=-\int_{0}^{\infty}\left(\frac{\log{(e^{ax}-1)}}{a(x^2+1)}-\frac{x}{x^2+1}\right)\mathrm{d}x.$$
$\newcommand{\+}{^{\dagger}} \newcommand{\angles}[1]{\left\langle\, #1 \,\right\rangle} \newcommand{\braces}[1]{\left\lbrace\, #1 \,\right\rbrace} \newcommand{\bracks}[1]{\left\lbrack\, #1 \,\right\rbrack} \newcommand{\ceil}[1]{\,\left\lceil\, #1 \,\right\rceil\,} \newcommand{\dd}{{\rm d}} \newcommand{\down}{\downarrow} \newcommand{\ds}[1]{\displaystyle{#1}} \newcommand{\expo}[1]{\,{\rm e}^{#1}\,} \newcommand{\fermi}{\,{\rm f}} \newcommand{\floor}[1]{\,\left\lfloor #1 \right\rfloor\,} \newcommand{\half}{{1 \over 2}} \newcommand{\ic}{{\rm i}} \newcommand{\iff}{\Longleftrightarrow} \newcommand{\imp}{\Longrightarrow} \newcommand{\isdiv}{\,\left.\right\vert\,} \newcommand{\ket}[1]{\left\vert #1\right\rangle} \newcommand{\ol}[1]{\overline{#1}} \newcommand{\pars}[1]{\left(\, #1 \,\right)} \newcommand{\partiald}[3][]{\frac{\partial^{#1} #2}{\partial #3^{#1}}} \newcommand{\pp}{{\cal P}} \newcommand{\root}[2][]{\,\sqrt[#1]{\vphantom{\large A}\,#2\,}\,} \newcommand{\sech}{\,{\rm sech}} \newcommand{\sgn}{\,{\rm sgn}} \newcommand{\totald}[3][]{\frac{{\rm d}^{#1} #2}{{\rm d} #3^{#1}}} \newcommand{\ul}[1]{\underline{#1}} \newcommand{\verts}[1]{\left\vert\, #1 \,\right\vert} \newcommand{\wt}[1]{\widetilde{#1}}$ $\ds{{\rm I}\pars{a}=\int_{0}^{\infty} {\arctan\pars{x}\over \expo{ax} - 1}\,\dd x\,,\qquad \mbox{where }\quad a \in \mathbb{R}^{+}}$.
$$ \totald{\bracks{a{\rm I}\pars{a}}}{a} =-\int_{0}^{\infty} {t\,\dd t \over \bracks{t^{2} + \pars{a/2\pi}^{2}}\pars{\expo{2\pi t} - 1}} $$
\begin{align} {\rm I}\pars{2\pi z}&={1 \over 2z} \bracks{\ln\pars{\Gamma\pars{z}} + z - z\ln\pars{z} + \half\,\ln\pars{z}} +{{\rm C} \over z} \end{align} where $\ds{\rm C}$ is a constant and $\ds{\Gamma\pars{z}}$ is the Gamma Function ${\bf\mbox{6.1.1}}$.
$\ds{C}$ is found by noting that $\ds{\lim_{z \to \infty}{\rm I}\pars{2\pi z} = 0}$. With Stirling Asymptotic Formula ${\bf\mbox{6.1.41}}$: $$ \ln\pars{\Gamma\pars{z}}\sim \pars{z - \half}\ln\pars{z} - z + \half\,\ln\pars{2\pi}\,,\qquad \verts{z} \to \infty\quad\mbox{in}\quad \verts{{\rm arg}\pars{z}} < \pi $$ we get $\ds{C = -\,{\ln\pars{2\pi} \over 4}}$ such that \begin{align} {\rm I}\pars{2\pi z}&={1 \over 2z} \bracks{\ln\pars{\Gamma\pars{z}} + z - z\ln\pars{z} + \half\,\ln\pars{z \over 2\pi}} \end{align}