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 Z\mathbb{Z} or M2(R)M_2(\mathbb{R}) 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 0⋅a=00 \cdot a = 0). It also presents four canonical families of examples — Z\mathbb{Z}, Z/nZ\mathbb{Z}/n\mathbb{Z}, 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.

Key takeaways
  • A ring is a set with two operations, ++ and ⋅\cdot, where (R,+)(R,+) is an abelian group and ⋅\cdot 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 0⋅a=a⋅0=00\cdot a = a \cdot 0 = 0 and (−a)b=a(−b)=−(ab)(-a)b = a(-b) = -(ab) for all a,ba,b.
  • Z\mathbb{Z} and Z/nZ\mathbb{Z}/n\mathbb{Z} are commutative rings with identity; Mn(R)M_n(\mathbb{R}) is a noncommutative ring with identity for n≥2n\ge 2.
  • Rings of functions Fun(X,R)\mathrm{Fun}(X,R) inherit ring structure pointwise from the target ring RR.
  • Key idea: a ring is exactly the algebraic shadow left when you record only the addition and multiplication rules common to Z\mathbb{Z}, 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 k[x1,…,xn]k[x_1,\dots,x_n] 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 Z\mathbb{Z}, and their ideal structure controls questions of unique factorization. In cryptography, the ring Z/nZ\mathbb{Z}/n\mathbb{Z} 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 nn are exploited directly. In linear algebra and physics, matrix rings such as Mn(R)M_n(\mathbb{R}) or Mn(C)M_n(\mathbb{C}) model linear operators, quantum observables, and symmetry transformations, with noncommutativity (AB≠BAAB\ne BA) reflecting physically meaningful phenomena such as the uncertainty principle. In computer science, finite rings like Z/232Z\mathbb{Z}/2^{32}\mathbb{Z} literally model fixed-width integer arithmetic on computer hardware, wraparound overflow included. In functional analysis and topology, rings of continuous or measurable functions Fun(X,R)\mathrm{Fun}(X,\mathbb{R}) encode topological or measure-theoretic information about the space XX 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?

DefinitionRing

A ring is a triple (R,+,⋅)(R, +, \cdot) where RR is a set and +,⋅:R×R→R+, \cdot : R \times R \to R are binary operations, satisfying: 1. (Additive abelian group) (R,+)(R,+) is an Abelian Group: addition is associative and commutative, there is an additive identity 0∈R0 \in R with 0+a=a0+a=a for all aa, and every a∈Ra \in R has an additive inverse −a-a with a+(−a)=0a + (-a) = 0. 2. (Multiplicative associativity) (ab)c=a(bc)(ab)c = a(bc) for all a,b,c∈Ra,b,c \in R. 3. (Distributivity) For all a,b,c∈Ra,b,c \in R,

a(b+c)=ab+ac,(b+c)a=ba+ca.a(b+c) = ab + ac, \qquad (b+c)a = ba + ca.

If in addition there exists 1∈R1 \in R with 1≠01 \ne 0 (when RR has more than one element) such that 1⋅a=a⋅1=a1\cdot a = a \cdot 1 = a for all a∈Ra \in R, then RR is called a ring with identity (or unital ring), and 11 is the multiplicative identity. If ab=baab = ba for all a,b∈Ra, b \in R, then RR 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 11" 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 2Z2\mathbb{Z}, 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 ab=baab = ba — matrices under multiplication famously fail this — and there is no axiom forcing the existence of a multiplicative inverse, or even of 11 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 11, 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.

Figure
Nesting of ring-like structures, with representative examples in each region
Rings (axioms 1–3) e.g. 2ℤ (no identity) Rings with identity e.g. M₂(ℝ) (noncommutative) Commutative rings with identity e.g. ℤ, ℤ/nℤ Fields e.g. ℚ, ℝ

Reading the diagram from outside in: dropping the identity requirement gives the widest class (e.g. 2Z2\mathbb{Z}); requiring an identity but not commutativity gives matrix rings; requiring both commutativity and an identity gives Z\mathbb{Z} and Z/nZ\mathbb{Z}/n\mathbb{Z}; requiring every nonzero element to be invertible narrows all the way down to fields such as Q\mathbb{Q}. Each ring example in this article can be located in exactly one of these nested regions.

TheoremBasic Consequences of the Ring Axioms

Let (R,+,⋅)(R, +, \cdot) be a ring (axioms 1–3 above, identity not assumed). Let 00 denote the additive identity. Then for all a,b∈Ra, b \in R: (a) 0⋅a=a⋅0=00 \cdot a = a \cdot 0 = 0. (b) (−a)b=−(ab)(-a)b = -(ab) and a(−b)=−(ab)a(-b) = -(ab). (c) (−a)(−b)=ab(-a)(-b) = ab. (d) If RR has an identity 11, then 11 is unique, and (−1)a=−a(-1)a = -a for all a∈Ra \in R.

