I'm stuck on this problem from Folland's Real Analysis. Here it is.
Let $X$ be a topological space. Let $Y$ be a Hausdorff space. Let $f$ and $g$ be continuous maps from $X$ to $Y$.
a) $\{ x | f(x) =g(x) \}$ is closed
b) if $f=g$ on a dense subset of $X$, then $f=g$ on all of $X$.
My idea is for a) is very vaguely this: make a product space out of the image of $f$ and $g$ (a subset of $Y\times Y$). Show the that the compliment of the desired set is open because $Y$ is hausdorff (not sure how to do this). Then use the continuity of the injections and functions to get a closed set in $X$. Any hints would be greatly appreciated. I haven't made much progress on b). Thanks you in advance.