logo

Angle Between Two Vectors in an n-Dimensional Euclidean Space 📂Vector Analysis

Angle Between Two Vectors in an n-Dimensional Euclidean Space

Definition1

nnVector space of dimension n, for two vectors v,uRn\mathbf{v}, \mathbf{u} \in \mathbb{R}^{n}, the angle between them is defined as the θ\theta satisfying the following condition.

cosθ=vuvu(1) \cos \theta = \dfrac{\mathbf{v} \cdot \mathbf{u}}{\|\mathbf{v}\| \|\mathbf{u}\|} \tag{1}

Here, \cdot is the inner product.

Explanation

In 2D or 3D spaces, since vectors can be visualized as arrows, the concept of the “angle between two vectors” can be understood intuitively and geometrically represented. Hence, defining the inner product of two vectors v=(v1,v2,v3)\mathbf{v} = (v_{1}, v_{2}, v_{3}) and u=(u1,u2,u3)\mathbf{u} = (u_{1}, u_{2}, u_{3}) as vu=v1u1+v2u2+v3u3\mathbf{v} \cdot \mathbf{u} = v_{1}u_{1} + v_{2}u_{2} + v_{3}u_{3} allowed us to demonstrate theorem that the following equation holds using the law of cosines.

vu=vucosθ(2) \mathbf{v} \cdot \mathbf{u} = \|\mathbf{v}\| \|\mathbf{u}\| \cos \theta \tag{2}

However, in vector spaces of dimension 44 or higher, it is impossible to visualize and geometrically represent vectors in a way that is easily understood. Therefore, even talking about the angle between two vectors becomes a challenge. In n(4)n(\ge 4)-dimensional vector space, the angle between two vectors is defined using (2)(2). That is, in dimensions greater than or equal to 44, (2)(2) is not proved as a theorem, but is taken as the definition itself. This allows (2)(2) to hold not only in 2D and 3D but in any dimension, making it a natural generalization.

Well-Definedness

Rewriting (1)(1), we have:

θ:=cos1(vuvu) \theta := \cos^{-1} \left( \dfrac{\mathbf{v} \cdot \mathbf{u}}{\|\mathbf{v}\| \|\mathbf{u}\|} \right)

As is known, the inverse cosine function must be carefully considered regarding its domain and range. The domain and range of cos1\cos^{-1} are as follows:

cos1:[1,1][0,π] \cos^{-1} : [-1, 1] \to [0, \pi]

Thus, for all v,u\mathbf{v}, \mathbf{u}, {vu/vu}[1,1]\set{ \mathbf{v} \cdot \mathbf{u} / \|\mathbf{v}\| \|\mathbf{u}\| } \subset [-1, 1] must hold, and indeed this is ensured by the Cauchy-Schwarz inequality.

vuvu    vuvu1    1vuvu1 |\mathbf{v} \cdot \mathbf{u}| \le \|\mathbf{v}\| \|\mathbf{u}\| \implies \dfrac{| \mathbf{v} \cdot \mathbf{u} |}{\|\mathbf{v}\| \|\mathbf{u}\|} \le 1 \implies -1 \le \dfrac{ \mathbf{v} \cdot \mathbf{u} }{\|\mathbf{v}\| \|\mathbf{u}\|} \le 1

In summary, we see that (1)(1) is well-defined.

Orthogonality

Having defined the angle between two vectors, we can now discuss orthogonality. Vectors v,uRn\mathbf{v}, \mathbf{u} \in \mathbb{R}^{n} in nn-dimensional space are said to be orthogonal if the following condition holds.

vu=0 \mathbf{v} \cdot \mathbf{u} = 0

Again, in an 33-dimensional space, this can be shown to hold as a theorem, but in n(4)n(\ge 4)-dimensional spaces, it is taken as a definition.

For reference, the term perpendicular is more intuitive and geometric, mainly used to describe situations forming right angles in 2D or 3D spaces. In contrast, orthogonal gives a more abstract sense, commonly used in nn-dimensional or infinite-dimensional vector spaces.


  1. Howard Anton, Elementary Linear Algebra: Aplications Version (12th Edition, 2019), p352-353 ↩︎