Integral Domains and Fields
What You’ll Learn
Section titled “What You’ll Learn”In this lesson you’ll learn what an integral domain is, why zero divisors break cancellation, exactly when is a field, and the theorem that every finite integral domain is automatically a field.
The Concept
Section titled “The Concept”Integral domains
Section titled “Integral domains”An integral domain is a commutative ring with unity and no zero divisors:
The name comes from , the prototype. The condition is exactly what you assume every time you solve an equation by factoring: from you conclude or , and that step is only valid in an integral domain.
Cancellation
Section titled “Cancellation”In an integral domain, if and , then .
Proof: , so . Since and there are no zero divisors, . ∎
This is the practical payoff. Cancellation is so familiar that its failure is genuinely disorienting.
| × | 0 | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 1 | 0 | 1 | 2 | 3 | 4 | 5 |
| 2 | 0 | 2 | 4 | 0 | 2 | 4 |
| 3 | 0 | 3 | 0 | 3 | 0 | 3 |
| 4 | 0 | 4 | 2 | 0 | 4 | 2 |
| 5 | 0 | 5 | 4 | 3 | 2 | 1 |
Zeros appear off the top row and left column: 2 × 3 = 0 and 3 × 4 = 0. Row 2 reads 0, 2, 4, 0, 2, 4, repeating, so 2x = 2y does not force x = y.
Identity: 1. Cells holding it mark inverse pairs.
Look at row 2: it reads . The value 2 appears twice, at and . So while : cancellation fails outright.
Compare a prime modulus.
| × | 0 | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 0 |
| 1 | 0 | 1 | 2 | 3 | 4 |
| 2 | 0 | 2 | 4 | 1 | 3 |
| 3 | 0 | 3 | 1 | 4 | 2 |
| 4 | 0 | 4 | 3 | 2 | 1 |
The only zeros sit in row 0 and column 0. Every other row is a rearrangement of 1, 2, 3, 4, so every nonzero element has an inverse.
Identity: 1. Cells holding it mark inverse pairs.
No stray zeros, and every nonzero row contains a 1. That’s a field.
Fields
Section titled “Fields”A field is a commutative ring with unity in which every nonzero element has a multiplicative inverse.
Equivalently: is an abelian group, is an abelian group, and multiplication distributes over addition. Two groups sharing a set, glued by distributivity.
Every field is an integral domain. If with , multiply by :
So no zero divisors exist. The converse fails: is an integral domain and not a field, since 2 has no integer reciprocal.
When is a field?
Section titled “When is Zn\mathbb{Z}_nZn a field?”is a field is prime.
Both directions are short.
If is composite, write with . Then and are nonzero in but . Zero divisors exist, so it isn’t even an integral domain.
If is prime and , then , so Bézout gives integers with . Reducing mod : , so .
Because these fields are so important they get a name: , or for “Galois field.”
Every finite integral domain is a field
Section titled “Every finite integral domain is a field”Here’s a result with no analogue for infinite rings.
A finite integral domain is a field.
Proof: let be a finite integral domain and . Consider the map from to . It’s injective, because implies by cancellation. An injective map from a finite set to itself is surjective, so something maps to 1: there is an with . ∎
So is invertible. Finiteness is what forces it - the same argument fails for , where is injective but misses 1 because the set is infinite.
This is why the distinction between domain and field, which matters a great deal for and , evaporates in the finite world.
Characteristic
Section titled “Characteristic”The characteristic of a ring with unity is the smallest positive with
and if no such exists.
, , , all have characteristic 0. has characteristic .
The characteristic of an integral domain is 0 or prime. Suppose it were composite, with . Then in the ring, , and neither factor is 0 because is the smallest such value. That’s a zero divisor, contradiction. ∎
In characteristic , the identity holds, because all the middle binomial coefficients are divisible by . Sometimes called the “freshman’s dream,” it’s false over and true in characteristic , and it underlies a good deal of finite field theory.
Worked Examples
Section titled “Worked Examples”Example 1: Is an integral domain?
Solution. , so and are nonzero in but .
No. Zero divisors exist, so not a domain and certainly not a field.
The units are , of size , and the other six nonzero elements are zero divisors.
Example 2: Solve in .
Solution. Test all eight:
Solutions: - four of them.
Over a field, factors as and has at most two solutions. Here has zero divisors, the factoring argument fails, and a quadratic gets four roots.
A polynomial of degree over a field has at most roots. That familiar fact needs the field hypothesis, and this example is what goes wrong without it.
Example 3: Find in .
Solution. is prime, so the inverse exists. Look for with .
For larger moduli, use the extended Euclidean algorithm rather than trial: it finds with in a handful of steps regardless of size.
Example 4: Is an integral domain?
Solution. Commutative ✓, unity is the constant polynomial 1 ✓.
Zero divisors: if and are nonzero with leading terms and , then has leading term . Since has no zero divisors, , so .
Yes, an integral domain. Not a field, since has no inverse: any forces , so both are constants, and is not.
Generally, is an integral domain exactly when is. The degree argument above is where the hypothesis gets used.
Example 5: A finite domain must be a field.
Verify the theorem on by exhibiting the inverses.
Solution. is a finite integral domain, so the theorem promises a field.
Check a couple: ✓, ✓.
Every nonzero element inverted, as promised.
Example 6: Characteristic of a product.
Find the characteristic of .
Solution. The unity is . Adding it to itself times gives , which is exactly when and .
Since 12 is composite, this ring cannot be an integral domain - and indeed with both factors nonzero.
Example 7: The freshman’s dream.
Verify in .
Solution. Expand normally:
In characteristic 3, , so both middle terms vanish:
Check with : left side ; right side ✓.
This map is the Frobenius endomorphism, and it is the engine of finite field theory.
Real-World Applications
Section titled “Real-World Applications”Cryptography. Elliptic-curve cryptography works over for a large prime , and needing a field rather than just a ring is essential: the group law on the curve involves dividing by coordinate differences. Over with composite that division can fail, and the failure leaks a factor of - the basis of Lenstra’s elliptic-curve factoring method.
Reed–Solomon codes. QR codes, CDs, DVDs and spacecraft telemetry use codes over finite fields. Decoding solves linear systems, which requires inverting elements, which requires a field. The field is usually , so one field element is exactly one byte.
Hash tables and pseudorandom generators. Choosing a prime modulus makes the arithmetic happen in a field, so every nonzero multiplier is invertible and no probe sequence gets trapped in a short cycle. Composite moduli create zero divisors and, with them, degenerate behaviour.
Computer algebra. Whether an algorithm applies depends on the ring type: Gaussian elimination needs a field, the Euclidean algorithm needs a Euclidean domain, factoring behaves differently over and . Systems like SageMath dispatch on exactly the distinctions in this lesson.
Fixed-width integer bugs. 32-bit arithmetic is , which is riddled with zero divisors. Code assuming that a * b == a * c implies b == c is assuming an integral domain it does not have, and this is a genuine source of security vulnerabilities.
Retrying will remove your ✅ checkmark until you pass again.