
Dot Product
Given any two vectors u=[u1, u2] and v=[v1, v2] in R2, the dot product is defined by
u⋅v=u1v1+u2v2
- The dot product between two vectors is a scalar (number)!
- The dot product between any two vectors in R3 is calculated in a similar way [a1, a2, a3]⋅[b1, b2, b3]=a1b1+a2b2+a3b3
Alternatively, we can find the dot product between two vectors using their lengths as:
u⋅v=∣∣u∣∣∣∣v∣∣cosθ
where θ is the angle between the two vectors


Example: Dot Product of Two Vectors
a.) Given that u=(1,4,−2) and v=(0,−2,5), find u.v.
(1)(0)+(4)(−2)+(−2)(5)
=−8−10
=−18
b.) If (2,−31, k) . (k, 9, −1)=5, find the value of k.
(2)(k)+(−31)(9)+(k)(−1)=5
2k−3−k=5
k−3=5
k=8
Find the angle between the vectors i+j−k and 2i−2j+k.