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.
$$\int_0^\infty\frac{\ln(\cosh x)}{\cosh x} dx\overset{x=-\ln t}=2 \int_0^1 \frac{\ln\left(\frac{t^2+1}{2t}\right)}{1+t^2} dt\overset{t=\tan \left(\frac{x}{2}\right)}=-\int_0^\frac{\pi}{2}\ln(\sin x)dx=\frac{\pi}{2}\ln 2$$ See here for the last integral.
Alternatively we can combine everything from above into the substitution $e^x=\cot \left(\frac{t}{2}\right)$.