Evaluate $$\int \frac{1-x}{(1+x)\sqrt{x+x^2+x^3}}dx$$ i used substitution $x=\tan^2 y$ so $dx=2\tan y \sec^2 y dy$ so the integral becomes
$$I=\int\frac{2\cos 2y\: \tan y\: \sec^2 y \:dy}{\sqrt{\tan^2 y+\tan^4 y+\tan^6 y}}=\int\frac{2\cos 2y \:\sec^2 y\: dy}{\sqrt{1+\tan^2 y+\tan^4 y}}$$ I was stuck here
Let $$I = \int\frac{1-x}{(1+x)\sqrt{x+x^2+x^3}}dx =\int\frac{(1-x^2)}{(x^2+2x+1)\sqrt{x+x^2+x^3}}dx$$
Now again Reaaranging we get $$I = -\int\frac{\left(1-\frac{1}{x^2}\right)}{\left(x+\frac{1}{x}+2\right)\sqrt{x+\frac{1}{x}+1}}dt$$
Now put $\displaystyle x+\frac{1}{x}+1=u^2\;,$ Then $\displaystyle \left(1-\frac{1}{x^2}\right)dt = 2udu$
So we get $$I = -2\int\frac{1}{u^2+1}du = -2\tan^{-1}(u)+\mathcal{C} = -2\tan^{-1}\left(\sqrt{x+\frac{1}{x}+1}\right)+\mathcal{C}.$$