In $\mathbb{Z}_{21}$ the class 20 is $-1$, and $20 \cdot 20 = 400 = 21 \cdot 19 + 1$, so $(-1)(-1) = 1$ there just as in the integers. The same holds for $2 \times 2$ matrices, where $(-I)(-I) = I$. Yet for matrices $(A + B)^2$ is not always $A^2 + 2AB + B^2$. Which rules of algebra hold in every number system with an addition and a multiplication, and which belong to particular systems?
This unit answers with one definition. A ring is any set with an addition and a multiplication that obey a short list of laws. The list is the laws that the first two units proved for the integers and for $\mathbb{Z}_n$, minus a few that important examples lack, such as commutativity of multiplication. Polynomials, square matrices and real-valued functions are rings too, although their elements are not numbers. Every theorem proved from the ring axioms holds in all of these systems at once.
The route has four steps, one per article.
- First, the definition and a catalog of examples, with systems that fail to be rings and the axiom each one breaks.
- Then the first theorems. Rules such as $a \cdot 0 = 0$ and $(-1)(-1) = 1$ are not axioms; proving them shows exactly which laws they rest on. The units and zero divisors of the integers modulo $n$ are defined in every ring.
- Next, the rings where algebra works as in the integers or the rationals get names. In integral domains a product of nonzero elements is never zero. In fields every nonzero element can be inverted. Every finite integral domain is a field, and the Gaussian integers modulo 3 give a field with nine elements.
- Finally, rings found inside other rings (subrings) and rings built side by side (direct products). Comparing $\mathbb{Z}_3 \times \mathbb{Z}_7$ with $\mathbb{Z}_{21}$ previews the Chinese remainder theorem.
The running examples carry over from Congruence and Modular Arithmetic: the ring $\mathbb{Z}_{21}$ and the pair 1729 and 1001. Two new ones run through the unit: the Gaussian integers $a + bi$, and a rotation and a reflection of the plane, written as $2 \times 2$ matrices, that do not commute. Every number comes from a script in the site's repository.
The unit covers Sections 3.1 and 3.2 of the course text (Hungerford, 2014), with Judson (2026, Chapter 16) as a free companion. The isomorphisms of §3.3 are taken up later, in the unit on homomorphisms and the Chinese remainder theorem.
Articles
- Rings: Definition and Examples: what do the integers, $\mathbb{Z}_n$, polynomials, matrices and functions have in common? The eight ring axioms and what they leave out, commutative rings and rings with identity, and the zero ring. Examples from number systems, the multiples of $n$, the Gaussian integers, polynomials, $2 \times 2$ matrices (a rotation and a reflection that do not commute) and functions under pointwise operations. Systems that fail to be rings, and the axiom each breaks.
- Basic Properties of Rings: which familiar rules follow from the axioms alone? Uniqueness of the zero, negatives and identity, additive cancellation, $a \cdot 0 = 0$, and the rules of signs. Multiples and powers, and which rules need commutativity. The zero ring as the only ring with $1 = 0$. Units and the uniqueness of inverses, the units of the Gaussian integers by the norm, the group of units and the reversed order of $(ab)^{-1}$, and zero divisors among matrices and functions.
- Integral Domains and Fields: in which rings does the school method for solving $x^2 = 1$ work? Definitions and a table of examples, every field is an integral domain, subrings of fields, and cancellation as a characterization of integral domains. The rings $\mathbb{Z}_n[i]$, the theorem that every finite integral domain is a field, a field with nine elements, and the theorem that $\mathbb{Z}_p[i]$ is a field exactly when $-1$ has no square root modulo $p$. For odd $p$ that means $p \equiv 3 \pmod 4$.
- Subrings and Direct Products of Rings: how are new rings found inside old ones, or built from them? Subrings and the subring test, the Eisenstein integers, a commutative ring of matrices, rings of functions, the identity of a subring, and subfields. Direct products with their identities, units and zero divisors. $\mathbb{Z}_3 \times \mathbb{Z}_7$ compared with $\mathbb{Z}_{21}$, and $\mathbb{Z}_4 \times \mathbb{Z}_6$ with $\mathbb{Z}_{24}$.
Related topics
The unit abstracts Congruence and Modular Arithmetic. The laws proved for $\mathbb{Z}_n$ in The Integers Modulo n become the ring axioms. The theorem that $\mathbb{Z}_n$ is a field exactly when $n$ is prime becomes the first classification of rings into fields and others. The next units apply the language:
- Fermat's little theorem and the RSA cryptosystem compute in the field $\mathbb{Z}_p$ and the ring $\mathbb{Z}_n$;
- Polynomial Rings are rings built from a coefficient ring;
- Building Fields from Irreducible Polynomials constructs new fields as quotients of polynomial rings.
References
- Hungerford, T. W. (2014). Abstract Algebra: An Introduction (3rd ed.), Chapter 3, §§3.1 and 3.2. Brooks/Cole, Cengage Learning. The course text. record · 44 pages
- Judson, T. W. (2026). Abstract Algebra: Theory and Applications (annual edition, August 2026), Chapter 16. Free online at judsonbooks.org. record · 44 pages