Solution:
Key idea: The denominator has a repeated linear factor (x−1)2 and an irreducible quadratic x2+1. So the partial fractions are x−1A+(x−1)2B+x2+1Cx+D.
Step 1 — Set up the partial fractions.
We write the form and clear the denominators.
(x−1)2(x2+1)x2=x−1A+(x−1)2B+x2+1Cx+D
x2=A(x−1)(x2+1)+B(x2+1)+(Cx+D)(x−1)2
Step 2 — Find B.
We put x=1, which removes the A, C and D terms.
1=2B
B=21
Step 3 — Compare coefficients.
Expanding the right side, the coefficients of x3, x and the constant term give three equations.
A+C=0
A+C−2D=0
−A+B+D=0
The first two equations give D=0; the third then gives A=B.
A=21
C=−21
As a check, the coefficient of x2 on the right is −A+B+D−2C, and with these values it equals 1, matching the left side.
Step 4 — Write the integral in parts.
We put the constants into the partial fractions.
I=21∫x−1dx+21∫(x−1)2dx−21∫x2+1xdx
Step 5 — Integrate each part.
The first part is a logarithm. The second is a power, ∫(x−1)−2dx=−x−11. In the third, x is half the derivative of x2+1.
I=21log∣x−1∣−2(x−1)1−41log(x2+1)+C
Therefore, ∫(x−1)2(x2+1)x2dx=21log∣x−1∣−2(x−1)1−41log(x2+1)+C.