We can obtain $\log(\cosh(x)+1)$ on the RHS by changing the integrand function since $\displaystyle\frac{\mathrm{d}}{\mathrm{d}x}\log(\cosh(x)+1)=\frac{\sinh(x)}{\cosh(x)+1}=\frac{\cosh(x)-1}{\sinh{x}}=\tanh\left(\frac{x}{2}\right)$.
This follows from representing the hyperbolic functions as exponentials:
$\displaystyle \begin{aligned}\frac{\sinh(x)}{\cosh(x)+1}
&=\dfrac{\frac{e^{x}-e^{-x}}{2}}{\frac{e^{x}+e^{-x}}{2}+1} \\
&=\frac{e^{x}-e^{-x}}{e^{x}+e^{-x}+2} \\
&=\frac{(e^{\frac{x}{2}}-e^{-\frac{x}{2}})(e^{\frac{x}{2}}+e^{-\frac{x}{2}})}{(e^{\frac{x}{2}}+e^{\frac{x}{2}})(e^{\frac{x}{2}}+e^{\frac{x}{2}})} \\ &=\frac{e^{\frac{x}{2}}-e^{-\frac{x}{2}}}{e^{\frac{x}{2}}+e^{\frac{x}{2}}} \\ &=\tanh\left(\frac{x}{2}\right). \end{aligned}$
(Alternatively see here)