Introduction to Modern Algebra
Exercise 10.1.

Let TT be the set of upper triangular matrices in M2(R)M_2(\mathbb{R}), those of the form

(ab0d),a,b,d∈R.\begin{pmatrix} a & b \\ 0 & d \end{pmatrix}, \qquad a, b, d \in \mathbb{R}.

Show that TT is a subring of M2(R)M_2(\mathbb{R}). Then find two elements of TT that do not commute, and two non-zero elements of TT whose product is the zero matrix.

Solution.

Check the four conditions of Definition 10.3.1.

  • One: the identity matrix II is upper triangular, with a=d=1a = d = 1 and b=0b = 0.
  • Sums and negatives: adding two upper triangular matrices, or negating one, keeps the bottom left entry 00.
  • Products: the product of two upper triangular matrices is upper triangular, since
(ab0d)(a′b′0d′)=(aa′ab′+bd′0dd′).\begin{aligned} &\begin{pmatrix} a & b \\ 0 & d \end{pmatrix} \begin{pmatrix} a' & b' \\ 0 & d' \end{pmatrix} \\ &\quad = \begin{pmatrix} aa' & ab' + bd' \\ 0 & dd' \end{pmatrix}. \end{aligned}

So TT is a subring. Now let

E=(1000),N=(0100),E = \begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix}, \qquad N = \begin{pmatrix} 0 & 1 \\ 0 & 0 \end{pmatrix},

both in TT. By the product rule above, EN=NEN = N, while NENE is the zero matrix. So EN≠NEEN \neq NE, and NN and EE are non-zero elements of TT with NE=0NE = 0. □

Exercise 10.2.
  • (a) List the zero divisors of Z/20Z\mathbb{Z}/20\mathbb{Z}.
  • (b) Find the inverse of [7][7] in the field F17\mathbb{F}_{17}.
Solution.

(a) By Theorem 2.3.4, a non-zero class [a][a], with 0<a<200 < a < 20, is a unit exactly when gcd⁡(a,20)=1\gcd(a, 20) = 1. A unit is never a zero divisor: if [a][a] is a unit and [a][b]=[0][a][b] = [0], then [b]=[a]−1[a][b]=[0][b] = [a]^{-1}[a][b] = [0]. If d=gcd⁡(a,20)>1d = \gcd(a, 20) > 1, then b=20/db = 20/d satisfies 0<b<200 < b < 20 and ab=(a/d)⋅20ab = (a/d) \cdot 20, so [a][b]=[0][a][b] = [0] with [b]≠[0][b] \neq [0]. So the zero divisors are the non-zero classes [a][a] with gcd⁡(a,20)>1\gcd(a, 20) > 1:

[2],[4],[5],[6],[8],[10],[12],[14],[15],[16],[18].\begin{aligned} &[2], [4], [5], [6], [8], [10], \\ &[12], [14], [15], [16], [18]. \end{aligned}

(b) Bézout’s identity for 77 and 1717: 17=2⋅7+317 = 2 \cdot 7 + 3 and 7=2⋅3+17 = 2 \cdot 3 + 1, so 1=7−2⋅3=7−2(17−2⋅7)=5⋅7−2⋅171 = 7 - 2 \cdot 3 = 7 - 2(17 - 2 \cdot 7) = 5 \cdot 7 - 2 \cdot 17. So [7][5]=[35]=[1][7][5] = [35] = [1] and [7]−1=[5][7]^{-1} = [5], as Theorem 2.3.4 predicts. Check: 35=2⋅17+135 = 2 \cdot 17 + 1. □

Exercise 10.3.

Decide which of these subsets of Z[i]\mathbb{Z}[i] are ideals of Z[i]\mathbb{Z}[i], and justify each answer.

  • (a) {a+bi:a and b are both divisible by 3}\{a + bi : a \text{ and } b \text{ are both divisible by } 3\}.
  • (b) Z\mathbb{Z}, the Gaussian integers with b=0b = 0.
  • (c) {a+bi:a=b}\{a + bi : a = b\}.
Solution.

Each set is a subgroup under addition: sums and negatives keep both parts divisible by 33 in (a), keep b=0b = 0 in (b), and keep a=ba = b in (c), and each contains 00. So the question is whether each absorbs multiplication by every Gaussian integer.

(a) Yes. If a=3a′a = 3a' and b=3b′b = 3b', then (c+di)(a+bi)=3((c+di)(a′+b′i))(c + di)(a + bi) = 3\bigl((c + di)(a' + b'i)\bigr), and 33 times a Gaussian integer has both parts divisible by 33. This ideal is the principal ideal (3)(3).

