Commutative Algebra
Foundations of Commutative Algebra: Rings, Subrings, Homomorphisms, and Ideals
This lesson establishes the basic language of commutative algebra. The central objects are commutative rings with identity, together with their subrings, homomorphisms, ideals, quotient rings, and special elements such as zero divisors, nilpotents, and units.
These ideas form the foundation for later topics including modules, localization, integral dependence, Noetherian rings, primary decomposition, Artinian rings, Hilbert’s Nullstellensatz, and graded rings.
1. The broader course structure
The subject develops in stages. It begins with basic ring theory, especially the study of ideals and operations involving ideals. Two important operations are extension and contraction, which compare ideals in different rings connected by a ring map.
The next major structure is module theory. Modules generalize vector spaces by allowing scalars from a ring rather than only from a field.
After that, the theory develops toward:
- Localization, which allows certain elements of a ring to be made invertible.
- Integral dependence, concerning elements that satisfy monic polynomial equations over a ring.
- Chain conditions, which control increasing or decreasing sequences of ideals.
- Noetherian rings, an especially important class of rings in commutative algebra.
- Primary decomposition, which breaks ideals into primary pieces.
- Artinian rings, which satisfy a descending chain condition on ideals.
- Hilbert’s Nullstellensatz, connecting ideals in polynomial rings with algebraic sets.
- Graded rings, in which elements are organized into degrees.
The first step toward all of these topics is a precise understanding of rings and ideals.
A commutative ring with identity is a set equipped with addition and multiplication, satisfying the ring axioms, with multiplication commutative and possessing a multiplicative identity.
2. What is a ring?
A ring A is a set equipped with two binary operations:
- Addition, written +.
- Multiplication, usually written by juxtaposition as xy.
The addition operation makes A into an abelian group. This means:
- Addition is associative: (x+y)+z=x+(y+z).
- There is an additive identity, denoted by 0, such that x+0=x.
- Every element x has an additive inverse −x satisfying x+(−x)=0.
- Addition is commutative: x+y=y+x.
Multiplication is associative:
(xy)z=x(yz).Multiplication distributes over addition on both sides:
x(y+z)=xy+xzand
(x+y)z=xz+yz.In commutative algebra, two additional assumptions are made throughout:
- Multiplication is commutative: xy=yx.
- The ring contains a multiplicative identity, denoted by 1A, satisfying 1Ax=x1A=x for every x∈A.
Thus, the rings studied here are specifically commutative rings with identity.
The zero ring
The smallest possible ring is the zero ring, consisting of only one element:
A={0}.In this ring, the additive identity and multiplicative identity are the same element:
1A=0.This does not cause a contradiction. Since there is only one element, multiplication satisfies
0⋅0=0,and the single element acts as the multiplicative identity.
The zero ring is also denoted simply by 0.
Think About It
Why is the zero ring allowed to have 1A=0, while a nonzero ring cannot have its identity equal to zero?
3. Standard examples of commutative rings
Several familiar number systems are commutative rings with identity:
- The integers Z.
- The rational numbers Q.
- The real numbers R.
- The complex numbers C.
- The zero ring.
The fields Q, R, and C are also rings. A field has the additional property that every nonzero element has a multiplicative inverse.
Polynomial rings in one variable
If A is a commutative ring with identity, then the polynomial ring in one variable over A is written A[x].
Its elements are polynomials of the form
a0+a1x+⋯+anxn,where each coefficient ai belongs to A.
Addition and multiplication are defined in the usual way. For example,
(a0+a1x)+(b0+b1x)=(a0+b0)+(a1+b1)x,and multiplication is determined by distributivity and the rule
xixj=xi+j.The coefficients come from A, but the variable x is an additional formal symbol.
Polynomial rings in several variables
Polynomial rings can also be formed using several variables:
A[x1,…,xn].An element is a finite sum of monomials of the form
ai1,…,inx1i1⋯xnin,where each coefficient ai1,…,in belongs to A and each exponent ij is a nonnegative integer.
More compactly, the elements look like
∑ai1,…,inx1i1⋯xnin.Only finitely many coefficients in this sum are nonzero. This finiteness is what makes the expression a polynomial rather than an infinite power series.
A particularly important example is the subring
A[x2]⊆A[x].Its elements are polynomials involving only even powers of x, such as
a0+a1x2+a2x4+⋯+anx2n.Rings of functions
Let S be any set. The collection of all functions from S to a commutative ring A is denoted by
ASor, equivalently, by
Func(S,A).Addition and multiplication are defined pointwise. For functions f,g:S→A, define
(f+g)(s)=f(s)+g(s)and
(fg)(s)=f(s)g(s)for each s∈S.
The additive identity is the zero function, which sends every element of S to 0. The multiplicative identity is the constant function with value 1A.
Because all operations are performed in A and A is commutative, the function set is also a commutative ring with identity.
4. Subrings
Once a ring has been defined, a natural question is whether it contains smaller sets that are rings under the same operations.
Let A be a ring. A subset B⊆A is a subring if B is itself a ring using the addition and multiplication inherited from A.
In this course, subrings are not required to contain the same multiplicative identity as the larger ring. In fact, a subring may not contain the identity of A at all.
This convention is important because there are two conventions in common use:
- Some authors require a subring to contain 1A.
- Other authors, including the convention used here, do not require this.
Examples of subrings
If A is a commutative ring, then A is naturally a subring of A[x]. The elements of A are identified with constant polynomials.
Any subring of A is also a subring of A[x].
Another example is the set of polynomials with zero constant term:
A1={p(x)∈A[x]:the constant term of p(x) is 0}.Every element of A1 has the form
a1x+a2x2+⋯+anxn.If two such polynomials are added, the result still has constant term zero. If two such polynomials are multiplied, every product contains a positive power of x, so the result also has constant term zero. Therefore A1 is closed under addition and multiplication and is a subring of A[x] under the convention being used.
Notice that A1 generally does not contain the constant polynomial 1. Thus, it need not contain the identity of A[x].
The set
{0,3}⊆Z/6Zprovides another example. It is closed under addition and multiplication modulo 6, so it is a subring. Within this subring, the element 3 acts as a multiplicative identity:
3⋅3=9≡3(mod6)and
3⋅0=0.However, 3 is not the identity of the larger ring Z/6Z, whose identity is 1.
Think About It
What is the difference between being a multiplicative identity inside a subring and being the multiplicative identity of the entire ring?
5. Ring homomorphisms
Rings can be compared through maps that preserve their algebraic operations.
Let A and B be rings. A function
f:A→Bis a ring homomorphism if it preserves addition and multiplication:
f(x+y)=f(x)+f(y)and
f(xy)=f(x)f(y)for all x,y∈A.
The first condition says that addition is respected. The second says that multiplication is respected. A homomorphism therefore transfers algebraic calculations in A into corresponding calculations in B.
Under the convention used here, a ring homomorphism is not necessarily required to satisfy
f(1A)=1B.However, the image of a ring homomorphism is a subring of B. The identity of this image may be different from 1B if identity preservation is not required.
For example, a map may have an image that is a subring with its own identity, even though that identity is not the identity of the larger ring B.
Image
The image of f is
im(f)={f(a):a∈A}.It consists of exactly those elements of B that are reached by the map. The image is a subring of B.
Kernel
The kernel of f is
ker(f)={a∈A:f(a)=0B}.It records the elements of A that are sent to zero. The kernel is not merely a subring; it is an ideal of A.
This distinction matters because ideals are designed to capture the elements that become zero when passing to a quotient.
6. Ideals
Let A be a commutative ring. A subset I⊆A is an ideal if it satisfies two conditions:
- I is an additive subgroup of A.
- For every a∈A and every x∈I, ax∈I.
The second condition is called absorption. It says that multiplying an element of the ideal by any element of the entire ring keeps the result inside the ideal.
An ideal is therefore closed under addition and additive inverses, and it absorbs multiplication by arbitrary ring elements.
Why ideals are different from subrings
A subring only needs to be closed under its own addition and multiplication. An ideal must satisfy the stronger condition that multiplication by any element of the larger ring remains inside the ideal.
For this reason, every ideal is an additive subgroup, but an ideal need not contain a multiplicative identity. In fact, a proper ideal cannot contain the identity, because if 1A∈I, then for every a∈A,
a=a1A∈I,so I=A.
Basic examples
For every ring A, the set
{0}is an ideal. It is called the zero ideal.
The whole ring A is also an ideal of itself.
Ideals in the integers
For every nonnegative integer n, the set
nZ={nk:k∈Z}is an ideal of Z.
For example,
3Z={…,−6,−3,0,3,6,…}.If a∈Z and x=3k∈3Z, then
ax=a(3k)=3(ak)∈3Z,so the absorption property holds.
In fact, the ideals of Z are precisely the ideals nZ.
Ideals in a field
The only ideals of a field F are
{0}and
F.To see why, suppose I is a nonzero ideal and x∈I is nonzero. Since F is a field, x−1 exists. Because I absorbs multiplication by elements of F,
x−1x=1∈I.Once 1∈I, every element a∈F belongs to I, because
a=a⋅1∈I.Thus, every nonzero ideal in a field is the whole field.
In particular, the only ideals of Q are
{0}andQ.The ideal generated by x
In the polynomial ring A[x], the ideal generated by x is
(x)={xp(x):p(x)∈A[x]}.Every element of this ideal has zero constant term because multiplication by x increases every exponent by one. Conversely, every polynomial with zero constant term can be written as xp(x).
Therefore,
(x)={p(x)∈A[x]:the constant term of p(x) is 0}.This shows that the set of polynomials with zero constant term is not only a subring but also an ideal of A[x].
Ideals in a function ring
Let S be a set and consider the ring of functions from S to A. Let X⊆S be nonempty, and define
I(X)={f:S→A:f(x)=0 for every x∈X}.This is an ideal. If f,g∈I(X), then for every x∈X,
(f+g)(x)=f(x)+g(x)=0+0=0.Also, if h:S→A is any function and f∈I(X), then
(hf)(x)=h(x)f(x)=h(x)⋅0=0for every x∈X. Thus, hf∈I(X).
The ideal consists of functions that vanish on the selected subset X.
Think About It
Why does the condition “f(x)=0 for every x∈X” naturally produce an ideal rather than merely a subring?
7. Kernels are ideals
Suppose
f:A→Bis a ring homomorphism. Its kernel is
ker(f)={a∈A:f(a)=0}.The kernel is an ideal of A.
To see this, take x,y∈ker(f). Then
f(x)=0andf(y)=0.Since f preserves addition,
f(x−y)=f(x)−f(y)=0−0=0.Therefore, x−y∈ker(f), so the kernel is an additive subgroup.
Now take any a∈A and x∈ker(f). Since f preserves multiplication,
f(ax)=f(a)f(x)=f(a)⋅0=0.Thus,
ax∈ker(f).This proves that ker(f) is an ideal.
The kernel measures exactly which elements of A are identified with zero by the homomorphism.
8. Quotient rings
An ideal allows a ring to be collapsed by treating all of its elements as zero.
Let I be an ideal of A. Define a relation on A by
a∼b⟺a−b∈I.This is an equivalence relation. The equivalence class of a is written
a+I.It consists of all elements of the form
a+iwith i∈I.The collection of all equivalence classes is denoted by
A/Iand is called the quotient ring of A by I.
Addition and multiplication are defined by
(a+I)+(b+I)=(a+b)+Iand
(a+I)(b+I)=ab+I.The fact that these operations are well-defined depends on I being an ideal. If different representatives are chosen from the same equivalence classes, the resulting classes do not change.
The quotient ring inherits commutativity from A. Its additive identity is I, which is the same as 0+I, and its multiplicative identity is
1A+I.Conceptually, passing to A/I makes every element of I equal to zero.
The natural quotient map
There is a natural surjective ring homomorphism
φ:A→A/Idefined by
φ(a)=a+I.It is surjective because every element of A/I is an equivalence class a+I for some a∈A.
Its kernel is exactly I:
ker(φ)={a∈A:a+I=I}=I.Thus, the ideal used to form the quotient is precisely the set of elements sent to zero by the quotient map.
9. The first isomorphism theorem
Let
f:A→Bbe a ring homomorphism. Then the image of f is isomorphic to the quotient of A by the kernel:
im(f)≅A/ker(f).This is the first isomorphism theorem for rings.
The meaning is that the image of f contains the same algebraic information as A, except that all elements in ker(f) have been identified with zero.
The map f may send different elements of A to the same element of B. Two elements a,b∈A have the same image precisely when
f(a)=f(b),which is equivalent to
f(a−b)=0.Therefore,
a−b∈ker(f).So the fibers of f are exactly the cosets of ker(f), and the quotient A/ker(f) organizes the elements of A according to having the same image under f.
This is analogous to the rank-nullity viewpoint in linear algebra: the kernel records what is lost, and the quotient by the kernel produces the essential image.
10. Ideals of a quotient ring
The quotient map
φ:A→A/Ialso describes all ideals of the quotient ring.
There is a one-to-one correspondence between:
- Ideals of A/I.
- Ideals J of A satisfying I⊆J.
The correspondence sends an ideal J containing I to
J/I={j+I:j∈J}.In the opposite direction, an ideal K of A/I corresponds to its inverse image:
φ−1(K)={a∈A:φ(a)∈K}.Why must the corresponding ideal in A contain I? Every element of I maps to zero in A/I, and zero belongs to every ideal. Therefore,
I=ker(φ)⊆φ−1(K).This correspondence is useful because it converts questions about ideals in a quotient into questions about ideals in the original ring.
11. Images and inverse images of ideals
Suppose
f:A→Bis a ring homomorphism.
Inverse images
If J is an ideal of B, then its inverse image
f−1(J)={a∈A:f(a)∈J}is an ideal of A.
For example, if a1,a2∈f−1(J), then f(a1),f(a2)∈J. Since J is an additive subgroup,
f(a1−a2)=f(a1)−f(a2)∈J.Therefore,
a1−a2∈f−1(J).If a∈A and x∈f−1(J), then f(x)∈J, and hence
f(ax)=f(a)f(x)∈Jbecause J absorbs multiplication by elements of B. Thus,
ax∈f−1(J).So inverse images of ideals are always ideals.
Direct images
The direct image f(I) of an ideal I in A need not be an ideal of B.
The example from the integers illustrates this. Consider the inclusion homomorphism
f:Z→Q.The ideal nZ maps to the subset
nZ⊆Q.This subset is generally not an ideal of Q. Since Q is a field, its only ideals are {0} and Q, but nZ is usually neither of these.
The reason is that an ideal of B must absorb multiplication by every element of B. Although nZ absorbs multiplication by integers, it does not absorb multiplication by arbitrary rational numbers.
For instance, if n=0, then
n1⋅n=1,but 1 does not generally belong to nZ.
Thus:
- Inverse images of ideals are always ideals.
- Direct images of ideals need not be ideals.
Think About It
Why does a direct image need to absorb multiplication by elements of the target ring, while the original ideal only had to absorb multiplication by elements of the source ring?
12. Special elements in a ring
Several important classes of elements help describe the structure of a ring:
- Zero divisors.
- Nilpotent elements.
- Units.
These classes are related, but they are not the same.
Zero divisors
An element x∈A is a zero divisor if there exists a nonzero element y∈A such that
xy=0.The element x is a zero divisor because its product with a nonzero element becomes zero.
In a nonzero ring, the element 0 itself is a zero divisor under this definition: one may choose any nonzero y, since
0⋅y=0.The zero ring is treated separately because it contains no nonzero element y.
Example in Z/6Z
In Z/6Z,
2⋅3=6≡0(mod6).Therefore, both 2 and 3 are zero divisors.
Nilpotent elements
An element x∈A is nilpotent if there exists an integer n>1 such that
xn=0.The element itself need not be zero, but some positive power of it is zero.
For example, in Z/4Z,
22=4≡0(mod4).Thus, 2 is nilpotent.
A nonzero nilpotent element is automatically a zero divisor. If n>1 is chosen as small as possible so that
xn=0,then xn−1=0, while
x⋅xn−1=xn=0.Therefore, x is a zero divisor.
The converse does not hold. In Z/6Z, the element 3 is a zero divisor because
3⋅2=0(mod6),but it is not nilpotent, since
3n=3for every positive integer n.
Units
An element x∈A is a unit if there exists y∈A such that
xy=1A.The element y is called the multiplicative inverse of x.
In a field, every nonzero element is a unit. This is one of the defining differences between a field and a general ring.
In a nonzero commutative ring, a unit cannot be a zero divisor. Suppose x is a unit and xy=0. Multiplying by x−1 gives
y=x−1(xy)=x−1⋅0=0.Thus, a unit cannot multiply a nonzero element to produce zero.
The sets of units and zero divisors are therefore disjoint in a nonzero ring.
Relationships among the three classes
The main relationships are:
- Every nonzero nilpotent is a zero divisor.
- Not every zero divisor is nilpotent.
- No unit in a nonzero ring is a zero divisor.
- An element may be neither a unit, nor a zero divisor, nor nilpotent.
These properties describe different kinds of algebraic behavior. Units can be canceled because they have inverses. Zero divisors prevent cancellation. Nilpotents represent nonzero elements that eventually disappear under repeated multiplication.
Comprehensive review
A commutative ring with identity is a set with addition and multiplication in which addition forms an abelian group, multiplication is associative and commutative, multiplication distributes over addition, and an element 1A acts as a multiplicative identity.
Important examples include Z, Q, R, C, polynomial rings such as A[x] and A[x1,…,xn], and rings of functions from a set into a ring.
A subring is a subset that is itself a ring under the inherited operations. Under the convention used here, a subring need not contain the identity of the larger ring.
A ring homomorphism preserves addition and multiplication:
f(x+y)=f(x)+f(y),f(xy)=f(x)f(y).Its image is a subring, while its kernel is an ideal.
An ideal is an additive subgroup that absorbs multiplication by every element of the ring. Standard examples include {0}, the whole ring, nZ, the ideal (x) in A[x], and the functions vanishing on a specified subset.
An ideal I produces a quotient ring A/I, whose elements are cosets a+I. The natural map
A→A/Iis surjective and has kernel I. More generally,
im(f)≅A/ker(f).Ideals in A/I correspond exactly to ideals of A that contain I. Inverse images of ideals under ring homomorphisms are always ideals, but direct images need not be.
Finally, zero divisors, nilpotents, and units describe important element-level behavior. Nilpotent elements become zero after taking a sufficiently high power, zero divisors multiply with nonzero elements to produce zero, and units possess multiplicative inverses. Understanding these distinctions prepares the way for the deeper study of ideals, modules, localization, Noetherian and Artinian rings, and the structural theorems of commutative algebra.

Ask anything
We've read this whole study set, so questions about it get the best answers.