The Relationship between the Dot Product of Two Vectors and the Angle Between Them
📂Mathematical PhysicsThe Relationship between the Dot Product of Two Vectors and the Angle Between Them
Theorem
Let the angle between two vectors a=(a1,a2,a3) and b=(b1,b2,b3) be θ. Then, the following holds.
a⋅b=∣a∣∣b∣cosθ
Here, a⋅b is the dot product (inner product) of the two vectors.
Corollary
The necessary and sufficient condition for two non-zero vectors a and b to be orthogonal is as follows.
a⋅b=0
Proof
Consider the diagram below. Vectors a and b, along with a−b, form a triangle.

Now, applying the law of cosines to this triangle, we obtain the following.
∣a∣2+∣b∣2−2∣a∣∣b∣cosθ=∣a−b∣2
By the properties of the dot product a⋅a=∣a∣2, the equation becomes:
a⋅a+b⋅b−2∣a∣∣b∣cosθ=(a−b)⋅(a−b)=a⋅a−2a⋅b+b⋅b
Eliminating the common terms yields:
a⋅b=∣a∣∣b∣cosθ
■
Proof of the Corollary
(⟹)
Assume a and b are orthogonal. Then,
a⋅b=∣a∣∣b∣cos2π=0
Let (⟸) and a⋅b=0 be true. Then,
∣a∣∣b∣cosθ=0
Since a and b are non-zero vectors, ∣a∣=0 and ∣b∣=0 hold. Therefore,
cosθ=0⟹θ=2π
■