1 00:00:00,000 --> 00:00:04,866 Hello everyone. In this video, we're going 
to talk about the following question. 2 00:00:04,866 --> 00:00:08,200 This is going to be an example of nested quantifiers and negating them. 3 00:00:08,200 --> 00:00:09,133 4 00:00:09,133 --> 00:00:13,166 So we're going to take - I haven't 
done too many examples of applications 5 00:00:13,166 --> 00:00:16,566 of what we've learned, so I'm going 
to do an application in calculus today, 6 00:00:16,566 --> 00:00:20,366 and it's going to be with limits. "Express 
the limit as x goes to a of f of x 7 00:00:20,366 --> 00:00:23,133 does not equal L in 
terms of predicate logic." 8 00:00:23,133 --> 00:00:24,600 9 00:00:24,600 --> 00:00:27,633 So first thing, what is predicate logic? Predicate logic, it means 10 00:00:27,633 --> 00:00:29,800 all those symbols that we've 
been using in the course, so 11 00:00:29,800 --> 00:00:34,766 "for all", "there exists", "implication", 
"and", "or", "not" etc. 12 00:00:34,766 --> 00:00:38,333 13 00:00:38,333 --> 00:00:40,266 To get this started… 14 00:00:40,266 --> 00:00:41,200 15 00:00:41,200 --> 00:00:44,933 so this is a "not equals to" question, 16 00:00:44,933 --> 00:00:48,200 but in this case it's far easier 
to write down the equality 17 00:00:48,200 --> 00:00:51,466 and then go from there. 18 00:00:51,466 --> 00:00:55,366 19 00:00:55,366 --> 00:00:58,100 First we express this 20 00:00:58,100 --> 00:00:58,733 21 00:00:58,733 --> 00:00:59,133 22 00:00:59,133 --> 00:01:01,433 in English. 23 00:01:01,433 --> 00:01:02,500 24 00:01:02,500 --> 00:01:05,900 Now let me mention something about 
this problem before I go too far; 25 00:01:05,900 --> 00:01:07,333 26 00:01:07,333 --> 00:01:10,600 if you don't know the calculus behind this, that's okay. 27 00:01:10,600 --> 00:01:12,266 28 00:01:12,266 --> 00:01:17,066 There's still something to learn here, but if 
you'd like you can zoom ahead though to the… 29 00:01:17,066 --> 00:01:18,766 30 00:01:18,766 --> 00:01:22,933 you can zoom ahead a little bit and then just 
look at the negating of the nested quantifiers 31 00:01:22,933 --> 00:01:24,900 and the actual writing out 32 00:01:24,900 --> 00:01:28,700 of the English sentence; those are 
the two most important things. 33 00:01:28,700 --> 00:01:30,766 Okay so what is this in English? 34 00:01:30,766 --> 00:01:33,266 35 00:01:33,266 --> 00:01:35,166 So for every 36 00:01:35,166 --> 00:01:36,400 37 00:01:36,400 --> 00:01:39,733 epsilon greater than 0 there exists 38 00:01:39,733 --> 00:01:41,000 39 00:01:41,000 --> 00:01:44,766 a delta greater than 0 40 00:01:44,766 --> 00:01:46,000 41 00:01:46,000 --> 00:01:48,400 such that 42 00:01:48,400 --> 00:01:50,466 43 00:01:50,466 --> 00:01:52,033 if 44 00:01:52,033 --> 00:01:55,466 x minus a is less than delta 45 00:01:55,466 --> 00:01:57,166 46 00:01:57,166 --> 00:02:00,566 for every...for each 47 00:02:00,566 --> 00:02:01,500 48 00:02:01,500 --> 00:02:04,866 real number x, then 49 00:02:04,866 --> 00:02:06,600 50 00:02:06,600 --> 00:02:11,666 f of x minus L is less than 
epsilon, absolute values… 51 00:02:11,666 --> 00:02:13,600 or magnitude. 52 00:02:13,600 --> 00:02:15,933 53 00:02:15,933 --> 00:02:17,266 Okay. 54 00:02:17,266 --> 00:02:19,900 So here's the sentence, so this is what the 55 00:02:19,900 --> 00:02:24,566 equality limit means in English, "For every epsilon 
greater than 0 there exists a delta greater than 0 56 00:02:24,566 --> 00:02:28,366 such that if" - so “if”, implication, 
you should be thinking - 57 00:02:28,366 --> 00:02:29,000 58 00:02:29,000 --> 00:02:31,900 "the absolute value of x minus a is less than delta for each real number x, 59 00:02:31,900 --> 00:02:35,700 then the absolute value of f of x 
minus L is less than epsilon." 60 00:02:35,700 --> 00:02:36,266 61 00:02:36,266 --> 00:02:38,933 I've worded this a little bit funny. 62 00:02:38,933 --> 00:02:43,066 This should be for every x that satisfies this. 63 00:02:43,066 --> 00:02:45,366 64 00:02:45,366 --> 00:02:48,966 I've kind of worded it backwards, but that's 
okay we'll word it correctly in predicate logic. 65 00:02:48,966 --> 00:02:52,566 66 00:02:52,566 --> 00:02:55,933 Okay so let's do this now, 
so let's turn this into a... 67 00:02:55,933 --> 00:02:57,966 68 00:02:57,966 --> 00:03:01,366 let's turn this into a predicate logic statement, okay? 69 00:03:01,366 --> 00:03:04,100 70 00:03:04,100 --> 00:03:06,500 So the first thing, "for every 
epsilon greater than 0" 71 00:03:06,500 --> 00:03:08,566 that's "for all" epsilon greater than 0. 72 00:03:08,566 --> 00:03:12,533 73 00:03:12,533 --> 00:03:14,000 Let me write this… 74 00:03:14,000 --> 00:03:17,966 75 00:03:17,966 --> 00:03:21,233 now some people won't do 
this. Some people will do… 76 00:03:21,233 --> 00:03:23,600 77 00:03:23,600 --> 00:03:25,333 so "for all" 78 00:03:25,333 --> 00:03:28,133 79 00:03:28,133 --> 00:03:30,333 you might see this notation. 80 00:03:30,333 --> 00:03:33,500 81 00:03:33,500 --> 00:03:35,566 Just want to mention a couple of notations. 82 00:03:35,566 --> 00:03:38,866 You might see this notation which means 
for all epsilon in the positive reals. 83 00:03:38,866 --> 00:03:41,066 You might see this notation, 84 00:03:41,066 --> 00:03:43,933 85 00:03:43,933 --> 00:03:46,366 this also means for all 
epsilon in the positive reals. 86 00:03:46,366 --> 00:03:48,533 I'm not going to specify the domain here just 87 00:03:48,533 --> 00:03:51,266 because I haven't done an example 
of this in class and I want to do one. 88 00:03:51,266 --> 00:03:54,600 89 00:03:54,600 --> 00:03:58,166 But you can write this in many different ways, so I'm 
going to write it as "for all epsilon greater than 0 90 00:03:58,166 --> 00:04:00,566 91 00:04:00,566 --> 00:04:03,466 there exists a delta greater than 0…" 92 00:04:03,466 --> 00:04:06,133 that's the next part, there 
exists a delta greater than 0, 93 00:04:06,133 --> 00:04:08,233 "…such that if 94 00:04:08,233 --> 00:04:11,800 this absolute value statement
holds for each real number x…" 95 00:04:11,800 --> 00:04:11,933 96 00:04:11,933 --> 00:04:14,100 So if this statement holds 
for each real number x 97 00:04:14,100 --> 00:04:18,266 for each real number x where this statement holds is 
really what this should say maybe I'll just change it now... 98 00:04:18,266 --> 00:04:18,600 99 00:04:18,600 --> 00:04:19,233 100 00:04:19,233 --> 00:04:21,233 so let's see this... 101 00:04:21,233 --> 00:04:22,833 102 00:04:22,833 --> 00:04:26,133 it's also a good example of how 
English can be really weird, right? 103 00:04:26,133 --> 00:04:29,733 So let's change it, so, "for every epsilon greater 
than 0 there exists a delta greater than 0 104 00:04:29,733 --> 00:04:34,233 such that for each real number 
x where this holds then…" 105 00:04:34,233 --> 00:04:39,400 So this is a hidden 'if statement' so it's good 
that I did this just so that you get another example. 106 00:04:39,400 --> 00:04:41,333 107 00:04:41,333 --> 00:04:44,733 So since I'm saying for each real number x that's the same as "for all" 108 00:04:44,733 --> 00:04:48,366 so let's do that, "…for all x in 109 00:04:48,366 --> 00:04:49,100 110 00:04:49,100 --> 00:04:50,866 the real numbers" 111 00:04:50,866 --> 00:04:52,433 112 00:04:52,433 --> 00:04:56,933 and then, like I said, it's an implication so it's 
going to be x minus a is less than delta… 113 00:04:56,933 --> 00:04:57,466 114 00:04:57,466 --> 00:05:00,266 so, "…for every x minus a less than delta 115 00:05:00,266 --> 00:05:00,733 116 00:05:00,733 --> 00:05:02,600 we get that 117 00:05:02,600 --> 00:05:03,800 118 00:05:03,800 --> 00:05:06,600 f of x minus [L] is less than epsilon." 119 00:05:06,600 --> 00:05:08,866 120 00:05:08,866 --> 00:05:13,400 So remember intuitively what this says, 
right, this says that as you get closer to… 121 00:05:13,400 --> 00:05:14,366 122 00:05:14,366 --> 00:05:16,566 so... 123 00:05:16,566 --> 00:05:20,033 f of x gets infinitely closer to L 124 00:05:20,033 --> 00:05:25,333 so long as I can pick - as x approaches a - so long as I can pick a neighbourhood near a, 125 00:05:25,333 --> 00:05:26,233 126 00:05:26,233 --> 00:05:29,866 where as long as I'm close enough to a, 
then the function is close enough to L. 127 00:05:29,866 --> 00:05:34,033 Okay? That's really the intuitive definition here, but that's not relevant for algebra. 128 00:05:34,033 --> 00:05:35,600 129 00:05:35,600 --> 00:05:37,866 So here's our predicate logic statement for the equality. 130 00:05:37,866 --> 00:05:39,833 Now we have to negate this, okay? 131 00:05:39,833 --> 00:05:42,800 132 00:05:42,800 --> 00:05:46,700 So let's negate this...I'm just going to copy and paste this... 133 00:05:46,700 --> 00:05:47,166 134 00:05:47,166 --> 00:05:47,300 135 00:05:47,300 --> 00:05:49,666 So here we go. Here I'm negating this, okay? 136 00:05:49,666 --> 00:05:53,400 Again the way to think about it is that, 
if I'm negating a 'for all' statement then 137 00:05:53,400 --> 00:05:55,633 it should be a 'there exists' 
statement, and if I'm negating a 138 00:05:55,633 --> 00:05:57,866 'there exists' statement it should be a 'for all' statement. 139 00:05:57,866 --> 00:06:01,000 So let's pound through this, and then we get to this implication part at the end, 140 00:06:01,000 --> 00:06:02,900 so let's look at that in a second. So... 141 00:06:02,900 --> 00:06:05,200 142 00:06:05,200 --> 00:06:07,766 Okay so let's do the first 
three things since that's 143 00:06:07,766 --> 00:06:10,200 easy. Again, we're going to take… 144 00:06:10,200 --> 00:06:12,033 145 00:06:12,033 --> 00:06:14,666 so remember 'for all' becomes 'there exists' 146 00:06:14,666 --> 00:06:17,800 'there exists' becomes 'for all', 147 00:06:17,800 --> 00:06:21,700 and 'for all' becomes 'there exists'. 148 00:06:21,700 --> 00:06:24,233 So let's see what we got. 149 00:06:24,233 --> 00:06:26,966 "There exists an epsilon greater 
than 0 for all delta greater than 0, 150 00:06:26,966 --> 00:06:30,300 there exists an x inside R…", notice that the domains don't change, 151 00:06:30,300 --> 00:06:31,166 152 00:06:31,166 --> 00:06:34,600 and then we're going to get 
the negation of the implication… 153 00:06:34,600 --> 00:06:35,666 154 00:06:35,666 --> 00:06:38,700 I started with an 'equals' and I really wanted equivalence... 155 00:06:38,700 --> 00:06:39,900 156 00:06:39,900 --> 00:06:42,400 so let's change the equals…there we go. 157 00:06:42,400 --> 00:06:43,233 158 00:06:43,233 --> 00:06:48,100 Okay, so negated the first three quantifiers 
and now I have the negation of an implication. 159 00:06:48,100 --> 00:06:51,933 What's the negation of an implication? Well I did this in a previous video but 160 00:06:51,933 --> 00:06:56,100 I pull up the old paintbrush 
on my little napkin here, 161 00:06:56,100 --> 00:06:58,066 'not' A implies B 162 00:06:58,066 --> 00:07:03,233 that's equivalent to 'not' - an implication, remember, is 'not' A 'or' B, right? Either 163 00:07:03,233 --> 00:07:06,733 A is false and the statement is true, 
or B is true and the statement's true. 164 00:07:06,733 --> 00:07:08,733 165 00:07:08,733 --> 00:07:11,333 I take this and distribute the negation in there. 166 00:07:11,333 --> 00:07:13,733 I'm going to get A and 'not' B. 167 00:07:13,733 --> 00:07:14,966 168 00:07:14,966 --> 00:07:20,366 That's great. So the negation of an implication is A 
and 'not' B, so let's just take A and 'not' B here. 169 00:07:20,366 --> 00:07:21,033 170 00:07:21,033 --> 00:07:22,533 A is this 171 00:07:22,533 --> 00:07:25,033 and 'not' B is the negation of that, so 172 00:07:25,033 --> 00:07:28,800 f of x minus L will be greater 
than or equal to epsilon, okay? 173 00:07:28,800 --> 00:07:30,666 174 00:07:30,666 --> 00:07:32,566 So, let's do that. 175 00:07:32,566 --> 00:07:33,100 176 00:07:33,100 --> 00:07:36,933 So I'm going to copy a previous line and make 
a couple of changes and that should be it. 177 00:07:36,933 --> 00:07:37,900 178 00:07:37,900 --> 00:07:41,966 Okay so all the qualifiers stayed the 
same then 'not' - remember so it's A and 179 00:07:41,966 --> 00:07:44,833 'not' B, so f of x minus L 180 00:07:44,833 --> 00:07:46,700 is greater than or equal to epsilon. 181 00:07:46,700 --> 00:07:48,233 182 00:07:48,233 --> 00:07:51,366 And here we have it. So here's an example of 183 00:07:51,366 --> 00:07:52,566 184 00:07:52,566 --> 00:07:56,433 the following question. I scrolled 
down a little bit, so express 185 00:07:56,433 --> 00:07:59,800 the limit as x goes to a of f of x does 
not equal L in terms of predicate logic. 186 00:07:59,800 --> 00:08:02,466 So how did we do this? 
Well first we expressed the 187 00:08:02,466 --> 00:08:04,733 equality in terms of English, 188 00:08:04,733 --> 00:08:07,933 then in terms of predicate logic, 
and then we negated it. 189 00:08:07,933 --> 00:08:10,466 Sometimes it's hard to just go 
straight from question to answer. 190 00:08:10,466 --> 00:08:15,500 Sometimes there's a bunch of intermediate 
steps that will help you get there. 191 00:08:15,500 --> 00:08:20,033 I hope this helps with understanding 
nested quantifiers and with negating them. 192 00:08:20,033 --> 00:08:23,666 Again, maybe I'll make one more 
mention now since I'm here, 193 00:08:23,666 --> 00:08:24,833 so again, 194 00:08:24,833 --> 00:08:29,333 for all epsilon greater than 
0, so think about it like a... 195 00:08:29,333 --> 00:08:33,000 like an adversary game, right? So 
your adversary picks an epsilon 196 00:08:33,000 --> 00:08:37,200 greater than 0, you get to pick a delta 
that may or may not depend on epsilon, 197 00:08:37,200 --> 00:08:42,533 then your adversary says, "Okay well for every x such that you're inside 198 00:08:42,533 --> 00:08:45,000 this nice little area here, 199 00:08:45,000 --> 00:08:45,633 200 00:08:45,633 --> 00:08:48,366 so you're inside this nice 
neighbourhood around a, 201 00:08:48,366 --> 00:08:49,300 202 00:08:49,300 --> 00:08:55,000 then you must have your function sufficiently close to your limit." 203 00:08:55,000 --> 00:08:57,000 If this is to be equal. 204 00:08:57,000 --> 00:08:58,233 205 00:08:58,233 --> 00:09:00,766 You could think about this game all the time, right, so you can think of the 206 00:09:00,766 --> 00:09:04,133 'for all' is sort of like the enemy picks, 207 00:09:04,133 --> 00:09:08,833 an epsilon that you don't know, you can think of 
your 'there exists' as you get a little bit of control 208 00:09:08,833 --> 00:09:11,100 as to thinking about which delta you want. 209 00:09:11,100 --> 00:09:12,000 210 00:09:12,000 --> 00:09:15,533 Alright so hopefully this video helps. Thank you very much for listening.