I've been looking into the following question:
(It is also given that $X$ is Hausdorff)
I couldn't understand the answer given (I tried to ask in the comments, but it was many months ago so no one looks at it any more).
It is suggested that if $y \in f(D) \cap f(X\backslash D)$, then there are $x_1 \in D, x_2 \notin D$ such that $f(x_1) = f(x_2) = y$. Since $X$ is Hausdorff we can find open disjoint $V_1, V_2$ such that $x_1 \in V_1, x_2 \in V_2$. So far so good.
Then it is claimed that $y$ has an open neighbourhood $U_2$ such that $f(V_2 \cap D) = U_2 \cap f(D)$. I do understand that $f(V_2 \cap D)$ should be open in $f(D)$ - what I don't understand is why this $U_2$ is necessarily a neighbourhood of $y$.