Commutative Rings and Fields

Similar documents
Rings If R is a commutative ring, a zero divisor is a nonzero element x such that xy = 0 for some nonzero element y R.

A field F is a set of numbers that includes the two numbers 0 and 1 and satisfies the properties:

Groups. s t or s t or even st rather than f(s,t).

An Introduction to Proof-based Mathematics Harvard/MIT ESP: Summer HSSP Isabel Vogt

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer?

REVIEW Chapter 1 The Real Number System

= 1 2x. x 2 a ) 0 (mod p n ), (x 2 + 2a + a2. x a ) 2

ALGEBRA. 1. Some elementary number theory 1.1. Primes and divisibility. We denote the collection of integers

Quotient Rings. is defined. Addition of cosets is defined by adding coset representatives:

Polynomial Rings. i=0

Galois fields/1. (M3) There is an element 1 (not equal to 0) such that a 1 = a for all a.

MATH 431 PART 2: POLYNOMIAL RINGS AND FACTORIZATION

WORKSHEET MATH 215, FALL 15, WHYTE. We begin our course with the natural numbers:

2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer?

Fields in Cryptography. Çetin Kaya Koç Winter / 30

Mathematical Foundations of Cryptography

Rings. EE 387, Notes 7, Handout #10

Chapter 14: Divisibility and factorization

2. Two binary operations (addition, denoted + and multiplication, denoted

Chapter 4 Finite Fields

4 Powers of an Element; Cyclic Groups

Examples of Groups

Divisibility = 16, = 9, = 2, = 5. (Negative!)

Chapter 4 Mathematics of Cryptography

Partial Fractions. (Do you see how to work it out? Substitute u = ax + b, so du = a dx.) For example, 1 dx = ln x 7 + C, x x (x 3)(x + 1) = a

Cool Results on Primes

#26: Number Theory, Part I: Divisibility

Elementary Properties of the Integers

Introduction to Information Security

2 Arithmetic. 2.1 Greatest common divisors. This chapter is about properties of the integers Z = {..., 2, 1, 0, 1, 2,...}.

17 Galois Fields Introduction Primitive Elements Roots of Polynomials... 8

Lecture 7.4: Divisibility and factorization

* 8 Groups, with Appendix containing Rings and Fields.

Math Lecture 18 Notes

Algebra. Modular arithmetic can be handled mathematically by introducing a congruence relation on the integers described in the above example.

3.4. ZEROS OF POLYNOMIAL FUNCTIONS

MATH 115, SUMMER 2012 LECTURE 12

Simplifying Rational Expressions and Functions

2 so Q[ 2] is closed under both additive and multiplicative inverses. a 2 2b 2 + b

2 Lecture 2: Logical statements and proof by contradiction Lecture 10: More on Permutations, Group Homomorphisms 31

Rings. Chapter 1. Definition 1.2. A commutative ring R is a ring in which multiplication is commutative. That is, ab = ba for all a, b R.

Outline. We will now investigate the structure of this important set.

ZEROS OF POLYNOMIAL FUNCTIONS ALL I HAVE TO KNOW ABOUT POLYNOMIAL FUNCTIONS

Discrete Mathematics and Probability Theory Fall 2014 Anant Sahai Note 7

Intro to Rings, Fields, Polynomials: Hardware Modeling by Modulo Arithmetic

Induction 1 = 1(1+1) = 2(2+1) = 3(3+1) 2

Q 2.0.2: If it s 5:30pm now, what time will it be in 4753 hours? Q 2.0.3: Today is Wednesday. What day of the week will it be in one year from today?

5 Group theory. 5.1 Binary operations

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 8

Mathematics for Cryptography

COMPUTER ARITHMETIC. 13/05/2010 cryptography - math background pp. 1 / 162

P-adic numbers. Rich Schwartz. October 24, 2014

WORKSHEET ON NUMBERS, MATH 215 FALL. We start our study of numbers with the integers: N = {1, 2, 3,...}

Finite Fields: An introduction through exercises Jonathan Buss Spring 2014

Rings and modular arithmetic

Coding Theory ( Mathematical Background I)

Chapter 1 A Survey of Divisibility 14

ECEN 5022 Cryptography

Recall, R is an integral domain provided: R is a commutative ring If ab = 0 in R, then either a = 0 or b = 0.

Computations/Applications

Section 19 Integral domains

Elementary Algebra Chinese Remainder Theorem Euclidean Algorithm

1 Overview and revision

Finite Fields. Mike Reiter

Basic elements of number theory

Basic elements of number theory

Math Lecture 3 Notes

Primes and Modular Arithmetic! CSCI 2824, Fall 2014!!

CHAPTER I. Rings. Definition A ring R is a set with two binary operations, addition + and

Algebra for error control codes

Math 412, Introduction to abstract algebra. Overview of algebra.

Proofs. Chapter 2 P P Q Q

MATH 3030, Abstract Algebra FALL 2012 Toby Kenney Midyear Examination Friday 7th December: 7:00-10:00 PM

Chapter 2. Divisibility. 2.1 Common Divisors

6.1. Rational Expressions and Functions; Multiplying and Dividing. Copyright 2016, 2012, 2008 Pearson Education, Inc. 1

Continuing discussion of CRC s, especially looking at two-bit errors

LECTURE NOTES IN CRYPTOGRAPHY

RINGS: SUMMARY OF MATERIAL

Ch. 12 Higher Degree Equations Rational Root

The theory of numbers

AN ALGEBRA PRIMER WITH A VIEW TOWARD CURVES OVER FINITE FIELDS

Tomáš Madaras Congruence classes

32 Divisibility Theory in Integral Domains

ECEN 5682 Theory and Practice of Error Control Codes

MTH 310, Section 001 Abstract Algebra I and Number Theory. Sample Midterm 1

Proofs. Chapter 2 P P Q Q

that if a b (mod m) and c d (mod m), then ac bd (mod m) soyou aren't allowed to use this fact!) A5. (a) Show that a perfect square must leave a remain

8 Primes and Modular Arithmetic

Section 4.3. Polynomial Division; The Remainder Theorem and the Factor Theorem

a + bi by sending α = a + bi to a 2 + b 2. To see properties (1) and (2), it helps to think of complex numbers in polar coordinates:

+ 1 3 x2 2x x3 + 3x 2 + 0x x x2 2x + 3 4

g(x) = 1 1 x = 1 + x + x2 + x 3 + is not a polynomial, since it doesn t have finite degree. g(x) is an example of a power series.

Chapter 5. Number Theory. 5.1 Base b representations

CHMC: Finite Fields 9/23/17

MA257: INTRODUCTION TO NUMBER THEORY LECTURE NOTES

NUMBER SYSTEMS. Number theory is the study of the integers. We denote the set of integers by Z:

Number Axioms. P. Danziger. A Group is a set S together with a binary operation (*) on S, denoted a b such that for all a, b. a b S.

Solutions I.N. Herstein- Second Edition

2a 2 4ac), provided there is an element r in our

