Let $I:=[-1,1]$ and $Q$ the quotient space where we identified $-1$ and $1$. Show hat $Q$ is homeomorphic to the unit circle $S^1\subseteq \mathbb{R}^2$.
My first idea was to define $g\colon I\to S^1$ by $x\mapsto (\cos(2\pi x), \sin(2\pi x))$, but then the map $f$ satisfying $g=f\circ p$, where $p$ is the quotient map, seems not to be injective. Any hints?
$$x \mapsto (\cos(\pi x), \sin(\pi x))$$