(b) No. 1∈Z1 \in \mathbb{Z} and i∈Z[i]i \in \mathbb{Z}[i], but i⋅1=i∉Zi \cdot 1 = i \notin \mathbb{Z}. (Z\mathbb{Z} is a subring of Z[i]\mathbb{Z}[i], but not an ideal.)

(c) No. 1+i1 + i is in the set, but i(1+i)=−1+ii(1 + i) = -1 + i has real part −1-1 and imaginary part 11, which differ. □

Exercise 10.4.Not yet reviewed

A ring RR is called Boolean if a2=aa^2 = a for every a∈Ra \in R. Show that in a Boolean ring a+a=0a + a = 0 for every aa, and that every Boolean ring is commutative.

Hint.

Apply x2=xx^2 = x to x=a+ax = a + a, and then to x=a+bx = a + b, and expand with the distributive laws.

Solution.

The plan is to expand squares of sums, which brings in the products the statement is about, and then use x2=xx^2 = x to simplify.

First, a+a=0a + a = 0. By distributivity,

(a+a)2=a2+a2+a2+a2=a+a+a+a,\begin{aligned} (a + a)^2 &= a^2 + a^2 + a^2 + a^2 \\ &= a + a + a + a, \end{aligned}

using a2=aa^2 = a. Since (a+a)2=a+a(a + a)^2 = a + a, this gives (a+a)+(a+a)=a+a(a + a) + (a + a) = a + a, and canceling a+aa + a in the additive group leaves a+a=0a + a = 0. So every element is its own negative: −a=a-a = a.

Next, ab=baab = ba. For a,b∈Ra, b \in R, distributivity gives

(a+b)2=a2+ab+ba+b2=a+ab+ba+b.\begin{aligned} (a + b)^2 &= a^2 + ab + ba + b^2 \\ &= a + ab + ba + b. \end{aligned}

Since (a+b)2=a+b(a + b)^2 = a + b, canceling aa and bb leaves ab+ba=0ab + ba = 0, so ab=−(ba)ab = -(ba). By the first part, −(ba)=ba-(ba) = ba. So ab=baab = ba, and RR is commutative. □

Exercise 10.5.

Let φ:R→S\varphi : R \to S be a ring homomorphism. Show that φ\varphi sends units to units, and that the restriction of φ\varphi to R×R^\times is a group homomorphism R×→S×R^\times \to S^\times. Deduce that there is no ring homomorphism from Q\mathbb{Q} to Z\mathbb{Z}.

Hint.

Apply φ\varphi to aa−1=a−1a=1aa^{-1} = a^{-1}a = 1. For the last part, look at where 22 must go.

Solution.

Let a∈R×a \in R^\times. Applying φ\varphi to aa−1=1aa^{-1} = 1 and a−1a=1a^{-1}a = 1, and using that φ\varphi preserves products and sends 11 to 11,

φ(a)φ(a−1)=φ(1)=1,φ(a−1)φ(a)=φ(1)=1.\begin{aligned} \varphi(a)\varphi(a^{-1}) &= \varphi(1) = 1, \\ \varphi(a^{-1})\varphi(a) &= \varphi(1) = 1. \end{aligned}

So φ(a)\varphi(a) is a unit of SS, with inverse φ(a−1)\varphi(a^{-1}). The restriction R×→S×R^\times \to S^\times, a↦φ(a)a \mapsto \varphi(a), therefore has values in S×S^\times, and it satisfies φ(ab)=φ(a)φ(b)\varphi(ab) = \varphi(a)\varphi(b), which is the condition for a group homomorphism (Definition 4.1.1).

Now suppose φ:Q→Z\varphi : \mathbb{Q} \to \mathbb{Z} were a ring homomorphism. Then φ(2)=φ(1+1)=1+1=2\varphi(2) = \varphi(1 + 1) = 1 + 1 = 2. But 22 is a unit of Q\mathbb{Q}, so φ(2)=2\varphi(2) = 2 would be a unit of Z\mathbb{Z}, and Z×={1,−1}\mathbb{Z}^\times = \{1, -1\}. This contradiction shows that there is no such homomorphism. □

Exercise 10.6.

