Orthogonality
Contents
Test
The test for orthogonality of two vectors is XTY = 0.
The Pythagorean theorem specifies that for two sides of a right triangle, x and y, the hypotenuse z is characterized by x2 + y2 = z2.
For a vector X, the total length can be thought of as the sum of each components' absolute value. If X is [1 2 3], the length is 6. The squared length can be thought of as the sum of each components' square. For the same X, this is 14. This can be generalized as XTX.
For a similar reason, the total length of the hypotenuse can be thought of as the sum of the other two vectors. Instead of characterizing a vector Z, we can use (X+Y)T(X+Y). For example, if X is [1 2 3] and Y is [2 -1 0], it should be understood that Z is [3 1 3].
If the vectors X and Y are perpendicular, or orthogonal, then the Pythagorean theorem should hold. XTX + YTY = (X+Y)T(X+Y). This expands to XTX + YTY = XTX + YTY + XTY + YTX. By cancelling out common terms, this simplifies to 0 = XTY + YTX.
It must be understood that the last two terms are the same value. Therefore, this further simplifies to 0 = 2XTY and finally to 0 = XTY.
Application
For a subspace S to be orthogonal to a subspace T, every vector in S must be orthogonal to every vector in T.
The null space of A (a.k.a. N(A)) is orthogonal to the row space of A (a.k.a. R(A)). The null space of AT (a.k.a. N(AT)) is orthogonal to the column space of A (a.k.a. C(A)).
