Let $X$ and $Y$ be two any sets and let $f:X\rightarrow Y$ be a function sucht that $x_{1}\equiv x_{2}\Leftrightarrow f\left( x_{1}\right) =f\left( x_{2}\right)$.
My question is: How can I find equivalence classes of this? I think, the classes are the set of ''önimge'' (''önimge'' is in Turkish, I don't remember English of 'önimge', sorry. But, if $f^{\sim 1}\left( B\right)$ is ''önimge'' than $f^{\sim 1}\left( B\right) =${$ x\in X:f\left( x\right)\in B\subseteq Y$} ).