Let $X\subset \Bbb R$ be a topological space $(-\infty , -1) \cup [0 , \infty)$ equipped with the subspace topology on $\mathbb{R}$. Show that the function $f \colon X \to \Bbb R$ defined by $$f(x)=\begin{cases}x+1 &\text{if} \ x <-1 \\ x &\text{if} \ x \geq 0,\end{cases}$$ is order preserving surjective. Furthermore, is $f$ a homeomorphism?
I was reading this article and I got some clues and hints from it but, I'm not getting how to tackle with this problem.
Your function is order preserving because, if $x,y\in X$ and $x<y$, then
And it is surjective, because, if $\in\mathbb R$:
And it is not a homomorphism, because $X$ is not connected, whereas $\mathbb R$ is.