Problem 253
Hard Partial Fractions

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

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

Explanation of Method

Since $1+x^3=(1+x)(x^2-x+1)$, the factor $1+x$ is actually repeated in the denominator, giving $(1+x)^2(1+x^2)(x^2-x+1)$. Setting up partial fractions correctly — with a squared linear factor and two distinct irreducible quadratics — reduces the integral to logarithms and arctangents.

  1. Factor $1+x^3$ to reveal the repeated root at $x=-1$.
  2. Decompose into partial fractions with the correct repeated-factor structure.
  3. Solve for the coefficients.
  4. Integrate each term.

Step 1 · Factor and identify the repeated root

$$ 1+x^3=(1+x)\left(x^2-x+1\right) \quad\Rightarrow\quad (1+x)(1+x^2)(1+x^3) = (1+x)^2(1+x^2)(x^2-x+1). $$

The factor $(1+x)$ is repeated. A partial-fraction ansatz that treats $1+x$, $1+x^2$, $1+x^3$ as three independent simple factors misses this repetition and cannot succeed — it under-counts the degrees of freedom needed to match the denominator.

Step 2 · Correct partial fraction setup

$$ \frac{1}{(1+x)^2(1+x^2)(x^2-x+1)} = \frac{A}{1+x} + \frac{B}{(1+x)^2} + \frac{Cx+D}{1+x^2} + \frac{Ex+F}{x^2-x+1}. $$

Step 3 · Solve for the coefficients

Setting $x=-1$ isolates $B$: the other terms vanish except $B(1+x^2)(x^2-x+1)$, giving $1=B(2)(3)$, so $B=\tfrac16$.

Setting $x=i$ (a root of $1+x^2=0$) isolates $C,D$: $1=(Ci+D)(1+i)^2(i^2-i+1) = (Ci+D)(2i)(-i) = 2(Ci+D)$, so $Ci+D=\tfrac12$, giving $C=0,\ D=\tfrac12$.

Setting $x=\omega=e^{i\pi/3}$ (a root of $x^2-x+1=0$) isolates $E,F$: working through $(E\omega+F)(1+\omega)^2(1+\omega^2)=1$ and separating real and imaginary parts gives $F=0,\ E=-\tfrac13$.

Matching the $x^5$ coefficient, $A+C+E=0$, then gives $A=\tfrac13$.

Step 4 · Integrate each term

$$ \int\frac{1/3}{1+x}\,dx = \frac13\ln|1+x|, \qquad \int\frac{1/6}{(1+x)^2}\,dx = -\frac1{6(1+x)}, \qquad \int\frac{1/2}{1+x^2}\,dx=\frac12\arctan x. $$

For the last term, split $x=\tfrac12(2x-1)+\tfrac12$:

$$ -\frac13\int\frac{x\,dx}{x^2-x+1} = -\frac16\int\frac{(2x-1)\,dx}{x^2-x+1} - \frac16\int\frac{dx}{x^2-x+1} = -\frac16\ln\left(x^2-x+1\right) - \frac{\sqrt3}{9}\arctan\left(\frac{2x-1}{\sqrt3}\right). $$

Step 5 · Combine

$$ I = \frac13\ln|1+x| - \frac1{6(1+x)} + \frac12\arctan x - \frac16\ln\left(x^2-x+1\right) - \frac{\sqrt3}{9}\arctan\left(\frac{2x-1}{\sqrt3}\right) + C. $$


Summary Table

Coefficient Value
$A$$1/3$
$B$$1/6$
$C$$0$
$D$$1/2$
$E$$-1/3$
$F$$0$

Additional Notes

Result

The solution to the integral is:

$$ I = \frac13\ln|1+x| - \frac16\ln\left(x^2-x+1\right) - \frac1{6(1+x)} + \frac12\arctan x - \frac{\sqrt3}{9}\arctan\left(\frac{2x-1}{\sqrt3}\right) + C. $$