Module 8 Lesson 2: Vectors in 2D Two basic vector operations are scalar multiplication, vector addition, and the dot product. Scalar multiplication involves multiplying a vector by a real number. Vector addition involves adding two vectors. We will work with all of these operations separately with a few more details. Hopefully you’ll find that operations with vectors are quite simple and straightforward. ๏ Then, we will discuss how to find the unit vector, how to determine direction angles of vectors, and how to find the angle between two vectors. Let’s begin! Scalar Multiplication If k is any real number and ๐ฏ = 〈๐ฃ1 , ๐ฃ2 〉, then ๐๐ฏ = 〈๐๐ฃ1 , ๐๐ฃ2 〉. Geometrically, the product of a vector v and its scalar k is the vector that is |k| times as long as v. For example, if v is 3 units long, then the vector 2v is 2 โ 3 = 6 units long. ๏ท ๏ท If k is positive, then kv has the same direction as v. See below. If k is negative, then kv has the opposite direction as v. See below. Ex. Let ๐ฏ = 〈−2, 5〉 and ๐ฐ = 〈3, 4〉. Find (a) 3๐ฏ and (b) −2๐ฐ. a. Solution: 3๐ฏ = 3〈−2, 5〉 = 〈3(−2), 3(5)〉 = 〈−6, 15〉 b. Solution: −2๐ฐ = −2〈3, 4〉 = 〈−2(3), −2(4)〉 = 〈−6, −8〉 1 Vector Addition Let ๐ฏ = 〈๐ฃ1 , ๐ฃ2 〉 and ๐ฐ = 〈๐ค1 , ๐ค2 〉 be vectors (as shown below). Then the sum of v and w is ๐ฏ + ๐ฐ = 〈๐ฃ1 + ๐ค1 , ๐ฃ2 + ๐ค2 〉 Notice the new vector that is created by their sum shown above. Notice how the second vector w is simply added on to the first vector v by connecting the initial point of w with the terminal point of v. Note: The difference of u and v can be found by ๐ฏ − ๐ฐ = ๐ฏ + (−๐ฐ) = 〈๐ฃ1 − ๐ค1 , ๐ฃ2 − ๐ค2 〉 For this course, you will only need to know how to operate with vectors algebraically and not necessarily how to sketch them; however, you should be familiar with and understand what vector addition looks like in the coordinate plane (as shown in the figures above). Now, let’s use basic addition properties to find the sum of two vectors algebraically. Ex. Let ๐ฏ = 〈−2, 5〉 and ๐ฐ = 〈3, 4〉. Find ๐ฏ + ๐ฐ. 2 Solution: ๐ฏ + ๐ฐ = 〈−2, 5〉 + 〈3, 4〉 = 〈−2 + 3, 5 + 4〉 = 〈1, 9〉 Note: Addition of vectors is commutative (the order of vectors being added does not matter). For example, ๐ฐ + ๐ฏ = 〈3, 4〉 + 〈−2, 5〉 = 〈3 + (−2), 4 + 5〉 = 〈1, 9〉. We get the same vector sum. Therefore, ๐ฏ + ๐ฐ = ๐ฐ + ๐ฏ. Combining Scalar Multiplication & Addition Ex. Given ๐ฏ = 〈7, −3〉 and ๐ฐ = 〈2, 8〉, find (a) 3๐ฏ + ๐ฐ and (b) ๐ฐ − 4๐ฏ. a. Solution: 3๐ฏ + ๐ฐ = 3〈7, −3〉 + 〈2, 8〉 = 〈21, −9〉 + 〈2, 8〉 = 〈21 + 2, −9 + 8〉 = 〈23, −1〉 b. Solution: ๐ฐ − 4๐ฏ = 〈2, 8〉 − 4〈7, −3〉 = 〈2, 8〉 − 〈28, −12〉 = 〈2 − 28, 8— 12) = 〈−26, 20〉 The Linear Combination Form of a Vector Now that you are a little more familiar with how to write and operate with vectors, let’s introduce another notation. You will also see vectors represented with an “i” and a “j”. For example, the vector ๐ฏ = 〈3, 6〉 can also be represented as ๐ฏ = 3๐ข + 6๐ฃ. Here, i represents the horizontal component of the vector v and j represents the vertical component of v. Recall that the coefficients of i and j are the directed differences in the x-values and y-values of the initial and terminal points of the vector (as found in the previous Component Form Examples). Ex. Let ๐ฎ = 2๐ข − 4๐ฃ and ๐ฐ = −6๐ข + ๐ฃ. Find (a) ๐ฎ + ๐ฐ and (b) 6๐ฎ + 2๐ฐ. (a) Solution: ๐ฎ + ๐ฐ = (2๐ข − 4๐ฃ) + (−6๐ข + ๐ฃ) = 2๐ข − 6๐ข − 4๐ฃ + ๐ฃ = −4๐ข − 3๐ฃ. 3 Note: This bold lowercase i is not to be confused with the imaginary number ๐ = √−1. (b) Solution: 6๐ฎ + 2๐ฐ = ๐(2๐ข − 4๐ฃ) + ๐(−6๐ข + ๐ฃ) = 12๐ข − 24๐ฃ − 12๐ข + 2๐ฃ = 0๐ข − 22๐ฃ = −22๐ฃ Note: Scalar Multiplication and Vector Addition work the same in both component form or linear combination form. We will use both interchangeably from here on out. The Dot Product The dot product is a way of multiplying two vectors. Say we have two vectors, ๐ฎ = 〈๐ข1 , ๐ข2 〉 and ๐ฏ = 〈๐ฃ1 , ๐ฃ2 〉. The product or ๐ฎ โ ๐ฏ is the product of the horizontal components plus the product of the vertical components. In other words: ๐ฎ โ ๐ฏ = ๐ข1 ๐ฃ1 + ๐ข2 ๐ฃ2 Notice that we use the “dot” multiplication symbol here. Ex. Let ๐ฎ = 〈3, −4〉 and ๐ฏ = 〈5, 2〉. Find ๐ฎ โ ๐ฏ. Solution: ๐ฎ โ ๐ฏ = (3)(5) + (−4)(2) = 15 − 8 = 7 So notice what’s a little different here. When we multiply two vectors, we get just a plain number… a scalar. Sometimes this is also called the scalar product (if you happen to find additional resources for your work here in Module 8). Here is an example of two vectors in linear combination form. Ex. Let ๐ฏ = 6๐ข − 2๐ฃ and ๐ฐ = −4๐ข + 5๐ฃ. Find the dot product of (a) ๐ฏ โ ๐ฐ, (b) ๐ฏ โ ๐ฏ and (c) ๐ฐ โ ๐ฐ. (a) Solution: ๐ฏ โ ๐ฐ = (6)(−4) + (−2)(5) = −24 − 10 = −34 (b) Solution: ๐ฏ โ ๐ฏ = (6)(6) + (−2)(−2) = 36 + 4 = 40 (c) Solution: ๐ฐ โ ๐ฐ = (−4)(−4) + (5)(5) = 16 + 25 = 41 Notice in (b) and (c) above how we were asked to find a vector multiplied by itself. One property of vectors is that ๐ฏ โ ๐ฏ = โ๐ฏโ๐ . So a vector squared is equal to its magnitude or length squared. Refer again to example (b) where ๐ฏ = 6๐ข − 2๐ฃ or in component form, ๐ฏ = 〈6, −2〉. 4 Let’s check to see if ๐ฏ โ ๐ฏ = โ๐ฏโ๐ by finding the magnitude of v first. โ๐ฏโ = √62 + (−2)2 = √36 + 4 = √40 So ๐ฏ โ ๐ฏ = โ๐ฏโ๐ holds true: โ๐ฏโ๐ ๐ฏ โ ๐ฏ = 40 = (√40)2 = 40 ๏ Properties of the Dot Product Let’s look at a few more properties of the Dot Product. Most of these are pretty straightforward. Let u, v, and w be vectors and let c be a scalar. 1. 2. 3. 4. 5. ๐ฎโ๐ฏ= ๐ฏโ๐ฎ 0โ๐ฏ=0 ๐ฎ โ (๐ฏ + ๐ฐ) = ๐ฎ โ ๐ฏ + ๐ฎ โ ๐ฐ ๐ฏ โ ๐ฏ = โ๐ฏโ๐ c(๐ฎ โ ๐ฏ) = c๐ฎ โ ๐ฏ = ๐ฎ โ c๐ฏ Let’s try a few more examples. Ex. Let ๐ฎ = 〈−1, 3〉, ๐ฏ = 〈2, −4〉, and ๐ฐ = 〈1, −2〉. (a) Find (๐ฎ โ ๐ฏ)๐ฐ Solution: ๐ฎ โ ๐ฏ = (−1)(2) + (3)(−4) = −2 − 12 = −14 Then, (๐ฎ โ ๐ฏ)๐ฐ = −14〈1, −2〉 = 〈−14, 28〉. (b) Find ๐ฎ โ 2๐ฏ Solution: Using Property #5 we have… ๐ฎ โ 2๐ฏ = 2(๐ฎ โ ๐ฏ) = 2(−14) = −28 Or, we can find 2๐ฏ = 2〈2, −4〉 = 〈4, −8〉 Then, ๐ฎ โ 2๐ฏ = (−1)(4) + (3)(−8) = −4 − 24 = −28. 5 (c) Find ๐ฎ โ (๐ฏ + ๐ฐ). From Property #3 we know that ๐ฎ โ (๐ฏ + ๐ฐ) = ๐ฎ โ ๐ฏ + ๐ฎ โ ๐ฐ. ๐ฎ โ ๐ฏ = −14 ๐ฎ โ ๐ฐ = (−1)(1) + (3)(−2) = −1 − 6 = −7 Therefore ๐ฎ โ (๐ฏ + ๐ฐ) = ๐ฎ โ ๐ฏ + ๐ฎ โ ๐ฐ = −14 − 7 = −21. Notice that the product in (a) was a vector and the products in (b) and (c) were scalars. The Unit Vector Review Let’s again review how to find the unit vector, but now we will use the linear combination notation instead of component notation as we did in Lesson 1. Ex. Find the unit vector, u, for ๐ฏ = 3๐ข + 6๐ฃ. From the linear combination notation, we know that the horizontal component of the vector is 3 and the vertical component of the vector is 6. Therefore, we can determine that โ๐ฏโ = √32 + 62 = √45 = 3√5 Next, simply use our formula for the unit vector. ๐ฏ ๐ฎ = โ๐ฏโ = 3๐ข+6๐ฃ 3√5 3 6 = 3√5 ๐ข + 3√5 ๐ฃ Separate = Simplify = 1 ๐ข+ √5 √5 ๐ข 5 + 2 ๐ฃ √5 2√5 5 ๐ฃ Simplify/Rationalize Remember, the unit vector is a vector with the same direction, but it has a length of 1. Unit vectors will be helpful in the following Lesson. ๏ Direction Angles If u is a unit vector such that ๐ is the angle (measured counterclockwise) from the positive x-axis to u, the terminal point of u lies on the unit circle and you have ๐ฎ = 〈๐ฅ, ๐ฆ〉 = 〈cos ๐ , sin ๐〉 = (cos ๐) ๐ข + (sin ๐) ๐ฃ as shown in the figure to the right. The angle ๐ is called the directional angle of the vector u. 6 If v is any vector that makes an angle ๐ with the positive x-axis, then it has the same direction as the unit vector u and we can write ๐ฏ = โ๐ฏโ〈(cos ๐ , sin ๐〉 = โ๐ฏโ cos ๐ ๐ข + โ๐ฏโsin ๐ ๐ฃ Because ๐ฏ = ๐๐ข + ๐๐ฃ = โ๐ฏโ cos ๐ ๐ข + โ๐ฏโsin ๐ ๐ฃ, it follows that the directional angle ๐ can be found by using the formula tan ๐ = ๐ ๐ Ex. Find the direction angle of the vector ๐ฎ = 3๐ข + 3๐ฃ. Here, ๐ = 3 and ๐ = 3. The direction angle s 3 tan ๐ = 3 tan ๐ = 1 ๐ = tan−1 3 = 45° 3 Let’s draw a picture to help us determine the directional angle. Since the horizontal and vertical components of this vector are both positive 3, we know the vector lies in Quadrant I. Therefore, the directional angle of u is ๐ = 45°. 7 Ex. Find the direction angle of ๐ฏ = 3๐ข − 4๐ฃ. Find ๐ by 4 tan ๐ = − 3 4 ๐ = tan−1 (− ) ≈ −53.130° 3 Note: Stay in degree mode. Let’s draw a picture to help us determine the directional angle. Since the horizontal component is positive and the vertical component is negative, we know the vector lies i n Quadrant IV. The angle ๐ = −53.130° is the angle made moving clockwise from the positive x-axis… not counterclockwise! So in order to find the directional angle, we can subtract this ‘reference angle” of 53.130° from 360°. The direction angle is ๐ = 306.870°. 8 The Angle Between Two Vectors Before we get started with our second method of multiplying two vectors, we must first learn how to find the angle between two vectors. The angle between two nonzero vectors is the angle ๐, 0 ≤ ๐ ≤ ๐, between its respective standard position vectors. A vector is in standard position when its initial point is at the origin. See the figure below. If ๐ is the angle between two nonzero vectors u and v, then cos ๐ = ๐ฎโ๐ฏ โ๐ฎโโ๐ฏโ Ex. Find the angle between ๐ฎ = 〈4, 3〉 and ๐ฏ = 〈3, 5〉. cos ๐ = = 〈4, 3〉 โ 〈3, 5〉 โ〈4, 3〉โโ〈3, 5〉โ (4)(3) + (3)(5) (√42 + 32 )(√32 + 52 ) = 27 (√25)(√34) = 27 5√34 This implies that the angle between the two vectors is ๐ = arccos 9 27 5√34 = 22.166° Make sure your calculator is in Degree Mode and use ๐๐๐ −1 for ๐๐๐๐๐๐ . 10