The Dot Product
The Dot Product
MAT 169
Fall Semester 2009-10
Lecture 21 Notes
where 𝜃 is the angle between u and v. Using the formula for the magnitude of a vector, we obtain
(𝑢1 − 𝑣1 )2 + (𝑢2 − 𝑣2 )2 + (𝑢3 − 𝑣3 )2 = (𝑢21 + 𝑢22 + 𝑢23 ) + (𝑣12 + 𝑣22 + 𝑣32 ) − 2∣u∣∣v∣ cos 𝜃.
Simplifying yields
𝑢1 𝑣1 + 𝑢2 𝑣2 + 𝑢3 𝑣3 = ∣u∣∣v∣ cos 𝜃.
We therefore define the dot product, also known as the inner product, of u and v to be the
number u ⋅ v given by
u ⋅ v = 𝑢1 𝑣1 + 𝑢2 𝑣2 + 𝑢3 𝑣3 .
An equivalent definition, typically used in physics, is
u ⋅ v = ∣u∣∣v∣ cos 𝜃,
1
Figure 1: By the Triangle Law, the vectors u, v and u − v form a triangle. The angle between u
and v is 𝜃.
1. u ⋅ u = ∣u∣2
2. Commutativity: u ⋅ v = v ⋅ u
3. Distributive property: u ⋅ (v + w) = u ⋅ v + u ⋅ w
2
5. 0 ⋅ u = 0
Example By the first, second and third properties, the length of a sum of vectors u + v can be
expressed in terms of inner products as follows:
∣u + v∣2 = (u + v) ⋅ (u + v)
= u⋅u+v⋅u+u⋅v+v⋅v
= ∣u∣2 + 2u ⋅ v + ∣v∣2 .
□
Suppose that two nonzero vectors u and v have an angle between them that is 𝜃 = 𝜋/2. That
is, u and v are perpendicular, or orthogonal. Then, we have
𝜋
u ⋅ v = ∣u∣∣v∣ cos = 0.
2
On the other hand, if u ⋅ v = 0, then we must have cos 𝜃 = 0, where 𝜃 is the angle between them,
which implies that 𝜃 = 𝜋/2, and therefore u and v are orthogonal. In summary, u ⋅ v = 0 if and
only if u and v are orthogonal.
Example Let u = ⟨𝛼, 𝛽⟩ be any nonzero vector in 𝑉2 . Then a vector that has the same length as
u, and is orthogonal to u is v = ⟨𝛽, −𝛼⟩. To verify this, we compute
By the fourth property of the dot product, w = ⟨−𝛽, 𝛼⟩ also satisfies ∣w∣ = ∣u∣, and is orthogonal
to u. □
3
Summary
∙ The dot product, or inner product, of two vectors, is the sum of the products of corresponding
components. Equivalently, it is the product of their magnitudes, times the cosine of the angle
between them.
∙ The dot product of a vector with itself is the square of its magnitude.
∙ The dot product of two vectors is commutative; that is, the order of the vectors in the product
does not matter.
∙ Multiplying a vector by a constant multiplies its dot product with any other vector by the
same constant.
∙ Two nonzero vectors are perpendicular, or orthogonal, if and only if their dot product is equal
to zero.