Zero Divisors and Integral Domains
Consider the equation in some ring: does it force or ? In ordinary integers, rationals, or reals, the answer is yes. This fact underlies almost every algebraic manipulation we take for granted. It supports solving polynomial equations by factoring and canceling common terms in an equation. But in the ring , we have even though neither nor is zero. This single observation — that a product of nonzero elements can vanish — is one of the most consequential phenomena in Commutative Rings, Identity, and Units. Elements like and in are called zero divisors. Rings without them (aside from the trivial case) are called integral domains. The distinction matters because cancellation, unique factorization, and the possibility of "solving for " all hinge on this. They depend on the absence of zero divisors. Much of classical algebra takes place inside integral domains. This includes polynomial rings over fields, rings of algebraic integers, and coordinate rings of irreducible varieties. It happens precisely because these are the rings that behave most like the integers. The big picture is a hierarchy of increasingly well-behaved commutative rings. First come general commutative rings, then integral domains, then fields. Each layer adds structural guarantees. Integral domains sit at a crucial waypoint. They lack the full luxury of division — not every nonzero element has an inverse. Yet they retain the cancellation law that makes arithmetic reasoning trustworthy. Understanding zero divisors means understanding exactly what goes wrong. Specifically, what happens when that luxury and that reasoning both fail simultaneously. This article gives the precise definitions of zero divisor and integral domain. It proves the fundamental equivalence between cancellation and the absence of zero divisors. It works through concrete examples and non-examples. It also examines edge cases, such as why the trivial ring and non-commutative settings are deliberately excluded. It closes by pointing toward how integral domains lead directly to Fields and the Field of Fractions construction.
- A zero divisor in a commutative ring is a nonzero element such that for some nonzero .
- An integral domain is a nonzero commutative ring with that has no zero divisors.
- The cancellation law () holds in a ring if and only if it has no zero divisors.
- , any field, and are integral domains; is a domain iff is prime (or ).
- Matrix rings and for composite are the classic non-examples, riddled with zero divisors.
- Key idea: the absence of zero divisors is exactly the algebraic condition that makes multiplication "safe to cancel."
Where this lives today
Integral domains are the backbone of algebraic number theory, where rings of algebraic integers (like ) are studied precisely because they are domains, and unique factorization questions (do they behave like , or fail as in where ?) drive the theory of ideals and class groups. In algebraic geometry, the coordinate ring of an irreducible affine variety is exactly an integral domain, and zero divisors detect reducibility — a variety splits into pieces precisely when its coordinate ring acquires zero divisors. In cryptography, the arithmetic of for composite (as in RSA) is deliberately not a domain, and the zero divisors correspond exactly to elements sharing a factor with ; detecting such zero divisors is equivalent to factoring , which is the hardness assumption underlying RSA's security. In numerical linear algebra and computer science, singular (non-invertible) matrices are zero divisors in matrix rings, and understanding when products of matrices vanish informs rank computations and error analysis. In coding theory, cyclic codes are ideals in quotient rings , and zero divisors in this ring directly correspond to the code's algebraic structure and factorization of .
:::quiz[In , why does fail to make a domain, even though itself is a domain?]
- Being a domain is not preserved by quotienting by every ideal; here factors nontrivially ✓
- was never a domain to begin with
- The quotient map is not well-defined
- is not a real element so the computation is invalid
:::faq[Is the polynomial ring over an integral domain always an integral domain?] Yes. If are nonzero polynomials with leading coefficients and (degrees respectively), then the leading coefficient of is . Since is a domain and are both nonzero, , so has degree exactly and in particular . This argument crucially uses that itself has no zero divisors; it is precisely why is a domain but, for instance, is not (since already has the zero divisor ).
Ask the tutor: Why does an integral domain always embed into a field, and how does the field of fractions construction actually work?
Let be a ring (with identity , not necessarily commutative unless stated).
Zero divisor. A nonzero element is a left zero divisor if there exists a nonzero with , and a right zero divisor if there exists a nonzero with . If is commutative, the two notions coincide, and we simply call a zero divisor.
Integral domain. A commutative ring with is an integral domain if has no zero divisors: that is, for all ,
Equivalently, is an integral domain if and only if is closed under multiplication and (the latter excludes the zero ring, in which ).
Intuition
Think of a ring as a universe of "numbers" where addition and multiplication make sense, but where the multiplicative structure can be far stranger than in ordinary arithmetic. In the integers, multiplying two nonzero numbers always produces a nonzero number — you cannot "cancel out" nonzero quantities against each other. This is such a deeply ingrained fact that it is easy to forget it is a hypothesis, not a theorem true of all rings. The clock arithmetic of reveals the failure vividly. On a clock with hours, "hours" multiplied by "hours" lands exactly on . Neither factor is zero, yet their product collapses to nothing. This happens precisely because is composite: the factors of conspire to produce zero divisors in . When is prime, no such factorization is available, and the ring becomes an integral domain — in fact, a field. Zero divisors also explain why polynomial equations can behave unexpectedly modulo composite numbers. Over , the equation has four solutions (), not the usual two you'd expect from a degree-2 polynomial over a domain. Once zero divisors enter the picture, the elementary link between "degree" and "number of roots" — a link that relies on unique factorization into linear factors — breaks down.
Let be a nonzero commutative ring with . Then the following are equivalent: 1. is an integral domain (i.e., has no zero divisors). 2. For all with : if then (the cancellation law).
We prove and , using only the ring axioms and the definition of integral domain — no result depending on this theorem is invoked.
. Assume has no zero divisors. Let with and . Subtracting (using that is a ring, so subtraction is defined via additive inverses), we get
By the distributive law,
Since and has no zero divisors, the definition of "no zero divisors" states precisely that a product of two elements is zero only if at least one factor is zero. As , we conclude the other factor must vanish:
so . This establishes cancellation.
. Assume the cancellation law holds. We must show has no zero divisors, i.e., that with forces . Suppose and . Since as well (multiplication by always gives , a fact provable directly from the distributive law: , and subtracting from both sides gives ), we have
By hypothesis (2), the cancellation law applied with gives
Since was an arbitrary nonzero element and was arbitrary, this shows: whenever and , we must have . By the commutativity of , this exhausts both orders, so has no zero divisors.
∎Note the proof technique in each direction is direct verification from the axioms: the forward direction uses only distributivity and the definition of "no zero divisors"; the reverse direction uses the elementary lemma (itself proved directly from distributivity, not assumed) together with the hypothesis. Neither direction presupposes properties of fields or unique factorization, so the argument is fully self-contained.
In a commutative ring with , an element satisfies the cancellation property (i.e., for all ) if and only if is not a zero divisor. Consequently is an integral domain exactly when every nonzero element has this cancellation property.
This is the same argument as the theorem, applied to a single fixed rather than universally. If is not a zero divisor, then forces exactly as above, giving cancellation for that . Conversely, if is a zero divisor, there is nonzero with , so but , violating cancellation for that .
∎Worked examples
Example 1: — locating all zero divisors. Let , the integers mod , a commutative ring with . We determine exactly which nonzero elements are zero divisors, using elementary number theory (no assumption about domains is used — we compute directly). Claim: is a zero divisor in if and only if . Proof of claim. Suppose . Let . Since , we have , so , i.e. in . Also . Since , write ; then . So in with : is a zero divisor. Conversely, suppose . We show is not a zero divisor, in fact that is a unit, which certainly implies it is not a zero divisor (if is a unit with inverse and , then multiplying both sides by gives ). By Bézout's identity, since , there exist integers with . Reducing mod 12, , so has a multiplicative inverse in , hence is a unit and not a zero divisor. This proves the claim. Applying this: the integers from to with are (each shares a factor or with ), and these are precisely the zero divisors. The remaining elements are units (each coprime to ). For instance, check directly: , confirming and are zero divisors; and , confirming is its own inverse, hence a unit. This example shows is not an integral domain (it has zero divisors, e.g. ), and moreover illustrates the general fact (foreshadowing Cancellation and Characteristic) that in , an element is a unit iff it's coprime to , and every nonzero non-unit is a zero divisor.
Example 2: The ring — a non-domain disguised as a polynomial ring. Let . Write for the image of in , so in , and every element of has a unique representative of the form with (this is because dividing any integer polynomial by the monic polynomial leaves a remainder of degree , i.e., of the form , and the division algorithm gives uniqueness). Consider the two elements
Both are nonzero in : if then as elements of , but the coset representative of is while 's representative is , and these differ (by uniqueness of representatives, since and don't match), so in ; similarly . Now compute their product using :
So are both nonzero, yet : has zero divisors, and is not an integral domain — even though it is built as a quotient of the polynomial ring , which is an integral domain. This example is instructive: the property of being an integral domain is not automatically inherited by quotient rings. (It survives quotienting by a prime ideal, a fact developed alongside Field of Fractions theory, but is not prime in since it factors nontrivially — consistent with what we just found.) By contrast, (the Gaussian integers ) is an integral domain, because has no roots in and remains irreducible; the difference between and — reducible versus irreducible — is exactly what controls the presence of zero divisors in the quotient.
The theorem's proof of used commutativity implicitly when concluding "cancellation on one side implies no zero divisors on either side." To see genuine trouble when we drop commutativity naively and just mimic the domain condition, consider , the ring of real matrices — a ring with (the identity matrix) that is not commutative. Take
Both are nonzero matrices, yet
So and are zero divisors, and has no chance of being an integral domain — regardless of any cancellation-type property one might hope to salvage. More subtly, this ring illustrates that in the non-commutative setting, "no zero divisors" itself would need to be phrased with left/right care, and even then the cancellation theorem as stated (using subtraction and distributivity alone) still goes through symbol-for-symbol if one fixes a side — the real content that breaks is not the proof mechanics but the definition of integral domain itself, which is conventionally reserved for commutative rings precisely so that "zero divisor" is unambiguous and cancellation is a two-sided, clean notion. This is why the definition explicitly requires commutativity: dropping it doesn't just weaken the theorem, it forces us to rebuild the entire vocabulary (leading instead to the theory of division rings and skew fields, a genuinely different branch).
Scope, edge cases & common traps
| Situation | Is it an integral domain? | Reason |
|---|---|---|
| Yes | No nonzero integers multiply to | |
| Any field | Yes | Every nonzero element is a unit, hence not a zero divisor |
| , prime | Yes | Every nonzero residue is coprime to , hence a unit |
| , composite | No | Any factorization with gives zero divisors |
| Zero ring | No (excluded by convention) | Definition requires |
| for a domain | Yes | Leading coefficients multiply nonzero-to-nonzero (degree argument) |
| (direct product), nonzero rings | No | always |
| , | No | Rank-deficient matrices are zero divisors; also non-commutative |
The mathematician behind it
Origins · 1 minRichard Dedekind and how this was discovered
Dedekind, working in the context of algebraic number theory in the mid-to-late 19th century, was among the first to isolate the algebraic properties that make rings of integers in number fields behave "like" the ordinary integers. His work on ideals — designed to restore unique factorization in rings where it can fail — sits directly upstream of the modern notion of integral domain, since the phrase "integral domain" itself echoes the idea of a ring of integral elements behaving as a coherent, factorization-friendly "domain" of numbers.
Is every field automatically an integral domain?
Yes. If is a field and with , then has a multiplicative inverse (by the field axioms), so multiplying both sides of by gives . Hence no nonzero element of a field can be a zero divisor, so fields are integral domains. The converse is false: is an integral domain but not a field, since has no inverse in . This asymmetry is exactly why "integral domain" is a strictly more general and useful notion than "field" when studying rings like or polynomial rings.
Does being an integral domain really require to be prime?
Yes, with the convention that (or the ring is nontrivial). If is composite, write with ; then in , the residues of and are both nonzero, but their product is , exhibiting zero divisors. If is prime, then every nonzero residue satisfies , so by Bézout's identity has an inverse mod ; this makes not just a domain but a field. So for , "integral domain" and "field" coincide — a special feature of finite commutative rings that fails for infinite domains like itself.
Can an integral domain be infinite and still have every nonzero element be a "near-unit"?
Integral domains can range from fields (where every nonzero element is a unit) to domains with very few units. has only two units, and , yet is an infinite integral domain. Polynomial rings like or over a field are also infinite domains with restricted unit groups (only nonzero constants are units in ). The size of the domain and the size of its unit group are largely independent structural questions; what stays fixed is only the absence of zero divisors.
If is an integral domain, must every subring of also be an integral domain?
Yes, and this is a quick consequence of the definitions. If is a subring (sharing the same , so in too since and in ) and satisfy , then this equation also holds in the larger ring . Since has no zero divisors, or . Hence inherits the no-zero-divisors property directly. This is one direction that behaves simply; by contrast, quotients of domains are not automatically domains, as the counterexample shows.
How does this topic connect to what comes next?
The concept of integral domain is the direct stepping stone to two major constructions. First, every field is a domain, and conversely one asks: which domains can be "completed" into a field? The answer is all of them, via the Field of Fractions construction, which formally adjoins reciprocals the way is built from . Second, the interaction between zero divisors and the additive structure of a ring — specifically, how many times you must add to itself to get — leads to the notion of Cancellation and Characteristic, where domains are shown to have either characteristic or prime characteristic, never composite.
Why does the definition require , rather than just "no zero divisors"?
Without this clause, the trivial ring (where by necessity, since it's the unique element) would vacuously satisfy "no nonzero elements multiply to give a nonzero-times-nonzero-equals-zero situation," simply because it has no nonzero elements at all to test. Mathematicians exclude this degenerate case by fiat, requiring , so that "integral domain" always refers to a ring with at least two elements and genuine multiplicative structure worth studying. This mirrors the analogous convention that the trivial ring is not considered a field.