Let RR be an integral domain.

  • (a) Show that the only elements x∈Rx \in R with x2=1x^2 = 1 are 11 and −1-1.
  • (b) Show that (a) fails in Z/8Z\mathbb{Z}/8\mathbb{Z}.
  • (c) Let pp be an odd prime. Show that the product of all the non-zero classes of Fp\mathbb{F}_p is [−1][-1], that is, (p−1)!≡−1(modp)(p - 1)! \equiv -1 \pmod p.
Hint.

For (a), factor x2−1x^2 - 1. For (c), pair each non-zero class with its inverse.

Solution.

(a) If x2=1x^2 = 1, then by distributivity and Theorem 10.1.3,

(x−1)(x+1)=x2+x−x−1=x2−1=0.\begin{aligned} (x - 1)(x + 1) &= x^2 + x - x - 1 \\ &= x^2 - 1 = 0. \end{aligned}

Since RR has no zero divisors, x−1=0x - 1 = 0 or x+1=0x + 1 = 0, that is, x=1x = 1 or x=−1x = -1.

(b) In Z/8Z\mathbb{Z}/8\mathbb{Z}, [3]2=[9]=[1][3]^2 = [9] = [1], but [3][3] is neither [1][1] nor [−1]=[7][-1] = [7]. The step in (a) fails because Z/8Z\mathbb{Z}/8\mathbb{Z} has zero divisors: ([3]−[1])([3]+[1])=[2][4]=[0]([3] - [1])([3] + [1]) = [2][4] = [0].

(c) Fp\mathbb{F}_p is a field (Theorem 10.2.6), so it is an integral domain (Theorem 10.2.4), and every non-zero class has an inverse in the group Fp×\mathbb{F}_p^\times. By (a), the only classes equal to their own inverse are [1][1] and [−1][-1], and these are different since p>2p > 2. The other p−3p - 3 non-zero classes fall into pairs {[a],[a]−1}\{[a], [a]^{-1}\} with [a]≠[a]−1[a] \neq [a]^{-1}: each class has exactly one inverse, and the inverse of [a]−1[a]^{-1} is [a][a], so the pairs do not overlap. Each pair multiplies to [1][1]. Multiplying all the non-zero classes in any order (the ring is commutative) gives

[1]⋅[−1]⋅[1]⋯[1]=[−1].[1] \cdot [-1] \cdot [1] \cdots [1] = [-1].

The non-zero classes are [1],[2],…,[p−1][1], [2], \dots, [p - 1], so their product is [(p−1)!][(p - 1)!], and (p−1)!≡−1(modp)(p - 1)! \equiv -1 \pmod p. □

Exercise 10.7.

Let mm and nn be positive integers.

  • (a) Show that the intersection of two ideals of a commutative ring is an ideal.
  • (b) Show that (m)∩(n)=(lcm⁡(m,n))(m) \cap (n) = (\operatorname{lcm}(m, n)) in Z\mathbb{Z}.
  • (c) Show that (m,n)=(gcd⁡(m,n))(m, n) = (\gcd(m, n)) in Z\mathbb{Z}.
Hint.

For (b), every ideal of Z\mathbb{Z} is (l)(l) for some l≥0l \ge 0; which positive element is ll? For (c), use Bézout’s identity.

Solution.

(a) Let II and JJ be ideals of a commutative ring RR. The intersection of two subgroups is a subgroup: it contains 00, and if aa and bb lie in both, so do a+ba + b and −a-a. If a∈I∩Ja \in I \cap J and r∈Rr \in R, then ra∈Ira \in I and ra∈Jra \in J, since both ideals absorb multiplication, so ra∈I∩Jra \in I \cap J.

(b) By (a), (m)∩(n)(m) \cap (n) is an ideal of Z\mathbb{Z}, and by Theorem 10.5.2 it is (l)(l) for some l≥0l \ge 0. It contains mn≠0mn \neq 0, so l>0l > 0, and by Theorem 2.3.1 ll is its least positive element. The elements of (m)∩(n)(m) \cap (n) are the common multiples of mm and nn, so ll is the least positive common multiple, lcm⁡(m,n)\operatorname{lcm}(m, n).

(c) Let d=gcd⁡(m,n)d = \gcd(m, n). Every element am+bnam + bn of (m,n)(m, n) is a multiple of dd, since dd divides mm and nn. Conversely, by Bézout’s identity, d=xm+ynd = xm + yn for some integers xx and yy, so d∈(m,n)d \in (m, n), and then every multiple rd=(rx)m+(ry)nrd = (rx)m + (ry)n lies in (m,n)(m, n). So (m,n)=(d)(m, n) = (d). □

Exercise 10.8.

