Recently, I was given a question sheet with a lot of integrals. I could solve all of them except for a particular type of them: \begin{align} &I_1=\int \frac{dx}{(x+1)^2\sqrt{x^2+2x+2}}=-\frac{\sqrt{x^2+2x+2}}{x+1}\\ &I_2=\int \frac{dx}{(x-1)^2\sqrt{x^2-x+1}}\\ &I_3=\int \frac{dx}{(2x+1)\sqrt{x^2-8}}\\ &I_4=\int \frac{dx}{x\sqrt{x^2+x+1}}=\log x + \log\left(x+2+2\sqrt{x^2+x+1}\right) \end{align}
($I_2,I_3$ also are expressible in elementary functions, but they are not that cute.)
The method that wolfram is using (trial pro subscription) is to complete the square inside the roots to transform them to $\sqrt{ax^2+b}$ and then substitute $x=\sqrt{{-b/a}}\sec x$ if $b$ is negative, and $x=\sqrt{{b/a}}\tan x$ if positive. Finally, it uses the tangent half-angle subsitution. I really don't think this is the best way.
The trigonometric substitutions seem to be unnecessary, since at the end we transform back the resulting trigonometric functions into a function that does not rely on trigonometry at all, e.g. $-\csc(\tan^{-1}x)=-{\sqrt{x^2+1}/x}$.
Question: Is there some easy way to deal with the integrals: $$\int\frac{dx}{(ax+b)\sqrt{x^2+c}}, \>\>\>\>\>\int\frac{dx}{(ax+b)^2\sqrt{x^2+c}}$$ without the trigonometric and Weiertrass substitution?
for the type of $\displaystyle \int \frac{1}{(ax+b)^2 \sqrt{cx^2 + dx + e}}dx$, $\displaystyle \frac{1}{ax+b} = t$ transforms into $\displaystyle \frac{at}{\sqrt{bt^2 + ct + d}}$ which can be reduced into standard integrals.
The same seems to work in linear case too. $$\frac{1}{(ax+b) \sqrt{cx^2+ dx + e}} = \frac{at}{t \sqrt{bt^2+ct+d}} = \frac{a}{\sqrt{bt^2+ct+d}}$$