I need to compute the integral $\int \dfrac{2x}{(x^2+x+1)^2} \cdot dx$. I tried using the integration of a rational function technique, with $\frac{Ax+B}{x^2+x+1}+\frac{Cx+D}{(x^2+x+1)^2}$, but this simply returned $C=2$ and $A,B,D = 0$, so it doesn't really change anything.
I also tried using a $u$ substitution, setting $u=x^2+x+1$. This made the numerator $2x=\frac{du}{dx}-1$, but I'm not really sure if I can do that/how to solve an integral with a derivative as a part of it.
How would I go about solving this?
Thanks for your time.
Apply integration by parts to $$\int\frac{1}{x^2+x+1} dx$$ and extract your desired integral from the result.