Compute the indefinite integral
$$\displaystyle \int\sqrt{\frac{e^{nx}}{e^{nx}+1}}dx:n\in \mathbb{Z^*}$$
My Attempt:(The steps are shortened)
$$\displaystyle e^{nx}=\sinh^{2}(y)\Rightarrow dx=\frac{2}{n}\frac{\ \cosh(y)dy}{\sinh(y)}$$
$$\displaystyle \sqrt{\frac{e^{nx}}{e^{nx}+1}}dx=\frac{2}{n}dy$$
$$\displaystyle \int\sqrt{\frac{e^{nx}}{e^{nx}+1}}dx=\frac{2}{n}y+c=\frac{2}{n}\text{arcsinh}(\sqrt{e^{nx}})+c=\frac{2}{n}\ln(\sqrt{e^{nx}}+\sqrt{e^{nx}+1})+c$$
I am a new beginner so you should encourage me and not demoralize me. Thank you
This argument looks good to me. There doesn't appear to be any reason to restrict to integers here; the works just as well for any real value $n \neq 0$. Note that we can rewrite the antiderivative as $$x + \frac{2}{n} \log\left(1 + \sqrt{1 + e^{-n x}}\right) + C ,$$ which makes the asymptotic behavior as $x \to \infty$ clearer (for $n > 0$, anyway).
Alternatively,