1 00:00:07,045 --> 00:00:07,670 JOEL LEWIS: Hi. 2 00:00:07,670 --> 00:00:09,240 Welcome back to recitation. 3 00:00:09,240 --> 00:00:11,600 In lecture, you've learned a little bit about the dot 4 00:00:11,600 --> 00:00:13,148 product, and how the dot product can 5 00:00:13,148 --> 00:00:14,898 be used to compute angles between vectors, 6 00:00:14,898 --> 00:00:18,880 or the relationship between the dot product of vectors 7 00:00:18,880 --> 00:00:20,590 and the angle between them. 8 00:00:20,590 --> 00:00:23,870 So, here I have two questions, two related questions for you. 9 00:00:23,870 --> 00:00:26,860 So the first one, you've got two vectors. 10 00:00:26,860 --> 00:00:29,250 i hat plus j hat plus 2 k hat. 11 00:00:29,250 --> 00:00:33,075 And a second vector, 2 i hat minus j hat plus k hat. 12 00:00:33,075 --> 00:00:36,400 I'm probably going to stop saying the hats in a minute, 13 00:00:36,400 --> 00:00:37,205 just warning you. 14 00:00:39,641 --> 00:00:41,390 So you've got these two different vectors, 15 00:00:41,390 --> 00:00:45,340 and what I'd like to know is what the angle between them is. 16 00:00:45,340 --> 00:00:49,000 And the second one is that we have three points. 17 00:00:49,000 --> 00:00:53,760 So the P has coordinates a, 1, and minus 1. 18 00:00:53,760 --> 00:00:56,890 Q has coordinates 0, 1, and 1. 19 00:00:56,890 --> 00:01:00,730 And R has coordinates a, minus 1, and 3. 20 00:01:00,730 --> 00:01:02,940 So when you've given three points, 21 00:01:02,940 --> 00:01:04,380 that define some angles. 22 00:01:04,380 --> 00:01:07,270 So what I'd like to know is for which values of a 23 00:01:07,270 --> 00:01:11,290 is the angle PQR a right angle? 24 00:01:11,290 --> 00:01:14,195 So why don't you take some time, work out these problems, 25 00:01:14,195 --> 00:01:16,070 come back, and we can work them out together. 26 00:01:24,594 --> 00:01:26,510 Hopefully you had some luck on these problems. 27 00:01:26,510 --> 00:01:27,380 Let's get started. 28 00:01:27,380 --> 00:01:29,220 Let's start with the first one. 29 00:01:29,220 --> 00:01:34,540 So we have these two vectors, i plus j plus 2k, and 2i minus j 30 00:01:34,540 --> 00:01:35,150 plus k. 31 00:01:35,150 --> 00:01:36,770 And we want to know what the measure 32 00:01:36,770 --> 00:01:38,202 of the angle between them is. 33 00:01:38,202 --> 00:01:39,785 So the thing that we have to use here, 34 00:01:39,785 --> 00:01:42,090 is that for vectors v and w, we know 35 00:01:42,090 --> 00:01:45,740 that v dot w can be written in terms 36 00:01:45,740 --> 00:01:47,010 of the angle between them. 37 00:01:47,010 --> 00:02:02,000 So in particular, we know that for vectors v and w, 38 00:02:02,000 --> 00:02:05,190 if the angle between them is equal to theta, 39 00:02:05,190 --> 00:02:11,430 then cosine of theta is equal to v dot w, 40 00:02:11,430 --> 00:02:15,360 but I have to divide by the length of v 41 00:02:15,360 --> 00:02:18,570 and the length of w. 42 00:02:18,570 --> 00:02:21,890 So I have this simple formula for cosine 43 00:02:21,890 --> 00:02:23,770 of theta in terms of v and w. 44 00:02:23,770 --> 00:02:25,900 And so then if we want, we can find theta 45 00:02:25,900 --> 00:02:27,550 by taking an arccosine. 46 00:02:27,550 --> 00:02:32,690 So let's apply this formula in the case of problem a. 47 00:02:32,690 --> 00:02:37,790 So we could say that v is equal to i plus j plus 2k, 48 00:02:37,790 --> 00:02:42,160 and w is equal to 2i minus j plus k. 49 00:02:42,160 --> 00:02:54,360 And so what that means is that in our case, v dot w-- well, 50 00:02:54,360 --> 00:02:57,030 we just take, you know, the products of the 51 00:02:57,030 --> 00:02:58,500 coordinates and add them up. 52 00:02:58,500 --> 00:03:03,190 So in that case, this is 1 times 2 plus 1 times minus 1 53 00:03:03,190 --> 00:03:04,290 plus 2 times 1. 54 00:03:04,290 --> 00:03:12,740 So this is 1 times 2 plus 1 times minus 1 plus 2 times 1. 55 00:03:12,740 --> 00:03:16,910 So that's 2 minus 1 plus 2, so that's equal to 3. 56 00:03:16,910 --> 00:03:20,410 And so then we also need to know what the length of v and w 57 00:03:20,410 --> 00:03:22,550 are in order to apply this formula. 58 00:03:22,550 --> 00:03:26,610 So the length of v is equal to-- well it's 59 00:03:26,610 --> 00:03:29,510 the square root of the sum of the squares of the coordinates, 60 00:03:29,510 --> 00:03:32,845 or the square root of v dot v. So in this case, that's 61 00:03:32,845 --> 00:03:40,860 the square root of 1 squared plus 1 squared plus 2 squared. 62 00:03:40,860 --> 00:03:44,150 So that's the square root of 6. 63 00:03:44,150 --> 00:03:49,660 And the length of w is equal to-- it's 64 00:03:49,660 --> 00:03:54,040 the square root of 2 squared plus minus 1 65 00:03:54,040 --> 00:03:58,600 squared plus 1 squared, which is also 66 00:03:58,600 --> 00:04:00,540 equal to the square root of 6. 67 00:04:00,540 --> 00:04:03,020 So if you put these three things together, 68 00:04:03,020 --> 00:04:05,940 we have that cosine of theta is equal-- 69 00:04:05,940 --> 00:04:08,270 so I'm going to write it right up here 70 00:04:08,270 --> 00:04:09,750 next to this general formula just 71 00:04:09,750 --> 00:04:12,710 to save a little bit of space-- so in our case, 72 00:04:12,710 --> 00:04:16,435 this is equal to 3 divided by the square root of 6 73 00:04:16,435 --> 00:04:17,560 times the square root of 6. 74 00:04:17,560 --> 00:04:21,390 So that's 3 divided by 6, which is equal to 1/2. 75 00:04:21,390 --> 00:04:23,490 So if cosine of theta is equal to 1/2, 76 00:04:23,490 --> 00:04:26,800 well we know that that means that theta 77 00:04:26,800 --> 00:04:29,150 is equal to pi over 3. 78 00:04:29,150 --> 00:04:29,790 OK? 79 00:04:29,790 --> 00:04:41,600 So the angle between these two vectors is pi over 3. 80 00:04:41,600 --> 00:04:42,630 OK, great. 81 00:04:42,630 --> 00:04:43,870 That's part a. 82 00:04:43,870 --> 00:04:45,570 Now let's talk about part b. 83 00:04:45,570 --> 00:04:47,530 So we have these three points and we 84 00:04:47,530 --> 00:04:51,050 want to know for what values is the angle that they 85 00:04:51,050 --> 00:04:52,630 define a right angle. 86 00:04:52,630 --> 00:04:54,370 For what values of this parameter. 87 00:04:54,370 --> 00:04:54,870 Right? 88 00:04:54,870 --> 00:04:57,970 Our points depend on this parameter, a. 89 00:04:57,970 --> 00:05:01,470 So in order to do that, we have these three points in space. 90 00:05:01,470 --> 00:05:04,420 Let me draw a picture up here. 91 00:05:04,420 --> 00:05:10,120 So we have point P somewhere and point Q somewhere and point 92 00:05:10,120 --> 00:05:12,580 R somewhere, and they define this angle, 93 00:05:12,580 --> 00:05:15,500 and we want to know when this angle is a right angle. 94 00:05:15,500 --> 00:05:19,140 Well, we don't have any vectors yet, 95 00:05:19,140 --> 00:05:21,030 but it's easy to get some vectors involved 96 00:05:21,030 --> 00:05:21,810 in this problem. 97 00:05:21,810 --> 00:05:27,000 We can look at the vectors QP and QR. 98 00:05:27,000 --> 00:05:29,300 So those two vectors are the two sides 99 00:05:29,300 --> 00:05:31,560 of this angle that we're interested in. 100 00:05:31,560 --> 00:05:35,430 And it's easy when you're given coordinates for points to find 101 00:05:35,430 --> 00:05:36,520 the vector between them. 102 00:05:36,520 --> 00:05:38,360 So you just subtract, right? 103 00:05:38,360 --> 00:05:39,480 So QP. 104 00:05:39,480 --> 00:05:43,010 In order to get from our point Q over here-- 105 00:05:43,010 --> 00:05:47,210 in order to get from (0, 1, 1) to (a, 1, -1)-- well, 106 00:05:47,210 --> 00:05:50,060 you have to increase the first coordinate by a, the second 107 00:05:50,060 --> 00:05:52,601 coordinate has to stay the same, and the third coordinate has 108 00:05:52,601 --> 00:05:53,660 to decrease by 2. 109 00:05:53,660 --> 00:06:01,000 So this vector QP is equal to [a, 0, -2]. 110 00:06:01,000 --> 00:06:06,055 So now I'm using angle brackets, because this is a vector. 111 00:06:06,055 --> 00:06:08,336 SPEAKER 1: Positive 2 or negative 2? 112 00:06:08,336 --> 00:06:09,294 JOEL LEWIS: Negative 2. 113 00:06:12,020 --> 00:06:12,760 Yes. 114 00:06:12,760 --> 00:06:13,260 Right. 115 00:06:13,260 --> 00:06:14,160 Negative 2, yeah? 116 00:06:14,160 --> 00:06:16,230 Because we're going from 1 to minus 1. 117 00:06:16,230 --> 00:06:17,680 OK, good. 118 00:06:17,680 --> 00:06:21,390 And similarly QR. 119 00:06:21,390 --> 00:06:24,630 So to get from Q to R-- I have to go back and look 120 00:06:24,630 --> 00:06:27,200 at the coordinates over here-- so I 121 00:06:27,200 --> 00:06:29,430 increase the first coordinate by a, 122 00:06:29,430 --> 00:06:31,340 decrease the second coordinate by 2, 123 00:06:31,340 --> 00:06:34,040 increase the third coordinate by 2, to get from Q to R. 124 00:06:34,040 --> 00:06:43,450 So the vector QR is equal to a-- what did I say-- minus 2, 2. 125 00:06:43,450 --> 00:06:45,920 So these are the vectors QP and QR, 126 00:06:45,920 --> 00:06:49,262 and we want to know when the angle between these two things 127 00:06:49,262 --> 00:06:49,970 is a right angle. 128 00:06:49,970 --> 00:06:52,880 We want to know when these vectors are perpendicular. 129 00:06:52,880 --> 00:06:54,600 OK? 130 00:06:54,600 --> 00:06:58,820 So the two vectors are perpendicular exactly when 131 00:06:58,820 --> 00:07:01,050 their dot product is 0. 132 00:07:01,050 --> 00:07:03,060 Right? 133 00:07:03,060 --> 00:07:04,580 When the angle is 90 degrees. 134 00:07:04,580 --> 00:07:07,440 Cosine of 90 degrees, cosine of pi over 2 radians, 135 00:07:07,440 --> 00:07:12,010 is equal to 0, so those two things are the same. 136 00:07:12,010 --> 00:07:16,615 The dot product equals 0 and the angle is 90 degrees. 137 00:07:16,615 --> 00:07:18,810 So OK. 138 00:07:18,810 --> 00:07:28,310 So in our case, we just have to look then at QP dot QR. 139 00:07:28,310 --> 00:07:31,050 So that's equal to-- well, we just take this dot product 140 00:07:31,050 --> 00:07:36,030 here-- so it's equal to a squared plus-- 0 times minus 2 141 00:07:36,030 --> 00:07:41,540 is 0-- minus-- 2 times 2, so plus minus 2 times 2-- so 142 00:07:41,540 --> 00:07:42,600 that's minus 4. 143 00:07:42,600 --> 00:07:46,250 So that's a squared minus 4. 144 00:07:46,250 --> 00:07:48,430 And so this dot product is equal to 0 145 00:07:48,430 --> 00:07:51,620 exactly when a squared minus 4 is equal to 0. 146 00:07:51,620 --> 00:07:58,080 So a squared minus 4 is equal to 0 when a is equal to 2 147 00:07:58,080 --> 00:08:01,470 or when a is equal to minus 2. 148 00:08:01,470 --> 00:08:03,970 So there are two values of a for which 149 00:08:03,970 --> 00:08:08,390 those three points form a right angle at Q. 150 00:08:08,390 --> 00:08:13,650 So just to quickly summarize, we used this general formula here 151 00:08:13,650 --> 00:08:18,280 for the cosine of an angle in terms of the two vectors 152 00:08:18,280 --> 00:08:20,560 that are the sides of the angle. 153 00:08:20,560 --> 00:08:23,910 And with that formula, we can compute the measure 154 00:08:23,910 --> 00:08:26,725 of angles between two vectors as here-- 155 00:08:26,725 --> 00:08:29,750 or, as in the first part, in part a. 156 00:08:29,750 --> 00:08:34,000 Or in a special case when we're looking for a 90 degree angle, 157 00:08:34,000 --> 00:08:37,460 we can use the simplified form when we just 158 00:08:37,460 --> 00:08:40,520 need to figure out when the dot product is equal to 0. 159 00:08:40,520 --> 00:08:41,140 OK. 160 00:08:41,140 --> 00:08:43,920 So I'll end there.