Problem Let $X$ be the subspace $(\leftarrow,-1)\cup [0,\rightarrow)$ of $\Bbb{R}$. Show that the function $f:X\to \Bbb{R}$ defined by $f(x)=x+1$ if $x<-1$ , $f(x)=x$ if $x\geq 0$, is order preserving and surjective. Is $f$ a homeomorphism?
Attempt Given $f:X\to \Bbb{R}$ such that $f(x)=x+1$ if $x<-1$ , $f(x)=x$ if $x\geq 0$.
Take $ a,b\in X$ such that $a<-1,b <-1$. If $a<_Xb$ then $f(a)=a+1<_\Bbb{R} b+1=f(b)$
OTOH, Take $c,d\in X$ such that $c\geq 0$ and $d\geq 0$ if $c<_Xd$ then $f(c)=c<_\Bbb{R}d=f(d)$.
Thus $f$ is order preserving. It is easy to see that $f$ is surjective.
For $f$ is not a Homeomorphism. Is it enough to show that? $f([0,\rightarrow))=[0,\rightarrow)$
$[0,\rightarrow)$ is open in subspace topology but not open in $\Bbb{R}$. Any help or suggestion will be appreciated. Thanks!
You forgot to include the case where $a \in (\leftarrow, -1]$ and $b \in [0,\rightarrow)$ where we also have $a <_{\Bbb R} b$ and then $f(a)=a+1$ and $f(b)=b$ but because $a < -1 < 0 \le b$ we have $$f(a)=a+1 < 0 \le b = f(b)$$ as required too.
If we give $X$ the subspace topology wrt $\Bbb R$, which is the default, then $f$ is not open, as $[0,\rightarrow)$ is open in $X$ (it's $(-1, \rightarrow) \cap X$, so relatively open) but $f[[0,\rightarrow)]= [0,\rightarrow)$ is not open in $\Bbb R$ (As $0$ is not an interior point).
As a final observation: if we'd have given $X$ the order topology (w.r.t. the order it inherits from $\Bbb R$) then $f$ would have been an order isomorphism between $X$ and $\Bbb R$ and also a homeomorphism. So in this case the order topology is different from the subspace topology and it makes a difference for $f$. In the order topology $[0,\rightarrow)$ is not open because $0$ is not an interior point (no open interval, with endpoints in $X$ (!) sits inside it).