1 00:00:00,000 --> 00:00:04,600 Hello everyone, and welcome 
to Carmen's Core Concepts. 2 00:00:04,600 --> 00:00:06,433 My name is Carmen Bruni, 3 00:00:06,433 --> 00:00:09,766 and this is Week 7 Part 2. 4 00:00:09,766 --> 00:00:13,333 So I felt the need to break 
off this last section because 5 00:00:13,333 --> 00:00:16,200 it is fairly abstract that's for 1. 6 00:00:16,200 --> 00:00:18,700 For 2, the other video's getting 7 00:00:18,700 --> 00:00:22,600 quite long, so I thought I would cut it 
off there and start a new video here. 8 00:00:22,600 --> 00:00:23,400 9 00:00:23,400 --> 00:00:28,000 And thirdly, there's a lot of parts that I'm 
going to talk about in this video that are… 10 00:00:28,000 --> 00:00:29,366 11 00:00:29,366 --> 00:00:32,000 what do I want to say… sort 
of above and beyond what a 12 00:00:32,000 --> 00:00:34,666 Math 135 student should know 
at the end of the course, 13 00:00:34,666 --> 00:00:37,433 but at the same time, I feel like 
these concepts are very important 14 00:00:37,433 --> 00:00:40,533 and that there's no reason 
not to include them 15 00:00:40,533 --> 00:00:42,266 in Math 135. 16 00:00:42,266 --> 00:00:44,733 So that being said, 17 00:00:44,733 --> 00:00:47,766 those factors combined gave 
us a Week 7 Part 2 video 18 00:00:47,766 --> 00:00:49,200 that is the following. 19 00:00:49,200 --> 00:00:51,800 So wall of text, but 20 00:00:51,800 --> 00:00:52,766 21 00:00:52,766 --> 00:00:56,000 what am I going to 
say here? A ring is 22 00:00:56,000 --> 00:00:58,133 a very common structure. You 
actually know what a ring is 23 00:00:58,133 --> 00:01:00,100 without really knowing 
what a ring is. 24 00:01:00,100 --> 00:01:04,366 The idea behind this slide and this definition is to give you... 25 00:01:04,366 --> 00:01:06,066 a way to group 26 00:01:06,066 --> 00:01:10,133 sets that you know 
together basically. 27 00:01:10,133 --> 00:01:12,900 So let's describe what I mean by this. 28 00:01:12,900 --> 00:01:17,833 So definition: “a commutative ring is a 
set R along with two closed operations, 29 00:01:17,833 --> 00:01:19,900 addition and multiplication…” 30 00:01:19,900 --> 00:01:25,033 by closed operations we mean if I add 2 elements of the set R, 31 00:01:25,033 --> 00:01:29,333 I stay inside R, and if I multiply 2 
elements of the set R, I stay inside R, 32 00:01:29,333 --> 00:01:32,500 “…and these two operations satisfy for all 33 00:01:32,500 --> 00:01:35,833 for all a, b, c inside 
R that they are... 34 00:01:35,833 --> 00:01:39,100 that the operation is associative…” so both operations are associative. 35 00:01:39,100 --> 00:01:42,500 So a plus b plus c is 
equal to a plus b plus c, 36 00:01:42,500 --> 00:01:46,500 and same with multiplication. So here I've denoted - I’m not going to always use 37 00:01:46,500 --> 00:01:50,133 the dot for multiplication. I'm 
just going to use juxtaposition 38 00:01:50,133 --> 00:01:52,766 for multiplication so if there are 
two things right beside each other 39 00:01:52,766 --> 00:01:55,166 that implies that they're 
multiplied together. 40 00:01:55,166 --> 00:01:59,466 So a times b then times c is 
the same as a times b times c. 41 00:01:59,466 --> 00:02:00,400 42 00:02:00,400 --> 00:02:01,800 Commutative, 43 00:02:01,800 --> 00:02:03,933 a plus b is the same as b plus a, 44 00:02:03,933 --> 00:02:07,600 and a times b is the same as b 
[times] a, in a commutative ring. 45 00:02:07,600 --> 00:02:10,900 So multiplication doesn't always 
have to be commutative in a ring, 46 00:02:10,900 --> 00:02:12,900 but in a commutative ring it is. 47 00:02:12,900 --> 00:02:15,833 We have identities; so there 
are distinct elements 0 and 1 48 00:02:15,833 --> 00:02:19,533 such that a plus 0 is 
a, and a times 1 is a. 49 00:02:19,533 --> 00:02:22,033 I've written “distinct” in 
brackets. Some books 50 00:02:22,033 --> 00:02:24,233 don't require this, some books do. 51 00:02:24,233 --> 00:02:25,266 52 00:02:25,266 --> 00:02:27,900 Take your pick. It 
doesn't matter that much. 53 00:02:27,900 --> 00:02:28,600 54 00:02:28,600 --> 00:02:31,533 Additive Inverses, there exists 
an element minus a such that 55 00:02:31,533 --> 00:02:34,033 a plus negative a is 0. 56 00:02:34,033 --> 00:02:37,433 So every element inside your set 57 00:02:37,433 --> 00:02:37,733 58 00:02:37,733 --> 00:02:39,700 has an additive inverse. 59 00:02:39,700 --> 00:02:44,233 And the distributive property, a times b 
plus c is equal to a times b plus a times c. 60 00:02:44,233 --> 00:02:46,033 61 00:02:46,033 --> 00:02:48,600 As I said at the beginning, well 62 00:02:48,600 --> 00:02:50,933 a commutative ring is something 
that you already kind of know. 63 00:02:50,933 --> 00:02:52,933 You already know examples 
of commutative rings: 64 00:02:52,933 --> 00:02:55,566 the integers, the rational 
numbers the real numbers, 65 00:02:55,566 --> 00:02:57,900 all of these are commutative rings. 66 00:02:57,900 --> 00:03:01,000 The natural numbers don't 
form a commutative ring. 67 00:03:01,000 --> 00:03:01,766 68 00:03:01,766 --> 00:03:04,900 They are associative, 
they are commutative, 69 00:03:04,900 --> 00:03:08,000 they don't really 
have an identity, right? 70 00:03:08,000 --> 00:03:12,333 The additive identity isn't inside N. 
Remember our natural numbers start at 1. 71 00:03:12,333 --> 00:03:13,466 72 00:03:13,466 --> 00:03:17,233 And additive inverses are missing. This is the 
key one that's missing from the natural numbers. 73 00:03:17,233 --> 00:03:21,233 There's no - if I have 1, I don't have negative 1 inside the natural numbers. 74 00:03:21,233 --> 00:03:24,400 But I do inside the integers, and that's what forms a commutative ring. 75 00:03:24,400 --> 00:03:26,766 76 00:03:26,766 --> 00:03:29,566 Okay, so here's the definition. Again 
these are things that you know, right? 77 00:03:29,566 --> 00:03:32,166 So I'm just kind of grouping 
together a set of objects that you 78 00:03:32,166 --> 00:03:34,100 already know have these properties 79 00:03:34,100 --> 00:03:36,533 and I'm giving them some sort 
of classification name, okay? 80 00:03:36,533 --> 00:03:37,766 81 00:03:37,766 --> 00:03:40,000 And I haven't defined a 
field yet. What's a field? 82 00:03:40,000 --> 00:03:41,233 83 00:03:41,233 --> 00:03:43,100 Maybe you can guess, 
but maybe you can’t. 84 00:03:43,100 --> 00:03:47,566 So here we have additive inverses, 
a field adds multiplicative inverses. 85 00:03:47,566 --> 00:03:50,833 So if, in addition, every non-zero 
element has a multiplicative inverse, 86 00:03:50,833 --> 00:03:52,833 that is an element a inverse, 87 00:03:52,833 --> 00:03:55,733 so we denote it by a to 
the power of negative 1, 88 00:03:55,733 --> 00:03:59,733 and this element satisfies 
a times a inverse equals 1, 89 00:03:59,733 --> 00:04:01,533 we say that R is a field. 90 00:04:01,533 --> 00:04:02,166 91 00:04:02,166 --> 00:04:04,033 Okay? So 92 00:04:04,033 --> 00:04:05,333 93 00:04:05,333 --> 00:04:07,266 every field is a ring, 94 00:04:07,266 --> 00:04:09,100 every field is a 
commutative ring, 95 00:04:09,100 --> 00:04:11,533 but not every ring is a field. 96 00:04:11,533 --> 00:04:14,600 So for example, Q and R, 97 00:04:14,600 --> 00:04:17,333 these are fields and 
these are commutative rings, 98 00:04:17,333 --> 00:04:20,533 but the integers, for 
example, is not a field 99 00:04:20,533 --> 00:04:23,300 because elements like 2, 3, 4 100 00:04:23,300 --> 00:04:25,900 their inverses, or their 
multiplicative inverses, 101 00:04:25,900 --> 00:04:29,466 1 over 2, 1 over 3, 1 over 4, those aren't inside the integers. 102 00:04:29,466 --> 00:04:31,200 103 00:04:31,200 --> 00:04:34,400 So that's why again so maybe this 
is giving you a little bit of context 104 00:04:34,400 --> 00:04:37,500 as to why we have all these 
symbols and definitions and 105 00:04:37,500 --> 00:04:39,500 how this all came about. 106 00:04:39,500 --> 00:04:40,666 107 00:04:40,666 --> 00:04:42,966 That's sort of what I'm trying 
to give you with this slide. 108 00:04:42,966 --> 00:04:45,466 It's just a way to describe 109 00:04:45,466 --> 00:04:48,400 sets that have special properties, and 
we'll see in the next couple of slides, 110 00:04:48,400 --> 00:04:51,100 we're going to define a new commutative ring 111 00:04:51,100 --> 00:04:53,133 and that's going to be the integers modulo m, 112 00:04:53,133 --> 00:04:55,366 and it's kind of what you think based 
on what we've done this week 113 00:04:55,366 --> 00:04:57,466 but we'll talk about that 
in a minute, okay? 114 00:04:57,466 --> 00:05:00,133 So here's the definition of a commutative ring and fields. 115 00:05:00,133 --> 00:05:03,066 We’ll also see fields later on. 
We're going to talk about the 116 00:05:03,066 --> 00:05:06,700 set called the complex numbers, and we'll 
see that the complex numbers form a field. 117 00:05:06,700 --> 00:05:09,000 But again, I'll save that for later. 118 00:05:09,000 --> 00:05:10,233 119 00:05:10,233 --> 00:05:14,600 Congruence classes, so now let's bring 
this back down to where we were, okay? 120 00:05:14,600 --> 00:05:18,833 So rings, fields, we have these things 
in our back pocket when we need them. 121 00:05:18,833 --> 00:05:20,700 What is a congruence class? 122 00:05:20,700 --> 00:05:24,000 A congruence, or equivalence 
class modulo m of an integer a 123 00:05:24,000 --> 00:05:26,833 is the set of integers 
defined as follows: so 124 00:05:26,833 --> 00:05:29,900 we use square brackets 
and put a in the middle, 125 00:05:29,900 --> 00:05:33,000 and we define this to be… 
so this “colon equals” means 126 00:05:33,000 --> 00:05:36,533 “defined as” or 'defined to be' 
something along those lines. 127 00:05:36,533 --> 00:05:40,866 [square bracket] a is defined to be 
the set of integers x such that 128 00:05:40,866 --> 00:05:43,200 x is congruent to a mod m. 129 00:05:43,200 --> 00:05:47,233 So for example, if m 
were 7 and my a were 1, 130 00:05:47,233 --> 00:05:48,000 131 00:05:48,000 --> 00:05:51,500 the set square bracket 1 would consist of the elements 132 00:05:51,500 --> 00:05:54,300 1, 8, 15, dot dot dot, 133 00:05:54,300 --> 00:05:58,566 and on the other side it would also consist 
of negative 6, negative 13, negative 20, 134 00:05:58,566 --> 00:06:00,533 and all those as well. Okay? 135 00:06:00,533 --> 00:06:04,866 So there's an example of the congruence class of 1 mod 7. 136 00:06:04,866 --> 00:06:06,433 137 00:06:06,433 --> 00:06:09,300 Further, we define this Z m notation. 138 00:06:09,300 --> 00:06:12,933 So the integers modulo m, 
sometimes it's denoted by 139 00:06:12,933 --> 00:06:15,300 a Z with a slash m Z. 140 00:06:15,300 --> 00:06:19,233 In this course, we're going to 
use this first description, this Z 141 00:06:19,233 --> 00:06:21,233 with the little subscript m. 142 00:06:21,233 --> 00:06:22,333 143 00:06:22,333 --> 00:06:26,033 Later on in your mathematical careers, 
you're more likely to see this notation, 144 00:06:26,033 --> 00:06:28,533 for reasons which I won't get into now, 145 00:06:28,533 --> 00:06:31,033 but it's a good notation 
so you should know it. 146 00:06:31,033 --> 00:06:33,700 And this is defined to be what? 
Well this is defined to be 147 00:06:33,700 --> 00:06:36,800 the set consisting of the sets 148 00:06:36,800 --> 00:06:39,700 of 0, 1, all the way 
up to m minus 1, 149 00:06:39,700 --> 00:06:42,566 and again these sets 
are taken modulo m. 150 00:06:42,566 --> 00:06:46,333 You could argue that maybe we should 
decorate these square brackets with an m. 151 00:06:46,333 --> 00:06:49,000 We're not going to do that, 
just to keep it simple. 152 00:06:49,000 --> 00:06:49,966 153 00:06:49,966 --> 00:06:52,700 Notice that you don't need to 
always use the symbols from 154 00:06:52,700 --> 00:06:56,100 0, 1, all the way up to m minus 1. Remember 
that the equivalence class consisting of 155 00:06:56,100 --> 00:06:59,400 0 is the same as the equivalence 
class consisting of m. 156 00:06:59,400 --> 00:07:03,633 So if you wanted, you could write the set 
as 1, 2, 3, m minus 1, all the way up to m, 157 00:07:03,633 --> 00:07:05,733 instead of - ignoring 0. 158 00:07:05,733 --> 00:07:07,933 You can also use different elements as well. These elements are just the most 159 00:07:07,933 --> 00:07:10,600 convenient ones to 
describe Z mod m. Okay? 160 00:07:10,600 --> 00:07:11,500 161 00:07:11,500 --> 00:07:14,000 So that's our congruence classes. 162 00:07:14,000 --> 00:07:16,500 How do we put this all together? So 
I had this previous slide defining 163 00:07:16,500 --> 00:07:20,000 rings and fields and I have this 
slide defining congruence classes. 164 00:07:20,000 --> 00:07:21,933 Well the merger between the two is 165 00:07:21,933 --> 00:07:24,600 given by giving the set Z m 166 00:07:24,600 --> 00:07:26,233 a ring structure, okay, 167 00:07:26,233 --> 00:07:28,933 and the ring structure is going 
to be what you think it is, 168 00:07:28,933 --> 00:07:31,433 but I'm still going to define it formally. 169 00:07:31,433 --> 00:07:33,933 So the ring Z m. So we're 
going to turn this set 170 00:07:33,933 --> 00:07:36,300 into a ring by defining 
addition and subtraction 171 00:07:36,300 --> 00:07:38,633 and multiplication 
as follows, okay? 172 00:07:38,633 --> 00:07:42,533 So subtraction, again, you can think 
of subtraction as the additive inverse. 173 00:07:42,533 --> 00:07:45,666 Now how do we do this? 
We take a plus or minus b, 174 00:07:45,666 --> 00:07:49,366 and if I'm adding these - so remember, this is the set… 175 00:07:49,366 --> 00:07:52,333 this is the congruence - this a 
is the congruence class of a, 176 00:07:52,333 --> 00:07:55,900 and this b is the congruence class 
of b. These two things are sets. 177 00:07:55,900 --> 00:08:00,000 So what we're trying to do is we're 
trying to define an operation on sets. 178 00:08:00,000 --> 00:08:02,233 And on these two sets, how 
do we define the operation? 179 00:08:02,233 --> 00:08:04,000 Well we take a plus b 180 00:08:04,000 --> 00:08:07,733 to be the congruence 
class of a plus b, okay? 181 00:08:07,733 --> 00:08:10,800 That doesn't look like we're doing very much, 
right? It looks like we're just pushing symbols, 182 00:08:10,800 --> 00:08:13,933 but there's some going on here, right? 
We're adding two sets together. 183 00:08:13,933 --> 00:08:16,266 How do we claim that we add the two sets together? 184 00:08:16,266 --> 00:08:18,400 Take the arguments and add them. 185 00:08:18,400 --> 00:08:18,966 186 00:08:18,966 --> 00:08:21,533 And in the same way, we're going 
to multiply two sets together, 187 00:08:21,533 --> 00:08:23,500 and how are we going to multiply these two sets together? 188 00:08:23,500 --> 00:08:25,533 Well take the two 
arguments, a and b, 189 00:08:25,533 --> 00:08:28,500 multiply them together, and 
look at that congruence class. 190 00:08:28,500 --> 00:08:29,666 191 00:08:29,666 --> 00:08:32,700 Something I'll get you to check is that 
this makes 0 the additive identity 192 00:08:32,700 --> 00:08:34,833 and 1 the multiplicative identity. 193 00:08:34,833 --> 00:08:37,166 And again, notice that a plus b means 194 00:08:37,166 --> 00:08:40,366 add and then reduce modulo m. That's 
basically what's happening here. 195 00:08:40,366 --> 00:08:42,966 You're adding first, and 
then reducing modulo m. 196 00:08:42,966 --> 00:08:45,633 That's how the addition is 
defined on this set Z m. 197 00:08:45,633 --> 00:08:48,966 And that's going to turn this into a ring. 
This is not something I'm going to 198 00:08:48,966 --> 00:08:51,200 prove, but maybe this is something that you should… 199 00:08:51,200 --> 00:08:52,866 well this is definitely 
something that you do. 200 00:08:52,866 --> 00:08:56,233 Test, go back to the definition of 
a ring and try it out with this set, 201 00:08:56,233 --> 00:09:00,366 and make sure you understand 
why this operation makes it a ring. 202 00:09:00,366 --> 00:09:02,600 203 00:09:02,600 --> 00:09:05,100 The members are sometimes called representative members, 204 00:09:05,100 --> 00:09:08,500 so the members 0, 1, all the way up to m minus 1 
are sometimes called representative members. 205 00:09:08,500 --> 00:09:11,166 So that's like I said, right, 
we can change the 0 to m 206 00:09:11,166 --> 00:09:13,200 and it doesn't really change 
the definition of the set, 207 00:09:13,200 --> 00:09:15,033 it's still the same thing. 208 00:09:15,033 --> 00:09:16,100 209 00:09:16,100 --> 00:09:18,333 Something else to note, when m is a prime, 210 00:09:18,333 --> 00:09:21,700 let’s call it p, the ring 
Z p is also a field 211 00:09:21,700 --> 00:09:25,466 as non-zero elements have 
multiplicative inverses, 212 00:09:25,466 --> 00:09:26,833 they're invertible. 213 00:09:26,833 --> 00:09:28,800 We'll see this later. 214 00:09:28,800 --> 00:09:29,866 215 00:09:29,866 --> 00:09:32,366 We will see this later. I'll leave it at this for now, 216 00:09:32,366 --> 00:09:34,933 but this is why I want to introduce 
the concept of a ring and a field 217 00:09:34,933 --> 00:09:37,633 right now because it fits in quite nicely.