Let $f,g:X\rightarrow \mathbb{R}$ continuous functions .If $X$ is open set,then the following set is open:$A=\{x \in X;f(x)\neq g(x)\}$.
And if $X$ is a closed set , then the following set is closed : $F=\{x \in X;f(x)= g(x)\}$.
I thought like this:
For the set A,$f(x) < g(x)$ or $f(x)>g(x)$.
Int he first case ,I did:
For every $a \in A$ ,there is an open interval $I_a$ ,with center $a$, such that :
$\{a\}\subset X\cap I_a\subset A.$ From that,we have:
$\bigcup_{a_\in A} \{a\} \subset \bigcup_{a_\in A}(X \cap I_a) \subset A$,that is:
$A\subset X(\bigcup_{a_\in A} I_a) \subset A.$
But,how $X$ is open , then A is open.
In the set $F=X- \{x\in X;g(x)<f(x) \}$...Then ,I´m stucked in this problem...