88 CHAPTER 3. SYMMETRIES

Transcription:

Commutative Rings and Fields 1-22-2017 Different algebraic systems are used in linear algebra. The most important are commutative rings with identity and fields. Definition. A ring is a set R with two binary operations addition (denoted +) and multiplication (denoted ). These operations satisfy the following axioms: 1. Addition is associative: If a,b,c R, then a+(b+c) = (a+b)+c. 2. There is an identity for addition, denoted 0. It satisfies 0+a = a and a+0 = a for all a R. 3. Every every of R has an additive inverse. That is, if a R, there is an element a R which satisfies a+( a) = 0 and ( a)+a = 0. 4. Addition is commutative: If a,b R, then a+b = b+a. 5. Multiplication is associative: If a,b,c R, then a (b c) = (a b) c. 6. Multiplication distributes over addition: If a,b,c R, hen a (b+c) = a b+a c. It s common to drop the in a b and just write ab. I ll do this except where the is needed for clarity. You ll study general rings in an abstract algebra course. The rings that occur in linear algebra satisfy some additional axioms. Definition. A ring R is commutative if the multiplication is commutative. That is, for all a,b R, ab = ba. The word commutative in the phrase commutative ring always refers to multiplication since addition is always assumed to be commutative, by Axiom 4. A ring R is a ring with identity if there is an identity for multiplication. That is, there is an element 1 R such that 1 a = a and a 1 = a for all a R. The word identity in the phrase ring with identity always refers to an identity for multiplication since there is always an identity for addition, by Axiom 2. A commutative ring which has an identity element is called a commutative ring with identity. In a ring with identity, you usually also assume that 1 0. (Nothing stated so far requires this, so you have to take it as an axiom.) In fact, you can show that if 1 = 0 in a ring R, then R consists of 0 alone which means that it s not a very interesting ring! 1

