DATA:
Let $f:X\rightarrow Y$ be a surjective function. Define a relation $\sim$ on $X$ by $$a\sim b~\iff~f(a)=f(b).$$ Let $S=X/{\sim}$, namely let $S$ be the set of equivalence classes of elements of $X$ under the equivalence relation $\sim$. Define a function $q:X\rightarrow S$ by $$\forall~a\in X~q(a)=[a].$$ Lastly, define $\overline{f}:S\rightarrow Y$ by $$\forall~a\in X~\overline{f}([a])=f(a).$$
QUEST:
$\dagger_1\hspace{0.5cm}$Is $\overline{f}$ well-defined?
$\dagger_2\hspace{0.5cm}$Is $\overline{f}$ a surjection? $\leftarrow$ Unsure about this one.
$\dagger_3\hspace{0.5cm}$Is $\overline{f}$ an injection?
KNOWN:
$\overline{f}\circ q = f$ $\leftarrow$ What is the utility of this for the quest?
DIAGRAM:
$\hspace{4.6cm}$
THOUGHTS:
$\dagger_1^{\star}\hspace{.5cm}$"$\overline{f}$ well-defined": $ [a]=[b]\implies \overline{f}([a])=\overline{f}([b])$
$\dagger_2\hspace{.5cm}$"$\overline{f}$ surjection": Want to show that $\forall ~y\in Y~\exists~[x]\in S$ s.t. $\overline{f}([x])=y$ $\leftarrow$ ???
$\dagger_3^{\star}\hspace{.5cm}$"$\overline{f}$ injection": Want to show that $\overline{f}([a])=\overline{f}([b])\implies [a]=[b]$
$\star$ denotes the ones I think I've got so far.
ATTEMPT:
$\dagger_1^{\star}\hspace{.5cm}$ $[a]=[b]\implies a\sim b \iff f(a)=f(b) \implies \overline{f}([a])=\overline{f}([b])$
$\dagger_2\hspace{.5cm}$ ...PENDING... $\leftarrow$ Unsure about this one.
$\dagger_3^{\star}\hspace{.5cm}$ $f([a])=f([b])\implies f(a)=f(b) \iff a\sim b \implies [a]=[b]$
NOTES:
I suspect $q$ is to be used for the surjection proof.
The answer is yes. Suppose $a\sim b$. Then $f(a) = f(b)$. So the map $[a]\mapsto f(a)$ is well-defined.
Suppose $f(a) = f(b)$. Then $a\sim b$ so $[a] = [b]$; $\overline f$ is 1-1.
It is easy to see that the image of X under $f$ is equal to that of the image of $X/{\sim}$ under $\overline f$. Therefore it is onto.