1 00:00:00,000 --> 00:00:03,266 Hello everyone. In this 
video, we're going to show 2 00:00:03,266 --> 00:00:06,766 an example of an injective 
and surjective function. 3 00:00:06,766 --> 00:00:09,900 So let S be the set of real numbers 
without the point minus 1, 4 00:00:09,900 --> 00:00:13,933 and let T be the set of real numbers without the point 2, okay? 5 00:00:13,933 --> 00:00:16,566 So sometimes you might see this 
written with the set difference notation 6 00:00:16,566 --> 00:00:18,866 with the minus. Usually 
you'll see it as the 7 00:00:18,866 --> 00:00:22,333 slash notation, kind of read this is 
the real numbers without negative 1. 8 00:00:22,333 --> 00:00:25,333 That's sort of - that's how 
you can think about it. 9 00:00:25,333 --> 00:00:28,666 So S is this set and T is this set, 10 00:00:28,666 --> 00:00:32,366 show that the function f 
from S to T defined by 11 00:00:32,366 --> 00:00:37,666 2x plus 1 over x plus 1, I 
guess that's f of x equals… 12 00:00:37,666 --> 00:00:39,333 [that’ll] make it a little bit clearer, 13 00:00:39,333 --> 00:00:42,666 is injective and surjective, hence a bijection. 14 00:00:42,666 --> 00:00:45,100 So the definition of bijective or bijection is 15 00:00:45,100 --> 00:00:48,000 a function that's injective 
and surjective, for us, okay? 16 00:00:48,000 --> 00:00:49,066 17 00:00:49,066 --> 00:00:51,400 Solution so… 18 00:00:51,400 --> 00:00:53,700 how do we... 19 00:00:53,700 --> 00:00:56,366 how do we solve this? Well we need to 
show that it's injective and surjective, 20 00:00:56,366 --> 00:01:00,533 so there's two parts of this. So let's 
show that the function is injective first. 21 00:01:00,533 --> 00:01:03,566 Well what does that mean? So a function is injective 22 00:01:03,566 --> 00:01:07,033 provided that if I have two points 
that give me the same output, 23 00:01:07,033 --> 00:01:09,433 then the original two points must be equal. 24 00:01:09,433 --> 00:01:10,400 25 00:01:10,400 --> 00:01:14,400 So let's pick two points in our domain, so let 26 00:01:14,400 --> 00:01:17,066 x and y be in S 27 00:01:17,066 --> 00:01:21,766 be such that f of x equals f of y, 28 00:01:21,766 --> 00:01:22,900 29 00:01:22,900 --> 00:01:25,366 and then... 30 00:01:25,366 --> 00:01:26,466 31 00:01:26,466 --> 00:01:28,533 and then what do we have? 32 00:01:28,533 --> 00:01:31,200 So let’s… 33 00:01:31,200 --> 00:01:33,700 so if f of x equals f of y… 34 00:01:33,700 --> 00:01:37,666 35 00:01:37,666 --> 00:01:40,100 we have the following. 36 00:01:40,100 --> 00:01:41,366 37 00:01:41,366 --> 00:01:44,400 By the way as a little sanity 
check, notice that S is defined 38 00:01:44,400 --> 00:01:48,266 without the point minus 1 because this 
function doesn't make sense at minus 1. 39 00:01:48,266 --> 00:01:50,100 So something to keep in mind. 40 00:01:50,100 --> 00:01:51,000 41 00:01:51,000 --> 00:01:54,033 Okay so let x and y be elements 
of S such that f of x equals f of y, 42 00:01:54,033 --> 00:01:57,633 then 2x plus 1 over x plus 1 
equals 2y plus 1 over y plus 1. 43 00:01:57,633 --> 00:02:01,733 That's literally just plugging in x and y into the function, right? 44 00:02:01,733 --> 00:02:04,366 Now from here, you're going to 
cross multiply and simplify, 45 00:02:04,366 --> 00:02:07,400 and then hopefully you get x equals y. 46 00:02:07,400 --> 00:02:10,300 So let's do that and see 
what we come up with. 47 00:02:10,300 --> 00:02:11,566 48 00:02:11,566 --> 00:02:16,000 So 2x plus 1, y plus 1 49 00:02:16,000 --> 00:02:19,033 equals 2y plus 1, x plus 1. 50 00:02:19,033 --> 00:02:24,966 51 00:02:24,966 --> 00:02:27,533 Now we expand… 52 00:02:27,533 --> 00:02:28,600 53 00:02:28,600 --> 00:02:30,100 oops. 54 00:02:30,100 --> 00:02:31,266 55 00:02:31,266 --> 00:02:33,633 Let me wait for it to render properly. 56 00:02:33,633 --> 00:02:36,133 57 00:02:36,133 --> 00:02:40,466 So here we go with the cross multiplication, so we're going to expand and simplify now. 58 00:02:40,466 --> 00:02:43,166 So we’re going to get 2xy 59 00:02:43,166 --> 00:02:46,166 plus 2x plus y 60 00:02:46,166 --> 00:02:47,700 61 00:02:47,700 --> 00:02:49,600 plus 1 62 00:02:49,600 --> 00:02:51,166 63 00:02:51,166 --> 00:02:55,466 [equals] 2xy plus 2y plus x plus 1. 64 00:02:55,466 --> 00:02:59,466 65 00:02:59,466 --> 00:03:03,266 And then now, once we simplify this, 66 00:03:03,266 --> 00:03:05,900 let's see so 2xy, 2xy those cancel. 67 00:03:05,900 --> 00:03:09,133 The x comes over here, that's becomes an x, 
the y comes over here that's just a y, and 68 00:03:09,133 --> 00:03:11,433 the two 1’s will cancel, so that's exactly 69 00:03:11,433 --> 00:03:14,400 x equals y. 70 00:03:14,400 --> 00:03:16,266 Okay. 71 00:03:16,266 --> 00:03:17,100 72 00:03:17,100 --> 00:03:18,700 So that solves this. 73 00:03:18,700 --> 00:03:20,566 That solves this part. 74 00:03:20,566 --> 00:03:22,533 Once it loads. 75 00:03:22,533 --> 00:03:25,466 76 00:03:25,466 --> 00:03:27,766 But now we need to show surjectivity. 77 00:03:27,766 --> 00:03:30,266 78 00:03:30,266 --> 00:03:34,766 So how do we show surjectivity? Well 
we need to show that every point 79 00:03:34,766 --> 00:03:37,833 inside the range, so 
every point inside T here, 80 00:03:37,833 --> 00:03:40,800 is reachable. So there's 
some point in S that will, 81 00:03:40,800 --> 00:03:44,766 when I apply the function to it, give me the y inside the T. 82 00:03:44,766 --> 00:03:48,433 83 00:03:48,433 --> 00:03:52,333 So how do I find this x that's going 
to give me the output of y? Well 84 00:03:52,333 --> 00:03:54,800 this is where something called a 
napkin computation comes into play. 85 00:03:54,800 --> 00:03:57,933 I call these napkin computations, 
I should call these… 86 00:03:57,933 --> 00:03:59,833 why do I call them napkin computations? 87 00:03:59,833 --> 00:04:02,200 Because they’re something you 
should write on a napkin and then 88 00:04:02,200 --> 00:04:04,233 throw out when you're done. 89 00:04:04,233 --> 00:04:06,066 90 00:04:06,066 --> 00:04:08,733 Now obviously it's going to be 
very difficult for me to use a napkin 91 00:04:08,733 --> 00:04:11,466 on a screencast, but I will 92 00:04:11,466 --> 00:04:14,733 do the following. I will sort 
of write it below, okay, 93 00:04:14,733 --> 00:04:17,000 94 00:04:17,000 --> 00:04:19,833 but because of that I’m going to be very precise, 95 00:04:19,833 --> 00:04:20,933 96 00:04:20,933 --> 00:04:24,600 right, because it's supposed to be on a napkin. This 
isn't something that you want somebody to see. 97 00:04:24,600 --> 00:04:26,466 So what I'm going to do… 98 00:04:26,466 --> 00:04:28,700 how do I do this? Now I'm going to take… 99 00:04:28,700 --> 00:04:31,366 100 00:04:31,366 --> 00:04:34,066 I'm going to take the 
function and set it equal to y, 101 00:04:34,066 --> 00:04:36,200 and I'm going to start solving 102 00:04:36,200 --> 00:04:37,366 103 00:04:37,366 --> 00:04:39,933 for x, okay? 104 00:04:39,933 --> 00:04:44,533 Some of you might recognize this as finding the inverse function and that's definitely 105 00:04:44,533 --> 00:04:48,333 what we're doing, but I'm going 
to word it a little differently 106 00:04:48,333 --> 00:04:52,866 and I'm going to think of it a little differently, 
okay? So 2x plus 1 over x plus 1 equals y. 107 00:04:52,866 --> 00:04:56,500 Let's go through and let's try to isolate for x. 108 00:04:56,500 --> 00:04:57,566 109 00:04:57,566 --> 00:05:01,066 So now I’m going to get 
2x plus 1 if I cross multiply. 110 00:05:01,066 --> 00:05:01,600 111 00:05:01,600 --> 00:05:05,333 xy plus y. 112 00:05:05,333 --> 00:05:09,233 I'm going to isolate over 
here so 2x minus xy, 113 00:05:09,233 --> 00:05:09,966 114 00:05:09,966 --> 00:05:11,566 y minus 1. 115 00:05:11,566 --> 00:05:12,500 116 00:05:12,500 --> 00:05:15,266 So let’s see where we’re at now with a little bit of isolation. 117 00:05:15,266 --> 00:05:16,800 118 00:05:16,800 --> 00:05:19,900 So 2x plus 1 equals xy plus y. 119 00:05:19,900 --> 00:05:22,966 y minus 1 is equal to 2x minus xy. 120 00:05:22,966 --> 00:05:26,433 Factor out the x, divide by 2 minus y, 121 00:05:26,433 --> 00:05:28,233 what's that going to give us? 122 00:05:28,233 --> 00:05:28,900 123 00:05:28,900 --> 00:05:30,933 y minus 1, 124 00:05:30,933 --> 00:05:33,033 2 minus y. 125 00:05:33,033 --> 00:05:37,266 126 00:05:37,266 --> 00:05:39,666 So there we have it, so this 127 00:05:39,666 --> 00:05:40,800 128 00:05:40,800 --> 00:05:45,133 this x value should be the one that we use…sorry I'm off center… 129 00:05:45,133 --> 00:05:46,466 130 00:05:46,466 --> 00:05:49,233 this x value should be the 
one we use in order to 131 00:05:49,233 --> 00:05:52,733 get the output y, okay, so if I plug this x 132 00:05:52,733 --> 00:05:54,533 into f, into our function, 133 00:05:54,533 --> 00:05:58,200 I'm going to get the answer y, okay? 
So that's what I'm going to use. 134 00:05:58,200 --> 00:05:59,533 135 00:05:59,533 --> 00:06:01,666 Okay great, so how do I do this? Well 136 00:06:01,666 --> 00:06:03,900 okay, so now when I write up 
this proof, I'm going to start 137 00:06:03,900 --> 00:06:06,433 with this value of x, and I'm going 
to show that we get to the answer. 138 00:06:06,433 --> 00:06:10,100 139 00:06:10,100 --> 00:06:12,066 Let x equal 140 00:06:12,066 --> 00:06:13,533 141 00:06:13,533 --> 00:06:15,466 this value. 142 00:06:15,466 --> 00:06:16,166 143 00:06:16,166 --> 00:06:18,600 Now there's one more thing that 
we should mention though, right? 144 00:06:18,600 --> 00:06:21,633 So we've written down this value, 
but we need to make sure that 145 00:06:21,633 --> 00:06:23,966 x is actually in our domain. 146 00:06:23,966 --> 00:06:25,166 147 00:06:25,166 --> 00:06:29,366 So I'm going to hide the napkin computation 
because I don't need it anymore. 148 00:06:29,366 --> 00:06:30,600 149 00:06:30,600 --> 00:06:33,966 So let x be this value, 
right? Now notice that 150 00:06:33,966 --> 00:06:35,366 151 00:06:35,366 --> 00:06:38,166 this value is real, right, 
because y is not 2. 152 00:06:38,166 --> 00:06:40,666 Remember y was taken to be inside T, 153 00:06:40,666 --> 00:06:43,633 T doesn't have the point 2, 
so x is a real number. 154 00:06:43,633 --> 00:06:44,500 155 00:06:44,500 --> 00:06:45,000 156 00:06:45,000 --> 00:06:47,066 So x is a real number, 157 00:06:47,066 --> 00:06:47,600 158 00:06:47,600 --> 00:06:48,200 159 00:06:48,200 --> 00:06:52,500 and furthermore notice that 
x is not equal to minus 1. 160 00:06:52,500 --> 00:06:53,200 161 00:06:53,200 --> 00:06:55,000 Okay? 162 00:06:55,000 --> 00:06:55,933 163 00:06:55,933 --> 00:06:59,666 Why is that the case? Why is 
x not equal to minus 1? Well 164 00:06:59,666 --> 00:07:01,700 165 00:07:01,700 --> 00:07:04,666 we prove this by contradiction, 166 00:07:04,666 --> 00:07:07,766 so suppose it was equal to minus 
1, then what would we have? 167 00:07:07,766 --> 00:07:08,433 168 00:07:08,433 --> 00:07:12,366 So let's just look at what I typed. Okay so, 169 00:07:12,366 --> 00:07:16,366 this is going to be a proof by contradiction. So 
further notice that x does not equal minus 1, 170 00:07:16,366 --> 00:07:19,933 for otherwise, minus 1 is equal 
to y minus 1 over 2 minus y. 171 00:07:19,933 --> 00:07:22,900 Cross multiplying y minus 2 
equals y minus 1, and that 172 00:07:22,900 --> 00:07:26,566 clearly is going to be a problem, right, so 
cancel the y’s, get minus 2 equals minus 1, 173 00:07:26,566 --> 00:07:30,633 you get minus 1 equals 0, you can get… 174 00:07:30,633 --> 00:07:33,466 you get whatever you want. So I 
mean let's even do it easier, right, 175 00:07:33,466 --> 00:07:37,100 I’m pretty sure we can all agree that 
minus 2 is not equal [to] minus 1. 176 00:07:37,100 --> 00:07:39,166 177 00:07:39,166 --> 00:07:40,966 So that's clearly a contradiction, right? 178 00:07:40,966 --> 00:07:43,766 So notice that this was a proof by 
contradiction, but worded a little subtlety, 179 00:07:43,766 --> 00:07:46,300 so keep that in mind. Remember the “for otherwise” part is 180 00:07:46,300 --> 00:07:49,800 sort of suggesting that we're using 
a proof by contradiction, right, 181 00:07:49,800 --> 00:07:54,100 and that's what's going on here. So 
for otherwise I put minus 1 in there, 182 00:07:54,100 --> 00:07:56,900 I've solved and I show that 
2 equals minus 1. Okay. 183 00:07:56,900 --> 00:07:58,000 184 00:07:58,000 --> 00:07:59,900 So thus… 185 00:07:59,900 --> 00:08:02,033 186 00:08:02,033 --> 00:08:05,733 so thus x is actually in the domain, and… 187 00:08:05,733 --> 00:08:11,033 188 00:08:11,033 --> 00:08:14,533 and now let's look. So f of x... 189 00:08:14,533 --> 00:08:15,633 190 00:08:15,633 --> 00:08:18,266 f of x is the given function, 191 00:08:18,266 --> 00:08:20,366 so let's do that, plug that in, 192 00:08:20,366 --> 00:08:22,633 and then let's start plugging in our value. 193 00:08:22,633 --> 00:08:23,866 194 00:08:23,866 --> 00:08:29,266 So we know what x is, 
right? x is equal to this thing 195 00:08:29,266 --> 00:08:30,666 196 00:08:30,666 --> 00:08:32,800 So let's plug this in. 197 00:08:32,800 --> 00:08:33,900 198 00:08:33,900 --> 00:08:37,500 So here we go, f of x is equal to this, let's plug in our value for x, 199 00:08:37,500 --> 00:08:41,666 and remember this should simplify to y so hopefully we do everything correctly, let's do this. 200 00:08:41,666 --> 00:08:45,300 201 00:08:45,300 --> 00:08:49,300 Okay, so what's the numerator going to be? So 
we're going to bring the 2 inside, so it's going to be 202 00:08:49,300 --> 00:08:51,533 203 00:08:51,533 --> 00:08:55,566 2y minus 2 plus 2 minus y 204 00:08:55,566 --> 00:08:57,500 205 00:08:57,500 --> 00:08:59,200 divided by 2 minus y. 206 00:08:59,200 --> 00:09:01,500 So we're going to find a 
common denominator as well. 207 00:09:01,500 --> 00:09:02,766 208 00:09:02,766 --> 00:09:06,000 So y minus 1 plus 2 minus y, 209 00:09:06,000 --> 00:09:07,566 210 00:09:07,566 --> 00:09:09,600 2 minus y. 211 00:09:09,600 --> 00:09:11,800 212 00:09:11,800 --> 00:09:14,266 Let's see what we have now. 213 00:09:14,266 --> 00:09:16,100 Okay? 214 00:09:16,100 --> 00:09:20,866 2y minus y that's y, minus 2 plus 2 
that's 0, so that's just going to be y, 215 00:09:20,866 --> 00:09:24,866 the 2 minus y here will cancel with the 2 
minus y in the denominator’s denominator, 216 00:09:24,866 --> 00:09:27,733 and then y and y will cancel here. 217 00:09:27,733 --> 00:09:30,566 That should clearly be a 1, that's a typo. 218 00:09:30,566 --> 00:09:31,666 219 00:09:31,666 --> 00:09:33,966 So I get y minus 1, 220 00:09:33,966 --> 00:09:37,100 plus 2 minus y, so that gives me 0, 221 00:09:37,100 --> 00:09:39,000 2 minus 1 is 1… 222 00:09:39,000 --> 00:09:42,433 or again 2 minus 1 so I get y 
over 1 so then that's equal to y. 223 00:09:42,433 --> 00:09:44,366 224 00:09:44,366 --> 00:09:47,733 Okay, and that shows surjectivity. 225 00:09:47,733 --> 00:09:48,300 226 00:09:48,300 --> 00:09:51,400 So we found a point in S that maps to y. 227 00:09:51,400 --> 00:09:56,100 Now notice that the x depended on 
y, which it almost always should. 228 00:09:56,100 --> 00:09:58,300 And here it does and that's fine. 229 00:09:58,300 --> 00:10:00,833 Notice that, again, our napkin 
computation well we used it 230 00:10:00,833 --> 00:10:05,433 to find out what the value of x should be, we 
never mentioned it in our solution, which is fine. 231 00:10:05,433 --> 00:10:06,766 232 00:10:06,766 --> 00:10:11,166 You can also write this back and forth if you want, 
but I'm not going to get into that in this video, 233 00:10:11,166 --> 00:10:12,133 234 00:10:12,133 --> 00:10:15,100 and again, here we've shown 
injectivity and surjectivity. 235 00:10:15,100 --> 00:10:18,166 So we started with the injectivity 
part and then we showed surjectivity, 236 00:10:18,166 --> 00:10:20,733 and that shows that this 
function is a bijection. 237 00:10:20,733 --> 00:10:24,466 For those of you interested in learning 
more about these types of examples, 238 00:10:24,466 --> 00:10:27,733 I would check out Mobius Transformations. 239 00:10:27,733 --> 00:10:30,100 This is some subset of them, and 240 00:10:30,100 --> 00:10:33,133 they're pretty interesting. They have a lot of applications, 241 00:10:33,133 --> 00:10:35,566 which I'm not going to 
get into in this video, but 242 00:10:35,566 --> 00:10:37,700 I will leave it to you to check this out. 243 00:10:37,700 --> 00:10:38,500 244 00:10:38,500 --> 00:10:41,300 Okay so hopefully you 
got a little sense of how 245 00:10:41,300 --> 00:10:43,633 bijectivity works 246 00:10:43,633 --> 00:10:46,399 and hopefully this video helps, so 
thank you very much for listening.