Proof

The proof technique throughout is direct algebraic manipulation using only the three ring axioms and the group axioms for (R,+)(R,+); no fact about a specific ring is used, so the results hold in every ring.

(a) Since 0+0=00 + 0 = 0 in the additive group (R,+)(R,+), distributivity gives

a⋅0=a⋅(0+0)=a⋅0+a⋅0.a\cdot 0 = a\cdot(0+0) = a\cdot 0 + a\cdot 0.

Let x=a⋅0x = a \cdot 0. The equation above reads x=x+xx = x + x. Add −x-x (the additive inverse of xx, which exists since (R,+)(R,+) is a group) to both sides:

x+(−x)=(x+x)+(−x)=x+(x+(−x))=x+0=x,x + (-x) = (x+x) + (-x) = x + (x + (-x)) = x + 0 = x,

using associativity of ++ in the middle step. The left side is 00, so 0=x=a⋅00 = x = a \cdot 0. This proves a⋅0=0a \cdot 0 = 0. The proof that 0⋅a=00 \cdot a = 0 is identical, using the other distributive law (b+c)a=ba+ca(b+c)a = ba+ca with b=c=0b=c=0.

(b) Fix a,b∈Ra, b \in R. By definition of additive inverse, a+(−a)=0a + (-a) = 0. Using the distributive law (x+y)z=xz+yz(x+y)z = xz+yz with x=ax = a, y=−ay = -a, z=bz = b:

ab+(−a)b=(a+(−a))b=0⋅b=0,ab + (-a)b = (a + (-a))b = 0 \cdot b = 0,

where the last equality is part (a). This equation says (−a)b(-a)b is an additive inverse of abab. Since additive inverses in the abelian group (R,+)(R,+) are unique (a standard group fact: if x+y=0x+y=0 and x+y′=0x+y'=0 then y=0+y=(y′+x)+yy = 0+y = (y'+x)+y... more directly, y=y+0=y+(x+y′)=(y+x)+y′=0+y′=y′y = y+0 = y+(x+y') = (y+x)+y' = 0+y' = y'), we conclude (−a)b=−(ab)(-a)b = -(ab). The identity a(−b)=−(ab)a(-b) = -(ab) follows symmetrically using the other distributive law a(y+z)=ay+aza(y+z)=ay+az with y=b,z=−by=b,z=-b, since a⋅0=0a\cdot 0 = 0 by (a):

ab+a(−b)=a(b+(−b))=a⋅0=0.ab + a(-b) = a(b+(-b)) = a\cdot 0 = 0.

(c) Applying (b) twice: first treat −b-b as fixed and apply the first identity of (b) with bb replaced by −b-b:

(−a)(−b)=−(a(−b)).(-a)(-b) = -(a(-b)).

Now apply the second identity of (b), a(−b)=−(ab)a(-b) = -(ab), to rewrite the right side:

(−a)(−b)=−(−(ab)).(-a)(-b) = -(-(ab)).

In any abelian group, −(−x)=x-(-x) = x (the inverse of the inverse is the original element, since (−x)+x=0(-x) + x = 0 exhibits xx as an additive inverse of −x-x, and inverses are unique). Hence (−a)(−b)=ab(-a)(-b) = ab.

(d) Uniqueness of 11. Suppose 11 and 1′1' both act as multiplicative identities. Then

1=1⋅1′=1′,1 = 1 \cdot 1' = 1',

where the first equality uses that 1′1' is an identity (applied to the element 11) and the second uses that 11 is an identity (applied to the element 1′1'). So 1=1′1 = 1', proving uniqueness. For (−1)a=−a(-1)a = -a: by part (b) with b=ab = a, and using 1⋅a=a1\cdot a = a,

(−1)a=−(1⋅a)=−a.(-1)a = -(1\cdot a) = -a.

This completes the proof. ■\blacksquare

∎

Worked examples

Example 1: The ring Z/12Z\mathbb{Z}/12\mathbb{Z}, its zero-divisors, and the failure of cancellation. Let R=Z/12Z={0ˉ,1ˉ,…,11ˉ}R = \mathbb{Z}/12\mathbb{Z} = \{\bar 0, \bar 1, \dots, \bar{11}\}, the set of congruence classes modulo 1212, with

