I have to take the following integral: $$\int \mathrm{sech}(x)dx$$
I have decided to do the following substitution:
$$\int \frac{1}{\cosh(x)}dx$$ Then I proceed to the following manipulation: $$\int \frac{\cosh(x)}{\cosh^2(x)}dx=\int \frac{\cosh(x)}{1+\sinh^2(x)}dx$$ Then I proceed to $u=\sinh(x)$, and $du=\cosh(x)dx$
$$\int \frac{du}{1+u^2}=\tan^{-1}(u)+C \\ =\tan^{-1}(\sinh(x))+C$$
Is my work is valid? This way has not been done on the site so I did it.