Example. Here are some number systems you re familiar with: The integers Z. The rational numbers Q. The real numbers R. The complex numbers C. Each of these is a commutative ring with identity. In fact, all of them except Z are fields. I ll discuss fields below. Example. (The integers mod n) For this collection of examples, n will denote an integer. Actually, n can be any integer if I modify the discussion a little, but to keep things simple, I ll take n 2. The integers mod n is the set Z n = {0,1,2,...,n 1}. n is called the modulus. For example, Z 2 = {0,1} and Z 6 = {0,1,2,3,4,5}. Z n becomes a commutative ring with identity under the operations of addition mod n and multiplication mod n. I m going to describe these operations in a functional way, which is sufficient for a linear algebra course. You ll see a rigorous treatment of Z n in abstract algebra. (a) To add x and y mod n, add them as integers to get x + y. Then divide x + y by n and take the remainder call it r. Then x+y = r. (b) To multiply x and y mod n, multiply them as integers to get xy. Then divide xy by n and take the remainder call it r. Then xy = r. This is actually much easier to do than it is to describe! Here s an example. Suppose n = 6, so the ring is Z 6. 4+5 = 9 (Add them as integers...) = 3 (Divide 9 by 6 and take the remainder, which is 3) Hence, 4+5 = 3 in Z 6. 2 5 = 10 (Multiply them as integers...) = 4 (Divide 10 by 6 and take the remainder, which is 4) Hence, 2 5 = 4 in Z 6. Notice that when you take the remainder after dividing by 6, you ll always wind up with a number in {0,1,2,3,4,5}. Other arithmetic operations work as you d expect. For example, 3 4 = 81 (Take the power as an integer...) = 3 (Divide 81 by 6 and take the remainder, which is 3) Hence, 3 4 = 3 in Z 6. Negative numbers in Z 6 are additive inverses. Thus, 2 = 4 in Z 6, because 4+2 = 0. To deal with negative numbers in general, add a positive multiple of 6 to get a number in the set {0,1,2,3,4,5}. For example, ( 3) 5 = 15 (Multiply them as integers...) = 15+18 (Add 18, which is 3 6) = 3 2

Hence, ( 3) 5 = 3 in Z 6. The reason you can add 18 (or any multiple of 6) is that 18 divided by 6 leaves a remainder of 0. In other words, 18 = 0 in Z 6, so adding 18 is like adding 0. Example. (Addition and multiplication mod 5) Construct addition and multiplication tables for Z 5. + 0 1 2 3 4 0 0 1 2 3 4 1 1 2 3 4 0 2 2 3 4 0 1 3 3 4 0 1 2 4 4 0 1 2 3 0 1 2 3 4 0 0 0 0 0 0 1 0 1 2 3 4 2 0 2 4 1 3 3 0 3 1 4 2 4 0 4 3 2 1 Notice in the multiplication table that 2 3 = 1 and 4 4 = 1. This means that 2 1 = 3, 3 1 = 2, and 4 1 = 4. In particular, to divide by 2 you multiply by 3: in Z 5, the elements 2 and 3 are reciprocals. Commutative rings with identity come up in discussing determinants, but the algebraic system of greatest importance in linear algebra is the field. Definition. Let R be a ring with identity, and let x R. The multiplicative inverse of x is an element x 1 R which satisifies x x 1 = 1 and x 1 x = 1. Definition. A field F is a commutative ring with identity in which 1 0 and every nonzero element has a multiplicative inverse. By convention, you don t write 1 x for x 1 unless the ring happens to be Q, R, or C. If an element x has a multiplicative inverse, you can divide by x by multiplying by x 1. Thus, in a field, you can divide by any nonzero element. (You ll learn in abstract algebra why it doesn t make sense to divide by 0.) Example. The rationals Q, the reals R, and the complex numbers C are fields. Many of the examples will use these number systems. The ring of integers Z is not a field. For example, 2 is a nonzero integer, but it does not have a multiplicative inverse which is an integer. ( 1 is not an integer it s a rational number.) 2 Q, R, and C are all infinite fields that is, they all have infinitely many elements. For applications, it s important to consider finite fields as well. Before I give some examples, I need some definitions. Definition. Let R be a commutative ring with identity. The characteristic of R is the smallest positive integer n such that n 1 = 0. Notation: charr = n. If there is no positive integer n such that n 1 = 0, then charr = 0. 3

