Show that $$\int_{0}^{\infty}\frac{\log(\cosh x)}{\cosh x}dx = \frac{\pi}{2}\log 2$$
Perform part integration, we have \begin{align} &\int_{0}^{\infty}\frac{\log(\cosh x)}{\cosh x} \ d{x} \\ =&\ 2\tan^{-1}\left(\tanh\frac x2\right)\log(\cosh x)\bigg|_{0}^{\infty} - 2\int_{0}^{\infty}\tan^{-1}\left(\tanh\frac x2\right)\tanh x\ dx \end{align}
But, the first part diverges!
What other path can we take? I thought of expressing the hyperbolic functions in terms of exponentials.
Awaited eagerly for the answer.