Mathwords logoMathwords

Orthogonal Vectors — Definition, Formula & Examples

Orthogonal vectors are two vectors that meet at a right angle (90°). You can test for orthogonality by checking whether their dot product equals zero.

Two vectors u\mathbf{u} and v\mathbf{v} in an inner product space are orthogonal if and only if uv=0\mathbf{u} \cdot \mathbf{v} = 0. The zero vector is considered orthogonal to every vector by convention.

Key Formula

uv=u1v1+u2v2++unvn=0\mathbf{u} \cdot \mathbf{v} = u_1 v_1 + u_2 v_2 + \cdots + u_n v_n = 0
Where:
  • u,v\mathbf{u}, \mathbf{v} = The two vectors being tested for orthogonality
  • ui,viu_i, v_i = The corresponding components of each vector
  • nn = The dimension of the vector space

How It Works

To determine whether two vectors are orthogonal, compute their dot product. Multiply corresponding components and sum the results. If the sum is exactly zero, the vectors are orthogonal. This works in any dimension — two components, three, or more. No angle calculation is needed; the dot product alone gives a definitive answer.

Worked Example

Problem: Determine whether u=3,2,1\mathbf{u} = \langle 3, -2, 1 \rangle and v=2,4,2\mathbf{v} = \langle 2, 4, 2 \rangle are orthogonal.
Compute the dot product: Multiply corresponding components and add them together.
uv=(3)(2)+(2)(4)+(1)(2)=68+2\mathbf{u} \cdot \mathbf{v} = (3)(2) + (-2)(4) + (1)(2) = 6 - 8 + 2
Evaluate the sum: Add the three products.
68+2=06 - 8 + 2 = 0
Answer: The dot product is 00, so u\mathbf{u} and v\mathbf{v} are orthogonal.

Why It Matters

Orthogonality is foundational in linear algebra and applied mathematics. Orthogonal bases simplify projections, least-squares approximations, and the Gram-Schmidt process. In fields like computer graphics, signal processing, and machine learning, decomposing data along orthogonal directions makes computation faster and more numerically stable.

Common Mistakes

Mistake: Confusing orthogonal with parallel. Students sometimes check if the dot product is zero and conclude the vectors point the same direction.
Correction: A zero dot product means the vectors are perpendicular (orthogonal). Parallel vectors have a dot product equal to the product of their magnitudes (or its negative), i.e., uv=±uv\mathbf{u} \cdot \mathbf{v} = \pm \|\mathbf{u}\|\|\mathbf{v}\|.