I am learning abstract algebra by myself using Dummit & Foote, and sometimes by working very hard I find very complicated non-proofs of things and I have no idea if they are the best or the worst ideas for those kind of things out there (obviously if they're not working they're probably wrong, but maybe not!). So I feel like talking about it and see what the audience thinks about it. Hence I am asking for a full solution only if you don't feel like giving a hint. If a hint has been given please don't try to come up with the answer and wait for me to accept.
So here's the exercise (page 259, Dummit & Foote's Abstract Algebra) :
Let $R = C[0,1]$ with addition and multiplication as the ring operations. For each $c \in [0,1]$ define $M_c = \{ f \in R \, | \, f(c) = 0 \}$.
It can be easily seen that $M_c$ is a maximal ideal of $R$ because $f(x) = (x-c) \in M_c$ and if $g \notin M_c$ then $g(c) \neq 0$, thus $f^2 > 0$ everywhere except at $c$ and $g^2(c)> 0$, hence $f^2 + g^2$ is a strictly positive continuous function, and since any ideal $I$ such that $M_c \subsetneq I \triangleleft R$ is such that $(M_c,g) \subseteq I$, $f^2 + g^2 \in (M_c,g)$, thus $f^2 + g^2$ is a unit in $(M_c,g)$ and that means that for every $g \notin M_c$, $R = (M_c, g) = I$.
Using this trick with $f^2 + g^2$ I wanted to show the following :
Prove that if $M$ is any maximal ideal of $R$ then there is a real number $c \in [0,1]$ such that $M = M_c$.
I tried considering $K(g) = \{ c \in [0,1] \, | \, g(c) = 0 \}$ and then defining decreasing sequences $K(g) \supsetneq K(g_1) \supsetneq K(g_2) \supseteq \dots$ (using the $f^2 + g^2$ trick) and then looking at the intersection of all those $K$'s but that got me to the weird need of using Zorn's Lemma and got me depressed after multiple tries. Also tried to use the fact that $R/M_c$ is a field but even if I had shown that it was isomorphic to $\mathbb R$ it wasn't clear what I could do in that direction so I gave up pretty fast on that one.
Any hints are welcome!
You seem like you like intuition, so here's some. You are trying to prove something about a ring whose mere definition involves topology. Moreover, it's fairly obvious that this isn't true in general (i.e. you can find topological spaces $X$ for which $\text{MaxSpec}(C(X;\mathbb{R}))\ne{\mathfrak{m}_x:x\in X}$). Thus, you clearly need to use some nontrivial fact about the topology of $[0,1]$. Do any spring naturally to mind? They should, considering precisely what you noticed about the "$f^2+g^2$" problem. Namely, what you can note is that if $f$ doesn't vanish at $x$ on $[0,1]$ and $g$ doesn't vanish at $y$ on $[0,1]$ you can note by continuity that there exists neighborhoods $U,V$ of $x,y$ such that $f,g$ vanish nowhere on either. Aha! But then $f^2+g^2$ vanishes nowhere on $U\cup V$! It seems plausible then that if we assume that we have found an ideal for which there exists no such $c$ (as in the problem) then making an analogous jump we should be able to construct a function $f_x$ for each $x\in[0,1]$ for which $f_x$ doesn't vanish at $x$ and then consider $\displaystyle \sum_{x\in X}f_x^2$ to get a non-vanishing function on $[0,1]$. But, being non-vanishing we have that it's invertible (to a continuous function) and so our ideal contains a unit, and so is all of $C[0,1]$, a contradiction! Of course, this makes no sense since we can't take the infinite sum of all those squared functions. But, if we were somehow able to pick a finite subcollection which still "works" we'd be golden. Topology sounding a little nicer right about now?