Let $f_n$ be the sequence of Fibonacci numbers. We need to show that
$$\sum_{n\ge0} f_n x^n = \dfrac{1}{1-x-x^2}$$
I remember a solution when we are using the generating functions like:
$f(x) = F_0 + F_1x + F_2 x^2 + F_3x^3$ Then multiply by $x$ and $x^2$ both sides and get $(1-x-x^2)f(x) = F_0 + (F_1-F_0)x=x$ and the result follows.
However I don't quite understand how this works. Also I would like to come up to similar expressions for $\sum_{n\ge0} f_{2n} x^n$ and $\sum_{n\ge0} f_{2n+1} x^n$.
Here's a not-so-rigorous look at the question.
The Fibonacci Numbers are defined by the relationship
$$f_{n+2}=f_{n+1}+f_{n}$$
Multiplying by $x^{n+2}$ on both sides, we obtain
$$f_{n+2}x^{n+2}=x\times f_{n+1}x^{n+1}+x^2\times f_{n}x^{n}$$
Summing as $n$ ranges from zero to infinity, we have
$$\sum ^\infty _{n=0} f_{n+2}x^{n+2}=x\times \sum ^\infty _{n=0} f_{n+1}x^{n+1}+x^2\times \sum ^\infty _{n=0} f_{n}x^{n}$$
We can rewrite this as
$$\left(\sum ^\infty _{n=0} f_{n}x^{n}-f_{1}x-f_{0}\right)=x\times \left(\sum ^\infty _{n=0} f_{n}x^{n}-f_{0}\right)+x^2\times \sum ^\infty _{n=0} f_{n}x^{n}$$
Re-arranging the equation, we have
$$\sum ^\infty _{n=0} f_{n}x^{n}(1-x-x^2)=x(f_0+f_1)+f_0$$
From which the result follows.