Bài 5 $\int \frac{dx}{1+x+\sqrt{1+x^2}}$
đặt $\sqrt{1+x^2}= -x+t$
$\Rightarrow x^2+1= x^2-2xt+t^2$
$\Rightarrow x=\frac{t^2-1}{2t}$
$\Rightarrow dx= \frac{t^2+1}{2t^2}dt$
Từ đó ta có:
$I= \frac{1}{2} \int \frac{t^2+1}{t^2(t+1)}dt$
$=\frac{1}{2}(\frac{1}{t^2}+\frac{2}{t+1}-\frac{1}{t})$
$=\frac{1}{2}( -\frac{1}{t} +2 \ln|t+1|-\ln|t|)$