I need to find the full Taylor expansion of $$f(x)=\frac{1+x}{1-2x-x^2}$$
Any help would be appreciated. I'd prefer hints/advice before a full answer is given. I have tried to do partial fractions\reductions. I separated the two in hopes of finding a known geometric sum but I could not.
Edit: I guess you could say that I did not have the.... insight to take the path with the partial decomposition mentioned. I have done some work (I had to go to the gym that is why it took a while)
$$\frac{1+x}{1-2x-x^2}=\frac{1}{2(\sqrt{2}-x-1)}-\frac{1}{2(\sqrt{2}+x+1)}$$ I am going to work with this to go further.
I got to this:
$$\frac{1}{2}\left(\sum_{n=0}^\infty\frac{x^n}{(\sqrt{2}-1)^{n+1}}+\sum_{n=0}^\infty\frac{x^n}{(-\sqrt{2}-1)^{n+1}}\right) $$ But I think this is wrong for some reason.
Edit: Figured it out.
$$\begin{align*} \implies\frac{1+x}{1-2x-x^2}&=\frac{1}{2(\sqrt{2}-x-1)}-\frac{1}{2(\sqrt{2}+x+1)} \\[2mm] &=\frac{1}{2}\left(\frac{1}{a-x}-\frac{1}{b+x}\right) \mbox{where $a=\sqrt{2}-1$ and $b=\sqrt{2}+1$}. \\[2mm] &=\frac{1}{2}\left(\frac{1}{a} \frac{1}{1-\frac{x}{a}}-\frac{1}{b} \frac{1}{1-\frac{x}{-b}}\right) \\[2mm] &=\frac{1}{2}\left(\frac{1}{a}\sum_{n=0}^\infty \frac{1}{a^n}x^n-\frac{1}{b}\sum_{n=0}^\infty\frac{1}{(-b)^n}x^n\right) \\[2mm] &=\frac{1}{2}\left(\frac{1}{\sqrt{2}-1}\sum_{n=0}^\infty \frac{1}{(\sqrt{2}-1)^n}x^n-\frac{1}{\sqrt{2}+1}\sum_{n=0}^\infty\frac{1}{(-\sqrt{2}-1)^n}x^n\right) \\[2mm] &=\frac{1}{2}\left(\sum_{n=0}^\infty\frac{x^n}{(\sqrt{2}-1)^{n+1}}+\sum_{n=0}^\infty\frac{x^n}{(-\sqrt{2}-1)^{n+1}}\right) \\ &=1+3x+7x^2+17x^3+\ldots \end{align*}$$
Hint: $1 - 2x - x^2 = 2 - (1 + 2x + x^2) = 2 - (x + 1)^2 = (\sqrt{2} - (x + 1))(\sqrt{2} + (x + 1))$