Mathwords logoMathwords

Orthogonal — Definition, Formula & Examples

Orthogonal means perpendicular — two vectors, lines, or objects are orthogonal when they meet at a 90° angle. In vector math, two vectors are orthogonal if and only if their dot product equals zero.

Two vectors u\mathbf{u} and v\mathbf{v} in Rn\mathbb{R}^n are orthogonal if their inner product satisfies uv=0\mathbf{u} \cdot \mathbf{v} = 0. More generally, orthogonality extends to functions and abstract vector spaces equipped with an inner product, where elements ff and gg are orthogonal when f,g=0\langle f, g \rangle = 0.

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} = Two vectors in ℝⁿ being tested for orthogonality
  • ui,viu_i, v_i = The corresponding components of each vector

How It Works

To check whether two vectors are orthogonal, compute their dot product. If the result is exactly zero, the vectors are orthogonal; otherwise they are not. This works in two dimensions, three dimensions, or any higher-dimensional space. Orthogonality is the foundation for breaking vectors into independent components — for example, splitting a force into horizontal and vertical parts relies on those directions being orthogonal. Whenever you project one vector onto another, the residual (the error) is orthogonal to the direction of projection.

Worked Example

Problem: Determine whether the vectors u=(3,4)\mathbf{u} = (3, -4) and v=(8,6)\mathbf{v} = (8, 6) are orthogonal.
Step 1: Write out the dot product formula for two 2D vectors.
uv=u1v1+u2v2\mathbf{u} \cdot \mathbf{v} = u_1 v_1 + u_2 v_2
Step 2: Substitute the components of each vector.
uv=(3)(8)+(4)(6)=2424\mathbf{u} \cdot \mathbf{v} = (3)(8) + (-4)(6) = 24 - 24
Step 3: Evaluate the sum. Since the dot product is zero, the vectors are orthogonal.
uv=0\mathbf{u} \cdot \mathbf{v} = 0
Answer: The dot product is 0, so u\mathbf{u} and v\mathbf{v} are orthogonal (perpendicular).

Another Example

Problem: Are the 3D vectors a=(1,2,3)\mathbf{a} = (1, 2, 3) and b=(1,1,0)\mathbf{b} = (1, -1, 0) orthogonal?
Step 1: Compute the dot product using three components.
ab=(1)(1)+(2)(1)+(3)(0)\mathbf{a} \cdot \mathbf{b} = (1)(1) + (2)(-1) + (3)(0)
Step 2: Simplify each term and add them.
=12+0=1= 1 - 2 + 0 = -1
Step 3: The result is not zero, so the vectors are not orthogonal.
Answer: The dot product is 10-1 \neq 0, so a\mathbf{a} and b\mathbf{b} are not orthogonal.

Why It Matters

Orthogonality is central to linear algebra courses when you study orthogonal bases, the Gram–Schmidt process, and least-squares approximation. In computer graphics and physics, decomposing motion or forces into orthogonal components simplifies calculations enormously. Data scientists rely on orthogonality in principal component analysis (PCA), where orthogonal directions capture independent sources of variation in a dataset.

Common Mistakes

Mistake: Assuming two vectors are orthogonal because they "look" perpendicular on a sketch.
Correction: Always verify by computing the dot product. Visual intuition can be misleading, especially in 3D or when axes are scaled differently.
Mistake: Confusing orthogonal with parallel. Students sometimes mix up the conditions: dot product zero vs. one vector being a scalar multiple of the other.
Correction: Dot product zero means orthogonal (90°). One vector equaling a scalar times the other means parallel (0° or 180°). These are opposite extremes.