I try to get back on track with the integration. I would like to solve
$$ \int_0^1 \frac{dx}{(1+x^2)\sqrt{1+x^2}}.$$
There are my way to try to solve it (that I don't find the right solution) and an other way proposed in the book that I don't understand :
Answer : $\frac{1}{\sqrt{2}}$.
My way : $$ \int_0^1 \frac{dx}{(1+x^2)\sqrt{1+x^2}} = \int_0^1 (1+x^2)^{\frac{-3}{2}}dx $$ With the substitution : $t = 1+x^2$ $$ \int_0^1 (1+x^2)^{-\frac{3}{2}}dt = \int_1^2 2tt^{-3/2}dt = 2\int_1^2 t^{-1/2}dt = 4\sqrt{t}|^2_1 = 4\sqrt{2}-3$$ which is wrong.
I don't know if I did something that I wasn't allowed.Book's way.
With the substitution : $x = \tan(t)$ $$ \int_0^{\pi/4} \frac{1+\tan^2(t)}{(1+\tan^2(t))\sqrt{1+\tan^2(t)}}dt = \int_0^{\pi/4} \cos(t) dt = \sin(t)|^{\pi/4}_0 = \frac{1}{\sqrt{2}}.$$ How did they find that was equal to $\cos(t)$ ? How did they find that would be a good idea to substitute with $\tan$ ?