Fix $\alpha\in \mathbb{R}$. Let $X$ be the interval $[0,1]$ with points $0$ and $1$ identified. Define $f:X\rightarrow X$ such that $f(x)=x+\alpha\mod 1$.
I need to show that $f$ is a homeomorphism.
My idea is to use the fact that $X$ is compact Hausdorff, then we only need to show that it is continuous and bijective. For continuous I'd like to use the distance on $X$: $d(x,y)=\min(|x-y|,1-|x-y|)$. But then I need to calculate $d(x+\alpha \mod\ 1\ ,\ y+\alpha\mod\ 1\ )$, and I'm not so comfortable with that. For bijective, I thought of $f^{-1}(x)=x-\alpha\mod\ 1\ $ but I'm not sure that makes sense on $X$.
Does anyone have a solution to this?