Solution:
Key idea: The denominator has a linear factor 1−x and an irreducible quadratic factor 1+x2. The partial fractions are 1−xA+1+x2Bx+D, with a linear numerator over the quadratic.
Step 1 — Set up the partial fractions.
We write the form and clear the denominators.
(1−x)(1+x2)2=1−xA+1+x2Bx+D
2=A(1+x2)+(Bx+D)(1−x)
Step 2 — Find A, B and D.
We put x=1, which removes the second term.
2=2A
A=1
We put x=0 and use A=1.
2=A+D
D=1
We compare the coefficients of x2: the left side has none, and the right side has A−B.
A−B=0
B=1
Step 3 — Write the integral in parts.
We split the second fraction into two simpler fractions.
I=∫1−xdx+∫1+x2xdx+∫1+x2dx
Step 4 — Integrate each part.
The first part gives −log∣1−x∣ because of the minus sign in front of x. The second part gives 21log(1+x2), since x is half the derivative of 1+x2. The third part is tan−1x.
I=−log∣1−x∣+21log(1+x2)+tan−1x+C
Therefore, ∫(1−x)(1+x2)2dx=−log∣1−x∣+21log(1+x2)+tan−1x+C.