Abstract Algebra · Undergraduate

Rings, Integral Domains and Fields

Quick answer

A ring has two operations, addition and multiplication. Under addition it is an abelian group; multiplication is associative and distributes over addition. ℤ, ℤₙ, polynomials and square matrices are rings. In ℤ₆, 2 · 3 = 0 even though neither factor is 0: such zero divisors cannot occur in an integral domain. A field is a commutative ring in which every nonzero element has a multiplicative inverse, so division works: ℚ, ℝ, ℂ and ℤₚ for a prime p. ℤₙ is a field exactly when n is prime.

What you'll learn

  • State the ring axioms and give examples
  • Find the units and zero divisors of ℤₙ
  • Distinguish rings, integral domains and fields
  • Solve linear equations in ℤₚ

Two operations at once

Groups capture one operation. Numbers come with two. A ring is a set with addition and multiplication such that

  1. it is an abelian group under addition, with identity 00;
  2. multiplication is associative;
  3. multiplication distributes over addition: a(b+c)=ab+aca(b + c) = ab + ac and (a+b)c=ac+bc(a + b)c = ac + bc.
StructureExtra requirementExamples
ring—Z\mathbb{Z}, Zn\mathbb{Z}_n, 2×22 \times 2 matrices, polynomials
integral domaincommutative, 1≠01 \ne 0, no zero divisorsZ\mathbb{Z}, Zp\mathbb{Z}_p, polynomials over R\mathbb{R}
fieldcommutative, every nonzero element has an inverseQ\mathbb{Q}, R\mathbb{R}, C\mathbb{C}, Zp\mathbb{Z}_p

A unit is an element with a multiplicative inverse. A zero divisor is a nonzero aa with ab=0ab = 0 for some nonzero bb.

Why ℤₙ is a field exactly when n is prime

If gcd⁡(k,n)=1\gcd(k, n) = 1, the extended Euclidean algorithm gives kx+ny=1kx + ny = 1, so kx≡1kx \equiv 1 and kk is a unit. If nn is prime, every kk from 11 to n−1n - 1 qualifies, so every nonzero element has an inverse. If instead n=abn = ab with 1<a,b<n1 < a, b < n, then a⋅b=n≡0a \cdot b = n \equiv 0: two nonzero elements multiply to 00. A zero divisor can never have an inverse, since ab=0ab = 0 with a−1a^{-1} would give b=a−1ab=0b = a^{-1}ab = 0. So a composite nn makes Zn\mathbb{Z}_n fail to be a field.

Worked examples

Common mistakes

Practice problems

  1. List the units of Z10\mathbb{Z}_{10}.

    Answer

    1,3,7,91, 3, 7, 9

    Full solution

    The kk with gcd⁡(k,10)=1\gcd(k, 10) = 1.

  2. Find a pair of zero divisors in Z15\mathbb{Z}_{15}.

    Answer

    33 and 55

    Full solution

    3⋅5=15≡03 \cdot 5 = 15 \equiv 0.

  3. Is Z11\mathbb{Z}_{11} a field? Find the inverse of 44.

    Answer

    Yes; 4−1=34^{-1} = 3

    Full solution

    1111 is prime, and 4⋅3=12≡14 \cdot 3 = 12 \equiv 1.

  4. Solve 5x=25x = 2 in Z11\mathbb{Z}_{11}.

    Answer

    x=7x = 7

    Full solution

    5−1=95^{-1} = 9 since 45≡145 \equiv 1, so x=9⋅2=18≡7x = 9 \cdot 2 = 18 \equiv 7. Check: 35=3⋅11+235 = 3 \cdot 11 + 2.

  5. Does 2x=12x = 1 have a solution in Z8\mathbb{Z}_8?

    Answer

    No

    Full solution

    2x2x is always even mod 88, so it is never 11; 22 is a zero divisor, not a unit.

  6. Is the set of even integers a ring? Does it have a 11?

    Answer

    It is a ring, without a multiplicative identity.

    Full solution

    It is closed under both operations, but no even ee has e⋅2=2e \cdot 2 = 2.

  7. Explain why a field has no zero divisors.

    Answer

    If ab=0ab = 0 and a≠0a \ne 0, multiply by a−1a^{-1} to get b=0b = 0.

    Full solution

    So every field is an integral domain.

  8. A student cancels the 44 in 4⋅3=4⋅64 \cdot 3 = 4 \cdot 6 in Z12\mathbb{Z}_{12} and concludes 3=63 = 6. What went wrong?

    Answer

    44 is a zero divisor, so it cannot be canceled.

    Full solution

    Canceling means multiplying by 4−14^{-1}, which does not exist because gcd⁡(4,12)=4\gcd(4, 12) = 4.

Frequently asked questions

What is a ring?

A set with addition and multiplication such that it is an abelian group under addition, multiplication is associative, and a(b + c) = ab + ac and (a + b)c = ac + bc.

What is a zero divisor?

A nonzero element a for which ab = 0 for some nonzero b. In ℤ₆, 2 and 3 are zero divisors since 2 · 3 = 0.

What is an integral domain?

A commutative ring with 1 ≠ 0 and no zero divisors, so ab = 0 forces a = 0 or b = 0. ℤ is the model example.

What is a field?

A commutative ring with 1 ≠ 0 in which every nonzero element has a multiplicative inverse. ℚ, ℝ, ℂ and ℤₚ are fields.

When is ℤₙ a field?

Exactly when n is prime. Then every nonzero k has gcd(k, n) = 1 and so an inverse; if n = ab is composite, a and b are zero divisors.

What to learn next