In fact, if charr = n, then n x = 0 for all x R. Z, Q, R, and C are all rings of characteristic 0. On the other hand, charz n = n. Definition. An integer n > 1 is prime if its only positive divisors are 1 and n. The first few prime numbers are 2, 3,,5, 7, 11,... An integer n > 1 which is not prime is composite. The first few composite numbers are 4, 6, 8, 9,... The following important results are proved in abstract algebra courses. Theorem. The characteristic of a field is either 0 or a prime number. Theorem. If p is prime and n is a positive integer, there is a field of characteristic p having p n elements. This field is unique up to ring isomorphism, and is denoted GF(p n ) (the Galois field of order p n ). The only unfamiliar thing in the last result is the phrase ring isomorphism. This is another concept whose precise definition you ll see in abstract algebra. The statement means, roughly, that any two fields with p n elements are the same, in that you can get one from the other by just renaming or reordering the elements. Since the characteristic of Z n is n, the first theorem implies the following result: Corollary. Z n is a field if and only if n is prime. Example. (Fields of prime characteristic) Z 2, Z 13, and Z 61 are fields, since 2, 3, and 61 are prime. On the other hand, Z 6 is not a field, since 6 isn t prime (because 6 = 2 3). Z 6 is a commutative ring with identity. For simplicity, the fields of prime characteristic that I use in this course will almost always be finite. But what would an infinite field of prime characteristic look like? As an example, start with Z 2 = {0,1}. Form the field of rational functions Z 2 (x). Thus, elements of Z 2 (x) have the form p(x) q(x) where p(x) and q(x) are polynomials with coefficients in Z 2. Here are some examples of elements of Z 2 (x): 1 x, x 2 +x+1 x 100 +1, 1,x7 +x 3 +1. You can find multiplicative inverses of nonzero elements by taking reciprocals; for instance, ( x 2 ) 1 +x+1 x 100 = x100 +1 +1 x 2 +x+1. I won t go through and check all the axioms, but in fact, Z 2 (x) is a field. Moreover, since 2 1 = 0 in Z 2 (x), it s a field of characteristic 2. It has an infinite number of elements; for example, it contains 1, x, x 2, x 3,... 4

Example. (A field with 4 elements) Here are the addition and multiplication tables for GF(4), the Galois field of order 4. + 0 1 a b 0 0 1 a b 1 1 0 b a a a b 0 1 b b a 1 0 0 1 a b 0 0 0 0 0 1 0 1 a b a 0 a b 1 b 0 b 1 a You can check by examining the multiplication table that multiplication is commutative, that 1 is the multiplicative identity, and that the nonzero elements (1, a, and b) all have multiplicative inverses. Example. Find the multiplicative inverses of the nonzero elements of Z 5. Since 5 is prime, Z 5 is a field. This means that every nonzero element has a multiplicative inverse. 1 1 = 1, so 1 1 = 1. 2 3 = 1, so 2 1 = 3 and 3 1 = 2. 4 4 = 1, so 4 1 = 4. Example. Find 8 1 in Z 13. In Z 13, I have 8 5 = 1, so 8 1 = 5. You could do this by trial and error, since Z 13 isn t that big: 8 1 = 8, 8 2 = 16 = 3, 8 3 = 24 = 11, 8 4 = 32 = 6, 8 5 = 40 = 1. Alternatively, you might reason this way: I want x so that 8x = 1. Now an integer equals 1 mod 13 if it is a multiple of 13 plus 1 (because mod 13 multiples of 13 equal 0). So I take multiples of 13 and add 1, stopping when I get a number divisible by 8: 13 1+1 = 14 Not divisible by 8 13 2+1 = 27 Not divisible by 8 13 3+1 = 40 Divisible by 8 Then 40 8 = 5, so 8 1 = 5. Even this approach is too tedious to use with large numbers. The systematic way to find inverses is to use the Extended Euclidean Algorithm. Example. (a) Show that 2 doesn t have a multiplicative inverse in Z 4. (b) Show that 14 doesn t have a multiplicative inverse in Z 18. (a) Try all possibilities: 2 1 = 2, 2 2 = 0, 2 3 = 2. Note that 4 isn t prime, and Z 4 is not a field. This example shows it directly: 2 is nonzero, but 2 does not have a multiplicative inverse. 5

(b) I could do this by trial and error, but it would be tedious because 18 is a bit large. Instead, I ll show that there is no multiplicative inverse using proof by contradiction. Suppose 14x = 1 for x Z 18. Then 14x = 1 9 14x = 9 1 0 = 9 (Note that 9 14 = 136 = 7 18 = 0 in Z 18.) The last line above is a contradiction, so 14 does not have a multiplicative inverse in Z 18. In general, the elements in Z n which have multiplicative inverses are the elements which are relatively prime to n. Example. Find the roots of x 2 +5x+6 in Z 10. Make a table: x 0 1 2 3 4 5 6 7 8 9 x 2 +5x+6 6 2 0 0 2 6 2 0 0 2 The roots are x = 2, x = 3, x = 7 and x = 8. You would normally not expect a quadratic to have 4 roots! This shows that algebraic facts you may know for real numbers may not hold in arbitrary rings (note that Z 10 is not a field). There are systematic ways for finding inverses of elements in Z n for example, by using the Extended Euclidean Algorithm. I ll stick to simple cases where trial and error is sufficient. Linear algebra deals with structures based on fields, and you ve now seen most of the fields that will come up in the examples. To keep things simple, most of the example involving finite fields will use Z p for p prime, rather than the more general Galois fields, or infinite fields of characteristic p. c 2017 by Bruce Ikenaga 6