Answer
$$\ln \left| x \right| - \frac{1}{2}\ln \left( {{x^2} + x + 1} \right) - \frac{1}{{\sqrt 3 }}{\tan ^{ - 1}}\left( {\frac{{2x + 1}}{{\sqrt 3 }}} \right) + C$$
Work Step by Step
$$\eqalign{
& \int {\frac{{dx}}{{x\left( {{x^2} + x + 1} \right)}}} \cr
& {\text{The partial fraction decomposition of the integrand is}} \cr
& \frac{1}{{x\left( {{x^2} + x + 1} \right)}} = \frac{A}{x} + \frac{{Bx + C}}{{{x^2} + x + 1}} \cr
& {\text{Multiplying by }}x\left( {{x^2} + 1} \right){\text{ yields}} \cr
& 1 = A\left( {{x^2} + x + 1} \right) + x\left( {Bx + C} \right) \cr
& 1 = A{x^2} + Ax + A + B{x^2} + Cx \cr
& {\text{Collecting like powers of }}x{\text{, this becomes}} \cr
& 1 = A{x^2} + B{x^2} + Ax + Cx + A \cr
& {\text{Equating corresponding coefficients yields the following system }} \cr
& {\text{of linear equations}} \cr
& \,\,\,\,\,A + B = 0 \cr
& \,\,\,\,\,\,\,A + C = 0 \cr
& \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,A = 1 \cr
& {\text{Solving the system of linear equations we obtain}} \cr
& \,\,\,A = 1,\,\,\,B = - 1,\,\,\,C = - 1 \cr
& \cr
& {\text{Then}}{\text{, the integrand can be written as}} \cr
& \frac{1}{{x\left( {{x^2} + x + 1} \right)}} = \frac{1}{x} - \frac{{x + 1}}{{{x^2} + x + 1}} \cr
& \int {\frac{{dx}}{{x\left( {{x^2} + x + 1} \right)}}} = \int {\left( {\frac{1}{x} - \frac{{x + 1}}{{{x^2} + x + 1}}} \right)} dx \cr
& = \int {\frac{1}{x}} dx - \int {\frac{{x + 1}}{{{x^2} + x + 1}}dx} \cr
& {\text{completing the square for }}{x^2} + x + 1 \cr
& = \int {\frac{1}{x}} dx - \int {\frac{{x + 1}}{{\left( {{x^2} + x + 1/4} \right) + 3/4}}dx} \cr
& = \int {\frac{1}{x}} dx - \int {\frac{{x + 1}}{{{{\left( {x + 1/2} \right)}^2} + 3/4}}dx} \cr
& = \int {\frac{1}{x}} dx - \int {\frac{{x + 1/2 + 1/2}}{{{{\left( {x + 1/2} \right)}^2} + 3/4}}dx} \cr
& = \int {\frac{1}{x}} dx - \int {\frac{{x + 1/2}}{{{{\left( {x + 1/2} \right)}^2} + 3/4}}dx} - \int {\frac{{1/2}}{{{{\left( {x + 1/2} \right)}^2} + 3/4}}dx} \cr
& {\text{Integrating}} \cr
& = \ln \left| x \right| - \frac{1}{2}\ln \left| {{{\left( {x + 1/2} \right)}^2} + 3/4} \right| - \frac{1}{2}\left( {\frac{2}{{\sqrt 3 }}} \right){\tan ^{ - 1}}\left( {\frac{{x + 1/2}}{{\sqrt 3 /2}}} \right) + C \cr
& = \ln \left| x \right| - \frac{1}{2}\ln \left( {{x^2} + x + 1} \right) - \frac{1}{{\sqrt 3 }}{\tan ^{ - 1}}\left( {\frac{{2x + 1}}{{\sqrt 3 }}} \right) + C \cr} $$