Section 2.2: Vectors and Dot Product

Section 2.2: Vectors and Dot Product
² Review on Planar Vectors
A 2D vector is a line segment with a direction. Two vectors are considered
equivalent if they have the same length and same direction.
y
B
AB
A
x
O
In the …gure, all three vectors are equivalent. Equivalent vectors are
treated as the same. The vector originated from the origin is the representative of the equivalent class it belongs, and is denoted by hx; yi ; where
(x; y) is the coordinate of the end point of this representative. In particular, if A (x1 ; y1 ) and B (x2 ; y2 ) are two points, then the vector connecting A
¡!
& B pointing from A to B is denoted by AB; and has the representative
originated from the origin and endpoint (x2 ¡ x1 ; y2 ¡ y1 ) :Vector addition,
subtraction, and scalar multiplication are de…ned as
hx1 ; y1 i + hx2 ; y2 i = h x1 + x2 ; y1 + y2 i
hx1 ; y1 i ¡ hx2 ; y2 i = h x1 ¡ x2 ; y1 ¡ y2 i
¸hx1 ; y1 i = h¸x1 ; ¸y1 i :
The length of vector < x1 ; y1 > is
q
jhx1 ; y1 ij = x21 + y12 :
Geometrically, let ~u and ~v be two vectors. Then ~u +~v is the diagonal vector
of the parallelogram formed by ~u and ~v:
1
U+V
U
V
If ¸> 0; ¸~u is the vector with the same direction as ~u and with length ¸
times the length of ~u;i.e.,
j¸~uj = ¸j~uj :
If ¸ < 0; ¸~u is the vector with the opposite direction to ~u and with length
j¸j times the length of ~u; i.e.
j¸~uj = j¸j j~uj :
In particular,
µ
¶
1
~u
j~uj
is the vector of unit length have the same direction as ~u; and is called the
unit vector in the direction of ~u; or simply the direction of ~u:
Vectors in 3D Space
De…nition: A vector in R3 is a line segment in 3D space with a direction.
Two vectors are considered equivalent if they have the same length and same
direction. The vector originated from the origin is the representative of the
equivalent class it belongs, and is denoted by < x; y; z >; where (x; y; z)
is the coordinate of the end point of this representative. In particular, if
A (x1 ; y1 ; z1 ) and B (x2 ; y2 ; z2 ) are two points, then the vector connecting A
¡!
& B pointing from A to B is denoted by AB; and has the representative
¡!
AB = < x2 ¡ x1 ; y2 ¡ y1 ; z2 ¡ z1 >
2
(= hBi ¡ hAi )
z
B
AB
A
y
O
x
In the above …gure, all three vectors are equivalent, and thus are considered
equal. Note that a vector consists of two elements: length and direction.
Two vectors having the same length and direction are equal.
¡!
Example 2.1. Find AB if A (2; ¡3; 4) and B (¡2; 1; 1) :
Solution:
¡!
AB = h¡2 ¡ 2; 1 + 3; 1 ¡ 4i = h¡4; 4; ¡3i :
Just like 2D vectors, for 3D vector addition, subtraction, and scalar multiplication are de…ned similarly.
² Vector Addition/Subtraction: Given ~u = hx1 ; y1 ; z1 i ; ~v = hx2 ; y2 ; z2 i :Then
~u + ~v = hx1 + x2 ; y1 + y2 ; z1 + z2 i
~u ¡ ~v = h x1 ¡ x2 ; y1 ¡ y2 ; z1 ¡ z2 i :
² Scalar Multiplication: ¸ is a constant.
¸~u = ¸hx1 ; y1 ; z1 i = h¸x1 ; ¸y1 ; ¸z1 i :
² Length of ~u :
j~uj =
q
(x1 )2 + (y1 )2 + (z1 )2
3
² Unit vector in the direction of ~u:
*
+
1
x1
y1
z1
~u = q
;q
;q
:
j~uj
2
2
2
2
2
2
2
2
2
(x1 ) + (y1 ) + (z1 )
(x1 ) + (y1 ) + (z1 )
(x1 ) + (y1 ) + (z1 )
Example 2.2. Find ~u +~v, 2~u ¡~v; j~uj ; and the unit vector in the direction
of u
~ ; if ~u = h2; ¡3; 4i and ~v = h¡2; 1; 1i :
Solution:
~u + ~v = h2; ¡3; 4i + h¡2; 1; 1i = h0; ¡2; 5i
2~u = 2 h2; ¡3; 4i = h4; ¡6; 8i
2~u ¡ ~v = h4; ¡6; 8i ¡ h¡2; 1; 1i = h6; ¡7; 7i
q
p
j~uj = 22 + (¡3)2 + 42 = 29
¿
À
~u
1
2
¡3
4
= p h2; ¡3; 4i = p ; p ; p
:
j~uj
29
29
29
29
² Property: ~u; ~v and w
~ are three vectors, ¸and ± are two real numbers.
Then
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
~u + ~v = ~v + ~u
~u + (~v + w)
~ = (~u + ~v ) + w
~
~
~u + 0 = ~u
~u + (¡~u) = ~0
¸(~u + ~v ) = ¸~u + ¸~v
(¸+ ±) ~u = ¸~u + ±~u
(¸±) ~u = ¸(±~u)
1 ¢ ~u = ~u
All these properties can be veri…ed by direct computation. For instance,
set ~u = hx1 ; y1 ; z1 i ; ~v = hx2 ; y2 ; z2 i : Then
~ + ~v = hx1 ; y1 ; z1 i + hx2 ; y2 ; z2 i = hx1 + x2 ; y1 + y2 ; z1 + z2 i
u
~v + ~u = hx2 ; y2 ; z2 i + hx1 ; y1 ; z1 i = hx2 + x1 ; y2 + y1 ; z2 + z1 i
=) ~u + ~v = ~v + ~u: ( Property (1) ):
4
² Base Vector Representation: Unit vectors in directions of axes are
called base vectors. There are three base vectors:
~i = h1; 0; 0i
~j = h0; 1; 0i
(unit vector in x ¡ axix direction)
(unit vector in y ¡ axix direction)
~k = h0; 0; 1 i (unit vector in z ¡ axix direction).
Any vector ~u =< x1 ; y1 ; z1 > can be expressed as a linear combination
of base vectors:
~u = hx1 ; y1 ; z1 i = x1~i + y1~j + z1~k:
Example 2.3. Let ~u = ~i + 2~j ¡ 3~k; ~v = 4~i + 7~k:Find 2 ~u + 3~v and the
unit vector in the direction of ~u:
Solution:
³
´
³
´
2~u + 3~v = 2 ~i + 2~j ¡ 3~k + 3 4~i + 7~k
³
´
= 2~i + 4~j ¡ 6~k + 12~i + 21~k
= 14~i + 4~j + 15~k:
´
~i
~u
1
1 ³~
2
3
=p
~u = p
i + 2~j ¡ 3~k = p + p ~j ¡ p ~k:
j~uj
1+4+9
14
14
14
14
The Dot Product
De…nition: The dot product of two vectors ~u and ~v , denote by ~u¢ ~v;is
de…ned as
~u ¢ ~v = j~uj j~v j cos µ;
µ =< ~u; ~v > is the angle between ~u and ~v ; 0 · µ · ¼:
(1)
The dot product is also called Inner Product or Scalar product.
Example 2.4. Let j~uj = 4; j~vj = 6; µ = ¼=3: Find ~u ¢ ~v:
Solution:
¼
~u ¢ ~v = j~uj j~v j cos µ = 4 ¢ 6 ¢ cos = 12:
3
5
U
U
θ
θ
V
V
|U| cos θ
In the right triangle on the left of above …gure,
j~uj cos µ = length of adjacent edge (with respect to µ):
If ~u represents a vector of force, then j~uj cos µ is the horizontal component
of the force. Therefore, if ~u is a (constant) force vector dragging an object
causing the object moving distance ~v (i.e., in the direction of ~v by distance
j~vj.) Then,
work done = (component of force in the direction of ~v) £ (distance j~vj)
= (j~uj cos µ) j~vj
= ~u ¢ ~v
Example 2.5. A crate is hauled 8 meter up a ramp a force of 200 Newton
at 25o angle. Find work done.
F = 200 N
25 deg
8m
Solution: Let F~ be the force vector and ~r is the distance vector. Then
¯ ¯
¯ ¯
~
work done = F ¢ ~r = ¯F~ ¯ j~rj cos µ
= 200 £ 8 £ cos (25o )
= 160 cos (25o ) :
6
Theorem. (a) Two vectors ~u and ~v are perpendicular (denoting by
~u ? ~v ) i¤
~u ¢ ~v = 0:
(b)
~u ¢ ~u = j~uj2 ; or j~uj =
Proof: (a) Recall De…nition (1) that
p
~u ¢ ~u
~u ¢ ~v = j~uj j~vj cos µ:
¼
So ~u ¢ ~v = 0 i¤ cos µ = 0: Now, ~u ? ~v () µ =
() cos µ = 0: (b)
2
When ~u and ~v have the same direction, in particular, when ~u = ~v; we have
µ = 0 =) cos µ = 1:
The de…nition of the dot product is not convenient for calculation.
Component Form of Dot Product: Let ~u =< x1 ; y1 ; z1 >; ~v =<
x2 ; y2 ; z2 > :Then
~u ¢ ~v = x1 x2 + y1 y2 + z1 z2 :
(2)
Proof: We shall use the Law of Cosine for triangles studied in pre-calculus
c2 = a2 + b2 ¡ 2ab cos µ
to verify (2), where a; b; c are lengths of three edges and µ is the angle opposite
to c:
U - V
U
a
c
b
θ
V
If we use vector notations as in the above …gure, then
a = j~uj ; b = j~vj ; c = j~u ¡ ~vj ;
and thus the Law of Cosine becomes
j~u ¡ ~v j2 = j~uj2 + j~vj2 ¡ 2 j~uj j~vj cos µ:
7
Using the de…nition of the dot product (1), i.e.,
~u ¢ ~v = j~uj j~vj cos µ;
the Law of Cosine has the vector form
j~u ¡ ~v j2 = j~uj2 + j~vj2 ¡ 2~u ¢ ~v:
(3)
On the other hand,
j~uj2 = x21 + y12 + z12
j~v j2 = x22 + y22 + z22
and thus
j~u ¡ ~vj2 = jhx1 ¡ x2 ; y1 ¡ y2 ; z1 ¡ z2 ij2
= (x1 ¡ x2 )2 + (y1 ¡ y2 )2 + (z1 ¡ z2 )2
¡
¢ ¡
¢ ¡
¢
= x21 ¡ 2x1 x2 + x22 + y12 ¡ 2y1 y2 + y22 + z12 ¡ 2z1 z2 + z22
= x21 + y12 + z12 + x22 + y22 + z22 ¡ 2 (x1 x2 + y1 y2 + z1 z2 )
= j~uj2 + j~vj2 ¡ 2 (x1 x2 + y1 y2 + z1 z2 ) :
It follows from (3) that
j~uj2 + j~vj2 ¡ 2~u ¢ ~v
= j~uj2 + j~v j2 ¡ 2 (x1 x2 + y1 y2 + z1 z2 ) ;
from which we easily derive at
~u ¢ ~v = x1 x2 + y1 y2 + z1 z2 :
Example 2.6. Let ~u = h2; 4; 1i ; ~v = h3; ¡1; 2i. Find (a) ~u ¢ ~v and (b)
the angle between ~u and ~v:
Solution: (a)
~u ¢ ~v = h2; 4; 1i ¢ h3; ¡1; 2i
= 2 £ 3 + 4 £ (¡1) + 1 £ 2 = 4:
(b) In formula (9.3.1), dividing both sides by j~uj j~vj would lead to
cos µ =
~ ¢ ~v
u
4
4
p
=p
= p p = 0:233 :
j~uj j~vj
4 + 16 + 1 9 + 1 + 4
21 14
8
So
µ = arccos (0:233) = 1: 335 6 (radian)
180
= 1: 335 6 £
(deg) = 57: 296o :
¼
Example 2.7. Show that
³
´
³
´
~
~
~
~
~
~
2i + 2j ¡ k ? 5i ¡ 4j + 2k :
Solution: We know that two vectors are perpendicular i¤ their dot product
is zero. Now since
³
´ ³
´
2~i + 2~j ¡ ~k ¢ 5~i ¡ 4~j + 2~k = 2 £ 5 + 2 £ (¡4) + (¡1) £ 2 = 0
we proved that these two vectors are orthogonal to each other.
Some Properties of Dot Product:
(1) ~u ¢ ~u = j~uj2
(2) ~u ¢ ~v = ~v ¢ ~u
(3) ~u ¢ (~v + w)
~ = ~u ¢ ~v + ~u ¢ w
~
(4) (¸~u) ¢ ~v = ¸(~u ¢ ~v ) = ~u ¢ (¸~v )
(5) ~0 ¢ ~u = ~u ¢ ~0 = 0:
Orthogonal Projection of ~u onto ~v is the vector with length j~uj jcos µj
having either the same direction as ~v (if µ · ¼ =2) or opposite to ~v (if µ > ¼ =2),
and is denoted by Proj~v (~u) :
µ
¶
~v
~u ¢ ~v
P roj~v (~u) = (j~uj cos µ)
=
~v:
j~vj
j~vj2
U
θ
|U | co s θ
V
P
9
When ~v is a unit vector, i.e., j~vj = 1; we have
P roj~v (~u) = (~u ¢ ~v) ~v :
Note that Proj~v (~u) depends only on the directions parallel to ~v: In other
words,
P roj~v (~u) = P rojw~ (~u)
if ~v = ¸~
w (i.e., if ~v and w
~ are parallel).
U
W
θ
|U| cos θ
V
P
Example 2.5. Let ~u =< ¡2; 3; 1 >; ~v =< 1; 1; 2 > : Find Proj~v (~u) :
Solution:
µ
¶
~u ¢ ~v
¡2 + 3 + 2
P roj~v (~u) =
~v =
< 1; 1; 2 >
2
(1 + 1 + 4)
j~vj
3
1 1
= < 1; 1; 2 > = < ; ; 1 > :
6
2 2
Homework for Section 2.2:
1. Vectors ~a and ~b are shown below. Draw the following vectors:
(a) ~a + 2~b
(b) ~a ¡ 2b
(c) ~b ¡ 3~a
(d) 3~a ¡ 2~b
10
r
a
r
b
¡!
2. Find vector AB if
(a) A (2; 4; ¡1) ; B (1; ¡1; 2)
(b) A (¡2; 3; 0) ; B (4; 2; ¡5)
¯
¯
¯
¯
3. Find ~a + 2~b; ¡3~a; j~aj ; ¯~a + 2~b¯ ; and a unit vector with the same direction as ~a
(a) ~a = h3; 2; 1i ; ~b = h2; 1; ¡2i
(b) ~a = h¡1; 0; 2i ; ~b = h1; ¡2; 2i
4. Using vector notation, determine whether three points lie on straight
line.
(a) A (2; 4; 2) ; B (3; 7; ¡2) ; C (1; 3; 3)
(b) A (1; ¡4; ¡4) ; B (2; ¡1; 5) ; C (4; 5; 3)
5. Which of the following expressions are meaningful?
³
´
(a) ~a ¢ ~b ¢ ~c
³
´
(b) ~a ¢ ~b ~c
³
´
(c) ~a ¢ ~b + ~c
³
´
(d) ~a + ~b ¢ ~c
³
´
~
(e) ~a + b ¢ j~cj
11
(f)
¯ ¯´
³
¯ ¯
~a + ¯~b¯ ¢ ~c
6. Find ~a ¢ ~b:
¯ ¯
¯ ¯
(a) j~aj = 2; ¯~b¯ = 3; and the angle between them is ¼ =3
(b) ~a = h2s; s; ¡4si ; ~b = h¡3s; 2s; 2si
7. Find ~a ¢ ~b and the angle between them.
(a) ~a = h1; 2; ¡3i ; ~b = h¡2; 1; 4i
(b) ~a = 2~i ¡ 3~j + ~k; ~b = ¡~i ¡ 4~j + 2~k
8. Find the orthogonal projection of ~a onto ~b:(Notice that ~a and ~b are the
same as in #3)
(a) ~a = h1; 2; ¡3i ; ~b = h¡2; 1; 4i
(b) ~a = 2~i ¡ 3~j + ~k; ~b = ¡~i ¡ 4~j + 2~k
9. Determine whether ~a and ~b are orthogonal.
(a) ~a = h1; 2; ¡3i ; ~b = h0; 3; 2i
(b) ~a = h2; ¡6; ¡4i ; ~b = h¡7; ¡9; 10i
(c) ~a = ¡2~i ¡ 3~j + 4~k; ~b = ¡~i + 4~j + 2~k
10. Find a unit vector that is orthogonal to both ~i + ~j and ~i + ~k:
11. Find the work done by a force of 30 lb acting in the direction N 450 W
in moving an object 5 ft west.
12