TITLE: $S^1$ is homeomorphic to $[0, 1]/ \{0, 1\}$.
QUESTION [5 upvotes]: How can I able to show that $S^1$ is homeomorphic to $[0, 1]/ \{0, 1\}.$ 

I am learning quotient topology from K.D.Joshi's Introduction to GENERAL TOPOLOGY book.
Where he mentioned that,
"Let $f: X\to Y$ be a surjective function. Then $f$ determines an equivalence relation $R$ on $X$ defined by $x R y$ iff $f(x) = f(y)$. The equivalence classes of $R$ are precisely the inverse images of singleton subsets of $Y$. Now let $D$ be the collection of all equivalence classes under $R$. $D$ is called the quotient set of $X$ by $R$ and is also denoted by $X/R$.
There is a canonical function $p : X \to X/R$, called the projection which assigns to each $x \in X$, its equivalence class under $R$. The function $\theta : Y \to 
X/R$ defined by $\theta(y) = p(x)$ for any $x \in f^{-1}(y)$ is obviously a well-defined 
bijection.    
Suppose now that $X, Y$ are topological spaces and that $f$ is a quotient map. On $X/R$, we put the strong topology generated by the projection function $p$. The function $\theta$ then becomes continuous as its composite with $f$ viz., $\theta\circ f$ is continuous. Similarly $\theta^{-1}$ is continuous. Thus $\theta$ is now not merely a bijection but a homeomorphism. Thus, up to a topological equivalence, we may identify the quotient space $Y$ with the quotient space $X/R$ and the quotient map $f$ with the projection $p$.
$S^1$ is homeomorphic to the quotient space of $[0, 1]$ obtained from the
decomposition $D$ whose members are ${0, 1}$ and all singleton sets $\{x\}$ for $0 < x < 1$.
By his notations How can I find $f$ and $\theta$. Can someone help me please?
Please explain elaborately since I am very new to the subject and I have no teacher to learn from. Thank you.

REPLY [3 votes]: The function $f:[0,1] \to S^1$, defined by $f(x) = (\cos(2\pi x), \sin(2\pi x))$, is surjective and continuous and has the property that $f(x) = f(x')$ iff ($x = x'$ or $\{x,x'\} = \{0,1\}$). So the decomposition $R$ from $f$ of $[0,1]$, as in the first paragraph, is exactly your $D$ from below. So here $X = [0,1], Y = S^1$. The $\theta$ from $S^1$ to $X/R$ is just (as defined in the first paragraph) the function that maps a point $(\cos(2\pi x),\sin(2\pi x))$ on the circle to the equivalence class of $x$, where we ensure that $x \in [0,1]$. Any point on the circle can be written that way.