A commutative ring is an integral domain when it has no zero divisors: or . It is a field when every nonzero element is invertible. Every field is an integral domain ( and give ).
Examples
Example 7.19 (Idempotents: new phenomena in new rings)
In , the equation , i.e. , has only the solutions and . In , testing all classes: , , and — four idempotents. The two exotic ones come from zero divisors: with neither factor zero. Such computations calibrate one’s instincts: familiar facts about equations survive in integral domains and fields, but a general ring can and does behave differently — see also the Boolean rings of Exercise 7.10, where every element is idempotent.
Example 7.26 (How many square roots of ?)
Solve in and in . Testing the eight classes mod : , , , — four solutions , even though the polynomial has degree . In the field , by contrast, means , and a field has no zero divisors: , two solutions only. The failure mod is traceable: without either factor vanishing. Moral: the familiar rule “a degree- equation has at most roots” is a theorem about integral domains (Corollary 8.8 proves it over fields); in rings with zero divisors it silently fails — which is exactly why the pairing proof of Wilson’s theorem (Exercise 6.11) needed prime.