I have a generating function of some real-value sequence given by:
$$f(x) = \frac{(1+x)^2}{(1-x)^4}$$
I need to find the sequence this function generates.
This problem seems to be tricky - to get the denominator part, it looks as if it required differentiation - I could get the expression for
$$\frac{1}{1-x}$$ and differentiate twice - but then the numerator part would spoil everything as it would not fit.
How should I attempt this?
It is convenient to use the coefficient of operator $[x^n]$ to denote the coefficient of $x^n$ of a series.
Comment:
In (1) we use the binomial series expansion.
In (2) we use the linearity of the coefficient of operator, apply the rule $[x^{p-q}]A(x)=[x^p]x^qA(x)$ and use the binomial identity $\binom{-p}{q}=\binom{p+q-1}{q}(-1)^q$.
In (3) we select the coefficients accordingly.