L21-Vectors - Dot and Cross Products
L21-Vectors - Dot and Cross Products
L21-Vectors - Dot and Cross Products
d =| PQ |= ( x2 − x1 ) + ( y2 − y1 ) + ( z2 − z1 )
2 2 2
( o) (
− + − o) + ( o)
− =
2 2 2 2
x x y y z z r
( x0 , y0 , z0 ) : center r: radius
2. Vectors
u = x, y | u |= x 2 + y 2
v = x, y, z | v |= x 2 + y 2 + z 2
Example: u = −1,5,3
| u |= (−1) 2 + 52 + 32 = 35 = 5.916
Adding vectors and multiplying vectors
with a constant
Let u = <a1, a2, a3>, v= <b1, b2, b3> and c is a real number
Then
u + v = a1 + b1 , a2 + b2 , a3 + b3
u − v = a1 − b1 , a2 − b2 , a3 − b3
cu = ca1 , ca2 , ca3
n-dimensional vectors
• Denote by V2 the set of all two-dimensional
vectors
• V3 : set of all three-dimensional vectors
• More generally, Vn : set of all n-dimensional
vectors, which have the form
u = x1 , x2 ,..., xn
• where x1, x2, …xn are real numbers and are called
the components of u
Properties of Vectors
• If u,v, and w are vectors in Vn and c, d are
scalars, then
1) u + v = v + u 2) u + (v + w) = (u + v) + w
3) u + 0 = u 4) u + (−u ) = 0
5) c(u + v) = cu + cv 6) (c + d )u = cu + du
7) (cd )u = c(du ) 8) 1u = u
Standard basis vectors
In V2 In V3
i = <1, 0> i = <1, 0, 0>
j = <0, 1> j = <0, 1, 0>
They have the length 1 k = <0, 0, 1>
They have the length 1
If u = <2, -3>, then we can
write: If v = <2, 6, -3>, then we
u = 2i -3j can write:
v = 2i + 6j - 3k
u = a1 , a2 , a3 = a1i + a2 j + a3k
Unit vectors
• A unit vector is a vector whose length is 1.
Example:
1 1 1
u = i − j+ k
2 2 2
• If u ≠0, then the unit vector v that has the same
direction as u is
1 u
v= u=
|u| |u|
3. Dot Product
• Dot product of two vectors
a = a1i + a2 j + a3k and b = b1i + b2 j + b3k
is defined by
a • b = a1b1 + a2b2 + a3b3
Properties: Let a and b be vectors and r a real number.
Then
a•b=b•a
a • a = | a|2
a•(b+c)=a•b+a•c
( r a ) • b = r (a • b ) = a • (r b)
Dot Product
Theorem. If is the angle between a and b then the
dot product is given by
a • b = |a| |b| cos .
a∙b
Scalar projection of b onto a: compa b =
|a|
a∙b
Vector projection of b onto a: proja b = 2 a
|a|
Application:
Work W done in
moving an object
from P to Q by a
force F
𝑊 = |𝑃𝑆| . 𝑃𝑄
𝑊 = 𝐅 cos 𝜃. 𝑃𝑄
𝑊 = 𝐅 ∙ 𝑃𝑄
4. Cross Product
• Definition:
Let a = a1 , a2 , a3 , b = b1 , b2 , b3 .
Cross product of a and b is the vector
a b = a2b3 − a3b2 , a3b1 − a1b3 , a1b2 − a2b1
• Notation of determinant
i j k
a2 a3 a1 a3 a1 a2
a b = a1 a2 a3 = i− j+ k
b2 b3 b1 b3 b1 b2
b1 b2 b3
Theorem: Vector a b is orthogonal to both a and b
1. a x b = -(b x a)
2. a x (b x c) = (a•c)b – (a •b)c
3. a • (b x c) = (a x b) •c
4. a x ( b + c ) = (a x b) + (a x c)
5. ( r a ) x b = r (a x b ) = a x (r b)
Triple product
Triple product is defined as a ∙ (b × c)
Let a = <a1, a2, a3>, b= <b1, b2, b3>, c= <c1, c2, c3>
a1 a 2 a 3
a ∙ b × c = b1 b2 b3
c1 c2 c3
b2 b3 b1 b3 b1 b2
= a1 − a2 + a3
c2 c3 c1 c3 c1 c2
r = r0 + tv
v = a, b, c , r0 = x0 , y0 , z0 , r = x, y, z
x, y, z = x0 + at , y0 + bt , z0 + ct
x = x0 + at , y = y0 + bt , z = z0 + ct
5. Equations of Lines and Planes…
x − x0 y − y0 z − x0
Symmetric Equation of Line (L) = =
a b c
Example: Find the parametric equation and symmetric
equation of the line passing through A(2, 4, -3), B(3, -1, 1)
Solution:
AB = 1, −5, 4
Parametric equation of the line is given by
x = 2 + t , y = 4 − 5t , z = −3 + 4t
Symmetric equation:
x−2 y−4 z +3
= =
1 −5 4
Equations of a Line Segment
Line Segment from a point A to a point B is given by
r (t ) = (1 − t )OA + tOB, 0 t 1
Example: Find the equation of the
line segment AB, where
A(2, 4, -3) and B(3, -1, 1)
Solution:
𝐫 𝑡 = 1 − 𝑡 < 2,4, −3 > +𝑡 < 3, −1,1 >
=<2,4,-3>+<1,-5,4>t, 0 ≤ 𝑡 ≤ 1
x = 2 + t , y = 4 − 5t , z = −3 + 4t , 0 t 1
Example: Show that the following two lines are skew,
that is, they do not intersect and are not parallel
(and therefore do not lie in the same plane)
L1 : x = 1 + t , y = −2 + 3t , z = 4 − t
L2 : x = 2 s, y = 3 + s, z = −3 + 4 s
Solution:
L1 and L2 are not parallel because
the direction vectors <1, 3, -1>
and <2, 1, 4> are not parallel
𝐧 ∙ (𝐫 − 𝐫𝟎 ) = 0
Scalar and Linear Equation of a Plane
n = a, b, c , r0 = x0 , y0 , z0 , r = x, y, z
a, b, c x − x0 , y − y0 , z − z0 = 0
a( x − x0 ) + b( y − y0 ) + c( z − z0 ) = 0
ax + by + cz + d = 0
d = −(ax0 + by0 + cz0 )
Example: Find an equation of the plane that passes through
the points P(1, 3, 2), Q(3, –1, 6), R(5, 2, 0)
Solution:
i j k
n = PQ PR = 2 −4 4 = 12 i + 20 j + 14 k
4 −1 −2
If two planes are not parallel, then they intersect in a straight line:
Angle between the two planes is defined as the acute angle between
their normal vectors
Distance from a point to a plane
n b
D = comp n b =
n
a ( x1 − x0 ) + b( y1 − y0 ) + c( z1 − z0 )
=
a 2 + b2 + c2
(ax1 + by1 + cz1 ) − (ax0 + by0 + cz0 )
=
( ) : ax + by + cz + d = 0 a 2 + b2 + c2
n = a, b, c
ax1 + by1 + cz1 + d
D=
A point P1(x1, y1, z1) a 2 + b2 + c2
Example: Find the distance between the two skew lines
L1 : x = 1 + t , y = −2 + 3t , z = 4 − t
L2 : x = 2 s, y = 3 + s, z = −3 + 4 s
i j k
Solution: n = v1 v 2 = 1 3 −1 = 13 i − 6 j − 5 k
2 1 4
( ) ( L2 ), ( ) / / L1
n ⊥ ( )
13x − 6( y − 3) − 5( z + 3) = 0
( ) : 13 x − 6 y − 5 z + 3 = 0
Distance from P1 (1, −2, 4) to ( ) :
13(1) − 6(−2) − 5(4) + 3 8
D= = 0.53
132 + (−6) 2 + (−5) 2 230
Homework Chapter 2
• Section 12.1: 2, 4
• Section 12.2: 3, 4, 6
• Section 12.3: 2, 6, 8
• Section 12.4: 1, 3, 16, 34
• Section 12.5: 2, 3, 6, 69
• Section 13.1: 6, 8, 31, 32, 40, 42, 49
• Section 13.2 : 6, 10, 12, 18, 24, 26, 36
• Section 13.3: 2, 4, 6, 12