aˉ+bˉ=a+b‾,aˉ⋅bˉ=ab‾.\bar a + \bar b = \overline{a+b}, \qquad \bar a \cdot \bar b = \overline{a b}.

These operations are well-defined: if a≡a′(mod12)a \equiv a' \pmod{12} and b≡b′(mod12)b \equiv b' \pmod{12}, write a′=a+12ka' = a + 12k, b′=b+12ℓb' = b + 12\ell; then a′+b′=(a+b)+12(k+ℓ)≡a+ba'+b' = (a+b) + 12(k+\ell) \equiv a+b, and

a′b′=ab+12(aℓ+bk)+144kℓ≡ab(mod12),a'b' = ab + 12(a\ell + bk) + 144 k\ell \equiv ab \pmod{12},

so both classes a′+b′‾\overline{a'+b'} and a′b′‾\overline{a'b'} agree with a+b‾\overline{a+b} and ab‾\overline{ab} respectively. The group (Z/12Z,+)(\mathbb{Z}/12\mathbb{Z}, +) is abelian (inherited from Z\mathbb{Z}), and associativity, commutativity of ⋅\cdot, and both distributive laws all follow immediately by lifting to representatives in Z\mathbb{Z} and using that these laws hold in Z\mathbb{Z}. The identity is 1ˉ\bar 1. So Z/12Z\mathbb{Z}/12\mathbb{Z} is a commutative ring with identity, matching the general construction Z/nZ\mathbb{Z}/n\mathbb{Z}. Now compute a nontrivial product: take aˉ=4ˉ\bar a = \bar 4 and bˉ=9ˉ\bar b = \bar 9 (chosen asymmetrically, neither dividing 1212 alone in an obvious way, neither equal to ±1  12\pm1 \bmod 12). Then

4ˉ⋅9ˉ=36‾=0ˉ,\bar 4 \cdot \bar 9 = \overline{36} = \bar 0,

since 36=3⋅1236 = 3\cdot 12. So 4ˉ\bar 4 and 9ˉ\bar 9 are both nonzero, yet their product is zero: they are zero-divisors. This shows the ring axioms alone (Theorem above) do not forbid ab=0ab = 0 with a,b≠0a,b \ne 0 — that is an extra property (studied under "integral domains", a topic of Commutative Rings and Units). A consequence: cancellation can fail. Note 4ˉ⋅3ˉ=12‾=0ˉ=4ˉ⋅9ˉ−4ˉ⋅9ˉ\bar 4 \cdot \bar 3 = \overline{12} = \bar 0 = \bar 4 \cdot \bar 9 - \bar 4\cdot\bar 9... more directly, compare 4ˉ⋅3ˉ\bar 4 \cdot \bar 3 and 4ˉ⋅9ˉ\bar 4 \cdot \bar 9 minus each other:

4ˉ⋅3ˉ=12‾=0ˉ,4ˉ⋅9ˉ=0ˉ,\bar4\cdot\bar 3 = \overline{12} = \bar 0, \qquad \bar 4 \cdot \bar 9 = \bar 0,

so 4ˉ⋅3ˉ=4ˉ⋅9ˉ\bar4\cdot \bar 3 = \bar 4 \cdot \bar 9 even though 3ˉ≠9ˉ\bar 3 \ne \bar 9 in Z/12Z\mathbb{Z}/12\mathbb{Z}. One cannot cancel the common factor 4ˉ\bar 4. This is a genuinely ring-theoretic phenomenon absent from Z\mathbb{Z} itself (where ab=0⇒a=0ab=0 \Rightarrow a=0 or b=0b=0), illustrating that passing from Z\mathbb{Z} to a quotient ring can introduce new pathologies even though both are commutative rings with identity.

Example 2: A concrete noncommutative computation in M2(R)M_2(\mathbb{R}). Let R=M2(R)R = M_2(\mathbb{R}), the set of 2×22\times 2 real matrices, with entrywise addition and the usual matrix product. Addition makes (R,+)(R,+) an abelian group (componentwise, inherited from (R,+)(\mathbb{R},+)), with zero element the zero matrix OO and additive inverse −A-A 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 A(B+C)=AB+ACA(B+C) = AB+AC, (B+C)A=BA+CA(B+C)A = BA + CA hold by direct entrywise computation. The identity element is I=(1001)I = \begin{pmatrix}1&0\\0&1\end{pmatrix}. Hence M2(R)M_2(\mathbb{R}) is a ring with identity. To see it is not commutative, take asymmetric matrices

A=(1201),B=(3011).A = \begin{pmatrix} 1 & 2 \\ 0 & 1\end{pmatrix}, \qquad B = \begin{pmatrix} 3 & 0 \\ 1 & 1 \end{pmatrix}.

