First of all, thank you for taking the time to read my post. Secondly, this is a question I got as a part of homework. However, the professor allows us to work in groups so I'm hoping that this is okay. First I will state the question, without actual numbers in the problem. I hope this will not affect the solution a lot. Also, I'm interested in the general methodology than the actual solution.
Question
Let $f(x) = e^{-x}.$
a) Show that the sequence $x_{n+1} = f(x_n)$ converges to a unique fixed point $z\in[a,b]$ for any initial value $x_0\in [a,b].$
b) Also show that the sequence $x_{n+1} = f(x_n)$ converges to the unique fixed point $z\in[a,b]$ for any initial value $x_0\in (-\infty,a)\cup(b,\infty).$
My attempt
So, I did part (a) using the contraction mapping theorem. I first proved that $f$ is a contraction on $[a,b]$ and then I showed that $f$ maps $[a,b]$ into itself. Then by the contraction mapping theorem, (a) follows directly.
For (b) however, the contraction mapping theorem couldn't be used because the interval is not a complete subset of the reals. I tried to show that for any initial point($x_0$), $x_1$ lies in $[a,b]$ so that the sequence would eventually lie within $[a,b]$ and then everything follows from part (a). Unfortunately, that didn't work either. Is there any way I can tackle the problem?
Thank you!
Hint: if you can show that there is some $n_0$ and a compact interval $I$ such that $x_{n_0} \in I$ no matter what $x_0$ is and $f(I) \subseteq I$, then you can just apply the contraction mapping principle to $\{ x_{n_0},x_{n_0+1},\dots \}$. In this case there is such an $n_0$ and it isn't that big.