Introduction to Rings
What You’ll Learn
Section titled “What You’ll Learn”In this lesson you’ll learn the ring axioms, why multiplication is deliberately given less structure than addition, the difference between a ring and a ring with unity, and how the familiar number systems fit into the picture.
The Concept
Section titled “The Concept”Two operations
Section titled “Two operations”A group has one operation. But the number systems you actually use have two, and the interesting behaviour lies in how they interact.
A ring is a set with two operations, and , satisfying:
For addition - is an abelian group:
- Closed under
- Associative
- Has an identity
- Every has an additive inverse
- Commutative:
For multiplication:
- Closed under
- Associative
Connecting them - distributivity:
That’s it. Notice the asymmetry: addition is a full abelian group; multiplication gets only closure and associativity. No commutativity, no identity, no inverses required.
This asymmetry is not laziness, it’s realism. Matrix multiplication doesn’t commute. Not every integer has a reciprocal. Requiring more would exclude the examples we care about most.
The ladder of ring types
Section titled “The ladder of ring types”Because so much is optional, ring theory has a vocabulary of qualifiers:
- Commutative ring - always.
- Ring with unity (or with identity) - there is a with .
- Integral domain - commutative, with unity, and no zero divisors.
- Field - a commutative ring with unity where every nonzero element is invertible.
Terminology warning: some books define “ring” to include a unity and use “rng” for the version without. This site does not require unity, so counts as a ring.
An element is a unit if it has a multiplicative inverse in . The units form a group under multiplication, written or .
- In , the units are . Only two.
- In , every nonzero element is a unit.
- In , the units are exactly the residues coprime to - the group from earlier lessons, now revealed as the unit group of a ring.
A field is precisely a commutative ring with unity in which every nonzero element is a unit. That’s the shortest correct definition of a field.
Consequences of the axioms
Section titled “Consequences of the axioms”Some facts hold in every ring, and each is a short exercise in using distributivity.
. Not an axiom, a theorem:
Subtracting from both sides (legal, since addition is a group) gives .
. Because , so is the additive inverse of .
. Apply the previous rule twice. This is the real answer to “why does a negative times a negative give a positive”: it’s forced by distributivity, not a convention someone chose.
Zero divisors
Section titled “Zero divisors”A nonzero is a zero divisor if there is a nonzero with .
In this never happens: a product of nonzero integers is nonzero. In it does: , so 2 and 3 are zero divisors.
Zero divisors break something you rely on constantly: cancellation. In , from you cannot conclude , since and . Solving equations in a ring with zero divisors requires care, and the next lesson is about the rings where this problem is absent.
Examples worth knowing
Section titled “Examples worth knowing”- - commutative, unity, no zero divisors. An integral domain, not a field.
- - commutative with unity. A field exactly when is prime.
- - fields.
- , the real matrices - unity (the identity matrix), not commutative, and full of zero divisors.
- , real polynomials - commutative with unity, an integral domain, not a field (there’s no polynomial inverse for ).
- , the even integers - commutative, no zero divisors, but no unity, since is odd.
Worked Examples
Section titled “Worked Examples”Example 1: Is a ring?
Solution. Addition: the even integers form an abelian group under ✓
Multiplication: even times even is even ✓, and associativity is inherited ✓
Distributivity: inherited from ✓
Yes, a ring. But it has no unity: we’d need an even with for all even , and is the only candidate in , which is odd.
So is a commutative ring without unity, and it shows that unity is a genuine extra condition.
Example 2: Find the zero divisors in .
Solution. Look for nonzero with for some nonzero .
Zero divisors: .
Non-zero-divisors: - exactly .
The pattern: in , an element is a unit when and a zero divisor otherwise. Every nonzero element is one or the other, never both.
Example 3: Zero divisors among matrices.
Solution. Take
Both nonzero, but
Both are zero divisors. In fact a matrix is a zero divisor exactly when its determinant is 0, which is the same as failing to be invertible. In every element is either a unit or a zero divisor, just as in .
Example 4: Prove in any ring.
Solution. First, :
so is the additive inverse of . The same argument on the right gives .
Now apply it twice:
using that additive inverses undo themselves in the group . ∎
Note what the proof used: distributivity, the additive group, and the theorem . Nothing about numbers.
Example 5: A ring where for everything.
Solution. Take . Then and .
More interestingly, the set of subsets of a fixed set, with symmetric difference as and intersection as , is a Boolean ring, and there for every .
Boolean rings are the algebra of logic circuits, which is why simplifying a circuit and simplifying a ring expression are the same activity.
Example 6: Is a field?
Solution. Commutative with unity ✓. Check each nonzero element for an inverse:
All four have inverses. Yes, a field.
Compare : the element 2 has no inverse, because is always even and therefore never . So is not a field.
is a field exactly when is prime, which is the subject of the next lesson.
Real-World Applications
Section titled “Real-World Applications”Computer arithmetic. Fixed-width integer types are the ring or . This is why unsigned overflow wraps rather than erring, and why has zero divisors: in 32-bit arithmetic. Real overflow bugs come from expecting integer-like behaviour from a ring that has zero divisors.
Cryptography. RSA operates in the ring for . Its zero divisors are the multiples of and , so stumbling onto one would reveal the factorization. The scheme lives entirely inside the unit group .
Error-correcting codes. Reed–Solomon codes, used in QR codes, CDs and deep-space communication, work in polynomial rings over finite fields. The ring structure is what makes encoding and decoding into polynomial arithmetic instead of table lookup.
Boolean algebra and digital logic. Circuit design is computation in a Boolean ring, and logic minimization is algebraic simplification. Every chip layout tool rests on this.
Computer algebra systems. Mathematica, SageMath and SymPy are organized around ring types. Whether a system can factor, divide, or solve depends on which ring axioms your coefficients satisfy, so the type hierarchy in the software mirrors the ladder in this lesson.
Image and signal processing. Convolution makes the set of signals into a ring, and filter design is ring arithmetic. The reason the Fourier transform simplifies filtering is that it is a ring homomorphism turning convolution into multiplication.
Retrying will remove your ✅ checkmark until you pass again.