Wize University Linear Algebra Textbook > Orthogonality

Orthogonal Complement and Orthogonal Projection (COMING SOON)

Orthogonal Matrices

Orthogonal Matrix

A matrix is orthogonal if its columns form an orthonormal set.
I.e. Every column is a unit vector and the dot product of any two columns is zero.
An equivalent definition: QQ is an orthogonal matrix if and only if QTQ=IQ^TQ = I.
Properties
Suppose QQ is square (n×nn \times n) and x⃗,y⃗∈Rn\vec x, \vec y \in \reals^n. The following are equivalent:
  1. QQ is an orthogonal matrix
  2. Q−1=QTQ^{-1} = Q^T
  3. ∥Qx⃗∥=∥x⃗∥\lVert Q \vec x \rVert = \lVert \vec x \rVert
  4. Qx⃗⋅Qy⃗ = x⃗⋅y⃗Q \vec x \cdot Q \vec y \ =\ \vec x \cdot \vec y

Orthogonal Complement

Let WW be a subspace of Rn\reals^n.
The orthogonal complement of WW, denoted W⊥W^\perp, is the set of vectors that are orthogonal to every vector in WW.
That is,
W⊥={v⃗∈Rn ∣ v⃗⋅w⃗=0, ∀w⃗∈W}W^\perp = \{ \vec v \in \reals^n \ | \ \vec v \cdot \vec w =0, \ \forall \vec w \in W \}
Example
Suppose WW is a plane in R3\reals^3 with normal vector n⃗\vec n. What is W⊥W^\perp?
Then n⃗\vec n must be in W⊥W^\perp since, by definition, vector n⃗\vec n is orthogonal to the plane (meaning: orthogonal to every vector that lies in the plane).
Moreover, every scalar multiple of n⃗\vec n is orthogonal to WW.

The set of scalar multiples of n⃗\vec n is a line, call it LL, and this line is the orthogonal complement of WW.
Conversely, the orthogonal complement of the line is the plane.
W⊥=L , L⊥=WW^\perp = L \ ,\ \quad L^\perp = W

PAGE BREAK
Properties
Given a subspace WW of Rn\reals^n:
  • W⊥W^\perp is a subspace of Rn\reals^n
  • W∩W⊥={0⃗}W \cap W^\perp = \{\vec 0\} (no vector except 0⃗\vec 0 can be in both)
  • Dim W+Dim W⊥=n{\rm Dim}\ W + {\rm Dim}\ W^\perp = n
  • (Row A)⊥=Null A,  (Col A)⊥=Null AT({\rm Row}\ A)^\perp = {\rm Null}\ A , \ \ ({\rm Col}\ A)^\perp = {\rm Null}\ A^T

Orthogonal Projection

We have seen projection of one vector onto another. Now we'll see projection onto an entire subspace!
Let WW be a subspace of Rn\reals^n with orthogonal basis {v⃗1,…,v⃗n}\{ \vec v_1, \dots, \vec v_n \}.
The orthogonal projection of vector x⃗\vec x onto WW is the sum of the projections onto each basis vector:
projW x⃗=projv⃗1 x⃗+⋯+projv⃗n x⃗{\rm proj}_W \ \vec x = {\rm proj}_{\normalsize \vec v_1} \ \vec x + \dots + {\rm proj}_{\normalsize \vec v_n} \ \vec x
Or, written out in full,
projW x⃗=(x⃗⋅v⃗1v⃗1⋅v⃗1)v⃗1+⋯+(x⃗⋅v⃗nv⃗n⋅v⃗n)v⃗n{\rm proj}_W \ \vec x = \left( \frac{\vec x \cdot \vec v_1}{\vec v_1 \cdot \vec v_1}\right) \vec v_1 + \dots + \left(\frac{\vec x \cdot \vec v_n}{\vec v_n \cdot \vec v_n}\right) \vec v_n
The projection must lie in WW (it's a linear combination of its basis vectors).
What is the complement of the line formed by this projection vector? The perp!
perpW x⃗=x⃗−projW x⃗\boxed{ {\rm perp}_W\ \vec x = \vec x - {\rm proj}_W\ \vec x }

This is the basis (no pun intended) of the Gram-Schmidt orthogonalization process!
PAGE BREAK
Why is this useful?
The projection of a vector onto a subspace WW is the best approximation of the vector in the subspace.
It also allows us to decompose a vector into two parts: one part in WW, and one orthogonal part in W⊥W^\perp.
That is, for every vector in x∈Rnx \in \reals^n,
x⃗=w⃗+v⃗ , where  w⃗∈W,   v⃗∈W⊥\boxed{\vec x = \vec w + \vec v}\ , \ \text{where }\ \vec w \in W \text{, }\ \ \vec v \in W^\perp

Extra Practice