TITLE: Is every commutative ring contained in a field?
QUESTION [8 upvotes]: I imagine the answer to this question is very simple, but I haven't been able to locate it.
Can every commutative ring be imbedded in a field? This seems very plausible to me, for it seems we could just take the "closure" under inverses. 
Thanks!

REPLY [3 votes]: Let $R$ be a commutative ring. Define $\bar Q(R)=R\times (R-\{0\})$ as the set of pairs $(r,s)$ with $r,s\in R$ and $s\not=0$. We define the equivalence relation
$$(r,s)\sim(r',s')\quad:\Leftrightarrow\quad rs'=sr'.$$
We define $Q(R):=\bar Q(R)/\!\!\sim$ and give it a ring structure (denoting by $x$ the equivalence class that contains $x$) via
$$(r,s)+(r',s')=(rs'+sr',ss'),\qquad (r,s)\cdot (r',s')=(rr',ss').$$
This turns out to be well-defined if and only if $R$ was an integral domain. Then $Q(R)$ will be a field $-$ the field of fractions. Think of $(r,s)\in Q(R)$ as the fraction $r/s$ or the element $rs^{-1}$. $R$ can be embedded into $Q(R)$ via  $r\mapsto(rx,x)$ for arbitrary $x$. The zero and unity of $Q(R)$ are $(0,x)$ and $(x,x)$ respectively. A non-zero element $(r,s)$ has the inverse $(s,r)$.