Processing math: 100%
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

6.2: Orthogonal Complements

( \newcommand{\kernel}{\mathrm{null}\,}\)

Learning Objectives
  1. Understand the basic properties of orthogonal complements.
  2. Learn to compute the orthogonal complement of a subspace.
  3. Recipes: shortcuts for computing the orthogonal complements of common subspaces.
  4. Picture: orthogonal complements in R2 and R3.
  5. Theorem: row rank equals column rank.
  6. Vocabulary words: orthogonal complement, row space.

It will be important to compute the set of all vectors that are orthogonal to a given set of vectors. It turns out that a vector is orthogonal to a set of vectors if and only if it is orthogonal to the span of those vectors, which is a subspace, so we restrict ourselves to the case of subspaces.

Definition of the Orthogonal Complement

Taking the orthogonal complement is an operation that is performed on subspaces.

Definition 6.2.1: Orthogonal Complement

Let W be a subspace of Rn. Its orthogonal complement is the subspace

W={v in Rnvw=0 for all w in W}.

The symbol W is sometimes read “W perp.”

This is the set of all vectors v in Rn that are orthogonal to all of the vectors in W. We will show below 15 that W is indeed a subspace.

Note 6.2.1

We now have two similar-looking pieces of notation:

AT is the transpose of a matrix A.W is the orthogonal complement of a subspace W.

Try not to confuse the two.

Pictures of orthogonal complements

The orthogonal complement of a line W through the origin in R2 is the perpendicular line W.

clipboard_e56b605c1f2ba9dcfafd24d4e6fad7967.png

Figure 6.2.1

Example 6.2.1: Interactive: Orthogonal complements in R2

clipboard_e80b819ed19100d596bde38c8ebb4df8d.png

Figure 6.2.2: The orthogonal complement of the line spanned by v is the perpendicular line. Click and drag the head of v to move it.

The orthogonal complement of a line W in R3 is the perpendicular plane W.

clipboard_e19f9b75b4c8c5ac9423320511c057dd8.png

Figure 6.2.3

Example 6.2.2: Interactive: Orthogonal complements in R3

clipboard_e50b33effdc1a77be87821badcc1a99da.png

Figure 6.2.4: The orthogonal complement of the line spanned by v is the perpendicular plane. Click and drag the head of v to move it.

The orthogonal complement of a plane W in R3 is the perpendicular line W.

clipboard_e905bf2b29656386dc71f4e56d8274298.png

Figure 6.2.5

Example 6.2.3: Interactive: Orthogonal complements in R3

clipboard_e6402f84547d01bb282ffd114e7e2c8f4.png

Figure 6.2.6: The orthogonal complement of the plane spanned by v,w is the perpendicular line. Click and drag the heads of v,w to change the plane.

We see in the above pictures that (W)=W.

Example 6.2.4

The orthogonal complement of Rn is {0}, since the zero vector is the only vector that is orthogonal to all of the vectors in Rn.

For the same reason, we have {0}=Rn.

Computing Orthogonal Complements

Since any subspace is a span, the following proposition gives a recipe for computing the orthogonal complement of any subspace. However, below we will give several shortcuts for computing the orthogonal complements of other common kinds of subspaces–in particular, null spaces. To compute the orthogonal complement of a general subspace, usually it is best to rewrite the subspace as the column space or null space of a matrix, as in Note 2.6.3 in Section 2.6.

Proposition 6.2.1: The Orthogonal Complement of a Column Space

Let A be a matrix and let W=Col(A). Then

W=Nul(AT).

Proof

To justify the first equality, we need to show that a vector x is perpendicular to the all of the vectors in W if and only if it is perpendicular only to v1,v2,,vm. Since the vi are contained in W, we really only have to show that if xv1=xv2==xvm=0, then x is perpendicular to every vector v in W. Indeed, any vector in W has the form v=c1v1+c2v2++cmvm for suitable scalars c1,c2,,cm, so

xv=x(c1v1+c2v2++cmvm)=c1(xv1)+c2(xv2)++cm(xvm)=c1(0)+c2(0)++cm(0)=0.

Therefore, x is in W.

To prove the second equality, we let

A=(vT1vT2vTm).

By the row-column rule for matrix multiplication Definition 2.3.3 in Section 2.3, for any vector x in Rn we have

Ax=(vT1xvT2xvTmx)=(v1xv2xvmx).

