## cant simplify?

the main problem im having is i cant figure out how they simplified this equation. Ill try and use latex but its my first time so i dont know if it will work.
$$\int(1-\frac{1}{3(x+1)}+\frac{(x-2)}{3(x^2-x+1)}) dx$$
and somehow this simplifies to this
$$x- (1/3)ln(abs(x+1)) +(1/6) \int \frac{(2x-1)}{(x^2-x+1)} dx - (1/2) \int \frac{(dx)}{(x-.5)^2+(3/4)}$$
i understand how to get the x-(1/3)ln(2x-1) but i dont get how they seperated the other two terms for integration. or how they pulled out (1/6)
 Given $$\int\frac{(x-2)}{3(x^2-x+1)}\, dx$$, multiply the numerator and denominator by 2 and rewrite the numerator as (2x-1)-3.
 Mentor Ok, well the third term in the integrand of the original question is $$\frac{(x-2)}{3(x^2-x+1)}=\frac{(2x-4)}{6(x^2-x+1)}=\frac{(2x-1)}{6(x^2-x+1)}-\frac{3}{6(x^2-x+1)}=\frac{1}{6}\frac{(2x-1)}{(x^2-x+1)}-\frac{1}{2}\frac{1}{(x^2-x+1)}=\frac{1}{6}\frac{(2x-1)}{(x^2-x+1)}-\frac{1}{2}\frac{1}{(x-\frac{1}{2})^2+\frac{3}{4}}$$ where the last step in the denominator of the second term is done by completing the square.

## cant simplify?

ok i understand what is going on now, but why do we chose to multiply the numerator and denominator by 2, and why do we chose 2 rather than any other number.

 Quote by trajan22 ok i understand what is going on now, but why do we chose to multiply the numerator and denominator by 2, and why do we chose 2 rather than any other number.
Multiplying by 2 allows the fraction to be rewritten so that part of it is in the form du/u, which can be integrated to to get ln(abs(u))

-GeoMike-

 Quote by trajan22 ok i understand what is going on now, but why do we chose to multiply the numerator and denominator by 2, and why do we chose 2 rather than any other number.
Why don't you tell us what you arrive at after using some other number/method? If it's more effective, we'll ditch the earlier one.

At an glance, you might think that this is solvable by the substitution u = x2- x +1, but once you do it, you'll realise where the 2 comes from.