Course contentsShow
← Mathematics
Lesson 2206 of 3,12146. Linear Algebra — Inner Products and OrthogonalityFree lesson

Angle Between Vectors and Orthogonality

Define the angle between vectors using inner products and characterize orthogonal vectors.

Angle Between Vectors and Orthogonality

You'll learn how to measure the angle between vectors using inner products and identify when vectors are perpendicular.

The Core Idea

In everyday geometry, we understand angles between lines. In linear algebra, we extend this idea to vectors in any inner product space. The angle between two vectors is defined through their inner product and norms:

cos⁡(θ)=⟨u,v⟩∥u∥⋅∥v∥\cos(\theta) = \frac{\langle u, v \rangle}{\|u\| \cdot \|v\|}

where θ is the angle between vectors u and v, both nonzero.

This formula generalizes the familiar dot product formula from elementary geometry. The Cauchy-Schwarz inequality guarantees that the right side always lies between -1 and 1, making the angle well-defined.

Orthogonality: The Special Case

Two vectors are orthogonal (perpendicular) when the angle between them is 90°. Since cos(90°) = 0, this happens precisely when:

⟨u,v⟩=0\langle u, v \rangle = 0

Orthogonality is completely characterized by a zero inner product. This simple test works in any dimension and in abstract inner product spaces—not just ℝⁿ.

Why This Matters

  • Geometric intuition: Orthogonal vectors point in "completely independent" directions
  • Computational simplicity: You only need to compute one inner product to test orthogonality
  • Practical power: Orthogonality underlies decompositions, projections, and many algorithms you'll encounter later

For example, in ℝ³ with the standard dot product, vectors (1, 0, 0) and (0, 1, 0) are orthogonal because 1·0 + 0·1 + 0·0 = 0.

Key Takeaway: The angle between nonzero vectors is determined by cos(θ) = ⟨u,v⟩/(‖u‖·‖v‖), and two vectors are orthogonal if and only if their inner product equals zero.