Let RR be a commutative ring. For an integer nn, write n⋅1n \cdot 1 for the nn-th multiple of 11 in the additive group of RR.

  • (a) Show that χ:Z→R\chi : \mathbb{Z} \to R, n↦n⋅1n \mapsto n \cdot 1, is a ring homomorphism, and that it is the only ring homomorphism from Z\mathbb{Z} to RR.
  • (b) Show that ker⁡χ=(m)\ker\chi = (m) for exactly one integer m≥0m \ge 0.
  • (c) Show that if RR is an integral domain, then mm is 00 or a prime.
Hint.

For uniqueness in (a), a ring homomorphism must send 11 to 11 and preserve sums. For (c), what does the first isomorphism theorem say about the image of χ\chi?

Solution.

(a) Sums: by the rules for multiples in a group (Definition 2.2.1), (m+n)⋅1=m⋅1+n⋅1(m + n) \cdot 1 = m \cdot 1 + n \cdot 1. One: 1⋅1=11 \cdot 1 = 1.

Products: first, for every a∈Ra \in R and integer nn, (n⋅1)a=n⋅a(n \cdot 1)a = n \cdot a. For n≥0n \ge 0 this follows from distributivity, since (1+⋯+1)a=a+⋯+a(1 + \dots + 1)a = a + \dots + a with nn terms; for n<0n < 0, (n⋅1)a=(−((−n)⋅1))a=−((−n)⋅a)=n⋅a(n \cdot 1)a = (-((-n) \cdot 1))a = -((-n) \cdot a) = n \cdot a by Theorem 10.1.3 (ii). Applying this with a=n⋅1a = n \cdot 1,

(m⋅1)(n⋅1)=m⋅(n⋅1)=(mn)⋅1,(m \cdot 1)(n \cdot 1) = m \cdot (n \cdot 1) = (mn) \cdot 1,

again by the rules for multiples. So χ\chi is a ring homomorphism.

Uniqueness: let ψ:Z→R\psi : \mathbb{Z} \to R be any ring homomorphism. Then ψ(1)=1\psi(1) = 1, so for n>0n > 0, ψ(n)=ψ(1+⋯+1)=1+⋯+1=n⋅1\psi(n) = \psi(1 + \dots + 1) = 1 + \dots + 1 = n \cdot 1. Also ψ(0)=0\psi(0) = 0 and ψ(−n)=−ψ(n)\psi(-n) = -\psi(n), since ψ\psi is a homomorphism of additive groups. So ψ=χ\psi = \chi.

(b) By Theorem 10.4.4, ker⁡χ\ker\chi is an ideal of Z\mathbb{Z}, and by Theorem 10.5.2 it is (m)(m) for exactly one m≥0m \ge 0.

(c) By Theorem 10.5.4, Z/(m)≅χ(Z)\mathbb{Z}/(m) \cong \chi(\mathbb{Z}), and χ(Z)\chi(\mathbb{Z}) is a subring of RR. A subring of an integral domain is an integral domain (it contains the same 1≠01 \neq 0, and a product of two of its non-zero elements is non-zero in RR). So Z/(m)\mathbb{Z}/(m) is an integral domain. For m≥1m \ge 1, Z/(m)=Z/mZ\mathbb{Z}/(m) = \mathbb{Z}/m\mathbb{Z} is a domain only when mm is prime (Theorem 10.2.6). So m=0m = 0 or mm is prime. □

Exercise 10.9.

Find a surjective ring homomorphism from Z[i]\mathbb{Z}[i] to Z/5Z\mathbb{Z}/5\mathbb{Z}, show that its kernel is the principal ideal (2+i)(2 + i), and conclude that (2+i)(2 + i) is a maximal ideal of Z[i]\mathbb{Z}[i].

Hint.

A ring homomorphism must send ii to a class whose square is [−1][-1]. Which classes of Z/5Z\mathbb{Z}/5\mathbb{Z} square to [−1]=[4][-1] = [4], and which of them sends 2+i2 + i to [0][0]?

Solution.

Since i2=−1i^2 = -1, a ring homomorphism must send ii to a class [t][t] with [t]2=[−1]=[4][t]^2 = [-1] = [4], so [t]=[2][t] = [2] or [3][3]. To have 2+i2 + i in the kernel we need [2]+[t]=[0][2] + [t] = [0], so take [t]=[3][t] = [3] and define

φ(a+bi)=[a+3b].\varphi(a + bi) = [a + 3b].

