- Vector w goes from (-1, 1) to (-2, -4). X-component = -2 - (-1) = -1. Y-component
= -4 - 1 = -5. W = <-1,-5>.
- If components of vectors are equal, the vectors are the same.
- The length of a vector, also called its magnitude, can be calculated easily from its
components, use pythagorean theorem, length of vector = square root of
(x-component)2 + (y-component)2.
- Why? Because the x-component of the vector drawn as a horizontal line and the
y-component of the vector drawn as a vertical line forms a right triangle, with the
vector itself serving as the hypotenuse.
- Example: Vector v goes from (0,0) to (5,-2). The length of the vector is square
root of 52 + (-2)2 = 29. The length of the vector is the square root of 29.
- ||v|| = (length of v). This is the notation of the magnitude of v. There is also an
arrow on top of the “v” in the double bars.
- In the above example, the answer would be written as ||v|| = square root of 29.
- SO: If v = <a,b>, then ||v|| = square root of a2 + b2.
- Addition of vectors: Given two vectors (v and w): Remember that vectors aren’t in
fixed positions. Therefore, they can be moved around to a convenient place as
long as their length and direction remain the same.
- So, you can move vector w in the scenario above so that vector w starts where
vector v ends (tip to tail). The resulting vector that forms from adding the two
vectors then is the resultant vector that goes from the starting point (tail) of vector
v to the ending point of vector w (tip).
- The resultant vector is denoted as v + w, with arrows over both letters.
- So, you can add x-components and y-components of vectors to get the
components of the resulting vector.
- If v goes from (0,0) to (4,2) and w goes from (0,0) to (2,-2), then v + w = <4 + 2,
2 + -2> = <6,0>. So, if you move vector w so that it starts from where v ends (at
point (4,2)), then vector w would end at (6,0) and the resulting vector would just
be a horizontal line from (0,0) to (6,0).
- If v = <a,b> and w = <c,d>, then v + w = <a+c, b+d>.
- NOTE: For vector addition, v + w = w + v. <a+c = c+a, b+d = d+b>.
- You can also multiply a vector by a scalar (Scalar multiplication or scaling).
- Scalar has only magnitude, no direction. It is pretty much a number.
- If vector v is multiplied by 2, then the resulting vector would be vector v plus the
same vector v that starts where the vector v ends. In other words, it would be a
vector with double the length of v but going in the same direction as v. Direction
remains same, length multiplied by whatever the scalar number is.
- So, if v = <a,b>, then v x scalar = <a x scalar, b x scalar>.