$$\int \frac{x\ln\left(x+\sqrt{x^{2}+1}\right)}{\sqrt{x^{2}+1}}dx$$
I honestly have been struggling with this integral for 2 hours straight and none of my methods (including substitution and integration by parts) have worked. I desperately need help...
Set $u=x+\sqrt{x^2+1}$ so $$x^2+1=(u-x)^2=u^2-2ux+x^2\implies x=\frac{u^2-1}{2u}$$and $$\frac{du}{dx}=1+\frac{x}{\sqrt{x^2+1}}=\frac{u}{u-x}=\frac{2u^2}{u^2+1}.$$Since $\frac{x}{\sqrt{x^2+1}}=\frac{x}{u-x}=\frac{u^2-1}{u^2+1}$, the integral is $$\int\frac{u^2-1}{2u^2}\ln u du=\frac{1}{2}(\int \ln u du-\int \ln y dy)$$with $y=1/u$, so the result is $$\frac{1}{2}((u+\frac{1}{u})\ln u-u + \frac{1}{u})+C.$$Using $\frac{1}{u}=\sqrt{x^2+1}-x$, we can simplify this to $$\sqrt{x^2+1}\ln (x+\sqrt{x^2+1})-x+C.$$