Answer
$$\ln |\cosh x|+C $$
Work Step by Step
Given $$ \int \tanh x d x $$
Let $$ u=\cosh x \ \ \ \to du = \sinh x dx$$
Then
\begin{aligned} \int \tanh x d x &=\int \frac{\sinh x}{\cosh x} d x \\ &=\int \frac{1}{u} d u \\ &=\ln |u|+C \\ &=\ln |\cosh x|+C \end{aligned}