Therefore, x is in Nul(A) if and only if x is perpendicular to each vector v1,v2,,vm.

Since column spaces are the same as spans, we can rephrase the proposition as follows. Let v1,v2,,vm be vectors in Rn, and let W=Span{v1,v2,,vm}. Then

W={all vectors orthogonal to each v1,v2,,vm}=Nul(vT1vT2vTm).

Again, it is important to be able to go easily back and forth between spans and column spaces. If you are handed a span, you can apply the proposition once you have rewritten your span as a column space.

By the proposition, computing the orthogonal complement of a span means solving a system of linear equations. For example, if

v1=(172)v2=(231)

then Span{v1,v2} is the solution set of the homogeneous linear system associated to the matrix

(vT1vT2)=(172231).

This is the solution set of the system of equations

{x1+7x2+2x3=02x1+3x2+x3=0.

Example 6.2.5

Compute W, where

W=Span{(172),(231)}.

Solution

According to Proposition 6.2.1, we need to compute the null space of the matrix

(172231)RREF(101/17015/17).

The free variable is x3, so the parametric form of the solution set is x1=x3/17,x2=5x3/17, and the parametric vector form is

(x1x2x3)=x3(1/175/171).

Scaling by a factor of 17, we see that

W=Span{(1517)}.

We can check our work:

(172)(1517)=0(231)(1517)=0.

Example 6.2.6

Find all vectors orthogonal to v=(111).

Solution

According to Proposition 6.2.1, we need to compute the null space of the matrix

A=(v)=(111).

This matrix is in reduced-row echelon form. The parametric form for the solution set is x1=x2+x3, so the parametric vector form of the general solution is

x=(x1x2x3)=x2(110)+x3(101).

Therefore, the answer is the plane

Span{(110),(101)}.

clipboard_e70c0001cc538e72bdb183a7e90331698.png

Figure 6.2.7: The set of all vectors perpendicular to v.
Example 6.2.7

Compute

Span{(111),(111)}.

Solution

According to Proposition 6.2.1, we need to compute the null space of the matrix

A=(111111)RREF(110001).

The parametric vector form of the solution is

(x1x2x3)=x2(110).

Therefore, the answer is the line

Span{(110)}.

clipboard_e7b67a0ebab2741bbe9740a12c261cb38.png

Figure 6.2.8: The orthogonal complement of the plane spanned by v=(1,1,1) and w=(1,1,1).

In order to find shortcuts for computing orthogonal complements, we need the following basic facts. Looking back the the above examples, all of these facts should be believable.

Fact 6.2.1: Facts about Orthogonal Complements

Let W be a subspace of Rn. Then:

  1. W is also a subspace of Rn.
  2. (W)=W.
  3. dim(W)+dim(W)=n.
Proof

For the first assertion, we verify the three defining properties of subspaces, Definition 2.6.2 in Section 2.6.

  1. The zero vector is in W because the zero vector is orthogonal to every vector in Rn.
  2. Let u,v be in W, so ux=0 and vx=0 for every vector x in W. We must verify that (u+v)x=0 for every x in W. Indeed, we have (u+v)x=ux+vx=0+0=0.
  3. Let u be in W, so ux=0 for every x in W, and let c be a scalar. We must verify that (cu)x=0 for every x in W. Indeed, we have (cu)x=c(ux)=c0=0.

Next we prove the third assertion. Let v1,v2,,vm be a basis for W, so m=dim(W), and let vm+1,vm+2,,vk be a basis for W, so km=dim(W). We need to show k=n. First we claim that {v1,v2,,vm,vm+1,vm+2,,vk} is linearly independent. Suppose that c1v1+c2v2++ckvk=0. Let w=c1v1+c2v2++cmvm and w=cm+1vm+1+cm+2vm+2++ckvk, so w is in W, w is in W, and w+w=0. Then w=w is in both W and W, which implies w is perpendicular to itself. In particular, ww=0, so w=0, and hence w=0. Therefore, all coefficients ci are equal to zero, because {v1,v2,,vm} and {vm+1,vm+2,,vk} are linearly independent.

It follows from the previous paragraph that kn. Suppose that k<n. Then the matrix

A=(vT1vT2vTk)

has more columns than rows (it is “wide”), so its null space is nonzero by Note 3.2.1 in Section 3.2. Let x be a nonzero vector in Nul(A). Then

0=Ax=(vT1xvT2xvTkx)=(v1xv2xvkx)

by the row-column rule for matrix multiplication Definition 2.3.3 in Section 2.3. Since v1x=v2x==vmx=0, it follows from Proposition 6.2.1 that x is in W, and similarly, x is in (W). As above, this implies x is orthogonal to itself, which contradicts our assumption that x is nonzero. Therefore, k=n, as desired.

Finally, we prove the second assertion. Clearly W is contained in (W): this says that everything in W is perpendicular to the set of all vectors perpendicular to everything in W. Let m=dim(W). By 3, we have dim(W)=nm, so dim((W))=n(nm)=m. The only m-dimensional subspace of (W) is all of (W), so (W)=W.

See subsection Pictures of orthogonal complements, for pictures of the second property. As for the third: for example, if W is a (2-dimensional) plane in R4, then W is another (2-dimensional) plane. Explicitly, we have

Span{e1,e2}={(xyzw) in R|(xyzw)(1000)=0 and (xyzw)(0100)=0}={(00zw) in R4}=Span{e3,e4}:

the orthogonal complement of the xy-plane is the zw-plane.

Definition 6.2.2: Row Space

The row space of a matrix A is the span of the rows of A, and is denoted Row(A).

If A is an m×n matrix, then the rows of A are vectors with n entries, so Row(A) is a subspace of Rn. Equivalently, since the rows of A are the columns of AT, the row space of A is the column space of AT:

Row(A)=Col(AT).

We showed in the above Proposition 6.2.3 that if A has rows vT1,vT2,,vTm, then

Row(A)=Span{v1,v2,,vm}=Nul(A).

Taking orthogonal complements of both sides and using the second fact 6.2.1 gives

Row(A)=Nul(A).

Replacing A by AT and remembering that Row(A)=Col(AT) gives

Col(A)=Nul(AT)andCol(A)=Nul(AT).

To summarize:

Recipe: Shortcuts for Computing Orthogonal Complements

For any vectors v1,v2,,vm, we have

Span{v1,v2,,vm}=Nul(vT1vT2vTm).

For any matrix A, we have

Row(A)=Nul(A)Nul(A)=Row(A)Col(A)=Nul(AT)Nul(AT)=Col(A).

As mentioned in the beginning of this subsection, in order to compute the orthogonal complement of a general subspace, usually it is best to rewrite the subspace as the column space or null space of a matrix.

Example 6.2.8: Orthogonal complement of a subspace

Compute the orthogonal complement of the subspace

W={(x,y,z) in R33x+2y=z}.

Solution

Rewriting, we see that W is the solution set of the system of equations 3x+2yz=0, i.e., the null space of the matrix A=(321). Therefore,

W=Row(A)=Span{(321)}.

No row reduction was needed!

Example 6.2.9: Orthogonal complement of an eigenspace

Find the orthogonal complement of the 5-eigenspace of the matrix

A=(241320243).

Solution

The 5-eigenspace is

W=Nul(A5I3)=Nul(341330242),

so

W=Row(341330242)=Span{(341),(330),(242)}.

These vectors are necessarily linearly dependent (why)?

Row rank and Column Rank

Suppose that A is an m×n matrix. Let us refer to the dimensions of Col(A) and Row(A) as the row rank and the column rank of A (note that the column rank of A is the same as the rank of A). The next theorem says that the row and column ranks are the same. This is surprising for a couple of reasons. First, Row(A) lies in Rn and Col(A) lies in Rm. Also, the theorem implies that A and AT have the same number of pivots, even though the reduced row echelon forms of A and AT have nothing to do with each other otherwise.

Theorem 6.2.1

Let A be a matrix. Then the row rank of A is equal to the column rank of A.

Proof

By Theorem 2.9.1 in Section 2.9, we have

dimCol(A)+dimNul(A)=n.

On the other hand the third fact 6.2.1 says that

dimNul(A)+dimNul(A)=n,

which implies dimCol(A)=dimNul(A). Since Nul(A)=Row(A), we have

dimCol(A)=dimRow(A),

as desired.

In particular, by Corollary 2.7.1 in Section 2.7 both the row rank and the column rank are equal to the number of pivots of A.


This page titled 6.2: Orthogonal Complements is shared under a GNU Free Documentation License 1.3 license and was authored, remixed, and/or curated by Dan Margalit & Joseph Rabinoff via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?