Orthogonal vectors and subspaces
Test orthogonality with the dot product, find the orthogonal complement of a subspace, see that the row space is perpendicular to the null space, and use orthonormal bases to read coordinates as dot products.
It opens on
For A = [[1, 2], [2, 4]], the rows live in one line and the solutions of Ax = 0 in another: how are the two lines placed relative to each other?
Why it matters
Orthogonality is what makes projections, least squares and QR work; in data it says which directions share no information, and an orthonormal basis turns "solve a system" into "take a dot product".
Good to know first
- The dot product: u·v = ∑ uᵢvᵢ and u·v = |u||v|cos θ, so u·v = 0 means a right angle
- Column space and null space: N(A) is the set of solutions of Ax = 0
- The rank-nullity theorem: rank(A) + dim N(A) = n
Step by step
Orthogonal vectors and the row space against the null space
Test two vectors for orthogonality with the dot product and see that every row of A is orthogonal to every solution of Ax = 0.
Take u = (1, 2), the row of A = [[1, 2], [2, 4]], and v = (−2, 1): u·v = 1·(−2) + 2·1 = 0.
A common mix-up
Two vectors that look nearly perpendicular are orthogonal.
In fact: Orthogonal means u·v is exactly 0: (1, 2) and (−2, 1.2) give 0.4 and are not.
Orthogonal complements in space
Define the orthogonal complement V⊥ and find the null space as the complement of the row space in ℝ³.
Let A = [[1, 0, 1], [0, 1, 1]]. Its rows r₁ = (1, 0, 1) and r₂ = (0, 1, 1) are independent, so the row space is a plane in ℝ³ and r = 2.
A common mix-up
The orthogonal complement of a plane in ℝ³ is another plane.
In fact: Dim V + dim V⊥ = n, so the complement of a plane is a line.
Orthonormal bases: coordinates by dot products
Recognize an orthonormal basis and compute coordinates as cᵢ = qᵢ·b without solving a system.
For q₁ = (3/5, 4/5) and q₂ = (−4/5, 3/5): |q₁|² = 9/25 + 16/25 = 1, |q₂|² = 16/25 + 9/25 = 1, and q₁·q₂ = −12/25 + 12/25 = 0.
A common mix-up
Orthogonal vectors must have length 1.
In fact: Orthogonal only needs u·v = 0; orthonormal also asks |u| = 1, and (3, 4) is orthogonal to (−4, 3) but not a unit vector.
Try it
Find a vector orthogonal to (3, −2) and give the dot product that proves it.Answer
(2, 3), since 3·2 + (−2)·3 = 0
Hint: Swap the entries and change one sign
Find the orthogonal complement of the line through (1, 1, 1) in ℝ³ as a null space and give its dimension.Answer
N of [[1, 1, 1]], the plane x₁ + x₂ + x₃ = 0, dimension 2
Hint: The line is the row space of a 1 × 3 matrix
For the orthonormal basis q₁ = (1, 1)/√2, q₂ = (1, −1)/√2, find the coordinates of b = (3, 5).Answer
c₁ = 8/√2 = 4√2 and c₂ = −2/√2 = −√2
Hint: c₁ = q₁·b and c₂ = q₂·b
Is (3, 1) orthogonal to (−1, 3)?Answer
Yes, 3·(−1) + 1·3 = 0.
Check n against both rows: what are n·r₁ and n·r₂?Answer
Both 0: −1 + 0 + 1 = 0 and 0 − 1 + 1 = 0.
