I have a problem with calculating this integer:
$\int \frac{dx}{x-\sqrt{x^2-x+1}}$
I found this after some calculations:
$\int \frac{dx}{x-\sqrt{x^2-x+1}} = \int 1dx + \int \frac{dx}{x-1} + \int \frac{\sqrt{x^2-x+1}}{x-1} = x + ln|x-1| + \int \frac{\sqrt{x^2-x+1}}{x-1}$
I have no ideas what to do with this part: $ \int \frac{\sqrt{x^2-x+1}}{x-1} $, but maybey my approach is wrong
Could someone give me a helping hand?
For the inetgral $I= \int \frac{dx}{x-\sqrt{x^2-x+1}} $, you can use Euler's substitution, let $\sqrt{x^2-x+1}=x+t$
$$\Rightarrow x=\frac{1-t^2}{1+2t},~~ dx=-\frac{2 (1 + t + t^2)}{(1 + 2 t)^2}dt$$
$$\Rightarrow I= \int \frac{2 (1 + t + t^2)}{t(1 + 2 t)^2}dt$$
Next, you can use partial fraction to solve it.