I think I posted dupe post.
$$\begin{align} \color{red}{\tanh^{-1}(x)={1\over 2}\ln\left({1+x\over 1-x}\right)={1\over 2}\left(\ln(1+x)-\ln(1-x)\right)}~~\text{with}~~\left(\left|x\right|<1\right) \end{align}$$
$$\begin{align}\text{The above eqns can be used in path for soln of} \int{1\over e^x+e^{-x}}\mathrm{d}x \end{align}$$
I have 2 doubts about red-marked eqns.
- How$~\tanh^{-1}(x)={1\over 2}\ln\left(1+x\over{1-x}\right)~$be obtained?
- I think the condition$~\left|x\right|<1~$is too strict for the indefinte integral problem at 2nd row.