Let $R$ be a conmutative local ring, $I$ its maximal ideal. I want to prove that $x\notin I$ implies $x$ unit.
So far I have: Let $x\notin I$, I consider $x+I\in A/I$, which is a field (because $I$ is maximal). So there exists $y+I\in A/I$ such that $(x+I)(y+I)=1+I\Longrightarrow xy+I=1+I$. How do I deduce that $y$ is the inverse of $x$ (which I think it is true). All I have is $xy-1\in I$
Here's a different idea.
Suppose $x \not \in I$. Then since $R$ is local, $x$ must generate $R$ (unless $x=0$). Hence there is some $z \in R$ such that $xz=1$.