$$\frac{1-7x}{(1-x)^2(1+x)} = \frac{1-7x}{(1-x^2)(1-x)} = \frac{A}{1-x}+\frac{Bx+C}{1-x^2}$$ implies $1-7x = A-Ax^2+Bx-Bx^2+C-Cx$
Equating $x^2,x$ terms and constant on both sides, we get $$A+B = 0,\quad B-C=-7,\quad A+C=1$$ Therefore $$A+C=7,\quad A+C=1.$$
I am wondering how to resolve it into partial fractions to get the integration. I am not sure if I missed something, though it looks silly.
Thanks for any help.
Your decomposition is not correct and it gives you an unsolvable system of constraints for the coefficients. Note that the multiplicity of the factor $(1-x)$ at the denominator is TWO. Hence the partial fraction decomposition should be $$\frac{1-7x}{(1-x)^2(1+x)} = \frac{A}{1-x}+\frac{B}{(1-x)^2}+\frac{C}{1+x} = \frac{(C-A)x^2 + (B-2C) x +(A+B+C)}{(1-x)^2(1+x)} .$$ Can you take it from here?