Vectors, Dot Product O. Knill, Maths21a: I I I J
Vectors, Dot Product O. Knill, Maths21a: I I I J
ADDITION SUBTRACTION, SCALAR MULTIPLICATION. UNIT VECTOR. A vector of length 1 is called a unit vector. If ~v 6= ~0, then ~v /|~v | is a unit vector.
EXAMPLE: If ~v = (3, 4), then ~v = (3/5, 4/5) is a unit vector, ~i, ~j, ~k are unit vectors.
y y
u
u+v
u
u-v
y
3 u
PARALLEL VECTORS. Two vectors ~v and w
~ are called parallel, if ~v = rw
~ with some constant r.
u
x x
v v x
~v · w
~ = v1 w1 + v2 w2 + v3 w3
~u + ~v = hu1 , u2 i + hv1 , v2 i ~u − ~v = hu1 , u2 i − hv1 , v2 i λ~u = λhu1 , u2 i Remark: in science, other notations are used: ~v · w~ = (~v, w) ~ > (quantum mechanics) vi wi (Einstein
~ (mathematics) < ~v |w
= hu1 + v1 , u2 + v2 i = hu1 − v1 , u2 − v2 i = hλu1 , λu2 i notation) gij v i wj (general relativity). The dot product is also called scalar product, or inner product.
√
LENGTH. Using the dot product one can express the length of ~v as |~v | = ~v · ~v .
BASIS VECTORS. The vectors ~i = h1, 0i, ~j = h0, 1i are called standard basis vectors in the plane. In space, CHALLENGE. Express the dot product in terms of the length alone.
one has the basis vectors ~i = h1, 0, 0i, ~j = h0, 1, 0i, ~k = h0, 0, 1i.
Every vector ~v = (v1 , v2 ) in the plane can be written as a sum of standard basis vectors: ~v = v1~i + v2~j. Every SOLUTION: (~v + w,
~ ~v + w)
~ = (~v , ~v ) + (w,
~ w)
~ + 2(~v , w)
~ can be solved for (~v , w).
~
vector ~v = (v1 , v2 , v3 ) in space can be written as ~v = v1~i + v2~j + v3~k.
and b is blue. An other an emerging stan- PROJECTION. The vector ~a = projw~ (~v ) = w(~~ v · w/|
~ w|~ 2 ) is called the
coordinate system is ~v = green
dard for the web projection of ~v onto w. ~ b
(c, m, y) = (1 − r, 1 − red for describing two- The scalar projection is defined as compw~ (~v ) = (~v · w)/|
~ w| ~ . (Its ab-
g, 1 − b), where c is cyan, dimensional graphics
m is magenta and y is solute value is the length of the projection of ~v onto w.)
~ The vector
in XML. ~b = ~v − ~a is called the component of ~v orthogonal to the w-direction.
yellow. ~ a
v
√
EXAMPLE. ~v = (0, −1, 1), w
~ = (1, −1, 0), projw~ (~v ) = (1/2, −1/2, 0), compw~ (~v ) = 1/ 2.