Compute:

AB=(1⋅3+2⋅11⋅0+2⋅10⋅3+1⋅10⋅0+1⋅1)=(5211),AB = \begin{pmatrix}1\cdot3+2\cdot1 & 1\cdot0+2\cdot1 \\ 0\cdot3+1\cdot1 & 0\cdot0+1\cdot1\end{pmatrix} = \begin{pmatrix}5&2\\1&1\end{pmatrix},
BA=(3⋅1+0⋅03⋅2+0⋅11⋅1+1⋅01⋅2+1⋅1)=(3613).BA = \begin{pmatrix}3\cdot1+0\cdot0 & 3\cdot2+0\cdot1 \\ 1\cdot1+1\cdot0 & 1\cdot2+1\cdot1\end{pmatrix} = \begin{pmatrix}3&6\\1&3\end{pmatrix}.

Since AB=(5211)≠(3613)=BAAB = \begin{pmatrix}5&2\\1&1\end{pmatrix} \ne \begin{pmatrix}3&6\\1&3\end{pmatrix} = BA, we have AB≠BAAB \ne BA. This single computation certifies that M2(R)M_2(\mathbb{R}) is a genuinely noncommutative ring, and it also illustrates Theorem part (b) concretely: with −A=(−1−20−1)-A = \begin{pmatrix}-1&-2\\0&-1\end{pmatrix},

(−A)B=(−5−2−1−1)=−(AB),(-A)B = \begin{pmatrix}-5&-2\\-1&-1\end{pmatrix} = -(AB),

confirming (−A)B=−(AB)(-A)B = -(AB) as guaranteed abstractly, here checked entry by entry: e.g. the (1,1)(1,1) entry is (−1)(3)+(−2)(1)=−5(-1)(3)+(-2)(1) = -5, matching −(5)-(5).

CounterexampleWhy distributivity — not just two group structures — is essential

It is tempting to think a ring is "just" an abelian group (R,+)(R,+) together with a separate monoid structure (R,⋅)(R,\cdot) 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 R=ZR = \mathbb{Z} with its usual addition, but replace multiplication by the constant operation

a∗b=1for all a,b∈Z.a * b = 1 \quad \text{for all } a, b \in \mathbb{Z}.

Check the axioms we can still check: (R,+)(R,+) is the usual abelian group of integers, so axiom 1 holds. The operation ∗* is associative: (a∗b)∗c=1∗c=1(a*b)*c = 1 * c = 1 and a∗(b∗c)=a∗1=1a * (b*c) = a * 1 = 1, so (a∗b)∗c=a∗(b∗c)(a*b)*c = a*(b*c) for all a,b,ca,b,c; axiom 2 holds. But distributivity fails: take a=1a = 1, b=c=1b = c = 1 (asymmetric enough to expose the failure cleanly — actually any nonzero b,cb,c with b+c≠b+c\ne special value will do, so use b=2,c=3b=2,c=3):

a∗(b+c)=1∗(2+3)=1∗5=1,a*(b+c) = 1*(2+3) = 1*5 = 1,
a∗b+a∗c=(1∗2)+(1∗3)=1+1=2.a*b + a*c = (1*2) + (1*3) = 1 + 1 = 2.

Since 1≠21 \ne 2, axiom 3 fails, and (Z,+,∗)(\mathbb{Z}, +, *) is not a ring. Now watch part (a) of the Theorem break down. In a genuine ring we proved a⋅0=0a \cdot 0 = 0 for all aa. Here, with 00 still the additive identity 0∈Z0 \in \mathbb{Z},

a∗0=1≠0for every a,a * 0 = 1 \ne 0 \quad \text{for every } a,

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 ⋅\cdot, and every arithmetic law one takes for granted (including 0⋅a=00\cdot a = 0, which even holds in the trivial one-element ring) depends on it.

Scope, edge cases & common traps

SituationStatusNote
1=01 = 0 allowed?Only if R={0}R = \{0\}If 1=01=0 then for any aa, a=1⋅a=0⋅a=0a = 1\cdot a = 0 \cdot a = 0, forcing R={0}R=\{0\}; the zero ring is the sole ring with 1=01=0.
Must ⋅\cdot be commutative?NoMn(R)M_n(\mathbb{R}), n≥2n\ge2, is a standard noncommutative counterexample (Example 2).
Must RR have an identity?Convention-dependent2Z2\mathbb{Z} satisfies axioms 1–3 but has no multiplicative identity; call it a ring (this article) or a "rng" (Dummit–Foote convention).
Can ab=0ab=0 with a,b≠0a,b\ne0?Yes, in generalExample 1 exhibits zero-divisors in Z/12Z\mathbb{Z}/12\mathbb{Z}; ruling this out defines an integral domain, part of Commutative Rings and Units.
Is subtraction always defined?YesDefine a−b:=a+(−b)a-b := a+(-b); this uses only the additive group axiom, present in every ring.

