Prove
For any topological space $Y$ and any continuous maps $f, g : Y → X$, the set $\{y ∈ Y : f(y) = g(y)\}$ is closed in $Y$
is equivalent to
The diagonal $∆ = \{(x, x) : x ∈ X\}$ is a closed subset of $X × X$, in the product topology.
I've proved that the diagonal being closed is equivalent to $X$ being Hausdorff, and also proved that the diagonal closed implies the coincidence set is closed but can't do the reverse implication, any hints? Have tried to show the complement is open, ie there is an open neighbourhood about each point, but can't seem to find a useful way to use the coincidence set being closed. The functions $f, g$ seem to be mapping the 'wrong way' as it were, so not sure how their continuity can be used.