It is a ring homomorphism. It sends 11 to [1][1] and preserves sums. For products, (a+bi)(c+di)=(ac−bd)+(ad+bc)i(a + bi)(c + di) = (ac - bd) + (ad + bc)i goes to [ac−bd+3ad+3bc][ac - bd + 3ad + 3bc], while [a+3b][c+3d]=[ac+3ad+3bc+9bd][a + 3b][c + 3d] = [ac + 3ad + 3bc + 9bd]; these agree because 9bd≡−bd(mod5)9bd \equiv -bd \pmod 5. It is onto, since φ(a)=[a]\varphi(a) = [a] for every integer aa.

Its kernel is (2+i)(2 + i). First, (2+i)(c+di)=(2c−d)+(c+2d)i(2 + i)(c + di) = (2c - d) + (c + 2d)i goes to [2c−d+3c+6d]=[5c+5d]=[0][2c - d + 3c + 6d] = [5c + 5d] = [0], so (2+i)⊆ker⁡φ(2 + i) \subseteq \ker\varphi. Conversely, suppose a+3b≡0(mod5)a + 3b \equiv 0 \pmod 5, so a≡2b(mod5)a \equiv 2b \pmod 5. Solving 2c−d=a2c - d = a and c+2d=bc + 2d = b gives

c=2a+b5,d=2b−a5,c = \frac{2a + b}{5}, \qquad d = \frac{2b - a}{5},

and both are integers: 2b−a≡02b - a \equiv 0, and 2a+b≡4b+b=5b≡0(mod5)2a + b \equiv 4b + b = 5b \equiv 0 \pmod 5. So a+bi=(2+i)(c+di)a + bi = (2 + i)(c + di) lies in (2+i)(2 + i).

By Theorem 10.5.4, Z[i]/(2+i)≅Z/5Z\mathbb{Z}[i]/(2 + i) \cong \mathbb{Z}/5\mathbb{Z}, which is a field (Theorem 10.2.6). So (2+i)(2 + i) is maximal, by Theorem 10.6.4 (ii). □

Exercise 10.10.

An element aa of a commutative ring RR is called nilpotent if an=0a^n = 0 for some n≥1n \ge 1. Show that the nilpotent elements of RR form an ideal of RR, and find this ideal for R=Z/12ZR = \mathbb{Z}/12\mathbb{Z}.

Hint.

If am=0a^m = 0 and bn=0b^n = 0, expand (a+b)m+n−1(a + b)^{m + n - 1} by the binomial theorem, which holds in any commutative ring, and look at the exponents in each term.

Solution.

The one non-obvious condition is closure under addition; the binomial theorem reduces it to a count of exponents. Let NN be the set of nilpotent elements.

NN contains 00, since 01=00^1 = 0. If an=0a^n = 0, then (−a)n=(−1)nan=0(-a)^n = (-1)^n a^n = 0, using Theorem 10.1.3 and commutativity, so −a∈N-a \in N. If r∈Rr \in R, then (ra)n=rnan=0(ra)^n = r^n a^n = 0 by commutativity, so ra∈Nra \in N: NN absorbs multiplication.

Sums: let am=0a^m = 0 and bn=0b^n = 0. In a commutative ring the binomial theorem holds, with the same proof by induction as for numbers, so

(a+b)m+n−1=∑k=0m+n−1(m+n−1k)akbm+n−1−k.\begin{aligned} &(a + b)^{m + n - 1} \\ &\quad = \sum_{k = 0}^{m + n - 1} \binom{m + n - 1}{k} a^k b^{m + n - 1 - k}. \end{aligned}

In each term, either k≥mk \ge m, and then ak=amak−m=0a^k = a^m a^{k - m} = 0, or k≤m−1k \le m - 1, and then the exponent of bb is m+n−1−k≥nm + n - 1 - k \ge n, so that power of bb is 00. Every term is 00 (by Theorem 10.1.3 (i)), so (a+b)m+n−1=0(a + b)^{m + n - 1} = 0 and a+b∈Na + b \in N. So NN is a subgroup under addition that absorbs multiplication: an ideal.

For Z/12Z\mathbb{Z}/12\mathbb{Z}: if [a]n=[0][a]^n = [0], then 1212 divides ana^n, so 22 and 33 divide ana^n, and hence, by Euclid’s lemma, 22 and 33 divide aa: aa is a multiple of 66. Conversely [6]2=[36]=[0][6]^2 = [36] = [0]. So the nilpotent elements are [0][0] and [6][6], and N={[0],[6]}N = \{[0], [6]\}, the ideal generated by [6][6]. □