The mathematician behind it

Origins · 1 minRichard Dedekind and how this was discovered
RD
Richard Dedekind
1831–1916 · German mathematician, algebraic number theory

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.

History
- 1871 — Dedekind introduces ideals in rings of algebraic integers, studying divisibility abstractly.
- 1892 — David Hilbert coins the German term Zahlring ("number ring"), the origin of the modern word "ring."
- 1897 — Hilbert's Zahlbericht systematizes ring-theoretic ideas in algebraic number theory.
- 1914–1921 — Abraham Fraenkel and then Emmy Noether give the first fully abstract axiomatizations of rings, independent of number-theoretic origin.
- 1927 — Emmy Noether's structural approach to noncommutative rings and modules crystallizes the modern axiomatic framework used today.
Is Z\mathbb{Z} a field?

No. Z\mathbb{Z} is a commutative ring with identity 11, but most nonzero elements lack multiplicative inverses within Z\mathbb{Z}: for instance 22 has no integer xx with 2x=12x=1. A field additionally requires every nonzero element to be invertible, which forces division to always be possible. Q\mathbb{Q}, obtained from Z\mathbb{Z} by formally adjoining inverses (the field of fractions construction), is the smallest field containing Z\mathbb{Z}. 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 11 to 11") and aligns with how rings are used in module theory, where unital modules behave much better. The cost is that structures like 2Z2\mathbb{Z}, which arise naturally as subsets closed under +,−,×+,-,\times but without 11, 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 Mn(R)M_n(\mathbb{R}) being a ring?

Associativity of matrix multiplication, (AB)C=A(BC)(AB)C = A(BC), 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 ∑k∑jAik?\sum_k \sum_j A_{ik}? style expression. This is exactly axiom 2 in the ring definition, so it must be verified — not assumed — before declaring Mn(R)M_n(\mathbb{R}) 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 R={0}R=\{0\} with 0+0=00+0=0 and 0⋅0=00\cdot 0=0 satisfies all three ring axioms trivially, and if we declare 1:=01:=0 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 1=01=0, as shown in the FAQ above. Some definitions of "ring with identity" explicitly exclude 1=01=0 unless RR is this trivial ring, which is why the definition in this article includes the parenthetical "when RR 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 11. 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, Z\mathbb{Z}, Z/nZ\mathbb{Z}/n\mathbb{Z}, and Mn(R)M_n(\mathbb{R}) all have identities under either convention, while 2Z2\mathbb{Z} (even integers) is a ring/rng without identity, illustrating that the distinction is not merely academic.

How do function rings like Fun(X,R)\mathrm{Fun}(X,\mathbb{R}) fit the axioms?

Given any nonempty set XX and a ring RR, define Fun(X,R)\mathrm{Fun}(X,R) to be the set of all functions f:X→Rf:X\to R, with (f+g)(x):=f(x)+g(x)(f+g)(x):=f(x)+g(x) and (fg)(x):=f(x)g(x)(fg)(x):=f(x)g(x) defined pointwise. Every ring axiom for Fun(X,R)\mathrm{Fun}(X,R) is inherited pointwise from the corresponding axiom in RR: for instance (f(gh))(x)=f(x)(g(x)h(x))=(f(x)g(x))h(x)=((fg)h)(x)(f(gh))(x) = f(x)(g(x)h(x)) = (f(x)g(x))h(x) = ((fg)h)(x) uses associativity in RR at each point xx. The zero function is the additive identity, and if RR has identity 1R1_R, the constant function 11 is the identity of Fun(X,R)\mathrm{Fun}(X,R). This construction is commutative exactly when RR is commutative.

Why does the article emphasize "no cancellation" so strongly in the Z/12Z\mathbb{Z}/12\mathbb{Z} example?

Because cancellation (ab=ac, a≠0⇒b=cab=ac,\,a\ne0 \Rightarrow b=c) feels so automatic from working with ordinary numbers that students often use it unconsciously in a general ring, producing invalid proofs. The example 4ˉ⋅3ˉ=4ˉ⋅9ˉ=0ˉ\bar4\cdot\bar3=\bar4\cdot\bar9=\bar0 in Z/12Z\mathbb{Z}/12\mathbb{Z}, with 3ˉ≠9ˉ\bar3\ne\bar9, 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.

Where this leads