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
The form you chose $$\frac{1}{(1 + x)(1 - x)^2} = \frac{A}{1 + x} + \frac{B}{(1 - x)^2}$$ is not general enough - your calculation proves this. It is clear apriori, since why should $1$ be expressible in the form $A(1-x)^2 + B(1+x)$? There are $3$ constraints (the coefficient of $x^2$ should be $0$, as well as that of $x$, and the constant term should be $1$), but you've allowed only $2$ degrees of freedom $A,B$.
The general form which allows decomposing any fraction into partial fractions can be found e.g. in Wikipedia (see specifically the examples where it is the easiest to understand it).
Specifically for your problem, the form you should try to decompose into is
$$\frac{1}{(1 + x)(1 - x)^2} = \frac{A}{1 + x} + \frac{B}{1 - x} + \frac{C}{(1-x)^2}.$$