Rings: Definition and Examples
What do integers, polynomials, matrices, and clock arithmetic have in common? Each is a set equipped with two operations, addition and multiplication. These operations interact through the familiar rules of arithmetic learned in childhood. The concept of a ring distills exactly which of those rules are essential. It strips away everything else so that a single theory applies to numbers, functions, symmetries, and much else at once. This is the foundational move of abstract algebra. Instead of studying or separately, we study any set satisfying a short list of axioms. Every theorem proved from those axioms applies simultaneously to all such sets. Rings matter because addition-and-multiplication structures are everywhere in mathematics, not just in number systems. Polynomial rings encode algebraic geometry; matrix rings encode linear transformations; rings of continuous functions encode topology. The Abelian Group structure under addition is assumed known. This article layers a second, multiplicative operation on top of it. That operation is linked to addition by the distributive law. The big picture is a hierarchy: groups have one operation. Rings have two operations, with one distributing over the other. Further specializations (commutative rings, integral domains, fields) impose progressively more structure. This article sits at the base of that hierarchy. It fixes notation and terminology that every later result in ring theory depends on. It is deliberately careful about a point that trips up many students: whether a ring is required to have a multiplicative identity. This article delivers the precise axioms for a ring. It includes a careful discussion of the identity-element convention. It provides a proof of the basic arithmetic facts that follow purely from the axioms (such as ). It also presents four canonical families of examples — , , matrix rings, and function rings — worked out in full detail. It closes by pointing toward Commutative Rings and Units and Subrings, the natural next steps.
- A ring is a set with two operations, and , where is an abelian group and distributes over on both sides.
- Multiplication need not be commutative and need not have an identity, unless the specific convention in use requires it.
- From the axioms alone, one proves and for all .
- and are commutative rings with identity; is a noncommutative ring with identity for .
- Rings of functions inherit ring structure pointwise from the target ring .
- Key idea: a ring is exactly the algebraic shadow left when you record only the addition and multiplication rules common to , matrices, and polynomials, forgetting everything else.
Where this lives today
Ring theory is the common language underlying an enormous range of mathematics and its applications. In algebraic geometry, polynomial rings and their quotients encode geometric objects (varieties), with ring-theoretic operations translating directly into geometric ones. In algebraic number theory, rings of integers in number fields generalize , and their ideal structure controls questions of unique factorization. In cryptography, the ring from Example 1 is the literal arithmetic engine of RSA encryption, where the failure of general cancellation and the structure of units modulo a composite are exploited directly. In linear algebra and physics, matrix rings such as or model linear operators, quantum observables, and symmetry transformations, with noncommutativity () reflecting physically meaningful phenomena such as the uncertainty principle. In computer science, finite rings like literally model fixed-width integer arithmetic on computer hardware, wraparound overflow included. In functional analysis and topology, rings of continuous or measurable functions encode topological or measure-theoretic information about the space in purely algebraic terms.
Ask the tutor: How does the definition of a ring change once we additionally require every nonzero element to have a multiplicative inverse, and why does that jump take us all the way to fields?
A ring is a triple where is a set and are binary operations, satisfying: 1. (Additive abelian group) is an Abelian Group: addition is associative and commutative, there is an additive identity with for all , and every has an additive inverse with . 2. (Multiplicative associativity) for all . 3. (Distributivity) For all ,
If in addition there exists with (when has more than one element) such that for all , then is called a ring with identity (or unital ring), and is the multiplicative identity. If for all , then is a commutative ring. Convention. Some texts (e.g. Dummit–Foote) require every ring to have a multiplicative identity by definition, using the term rng for a structure satisfying only axioms 1–3. Others (e.g. many treatments following Artin) allow rings without identity as the default and specify "ring with " when needed. This article follows the more general convention — axioms 1–3 define a ring, and "identity" is an optional extra property — because it lets a single word "ring" describe examples such as the even integers , which satisfy 1–3 but have no multiplicative identity.
Intuition
Think of a ring as a machine with two dials, addition and multiplication, that satisfy the arithmetic reflexes ingrained from working with ordinary numbers: you can add and subtract freely (that is the abelian group axiom), you can multiply associatively, and multiplication distributes over addition so that "expanding brackets" always works. What the axioms deliberately omit is just as important as what they include. There is no axiom forcing — matrices under multiplication famously fail this — and there is no axiom forcing the existence of a multiplicative inverse, or even of itself. A useful mental picture is a layered diagram: abelian groups form the base layer (just addition), rings add a compatible multiplication on top, and further conditions (commutativity, existence of , existence of inverses) carve out smaller and smaller sub-classes inside the ring world. The diagram below shows this nesting using concrete inhabitants of each region.
Reading the diagram from outside in: dropping the identity requirement gives the widest class (e.g. ); requiring an identity but not commutativity gives matrix rings; requiring both commutativity and an identity gives and ; requiring every nonzero element to be invertible narrows all the way down to fields such as . Each ring example in this article can be located in exactly one of these nested regions.
Let be a ring (axioms 1–3 above, identity not assumed). Let denote the additive identity. Then for all : (a) . (b) and . (c) . (d) If has an identity , then is unique, and for all .
The proof technique throughout is direct algebraic manipulation using only the three ring axioms and the group axioms for ; no fact about a specific ring is used, so the results hold in every ring.
(a) Since in the additive group , distributivity gives
Let . The equation above reads . Add (the additive inverse of , which exists since is a group) to both sides:
using associativity of in the middle step. The left side is , so . This proves . The proof that is identical, using the other distributive law with .
(b) Fix . By definition of additive inverse, . Using the distributive law with , , :
where the last equality is part (a). This equation says is an additive inverse of . Since additive inverses in the abelian group are unique (a standard group fact: if and then ... more directly, ), we conclude . The identity follows symmetrically using the other distributive law with , since by (a):
(c) Applying (b) twice: first treat as fixed and apply the first identity of (b) with replaced by :
Now apply the second identity of (b), , to rewrite the right side:
In any abelian group, (the inverse of the inverse is the original element, since exhibits as an additive inverse of , and inverses are unique). Hence .
(d) Uniqueness of . Suppose and both act as multiplicative identities. Then
where the first equality uses that is an identity (applied to the element ) and the second uses that is an identity (applied to the element ). So , proving uniqueness. For : by part (b) with , and using ,
This completes the proof.
∎Worked examples
Example 1: The ring , its zero-divisors, and the failure of cancellation. Let , the set of congruence classes modulo , with
These operations are well-defined: if and , write , ; then , and
so both classes and agree with and respectively. The group is abelian (inherited from ), and associativity, commutativity of , and both distributive laws all follow immediately by lifting to representatives in and using that these laws hold in . The identity is . So is a commutative ring with identity, matching the general construction . Now compute a nontrivial product: take and (chosen asymmetrically, neither dividing alone in an obvious way, neither equal to ). Then
since . So and are both nonzero, yet their product is zero: they are zero-divisors. This shows the ring axioms alone (Theorem above) do not forbid with — that is an extra property (studied under "integral domains", a topic of Commutative Rings and Units). A consequence: cancellation can fail. Note ... more directly, compare and minus each other:
so even though in . One cannot cancel the common factor . This is a genuinely ring-theoretic phenomenon absent from itself (where or ), illustrating that passing from to a quotient ring can introduce new pathologies even though both are commutative rings with identity.
Example 2: A concrete noncommutative computation in . Let , the set of real matrices, with entrywise addition and the usual matrix product. Addition makes an abelian group (componentwise, inherited from ), with zero element the zero matrix and additive inverse given by negating every entry. Matrix multiplication is associative (a standard linear algebra fact, provable directly from the summation definition of the product using associativity and distributivity of real number arithmetic), and both distributive laws , hold by direct entrywise computation. The identity element is . Hence is a ring with identity. To see it is not commutative, take asymmetric matrices
Compute:
Since , we have . This single computation certifies that is a genuinely noncommutative ring, and it also illustrates Theorem part (b) concretely: with ,
confirming as guaranteed abstractly, here checked entry by entry: e.g. the entry is , matching .
It is tempting to think a ring is "just" an abelian group together with a separate monoid structure living on the same set, with no further relationship required. The distributive axiom is what forces these two structures to interact, and without it the theory collapses: none of the basic arithmetic facts above survive. Concretely, let with its usual addition, but replace multiplication by the constant operation
Check the axioms we can still check: is the usual abelian group of integers, so axiom 1 holds. The operation is associative: and , so for all ; axiom 2 holds. But distributivity fails: take , (asymmetric enough to expose the failure cleanly — actually any nonzero with special value will do, so use ):
Since , axiom 3 fails, and is not a ring. Now watch part (a) of the Theorem break down. In a genuine ring we proved for all . Here, with still the additive identity ,
so the "product with zero is zero" law fails completely, precisely because the proof of part (a) used distributivity as its only non-group ingredient. This shows distributivity is not a cosmetic convenience: it is the load-bearing axiom linking and , and every arithmetic law one takes for granted (including , which even holds in the trivial one-element ring) depends on it.
Scope, edge cases & common traps
| Situation | Status | Note |
|---|---|---|
| allowed? | Only if | If then for any , , forcing ; the zero ring is the sole ring with . |
| Must be commutative? | No | , , is a standard noncommutative counterexample (Example 2). |
| Must have an identity? | Convention-dependent | satisfies axioms 1–3 but has no multiplicative identity; call it a ring (this article) or a "rng" (Dummit–Foote convention). |
| Can with ? | Yes, in general | Example 1 exhibits zero-divisors in ; ruling this out defines an integral domain, part of Commutative Rings and Units. |
| Is subtraction always defined? | Yes | Define ; this uses only the additive group axiom, present in every ring. |
The mathematician behind it
Origins · 1 minRichard Dedekind and how this was discovered
Dedekind, working alongside contemporaries such as Kronecker and later Emmy Noether's school, developed the theory of ideals in rings of algebraic integers, laying essential groundwork for the abstract ring concept. He did not use the modern axiomatic word "ring" himself — that term is credited to David Hilbert — but his study of number rings such as rings of integers in algebraic number fields supplied the motivating examples that the abstract axioms were later designed to capture.
Is a field?
No. is a commutative ring with identity , but most nonzero elements lack multiplicative inverses within : for instance has no integer with . A field additionally requires every nonzero element to be invertible, which forces division to always be possible. , obtained from by formally adjoining inverses (the field of fractions construction), is the smallest field containing . This distinction — ring versus field — is exactly the kind of refinement explored further in Commutative Rings and Units, where "unit" means an element with a multiplicative inverse.
Why do some textbooks insist every ring has a multiplicative identity?
It is purely a convention chosen for convenience in a given exposition. Requiring an identity simplifies some statements (e.g. "every ring homomorphism sends to ") and aligns with how rings are used in module theory, where unital modules behave much better. The cost is that structures like , which arise naturally as subsets closed under but without , must then be called by a different name (a "rng," dropping the "i" for identity, is one such convention). Both conventions are logically consistent; what matters is stating clearly which one is in force before proving theorems.
Why is matrix multiplication associative, and why does that matter for being a ring?
Associativity of matrix multiplication, , follows from writing out the triple sum defining each side using the entrywise formula for matrix products and invoking associativity and distributivity of real number multiplication and addition inside the sums; rearranging the order of summation (justified by finiteness) shows both sides equal the same triple sum style expression. This is exactly axiom 2 in the ring definition, so it must be verified — not assumed — before declaring a ring; the verification is a standard but essential exercise in any linear algebra course.
Does the ring axiom list forbid a ring from having only one element?
No. The set with and satisfies all three ring axioms trivially, and if we declare it even satisfies the identity property vacuously (there being only one element to check). This is called the zero ring, and it is the unique ring in which , as shown in the FAQ above. Some definitions of "ring with identity" explicitly exclude unless is this trivial ring, which is why the definition in this article includes the parenthetical "when has more than one element."
What is the difference between a ring and a rng, and does it matter for this article's examples?
A rng satisfies only the abelian-group-plus-distributivity axioms (1–3), with no multiplicative identity required; a ring (in the identity-requiring convention) additionally demands a . In this article's chosen convention, "ring" already means what others call "rng," and "ring with identity" is used for the stronger notion. Among this article's examples, , , and all have identities under either convention, while (even integers) is a ring/rng without identity, illustrating that the distinction is not merely academic.
How do function rings like fit the axioms?
Given any nonempty set and a ring , define to be the set of all functions , with and defined pointwise. Every ring axiom for is inherited pointwise from the corresponding axiom in : for instance uses associativity in at each point . The zero function is the additive identity, and if has identity , the constant function is the identity of . This construction is commutative exactly when is commutative.
Why does the article emphasize "no cancellation" so strongly in the example?
Because cancellation () feels so automatic from working with ordinary numbers that students often use it unconsciously in a general ring, producing invalid proofs. The example in , with , is a minimal, fully checked counterexample showing cancellation can fail even in a commutative ring with identity. Recognizing when cancellation is or is not valid is precisely the boundary between general rings and integral domains, a central theme of Commutative Rings and Units.