Algebra, Geometry and Trigonometry at a Glance

Rings and Fields in Brief for Readers New to Abstract Algebra

A gentle introduction to rings and fields through integers, clock arithmetic and polynomials, with the rules that separate them.

Key takeaways

  • A ring has addition, subtraction and an associative multiplication that distributes over addition.
  • A field is a commutative ring with a nonzero identity element 1 in which every nonzero element has a multiplicative inverse.
  • Arithmetic modulo n forms a field exactly when n is a prime number.
  • Some rings contain zero divisors or lack unique factorization, so habits from school arithmetic need to be checked.
  • Fields are the natural setting for solving equations and for linear algebra, and finite fields power many digital codes.

A ring is a collection of things you can add, subtract and multiply while the familiar rules mostly keep working. A field is a ring in which you can also divide by anything except zero. The integers are the standard example of a ring, and the rational numbers are the standard example of a field.

Both words are technical labels. A ring in this sense has nothing to do with circles, and a field is unrelated to the fields of physics, such as magnetic fields. Each is simply a name for a list of rules that a system either satisfies or does not.

These two ideas let mathematicians ask which facts of arithmetic depend on the numbers themselves and which follow from the rules alone. The answers are sometimes surprising: in some perfectly good systems, two nonzero things multiply to zero.

The rules of a ring

A ring is a set with two operations, called addition and multiplication, such that:

  • addition is associative and commutative, there is a zero, and every element a has a negative −a;
  • multiplication is associative;
  • multiplication distributes over addition from both sides: a(b + c) = ab + ac and (b + c)a = ba + ca.

Most books also require a multiplicative identity 1, and this article does too. Some authors drop that requirement, so check the convention in whatever you read. Multiplication need not be commutative. When it is, you have a commutative ring.

Notice what is missing: nothing promises that you can divide. In the integers, 2x = 1 has no solution, because 1/2 is not an integer. The integers are a ring and not a field.

The extra demand of a field

A field is a commutative ring in which 1 ≠ 0 and every element a ≠ 0 has an inverse a⁻¹ with a · a⁻¹ = 1. Division by a then means multiplication by a⁻¹.

The rational numbers, the real numbers and the complex numbers are all fields. So is the set of numbers a + b√2 with a and b rational. The only nontrivial point is division, and a standard trick handles it:

1 / (3 + √2) = (3 − √2) / ((3 + √2)(3 − √2))
             = (3 − √2) / (9 − 2)
             = 3/7 − (1/7)√2

The result has the same form, with rational coefficients. The same method works for any nonzero element, because a² − 2b² cannot be zero for rationals a and b that are not both zero, as √2 is irrational.

Each level adds a requirement to the one below
Field Every nonzero element has an inverse. Example: rationals Integral domain Commutative, no zero divisors. Example: integers Commutative ring ab = ba. Example: integers modulo 6 Ring Add, subtract, multiply. Example: 2 by 2 matrices Field Every nonzero element has an inverse. Example: rationals Integral domain Commutative, no zero divisors. Example: integers Commutative ring ab = ba. Example: integers modulo 6 Ring Add, subtract, multiply. Example: 2 by 2 matrices

Clock arithmetic as a testing ground

Take the numbers 0 to n − 1 and keep only the remainder after dividing by n. This is the ring of integers modulo n, for n at least 2.

Modulo 6, something odd happens: 2 · 3 = 6, which leaves remainder 0. Two nonzero elements have product zero. Such elements are called zero divisors. An element like 2 cannot then have an inverse, because multiplying 2 · 3 = 0 by that inverse would force 3 = 0.

Modulo 7 behaves much better. Every nonzero element has a partner:

Element 1 2 3 4 5 6
Inverse modulo 7 1 4 5 2 3 6

For instance, 3 · 5 = 15, which is 1 more than 14. In general, integers modulo n form a field exactly when n is prime. When n is prime, the Euclidean algorithm and its extension give a fast way to find each inverse.

Maps between rings, and an old arithmetic check

Algebraists compare rings using maps that respect both operations. Such a map, called a ring homomorphism, sends sums to sums, products to products and 1 to 1.

Taking remainders is the key example. Sending each integer to its remainder modulo 9 respects addition and multiplication. So if a calculation is correct among the integers, it must remain correct among the remainders.

This justifies the old check called casting out nines, since a number leaves the same remainder modulo 9 as the sum of its digits. Test the claim 347 × 29 = 10,063:

347   → 3 + 4 + 7 = 14 → remainder 5
29    → 2 + 9 = 11     → remainder 2
5 × 2 = 10             → remainder 1
10063 → 1 + 0 + 0 + 6 + 3 = 10 → remainder 1

