I have to solve the following problem:
We say that a ring is "local" when it has only one maximal ideal. Prove that the elements that are out of the maximal ideal are units.
I know that if $A$ is a ring and $\mathfrak{a}$ its ideal, $\mathfrak{a}$ is a maximal ideal of $A$ when it is proper and when it satisfies the following: $\mathfrak{a}\subseteq\mathfrak{b}\subseteq A \Rightarrow \mathfrak{b}=\mathfrak{a}$ or $\mathfrak{b}=A $.
I have started like this:
Let we have $\mathfrak{a}$, the maixmal ideal of $A$ (the one and only). We know that $\mathfrak{a}\neq A $ and if $\mathfrak{a}\subseteq\mathfrak{b}\subseteq A$, $\mathfrak{b}=\mathfrak{a}$ or $\mathfrak{b}=A $.
Lets suppose first that $\mathfrak{b}=\mathfrak{a}$, and lets we take an element, $x$, which is in $A$ but which is not in $\mathfrak{a}$.
I don't know how to follow... I don't know if I'm going from the right way... Can someone help me?