Evaluate $$ \int \frac{\mathrm{d}x}{x\sqrt{x^2+x+1}} \cdotp $$
My attempt: $$ I = \int \frac{\mathrm{d}x}{x\sqrt{x^2+x+1}} = \int \frac{\mathrm{d}x}{x\sqrt{\left(x + \frac{1}{2}\right)^2 + \left( \frac{\sqrt{3}}{2} \right)^2}} $$
I thought completing the square would bring the integrand into some form, but it did not. Please help.
Hint: I know a way. The integral of form $$\int\frac{dx}{(x-n)^m\sqrt{ax^2+bx+c}}$$ could be solved by taking $x-n=1/t.$. If you do this, then the whole integral will change to a integral of form $\int\frac{P(x)dx}{\sqrt{ax^2+bx+c}}$. Try this. Tell me if you can do the last one or not.