Integral of $$$\operatorname{sech}{\left(x \right)}$$$

The calculator will find the integral/antiderivative of $$$\operatorname{sech}{\left(x \right)}$$$, with steps shown.

Related calculator: Definite and Improper Integral Calculator

Please write without any differentials such as $$$dx$$$, $$$dy$$$ etc.
Leave empty for autodetection.

If the calculator did not compute something or you have identified an error, or you have a suggestion/feedback, please contact us.

Your Input

Find $$$\int \operatorname{sech}{\left(x \right)}\, dx$$$.

Solution

Rewrite the hyperbolic secant using the exponent $$$\operatorname{sech}\left(x\right)=\frac{2}{e^{\left(x\right)}+e^{-\left(x\right)}}$$$:

$${\color{red}{\int{\operatorname{sech}{\left(x \right)} d x}}} = {\color{red}{\int{\frac{2}{e^{x} + e^{- x}} d x}}}$$

Apply the constant multiple rule $$$\int c f{\left(x \right)}\, dx = c \int f{\left(x \right)}\, dx$$$ with $$$c=2$$$ and $$$f{\left(x \right)} = \frac{1}{e^{x} + e^{- x}}$$$:

$${\color{red}{\int{\frac{2}{e^{x} + e^{- x}} d x}}} = {\color{red}{\left(2 \int{\frac{1}{e^{x} + e^{- x}} d x}\right)}}$$

Simplify:

$$2 {\color{red}{\int{\frac{1}{e^{x} + e^{- x}} d x}}} = 2 {\color{red}{\int{\frac{e^{x}}{e^{2 x} + 1} d x}}}$$

Let $$$u=e^{x}$$$.

Then $$$du=\left(e^{x}\right)^{\prime }dx = e^{x} dx$$$ (steps can be seen »), and we have that $$$e^{x} dx = du$$$.

The integral becomes

$$2 {\color{red}{\int{\frac{e^{x}}{e^{2 x} + 1} d x}}} = 2 {\color{red}{\int{\frac{1}{u^{2} + 1} d u}}}$$

The integral of $$$\frac{1}{u^{2} + 1}$$$ is $$$\int{\frac{1}{u^{2} + 1} d u} = \operatorname{atan}{\left(u \right)}$$$:

$$2 {\color{red}{\int{\frac{1}{u^{2} + 1} d u}}} = 2 {\color{red}{\operatorname{atan}{\left(u \right)}}}$$

Recall that $$$u=e^{x}$$$:

$$2 \operatorname{atan}{\left({\color{red}{u}} \right)} = 2 \operatorname{atan}{\left({\color{red}{e^{x}}} \right)}$$

Therefore,

$$\int{\operatorname{sech}{\left(x \right)} d x} = 2 \operatorname{atan}{\left(e^{x} \right)}$$

Add the constant of integration:

$$\int{\operatorname{sech}{\left(x \right)} d x} = 2 \operatorname{atan}{\left(e^{x} \right)}+C$$

Answer

$$$\int \operatorname{sech}{\left(x \right)}\, dx = 2 \operatorname{atan}{\left(e^{x} \right)} + C$$$A


Please try a new game Rotatly