By using the Fixed-Point Iteration, I have to find the roots of $f(x)=x^2-x-1=0$
First I write it in terms $x=f(x)$ $$x^2=x+1$$ $$x=1+\frac{1}{x}$$
Then I make a sequence $x_{n+1}=1+\displaystyle\frac{1}{x_n}$
Now I pick $x_1=2$ $$x_{2}=1+\displaystyle\frac{1}{x_1}=1.5$$ $$x_{3}=1+\displaystyle\frac{1}{x_2}=1.6666$$ $$x_{4}=1+\displaystyle\frac{1}{x_3}=1.6$$ $$x_{5}=1+\displaystyle\frac{1}{x_4}=1.625$$ $$x_{6}=1+\displaystyle\frac{1}{x_5}=1.612538462$$
So it is converging to $1.618$ which is the root, but how do I find the other root?
We have $$ x=1+\frac1x\\ x-1=\frac1x\\ \frac{1}{x-1} =x $$ Now use that one and start with $x_1=-1$