<s>[INST] How to decompose $\frac{1}{(1 + x)(1 - x)^2}$ into partial fractions Good Day.
I was trying to decompose $$\frac{1}{(1 + x)(1 - x)^2}$$ into partial fractions.
$$\frac{1}{(1 + x)(1 - x)^2} = \frac{A}{1 + x} + \frac{B}{(1 - x)^2}$$
$$1 = A(1 - x)^ 2 + B(1 + x)$$
Substitute $x = 1$, $$B = \frac{1}{2}$$
Substitute $x = -1$, $$A = \frac{1}{4}$$
However, $$\frac{1}{4(1 + x)} + \frac{1}{2 (1 - x)^2}$$ doesn't seem to equal $$\frac{1}{(1 + x)(1 - x)^2}$$
How do we decompose this into partial fractions?
Thanks
 [/INST] Hint: $$1=\frac{(1+x)+(1-x)}2.$$ This should make the exercise trivial.
</s>