Problem 231
Easy Roots and Binomials

Evaluate the integral: I = integral (x³)/(x²+x+1) dx

Evaluate the integral: $$ I = \int \frac{x^3}{x^2+x+1}\,dx. $$

Explanation of Method

Polynomial long division reduces the improper fraction to a polynomial plus a proper remainder, which resolves to the standard arctangent integral after completing the square.

  1. Divide $x^3$ by $x^2+x+1$.
  2. Integrate the polynomial part.
  3. Complete the square and integrate the remainder.

Step 1 · Polynomial long division

$$ \frac{x^3}{x^2+x+1} = x-1+\frac{1}{x^2+x+1}. $$

Step 2 · Integrate the polynomial part

$$ \int (x-1)\,dx = \frac{x^2}{2} - x. $$

Step 3 · Integrate the remainder

Completing the square, $x^2+x+1=(x+\tfrac12)^2+\tfrac34$, and using the standard arctangent formula:

$$ \int \frac{dx}{x^2+x+1} = \frac{2}{\sqrt3}\arctan\left(\frac{2x+1}{\sqrt3}\right) + C. $$

Step 4 · Combine

$$ I = \frac{x^2}{2} - x + \frac{2}{\sqrt3}\arctan\left(\frac{2x+1}{\sqrt3}\right) + C. $$


Summary Table

Piece Antiderivative
$x-1$$x^2/2-x$
$1/(x^2+x+1)$$\tfrac{2}{\sqrt3}\arctan\!\left(\tfrac{2x+1}{\sqrt3}\right)$

Additional Notes

Result

The solution to the integral is:

$$ I = \frac{x^2}{2} - x + \frac{2}{\sqrt3}\arctan\left(\frac{2x+1}{\sqrt3}\right) + C. $$