let $f:X\to Y$ continuous, open and onto. Then $ Y $ is Hausdorff if and only if the set $ \{(x, y): f (x) = f (y) \} $ is closed. I already did the one for $ Y$ is Hausdorff so the set is closed. Someone help me to come, I don't know how to do it.
Let $A=\{(x, y): f (x) = f (y) \}$. What I will prove is that the $ A'$ is open. Let $ x, y \in A'$. So, $ f (x) \neq f (y) $, since $ Y $ is $ T_2 $, then we have $ U_ {f (x)} $ and $ V_ {f (y)} $ two open such that $ U_ {f (x)} \cap V_ {f (y)} = \varnothing. $ Now, $$f^{-1}(U_ {f (x)}) \cap f^{-1}(V_ {f (y)})=f^{-1}(U_ {f (x)} \cap V_ {f (y)} )=f^{-1}(\varnothing)=\varnothing $$
From there we will already obtain that $ A '$ is open, so $ A $ is closed. The other implication is missing.
Supposed that $A$ is closed and $u\ne v$, $u,v\in Y$. Since $f$ is onto, then there exist $x,y\in X,$ such that $u=f(x)$ and $v=f(y)$.
Note that the open subsets of $Y\times Y$, in the standard product topology, are exactly the arbitrary unions of products of open subsets of $Y$.
Since $\big(f(x),f(y)\big)\in Y\times Y\setminus A$, which is open, there exist $U,V\subset Y$, open, such that $$ \big(f(x),f(y)\big)\in U\times V\subset Y\times Y\setminus A. $$ Clearly $u=f(x)\in U$ and $v=f(y)\in V$.
If $z\in U\cap V$, then $(z,z)\in U\times V$ and hence $(z,z)\in Y\times Y\setminus A$. Contradiction.
Therefore, $Y$ is a Hausdorff space.