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,yRn\vec x, \vec y \in \reals^n. The following are equivalent:
  1. QQ is an orthogonal matrix
  2. Q1=QTQ^{-1} = Q^T
  3. Qx=x\lVert Q \vec x \rVert = \lVert \vec x \rVert
  4. QxQy = xyQ \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 WW^\perp, is the set of vectors that are orthogonal to every vector in WW.
That is,
W={vRn  vw=0, wW}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 WW^\perp?
Then n\vec n must be in WW^\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:
  • WW^\perp is a subspace of Rn\reals^n
  • WW={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 {v1,,vn}\{ \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=projv1 x++projvn 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=(xv1v1v1)v1++(xvnvnvn)vn{\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=xprojW 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 WW^\perp.
That is, for every vector in xRnx \in \reals^n,
x=w+v , where  wW,   vW\boxed{\vec x = \vec w + \vec v}\ , \ \text{where }\ \vec w \in W \text{, }\ \ \vec v \in W^\perp

Extra Practice