The remainders agree. Agreement does not prove the answer right, because many wrong answers share that remainder; swapping two digits would go unnoticed. Disagreement, though, proves there is a mistake.

The elements sent to zero by a homomorphism always form an ideal, an idea you will meet again below. Collapsing an ideal to zero produces a new ring, called a quotient ring, just as treating all multiples of 9 as zero produces arithmetic modulo 9.

Polynomials and matrices

Polynomials with rational coefficients form a commutative ring. You can add and multiply them, but 1/x is not a polynomial, so it is not a field. This ring resembles the integers closely: there is division with remainder, a version of the Euclidean algorithm and unique factorization into irreducible pieces. The overview of polynomials explores that parallel.

Square matrices of a fixed size 2 or larger give a noncommutative ring. Matrix multiplication depends on order, and zero divisors are common. The matrix with a single 1 in the upper right corner and zeros elsewhere squares to the zero matrix without being zero itself.

Functions form rings too. All continuous real functions on an interval can be added and multiplied point by point.

When factorization stops being unique

In the integers, every number greater than 1 factors into primes in just one way, apart from order. It is tempting to assume this always holds.

Consider numbers a + b√−5 with a and b integers. They form a ring, and in it:

6 = 2 · 3
6 = (1 + √−5)(1 − √−5) = 1 + 5

None of the four factors can be broken down further within this ring, and they are not just sign changes of one another. So 6 has two genuinely different factorizations.

Nineteenth-century mathematicians, notably Ernst Kummer and Richard Dedekind, repaired the situation by working with special subsets called ideals. An ideal is a collection closed under addition and under multiplication by any ring element, such as all multiples of 5 in the integers. In suitable rings, including this one, ideals factor uniquely. This is a starting point of algebraic number theory.

Why fields suit equations

In a field, the linear equation ax = b with a ≠ 0 always has exactly one solution. Also, if a product is zero, one of the factors is zero, which is the step you use when solving a quadratic by factoring. As a consequence, a nonzero polynomial of degree n has at most n roots in a field.

That can fail in a ring. Modulo 8, the equation x² = 1 has four solutions: 1, 3, 5 and 7.

Fields can also be enlarged to hold missing roots, as when √2 is added to the rationals. Comparing a field with its enlargements is the heart of Galois theory. The same viewpoint shows why certain ruler-and-compass constructions cannot be done, including squaring the circle, which also depends on a hard fact about π.

Characteristic: when adding 1 repeatedly returns to zero

In any ring you can form 1, 1 + 1, 1 + 1 + 1 and so on. In the rational numbers this never returns to zero. In arithmetic modulo 5, it does so after five steps.

The smallest number of copies of 1 that add to zero is called the characteristic of the ring. If no number of copies works, the characteristic is 0. For a field, the characteristic is always either 0 or a prime. If it were 6, say, then (1 + 1) times (1 + 1 + 1) would be zero with neither factor zero, which no field allows.

This number changes which formulas make sense. The quadratic formula divides by 2a, so it fails in characteristic 2, where 2 equals 0. Meanwhile some identities become simpler. In characteristic 2, (x + y)² = x² + y², because the middle term 2xy vanishes. That equation is a famous error in ordinary algebra and a true theorem in this setting.

The lesson is general. A formula comes with a home, and it is worth asking which properties of that home its derivation used.

Finite fields at work

A finite field exists with q elements exactly when q is a power of a prime, such as 4, 8, 9 or 256, and any two fields of the same size have identical structure. Note that the field with 4 elements is not arithmetic modulo 4, where 2 · 2 = 0. It has to be built differently, by adjoining a root of a suitable polynomial to arithmetic modulo 2.

Finite fields are practical objects. Reed–Solomon codes, used on optical discs and in many two-dimensional barcodes, do their arithmetic in them. The widely used AES encryption standard also works partly in a field of 256 elements. Secret sharing with polynomials is another use that you can follow with small numbers.

Learning the habit of checking

When you meet a new system, test it against the definitions in order:

  1. Can you add and subtract without leaving the set?
  2. Can you multiply without leaving it, and does the distributive law hold?
  3. Is there a 1, and does ab always equal ba?
  4. Can a product of nonzero elements be zero?
  5. Does every nonzero element have an inverse inside the set?

Try the even integers (no 1), the numbers with finite decimal expansions (a ring, but 3 has no inverse there) and arithmetic modulo 5 (a field). A handful of examples like these makes the axioms feel less like a list and more like a set of useful questions. For the structure with only one operation, see group theory and symmetry.

Written for 4Mathematics with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 31 articles in Algebra, Geometry and Trigonometry at a Glance →

Latest news on this topic