Define an equivalence relation on a topological space $(X,\tau)$ as $x\sim y$ iff $\overline{\{x\}}=\overline{\{y\}}$.
I want to show that each equivalence class $[x]$ is closed in $X$.
My attempt: Let $y\in X\backslash[x]$. Then $y\notin [x]$ which means that $[x]\neq[y]$. Because $(X\backslash \sim)$ is $T_{0}$, we have an open set $O\subseteq (X\backslash \sim)$ containing $[y]$ and not containing $[x]$. Because $f:X\longrightarrow (X\backslash \sim)$ is continuous, we have $y\in f^{-1}(O)\in \tau$ and $x\notin f^{-1}(O)$. It's easy to see that $f^{-1}(O)\subseteq X\backslash[x]$ which shows that $X\backslash[x]$ is open. Thus $[x]$ is closed.
What if $O$ contains $[x]$ and not $[y]$? How would I show that $X\backslash[x] $ is open under that case? That is my problem.
Or is $[x]$ not necessarily closed in $X$?.
Note that the classes of $\sim$ are exactly the sets $\overline{\{x\}}$, where $x$ ranges over $X$: these closures are disjoint or they are the same: if $z \in \overline{\{x\}} \cap \overline{\{y\}}$, then $\overline{\{x\}} = \overline{\{y\}} = \overline{\{z\}}$. So the classes are closed in $X$ (which means the standard quotient space is $T_1$).