Given the problem:
What is the coefficient of $x^{2005}$ in the generating function $G(x) = \frac{1}{(1-x)^2(1+x)^2}$?
The solution posted starts with:
Let $\frac{1}{(1-x)^2(1+x)^2} = \frac{A}{1-x} + \frac{B}{(1-x)^2} + \frac{C}{1+x} + \frac{D}{(1+x)^2}$. Upon simplification, the right hand side becomes:
$$\frac{(C-A)x^3 + (B+D-A-C)x^2 + (A+2B-C-2D)x + (A+B+C+D)}{(1-x)^2(1+x)^2}$$
What step-by-step solution did he follow in order to come up with this kind of ordered simplification? I'm sure he used extended binomial theorem to do this but can anyone give me a proper explanation how he applied that to this problem?