A homework question from my algebra class asks:
Show that in a local ring $R$ with maximal ideal $M$, every element outside $M$ is a unit.
My argument is that since $M$ is maximal $R /M $ is a field and so for any $ x \in R \backslash M $, $ x + M $ has a multiplicative inverse, which implies $ x $ is a unit.
I don't see where we need the fact that $R$ is a local ring.
You need to use the fact that every non-unit is contained in a maximal ideal. To prove it is an easy application of Zorn's lemma, but is probably a theorem in your book. Let $x$ be an element outside of $M$. If it is not a unit, it is contained in a maximal ideal. Since $R$ is local, there is only one maximal ideal, $M$. This is a contradiction, so $x$ must be a unit.