How can I find all solutions using an iteration formula? Take the equation $x^2+7x+10=0$, which has roots $-2$ and $-5$. 
When I use the iteration formula $x_{n+1}=\dfrac{-10}{x_n+7}$, I always converge on $-2$ but not on $-5$. 
I have tried starting values of $-6, -4, -1, 1, 2$ and many others, but I only converge on $-2$. 
Is there something wrong with my iteration formula or starting values?

There is nothing wrong, when considering sequences defined by $x_{n+1}=f(x_n)$ to study if $l$ such that $f(l)=l$ is attractive or repulsive you have to consider $|f'(l)|$:


*

*If $|f'(l)|<1$ this is an attractive point.

*If $|f'(l)|>1$ this is a repulsive point (and there is no hope to converge to $l$ if $x_0 \neq l$).

*If $|f'(l)| =1$ you have to study with more precision the function.



Here $f'(x)=\frac{10}{(x+7)^2}$ so:


*

*$f'(-2)=\frac{10}{25}\in (-1,1)$

*$f'(-5)=\frac{10}{4} >1$


so $-2$ is attractive but $-5$ is repulsive.
