The Dot Product Identity and the Cosine Rule in ℝ³
The Dot Product Identity and the Cosine Rule in ℝ3
In this article we derive the dot product identity
A · B = |A| × |B| × cos(θ)
and show how this identity leads directly to the cosine rule, using a combination of coordinate algebra and geometric interpretation.
1. Vectors in ℝ3
Let the vectors be:
A = (a1, a2, a3)
B = (b1, b2, b3)
Their difference is:
A - B = (a1 - b1, a2 - b2, a3 - b3)
The squared magnitude of this difference vector is:
|A - B|2 = (a1 - b1)2 + (a2 - b2)2 + (a3 - b3)2.
2. Expanding the Square of the Difference
Expand each component:
(a1 - b1)2 = a12 - 2a1b1 + b12
(a2 - b2)2 = a22 - 2a2b2 + b22
(a3 - b3)2 = a32 - 2a3b3 + b32
Adding these three expansions gives:
|A - B|2 = (a12 + a22 + a32) + (b12 + b22 + b32) - 2(a1b1 + a2b2 + a3b3).
Recognise the squared magnitudes:
|A|2 = a12 + a22 + a32
|B|2 = b12 + b22 + b32
So the expression becomes:
|A - B|2 = |A|2 + |B|2 - 2(a1b1 + a2b2 + a3b3).
Define the dot product:
A · B = a1b1 + a2b2 + a3b3.
This gives the algebraic identity:
|A - B|2 = |A|2 + |B|2 - 2(A · B).
3. Geometric Interpretation
To understand this identity geometrically, consider the vectors positioned so that each begins at the origin. Let θ be the angle between them.
The projection of B onto the direction of A has length:
|B| × cos(θ)
and the perpendicular component of B has length:
|B| × sin(θ).
Let the points representing vectors A and B be labelled A and B respectively. The distance between these endpoints is:
AB = |A - B|.
Along A’s direction, the horizontal displacement is:
AC = |A| - |B| cos(θ).
The perpendicular displacement is:
BC = |B| × sin(θ).
Triangle ABC is right-angled at C, so by the Pythagorean theorem:
AC2 + BC2 = AB2.
Substituting the expressions for AC, BC, and AB:
(|A| - |B| cos(θ))2 + (|B| sin(θ))2 = |A - B|2.
Expanding the left-hand side:
|A|2 - 2|A||B| cos(θ) + |B|2 cos2(θ) + |B|2 sin2(θ).
Using the identity cos2(θ) + sin2(θ) = 1, this simplifies to:
|A - B|2 = |A|2 + |B|2 - 2|A||B| cos(θ).
4. Deriving the Dot Product Identity
We now have two expressions for |A - B|2:
(1) |A|2 + |B|2 - 2(A · B)
(2) |A|2 + |B|2 - 2|A||B| cos(θ)
Equating the middle terms gives:
A · B = |A| × |B| × cos(θ).
5. The Cosine Rule in Vector Form
Substituting this identity into the expression for |A - B|2 gives the cosine rule in vector form:
|A - B|2 = |A|2 + |B|2 - 2|A||B| cos(θ).
This is the familiar cosine rule from triangle geometry, written entirely using vectors in ℝ3.

Comments
Post a Comment