Euler Hall — free maths guides

Describe the orthogonal complement of a subspace

Compute a basis for V-perp by putting the generators of V in the rows and taking the nullspace. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.

Plain words first

Given a subspaceVV insideRn\mathbb{R}^n, its orthogonal complementV⊥V^\perp is the set of every vector perpendicular to every vector inVV.

V⊥={x∈Rn:x⋅v=0 for every v∈V}.V^\perp=\{x\in\mathbb{R}^n: x\cdot v=0 \text{ for every } v\in V\}.

Two ways to say the same thing, and you should hold both:

  • - The geometric one.V⊥V^\perp is everythingVV does not reach, perpendicular to it. A line's complement inR3\mathbb{R}^3 is a plane; a plane's complement is a line.
  • - The computational one. PutVV's spanning vectors in the rows of a matrixAA. ThenV⊥=N(A)V^\perp=N(A) — the nullspace. So computing a complement is a nullspace computation, which you already know how to do.

The dimensions always balance: dim⁡V+dim⁡V⊥=n.\dim V+\dim V^\perp=n.

Why the dimension count is exact

LetAA be thek×nk\times n matrix whose rows are spanning vectors ofVV, withk=dim⁡Vk=\dim V of them independent.

V⊥V^\perp is the set ofxx withAx=0Ax=\mathbf{0} — one equation per row. That is a nullspace, soAx=0Ax=\mathbf{0} hasn−rn-r free variables wherer=rank⁡(A)r=\operatorname{rank}(A). Andr=kr=k precisely because the rows were chosen independent. Hence

dim⁡V⊥=n−k=n−dim⁡V.\dim V^\perp=n-k=n-\dim V.

Two consequences that matter more than the formula.

  1. 1. The complement does not depend on which spanning list you chose. A different list gives a different matrixAA, but the same row space, and the nullspace of a matrix depends only on its row space. A complement is a property of the space, not of the generators.
  2. 2. Every vector splits uniquely:x=xV+xV⊥x=x_V+x_{V^\perp} with the two pieces perpendicular. That decomposition is what projections compute, and it is whyVV andV⊥V^\perp are called complements rather than merely orthogonal.
Worked, different numbers

Find a basis forV⊥V^\perp whereV=span⁡{(1,2,2), (0,1,1)}V=\operatorname{span}\{(1,2,2),\ (0,1,1)\} inR3\mathbb{R}^3.

Set up. Rows are the spanning vectors: A=[122011].A=\begin{bmatrix}1&2&2\\0&1&1\end{bmatrix}.

Reduce.R1←R1−2R2R_1\leftarrow R_1-2R_2 gives [100011].\begin{bmatrix}1&0&0\\0&1&1\end{bmatrix}.

Read the equations.x1=0x_1=0 andx2=−x3x_2=-x_3. So a basis vector is(0,−1,1)(0,-1,1).

Check the count.dim⁡V=2\dim V=2, sodim⁡V⊥=1\dim V^\perp=1. One vector. ✓

Check the dots.(1,2,2)⋅(0,−1,1)=−2+2=0(1,2,2)\cdot(0,-1,1)=-2+2=0 ✓ and(0,1,1)⋅(0,−1,1)=−1+1=0(0,1,1)\cdot(0,-1,1)=-1+1=0 ✓.

By the end you can
  • Compute a basis for V-perp by putting the generators of V in the rows and taking the nullspace
  • Use dim V + dim V-perp = n as a check on any proposed basis
  • Distinguish the orthogonal complement from the set of vectors outside V
Check yourself

LetV=span⁡{(1,0,1,0), (0,1,0,1)}V=\operatorname{span}\{(1,0,1,0),\ (0,1,0,1)\} inR4\mathbb{R}^4.

What isdim⁡V⊥\dim V^\perp, and can you write down a basis for it? Then verify your basis vectors dot to zero with both generators.

Answers

dim⁡V=2\dim V=2 (the two generators are independent), sodim⁡V⊥=4−2=2\dim V^\perp=4-2=2.

The conditions arex1+x3=0x_1+x_3=0 andx2+x4=0x_2+x_4=0, givingx3=−x1x_3=-x_1 andx4=−x2x_4=-x_2. So a basis is {(1,0,−1,0), (0,1,0,−1)}.\{(1,0,-1,0),\ (0,1,0,-1)\}.

Checks:(1,0,−1,0)⋅(1,0,1,0)=1−1=0(1,0,-1,0)\cdot(1,0,1,0)=1-1=0 ✓;(1,0,−1,0)⋅(0,1,0,1)=0(1,0,-1,0)\cdot(0,1,0,1)=0 ✓; and both similarly for(0,1,0,−1)(0,1,0,-1). Dimensions:2+2=42+2=4 ✓.

Work out where to start — free, no accountAnswer six real questions — free, no account