Lời giải:
Đặt \(u=\ln (x+\sqrt{x^2+1}); dv=\frac{1}{\sqrt{x^2+1}}dx\)
\(\Rightarrow du=\frac{dx}{\sqrt{x^2+1}}; v=\int \frac{x}{\sqrt{x^2+1}}dx=\frac{1}{2}\int \frac{d(x^2+1)}{\sqrt{x^2+1}}=\sqrt{x^2+1}\)
\(\Rightarrow \int \frac{x\ln (x+\sqrt{x^2+1})}{\sqrt{x^2+1}}dx=\int udv=uv-vdu=\sqrt{x^2+1}\ln (x+\sqrt{x^2+1})-\int dx\)
\(=\sqrt{x^2+1}\ln (x+\sqrt{x^2+1})-x+C\)