I know that this question has been asked before (for example here), but I am looking for a different answer.
Let $X$ be a compact Hausdorff space and consider the commutative Banach algebra $C(X):=\{\text{continuous functions $f\colon X\to\mathbb{C}$}\}$ endowed with the supremum norm. I want to prove that every closed ideal $I\subset C(X)$ is of the form $I_{A}:=\{f\in C(X) \ | \ A\subset f^{-1}\{0\}\}$ for some closed subset $A\subset Y$. I proved that $I_{A}$ is a closed ideal for any subset $A\subset X$. The exercise gives a hint that I should prove and use the following:
Given $f\in I$ and $\varepsilon\in(0,1)$, there exists a continuous map $u\colon X\to\mathbb{C}$ such that
- $u\in I$,
- $u(x)\in[0,1]$ for all $x\in X$,
- $u(x)=0$ whenever $|f(x)|\leq\varepsilon$,
- $u(x)=1$ whenever $|f(x)|\geq1$.
I managed to prove this hint, but still I'm having trouble with the exercise. As the link above suggests, I tried to prove that $I=I_{A}$ where $$A:=\bigcap_{g\in I}g^{-1}\{0\}.$$ Any suggestions on how to prove this using the hint above would be greatly appreciated.