Problem
Let $R$ be a ring of continuous functions from $\mathbb{R}$ to $\mathbb{R}$. Show that $A = \{f \in R \mid f(0)=0\}$ is a maximal ideal of $R$.
If $f,g \in A$, then $f-g(0) = f(0)-g(0) = 0$ . So $f-g$ is in $A$. Also $f(0) h(0) = 0$ for all $h \in R$. So $A$ is an ideal.
Attempt to show $A$ is maximal
If $R/A$ is a field then $A$ is maximal. Let $f \notin A$. Then $f(0) \neq 0$. Let $g(x)=0$. Then $f-g \in A$. So $f+A = g+A$. $1/g$ is the inverse of $g$. So $f$ has unity (not sure about this).
Is this correct?
Your proof that $A$ is an ideal works, although strictly speaking, you also need to check that $0 \in A$ (which shouldn’t be a problem).
Your proof that $A$ is maximal does not work in its current form. You’re right that it sufficies to show that $R/\!A$ is a field, and that for this you need to show that for $f \in R$ with $f \notin A$ the element $f + A \in R/\!A$ has an inverse. The problem is that your choice of $g$ and how you work with it makes no sense:
You choose $g(x) = 0$, i.e. $g = 0$ is the (constant) zero function. But then $$ (f - g)(0) = f(0) - g(0) = f(0) \neq 0 $$ and therefore $f - g \notin A$ (and thus also $f + A \neq g + A$).
The function $1/g$ does not exists.
Your approach can be fixed by making the right choice for $g$:
A different approach to the problem would be to use a suitable isomorphism theorem: