2024-05-14
Algebra-I
00

Contents

§14 Rings
§14.1 Definition of a Ring
§14.2 Examples of Commutative Rings
§14.3 The Ring $\mathbb{Z}/n\mathbb{Z}$
§14.4 Motivation for Commutative Rings
§14.5 Examples of Noncommutative Rings
§14.6 Ring Homomorphisms

§14 Rings

§14.1 Definition of a Ring

Definition 14.1 A monoid is a group without inverses. That is, a monoid is a set MM together with a function

:M×MM\cdot:M\times M\to M

which has an identity element and is associative. We call a monoid commutative if

ab=baab=ba

for all a,bMa,b\in M.

Definition 14.2 An associative ring is a triple

(R,+,),(R,+,\cdot),

where RR is a set and

(1)

+:R×RR+:R\times R\to R

is a function making (R,+)(R,+) into an Abelian group. We call this operation addition, and its identity element is 00.

(2)

:R×RR\cdot:R\times R\to R

is a function making RR into a monoid. We call the operation \cdot multiplication, and its identity element is 11.

(3) Finally, we require multiplication to distribute over addition. This means that for all a,b,cRa,b,c\in R,

a(b+c)=ab+acand(b+c)a=ba+ca,a(b+c)=ab+ac \quad\text{and}\quad (b+c)a=ba+ca,

where we write aba\cdot b as abab.

We usually write simply RR for a ring, suppressing the operations ++ and \cdot.

Definition 14.3 If (R,)(R,\cdot) is an Abelian monoid, we call RR a commutative ring.

When discussing groups, I quickly proved the cancellation law because it is useful to know. Here is another useful fact.

Proposition 14.1 Let RR be an associative ring, and let 00 be the additive identity of RR. Then

0a=a0=00\cdot a=a\cdot0=0

for every aRa\in R.

Proof:

0a=(0+0)a=0a+0a.\begin{align*} 0\cdot a &=(0+0)\cdot a \tag{since $0+0=0$}\\ &=0\cdot a+0\cdot a \tag{distributivity}. \end{align*}

Using the cancellation law in the Abelian group, we may subtract 0a0\cdot a from both sides of the equation. This leaves

0=0a.0=0\cdot a.

Similarly,

a0=0.a\cdot0=0.
 ~\tag*{$\square$}

Remark We will not explore the reason in detail, but rings behave very differently depending on whether or not they are commutative.

§14.2 Examples of Commutative Rings

Example 14.1 Consider the triple

(Z,+,).(\mathbb{Z},+,\cdot).

This makes (Z,+)(\mathbb{Z},+) an Abelian group, while (Z,)(\mathbb{Z},\cdot) is clearly a monoid: multiplication has an identity element called 11 and is associative.

The distributive law is the familiar distributive law.

Example 14.2 With the usual addition and multiplication, the triple

(Q,+,)(\mathbb{Q},+,\cdot)

is a ring.

The same is true of R\mathbb{R} and C\mathbb{C} with their usual multiplication.

These are special kinds of rings because every element of

R{0}R-\{0\}

has a multiplicative inverse.

Example 14.3 (Polynomial Rings)

Let

Z[x]\mathbb{Z}[x]

denote the set of polynomials in xx with integer coefficients.

Thus an element is an expression

p(x)=a0+a1x+a2x2++anxn=i=0aixi,p(x) = a_0+a_1x+a_2x^2+\cdots+a_nx^n = \sum_{i=0}^{\infty}a_ix^i,

where

ai=0a_i=0

for all ii larger than some finite nn.

For example, the following are elements of Z[x]\mathbb{Z}[x]:

0,5,3+x5x4,x.0,\quad5,\quad3+x-5x^4,\quad x.

In the third example,

a0=3,a1=1,a2=0,a3=0,a4=5.a_0=3,\qquad a_1=1,\qquad a_2=0,\qquad a_3=0,\qquad a_4=-5.

Let q(x)q(x) be a polynomial with coefficients bib_i.

Polynomial addition is defined by

p(x)+q(x):=i=0(ai+bi)xi.p(x)+q(x) := \sum_{i=0}^{\infty}(a_i+b_i)x^i.

Notice that since ai=0a_i=0 for i>ni>n, and bi=0b_i=0 for every ii larger than some mm, the sum really is a polynomial because

ai+bi=0a_i+b_i=0

for every

i>max(m,n).i>\max(m,n).

The product of two polynomials is defined in the usual way:

p(x)q(x)=(a0+a1x++anxn)(b0+b1x++bmxm)=a0b0+(a1b0+a0b1)x++anbmxn+m=k0(i+j=kaibj)xk.\begin{aligned} p(x)\cdot q(x) &= (a_0+a_1x+\cdots+a_nx^n) (b_0+b_1x+\cdots+b_mx^m)\\ &= a_0b_0 + (a_1b_0+a_0b_1)x + \cdots + a_nb_mx^{n+m}\\ &= \sum_{k\geqslant0} \left( \sum_{i+j=k}a_ib_j \right)x^k. \end{aligned}

Proposition 14.2 Z[x]\mathbb{Z}[x] is a commutative ring.

More generally, if RR is a commutative ring, then the set

R[x]R[x]

of polynomials with coefficients in RR is a commutative ring.

Proof:

  1. R[x]R[x] is a ring because:

(1) Addition is closed.

For two polynomials p(x)p(x) and q(x)q(x) in R[x]R[x], their sum

p(x)+q(x)p(x)+q(x)

is a polynomial whose coefficients are the sums of the corresponding coefficients of p(x)p(x) and q(x)q(x).

Since RR is a commutative ring and is closed under addition, this operation is well defined in R[x]R[x].

(2) Multiplication is closed.

For two polynomials p(x)p(x) and q(x)q(x), their product can be written as

p(x)q(x)=(i=0naixi)(j=0mbjxj)=k=0n+mckxk,p(x)\cdot q(x) = \left( \sum_{i=0}^{n}a_ix^i \right) \left( \sum_{j=0}^{m}b_jx^j \right) = \sum_{k=0}^{n+m}c_kx^k,

where

ck=i+j=kaibj.c_k = \sum_{i+j=k}a_ib_j.

Since RR is closed under multiplication, each coefficient ckc_k is an element of RR. Thus the product is a polynomial in R[x]R[x].

(3) Addition is associative and commutative.

Polynomial addition in R[x]R[x] is associative and commutative because addition in RR is associative and commutative, and the operations on individual coefficients obey the corresponding properties in RR.

(4) Multiplication is associative.

Polynomial multiplication in R[x]R[x] is associative because the distributive laws hold and multiplication in RR is associative.

Thus, for polynomials p(x),q(x),r(x)R[x]p(x),q(x),r(x)\in R[x],

(p(x)q(x))r(x)=p(x)(q(x)r(x)).(p(x)\cdot q(x))\cdot r(x) = p(x)\cdot(q(x)\cdot r(x)).

(5) Distributivity.

Multiplication distributes over addition because, for p(x),q(x),r(x)R[x]p(x),q(x),r(x)\in R[x],

p(x)(q(x)+r(x))=p(x)q(x)+p(x)r(x).p(x)\cdot(q(x)+r(x)) = p(x)\cdot q(x) + p(x)\cdot r(x).

This follows from the distributive law for the individual coefficients in RR.

  1. Commutativity of multiplication.

For any polynomials

p(x),q(x)R[x],p(x),q(x)\in R[x],

we have

p(x)q(x)=q(x)p(x).p(x)\cdot q(x) = q(x)\cdot p(x).

This is because multiplication in RR is commutative.

In particular, if

p(x)=i=0naixip(x) = \sum_{i=0}^{n}a_ix^i

and

q(x)=j=0mbjxj,q(x) = \sum_{j=0}^{m}b_jx^j,

then

p(x)q(x)=k=0n+mi+j=kaibjxk.p(x)\cdot q(x) = \sum_{k=0}^{n+m} \sum_{i+j=k} a_ib_jx^k.

Since multiplication in RR is commutative,

aibj=bjai.a_ib_j=b_ja_i.

Therefore,

p(x)q(x)=q(x)p(x).p(x)\cdot q(x) = q(x)\cdot p(x).
 ~\tag*{$\square$}

Example 14.4 (Smooth Functions)

Here is an example in which it is more difficult to explicitly list all the elements of the set.

Let

C(Rn)C^{\infty}(\mathbb{R}^{n})

denote the set of all infinitely differentiable functions from Rn\mathbb{R}^{n} to R\mathbb{R}.

Given two functions ff and gg, define their sum f+gf+g to be the function sending

xRnx\in\mathbb{R}^{n}

to

f(x)+g(x),f(x)+g(x),

where the addition takes place in R\mathbb{R}.

Their product fgfg is the function sending

xRnx\in\mathbb{R}^{n}

to

f(x)g(x)R.f(x)\cdot g(x)\in\mathbb{R}.

This is also a ring.

§14.3 The Ring Z/nZ\mathbb{Z}/n\mathbb{Z}

We have already seen three examples of familiar rings.

They are all infinite.

Now let us look at some finite examples.

Lemma 14.3 Let

Z/nZ\mathbb{Z}/n\mathbb{Z}

be the set of integers modulo nn.

The function

:Z/nZ×Z/nZZ/nZ,ab:=ab\cdot: \mathbb{Z}/n\mathbb{Z} \times \mathbb{Z}/n\mathbb{Z} \to \mathbb{Z}/n\mathbb{Z}, \qquad \overline{a}\cdot\overline{b} := \overline{a\cdot b}

is well defined.

Remark We use a\overline{a} to denote the equivalence class associated with aZa\in\mathbb{Z}.

Here, aba\cdot b is ordinary multiplication of integers, while ab\overline{a\cdot b} denotes the corresponding equivalence class modulo nn.

Proof: We need to prove that if

a=a\overline{a} = \overline{a}^{\prime}

and

b=b,\overline{b} = \overline{b}^{\prime},

then

ab=ab.\overline{a\cdot b} = \overline{a^{\prime}\cdot b^{\prime}}.

Since a=aa=a^{\prime} modulo nn if and only if

a=a+Ana=a^{\prime}+An

for some integer AA.

Similarly,

b=b+Bnb=b^{\prime}+Bn

for some integer BB.

Therefore,

ab=(a+An)(b+Bn)=ab+(aB+Ab+AB)n.ab = (a^{\prime}+An)(b^{\prime}+Bn) = a^{\prime}b^{\prime} + (a^{\prime}B+Ab^{\prime}+AB)n.

Hence

abab

is equal to

aba^{\prime}b^{\prime}

modulo nn.

 ~\tag*{$\square$}

Corollary 14.4 Let ++ be the usual addition on Z/nZ\mathbb{Z}/n\mathbb{Z}, and let \cdot be the operation above.

Then:

(1)

(Z/nZ,+)(\mathbb{Z}/n\mathbb{Z},+)

is an Abelian group with identity 0\overline{0}.

(2)

(Z/nZ,)(\mathbb{Z}/n\mathbb{Z},\cdot)

is an Abelian monoid with identity 1\overline{1}.

(3) The operation \cdot distributes over ++.

Proof:

(1) This is a result we have already proved.

(2) To prove associativity, note that

(ab)c=abc=(ab)c=a(bc)=abc=a(bc).(14.1)\begin{aligned} (\overline{a}\cdot\overline{b})\cdot\overline{c} &= \overline{a\cdot b}\cdot\overline{c}\\ &= \overline{(a\cdot b)\cdot c}\\ &= \overline{a\cdot(b\cdot c)}\\ &= \overline{a}\cdot\overline{b\cdot c}\\ &= \overline{a}\cdot (\overline{b}\cdot\overline{c}). \tag{14.1} \end{aligned}

Every line except (14.1) follows from the definition of \cdot, while (14.1) uses associativity of integer multiplication.

Commutativity holds because

ab=ab=ba=ba.\overline{a}\cdot\overline{b} = \overline{a\cdot b} = \overline{b\cdot a} = \overline{b}\cdot\overline{a}.

The middle equality is simply commutativity of integer multiplication.

The identity is 11 because

a1=a1=a.\overline{a}\cdot\overline{1} = \overline{a\cdot1} = \overline{a}.

(3) Distributivity holds because

a(b+c)=ab+c=a(b+c)=ab+ac=ab+ac=ab+ac.(14.2)\begin{aligned} \overline{a}\cdot (\overline{b}+\overline{c}) &= \overline{a}\cdot\overline{b+c}\\ &= \overline{a\cdot(b+c)}\\ &= \overline{ab+ac}\\ &= \overline{ab}+\overline{ac}\\ &= \overline{a}\cdot\overline{b} + \overline{a}\cdot\overline{c}. \tag{14.2} \end{aligned}

Except for (14.2), each line follows from the definitions, while (14.2) uses the ordinary distributive law for integers.

 ~\tag*{$\square$}

§14.4 Motivation for Commutative Rings

There is a philosophy in modern mathematics that the properties of a space can be inferred by studying the properties of collections of functions on that space.

For example, by studying the collection of polynomial functions on a space XX, one can infer certain properties of the space XX itself.

In fact, collections of functions naturally form commutative rings.

Properties of these rings determine certain features of the space XX.

This is far from obvious.

Some of the most important developments related to this idea did not appear until the 1880s—almost two hundred years after Descartes first observed that algebraic equations could describe concrete geometry.

So if you consider that algebra, beginning in the Islamic Golden Age around the 800s, and geometry, originating with the Greeks, developed for almost a thousand years before Descartes brought them together, and that it then took another two hundred years before we systematically understood rings as powerful tools for studying geometry, you may begin to appreciate that these are very deep ideas.

We will not be able to explore the theory of using rings to study geometry in detail.

But if you are interested, you can look into commutative algebra and algebraic geometry.

§14.5 Examples of Noncommutative Rings

Example 14.5 (Matrix Rings)

Fix an integer

n0,n\geqslant0,

and consider the set

Mn×n(R)M_{n\times n}(\mathbb{R})

of all n×nn\times n matrices with entries in R\mathbb{R}.

You can add and multiply matrices, and matrix multiplication distributes over addition.

Therefore,

Mn×n(R)M_{n\times n}(\mathbb{R})

is a ring.

To make distributivity explicit, consider three matrices A,B,CA,B,C with entries

aij,bij,cij.a_{ij}, \qquad b_{ij}, \qquad c_{ij}.

The ijij entry of

A(B+C)A(B+C)

is

k=1naik(bkj+ckj)=k=1naikbkj+k=1naikckj.\sum_{k=1}^{n} a_{ik}(b_{kj}+c_{kj}) = \sum_{k=1}^{n}a_{ik}b_{kj} + \sum_{k=1}^{n}a_{ik}c_{kj}.

But the expression on the right is exactly the ijij entry of

AB+AC.AB+AC.

Similarly, one can prove

(B+C)A=BA+CA.(B+C)A = BA+CA.

Example 14.6 (Group Rings)

Let GG be a finite group and let RR be a commutative ring.

As a set,

R[G]R[G]

is the set of all functions from GG to RR.

Thus each element

gGg\in G

corresponds to an element

rgR.r_g\in R.

We write such a function using the notation

gGrgg.\sum_{g\in G}r_gg.

For example, the following is an element of

Z[S3]:\mathbb{Z}[S_3]:
5( )+3(12)8(123).5(~)+3(12)-8(123).

Addition is straightforward: we simply add the corresponding terms:

(rgg)+(sgg)=gG(rg+sg)g.\left( \sum r_gg \right) + \sum(s_gg) = \sum_{g\in G}(r_g+s_g)g.

That is, this is simply addition of functions.

Multiplication is not just multiplication of functions.

The coefficient of gg in the product of

rgg\sum r_gg

and

sgg\sum s_gg

is given by

(g1,g2) s.t. g1g2=grg1sg2.\sum_{(g_1,g_2)~\text{s.t.}~g_1g_2=g} r_{g_1}s_{g_2}.

In other words,

(gGrgg)(hGshh)=gGhGrgsh(gh)=kG((g1,g2) s.t. g1g2=grgsh)k.\left( \sum_{g\in G}r_gg \right) \left( \sum_{h\in G}s_hh \right) = \sum_{g\in G} \sum_{h\in G} r_gs_h(gh) = \sum_{k\in G} \left( \sum_{(g_1,g_2)~\text{s.t.}~g_1g_2=g} r_gs_h \right)k.

Notice that this multiplication is not commutative.

§14.6 Ring Homomorphisms

Definition 14.4 Let RR and SS be rings, and let

f:RSf:R\to S

be a function.

We call ff a ring homomorphism if

(1) ff is a group homomorphism with respect to addition;

(2)

f(1)=1,f(1)=1,

i.e. ff sends the multiplicative identity of RR to the multiplicative identity of SS;

(3) for all a,bRa,b\in R,

f(ab)=f(a)f(b).f(ab)=f(a)f(b).

Definition 14.5 If ff is a bijection, we call ff an isomorphism.

Now I would like to explain further why

Z/nZ\mathbb{Z}/n\mathbb{Z}

is a ring.

How did we prove that it is a group?

By applying a general principle:

if

HG,H\triangleleft G,

then

G/HG/H

is a group.

I would like to do the same thing for rings.

But in this context, whenever we say “ring”, we will mean a commutative ring.