I found the following question in a practice book of integration:-
$Q.$ Evaluate $$I=\int \frac{\sqrt{2-x-x^2}}{x^2}\mathrm dx$$
For this, I substituted $$t^2=\frac {2-x-x^2}{x^2}\implies x^2=\frac{2-x}{1+t^2}\implies 2t\mathrm dt=\left(-\frac4{x^3}+\frac 1{x^2}\right)\mathrm dx$$. Therefore $$\begin{align}I&=\int\frac {\sqrt{2-x-x^2}}{x^2}\mathrm dx\\&=\int \left(\frac tx\right)\left(\frac{2t\mathrm dt}{-\frac4{x^3}+\frac 1{x^2}}\right)\\&=\int \frac{2t^2\mathrm dt}{\frac{x-4}{x^2}}\\&=\int \frac{2t^2(1+t^2)\mathrm dt}{{x-4}\over{2-x}}\\&=\int \frac{2t^2(1+t^2)(5+4t^2-\sqrt{8t^2+9})\mathrm dt}{\sqrt{8t^2+9}-(8t^2+9)}\end{align}$$ Now, I substituted $8t^2+9=z^2 \implies t^2=\frac {z^2-9}8 \implies 2t\mathrm dt=\frac z4\mathrm dz$. So, after some simplification, I get $$\begin{align}I&=-\frac1{512}\int (z^2-9)(z+1)(z-1)^2\ dz\end{align}$$ I didn't have the patience to evaluate this integral after all these substitutions knowing that it can be done (I think I have made a mistake somewhere but I can't find it. There has to be an $\ln(\dots)$ term, I believe). Is there an easier way to do this integral, something that would also strike the mind quickly? I have already tried Euler substitutions but that is also messy.