Let $R$ be the ring of continuous real valued functions on $[0,1]$. I'm trying to prove that every homomorphism $R \mapsto \mathbb{R}$ is of the form
\begin{equation} \phi_t : R \to \mathbb{R} \quad \text{given by} \quad \phi_t(f)= f(t), \end{equation}
This is an exercise from Basic Algebra Nathan Jacobson, section 2.7 exercise 14. And it comes with a hint. Which is the following
Hint: If $\phi \neq \phi_t$ there is an $f_t \in R$ such that $\phi(f_t) \neq f_t(t)$. Then $g_t = f_t - \phi(f_t)1 \in R$ and $g_t(t) \neq 0$ but $\phi(g_t) = 0$. Show that there exist a finite number of $t_i$ such that $g(x) = \sum g_{t_i}^2(x) \neq 0$ for all x. Then $g^{-1} \in R$ but $\phi(g) = 0$.
I was able to show that $\phi(g_t) = 0$, but i don't know how to proceed with the other part of the hint, i think that i can say that the sets $\{ x: g_t(x) \neq 0 \}$ are a finite cover for $[0,1]$, and that for each set i have $t$ in them, so i have finite $t$ such that $g(x) = \sum g_{t_i}^2(x) \neq 0$. (Am i right? or i am missing some details).
Thank you in advance.