Unit 2 · Length, angle and the dot product
Lesson 12 · Available to read
Orthogonality
A dot product of zero means two vectors are perpendicular: they share no common direction.
Two vectors are orthogonal when their dot product is zero: a · b = 0. For non-zero vectors this means cos θ = 0, so the angle between them is 90° and they are perpendicular. The word orthogonal generalises "perpendicular" to any number of dimensions, where we can no longer draw a right angle but can still compute a dot product.
For example, [2, 1] · [−1, 2] = −2 + 2 = 0, so these vectors are orthogonal. More generally, [a, b] and [−b, a] are always orthogonal in the plane; the second is the first rotated by 90°. The standard basis vectors e₁ = [1, 0] and e₂ = [0, 1] are orthogonal, and so are the coordinate axes in ℝⁿ. By convention, the zero vector is orthogonal to every vector.
Orthogonality brings back Pythagoras' theorem in vector form. If a · b = 0, then
‖a + b‖² = ‖a‖² + ‖b‖²,
because expanding (a + b) · (a + b) leaves the cross term 2a · b, which vanishes.
Orthogonal directions are independent of one another: movement along one has no component along the other. This idea underlies coordinate systems, the projections of lesson 14 and, later, methods such as PCA that describe data along orthogonal directions.
The takeaway
a and b are orthogonal when a · b = 0; for non-zero vectors this means a 90° angle.
Practice
0 of 5 attempted
- 1Multiple choice
Which pair of vectors is orthogonal?
- 2Calculate
Find k such that [3, k] is orthogonal to [2, 6].
Saved in this browser
- 3Calculate
Verify ‖a + b‖² = ‖a‖² + ‖b‖² for a = [3, 0] and b = [0, 4].
Saved in this browser
- 4Explain in your own words
Explain why ‖a + b‖² = ‖a‖² + ‖b‖² + 2a · b, and what happens when a and b are orthogonal.
Saved in this browser
- 5Apply
Give a non-zero vector orthogonal to [5, −2], and check it.
Saved in this browser