<s>[INST] Integrate $\int{\frac{1}{x^2-x+1}dx}$ Original question was to integrate $$\int{\frac{(x+1)}{x^2-x+1}dx}$$ 
But I was able to break it into 2 parts: $$\frac{1}{2}\int{\frac{2x-1}{x^2-x+1}dx}+\frac{3}{2}\int{\frac{1}{x^2-x+1}dx} $$ 
The first part $\frac{1}{2}\int{\frac{2x-1}{x^2-x+1}dx}$ could be easily integrated by substituting $u={x^2-x+1}$ and thus, getting $\frac{\ln(x^2-x+1)}{2}$ as the answer. But I have no idea on how to integrate part 2 of the equation.
Any help will be appreciated.
 [/INST] Hint : $x^2-x+1=\left(x-\frac{1}{2}\right)^2+\frac{3}{4}$.
</s>