Unit in a ring (source code)

= Unit in a ring
{wiki=Unit_(ring_theory)}

= Unit
{synonym}

A <unit> in a unital <ring> $R$ is an element $u$ with a two-sided <multiplicative inverse> $v\in R$:
$$
uv=vu=1.
$$
The <ring> is part of the condition. In $\mathbb Z$ the only <units> are $1$ and $-1$, whereas every nonzero <rational number> is a <unit> in $\mathbb Q$. Modulo six, $5$ is a <unit> because $5\cdot5\equiv1\pmod6$, while $2$ is a <nonunit>.

In a nonzero <ring>, zero is never a <unit>, since $0v=0\ne1$. Every <unit> has <multiplicative cancellation>, but a cancellable element need not be a <unit>: $2$ can be cancelled in the <integers>, yet its <reciprocal> is not an <integer>. The <units> form the <unit group> of the <ring>.