Problem 269
Hard Partial Fractions

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

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

Explanation of Method

Decomposing into partial fractions over the repeated linear factor $x^3$ and the repeated irreducible quadratic factor $(x^2+1)^2$ reduces the integral to logarithms, power-rule terms, and arctangents via the standard reduction formula for $\int dx/(x^2+1)^2$.

  1. Set up the partial fraction decomposition.
  2. Solve for the coefficients by matching polynomial coefficients.
  3. Integrate each term.

Step 1 · Set up partial fractions

$$ \frac{x+1}{x^3(x^2+1)^2} = \frac Ax + \frac{B}{x^2} + \frac{C}{x^3} + \frac{Dx+E}{x^2+1} + \frac{Fx+G}{(x^2+1)^2}. $$

Multiplying through by $x^3(x^2+1)^2$:

$$ x+1 = Ax^2(x^2+1)^2 + Bx(x^2+1)^2 + C(x^2+1)^2 + (Dx+E)x^3(x^2+1) + (Fx+G)x^3. $$

Step 2 · Solve for the coefficients

Expanding the right side and matching coefficients by degree of $x$ (the left side is $0\cdot x^7+\cdots+0\cdot x^2+1\cdot x+1$):

$$ x^0:\ C=1 \qquad x^1:\ B=1 \qquad x^2:\ A+2C=0\Rightarrow A=-2 $$

$$ x^6:\ A+D=0\Rightarrow D=2 \qquad x^5:\ B+E=0\Rightarrow E=-1 $$

$$ x^3:\ 2B+E+G=0\Rightarrow G=-1 \qquad x^4:\ 2A+C+D+F=0\Rightarrow F=1 $$

Step 3 · Integrate the power-of-$x$ terms

$$ \int\left(\frac{-2}x+\frac1{x^2}+\frac1{x^3}\right)dx = -2\ln|x| - \frac1x - \frac1{2x^2}. $$

Step 4 · Integrate the $(x^2+1)$ term

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

Step 5 · Integrate the $(x^2+1)^2$ term

Using $\int\dfrac{x\,dx}{(x^2+1)^2}=-\dfrac1{2(x^2+1)}$ and the reduction formula $\int\dfrac{dx}{(x^2+1)^2}=\dfrac{x}{2(x^2+1)}+\dfrac12\arctan x$:

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

Step 6 · Combine everything

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


Summary Table

Coefficient Value
$A$$-2$
$B$$1$
$C$$1$
$D$$2$
$E$$-1$
$F$$1$
$G$$-1$

Additional Notes

Result

The solution to the integral is:

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