A nonzero element of a commutative ring is a zero divisor if some nonzero satisfies . In a noncommutative ring, left and right zero divisors must be distinguished. The nonzero requirement on both factors is part of the usual convention.
In , the classes of two and three are zero divisors because their product is zero. A commutative ring with identity, , and no zero divisors is an integral domain. Cancellation by a nonzero factor is valid in an integral domain but can fail in a ring with zero divisors: modulo six, although .
In a commutative ring, an element is a non-zero-divisor when multiplication by is injective: implies . Equivalently, permits cancellation to , since . In , the class of fails this condition because , while the class of satisfies it because it is a unit in a ring.
For a noncommutative ring, multiplication on the left and on the right can have different null spaces. The implication specifies the left-multiplication condition; the two-sided condition additionally requires . Stating the commutative setting or the side of multiplication prevents these distinct notions from being conflated.