11.3  Orthogonal Complements and Projections

Chapter 1 proved that every subspace of a finite-dimensional space has a complement, and then warned that it has many: the x-axis in R2 is complemented by every other line through the origin. An inner product breaks the tie. Among all the complements of U there is now one built from U alone, the set of vectors perpendicular to everything in U, and the projection onto U along it turns out to solve an approximation problem: it finds the vector of U closest to a given v. This section constructs that complement, that projection, and that answer.

Throughout, V is an inner product space over F=R or F=C, with inner product ⟨⋅,⋅⟩ (Definition 11.1.1) and induced norm ‖⋅‖ (Definition 11.1.3). We do not assume V is finite-dimensional; what we assume, each time, is that the subspace we project onto is.

11.3.1. Orthogonal complements

In R3, a plane U through the origin has a distinguished line attached to it: the normal line, the set of vectors perpendicular to the whole plane. Nothing about the plane had to be chosen to produce it. That construction is available in any inner product space, and it is available for any subset, not only for subspaces.

The orthogonal complement of U collects every vector that is perpendicular to all of U at once.

Definition 11.3.1 (Orthogonal complement)

Let V be an inner product space over F and let S⊆V be any subset. The orthogonal complement of S is S⊥={v∈V:⟨v,s⟩=0 for every s∈S}, read “S perp”.

In words: v belongs to S⊥ when v is orthogonal (Definition 11.1.4) to every single element of S, not merely to some of them. The quantifier is what makes the definition useful, and it is also what makes S⊥ a subspace even when S is not. Note that the condition could equally be written ⟨s,v⟩=0 for every s∈S, since ⟨s,v⟩=⟨v,s⟩― and a complex number vanishes exactly when its conjugate does. We will use whichever slot is convenient.

Proposition 11.3.1 (Perp is always a subspace)

For every subset S of an inner product space V, the set S⊥ is a subspace of V. Moreover S⊥=span(S)⊥.

Proof. We apply the Subspace Test (Theorem 1.2.1). First, ⟨0,s⟩=0 for every s, because ⟨⋅,s⟩ is linear in the first slot and a linear map sends 0 to 0 (Theorem 2.1.1); so 0∈S⊥. Next, let v,w∈S⊥ and a∈F. For every s∈S, ⟨v+w,s⟩=⟨v,s⟩+⟨w,s⟩=0,⟨av,s⟩=a⟨v,s⟩=0, both by linearity in the first slot. Hence v+w∈S⊥ and av∈S⊥.

For the second claim, S⊆span(S) gives span(S)⊥⊆S⊥. Conversely let v∈S⊥ and let u=a1s1+⋯+aksk with si∈S. Then ⟨u,v⟩=a1⟨s1,v⟩+⋯+ak⟨sk,v⟩=0, since each ⟨si,v⟩=⟨v,si⟩―=0. So ⟨v,u⟩=⟨u,v⟩―=0, and v∈span(S)⊥.

The second half is what makes computation possible: to test membership in U⊥ it is enough to test against a spanning list of U, not against all of U.

Examples.

  • The extremes. {0}⊥=V, since ⟨v,0⟩=0 always. And V⊥={0}: if v∈V⊥, then in particular ⟨v,v⟩=0, and positive definiteness forces v=0. This is the “pair it with itself” move, and it is the shape in which positivity almost always enters; it is the only place where positivity is used; we will use it again and again.
  • A plane in R3. Let U={(x,y,z):x+y+z=0} with the dot product. The condition x+y+z=0 says exactly ⟨(x,y,z),(1,1,1)⟩=0, so U={(1,1,1)}⊥. The Orthogonal Decomposition Theorem below will give the converse, U⊥=span((1,1,1)).
  • A subset that is not a subspace. In R3, take S={(1,0,0),(1,1,0)}, two vectors and nothing else. Then S⊥={(x,y,z):x=0, x+y=0}=span((0,0,1)), a subspace, as Proposition 11.3.1 promises. It equals span(S)⊥, the perp of the xy-plane.
  • Polynomials. On R[x]≤2 with ⟨p,q⟩=∫−11p(t)q(t)dt, let U=span(1) be the constants. Then p∈U⊥ means ∫−11p(t)dt=0: the polynomials of average value zero. For instance x and x2−13 lie in U⊥, and they span it, since the Orthogonal Decomposition Theorem below gives dim⁡U⊥=3−1=2.

Nonexample by minimal change. Weaken “for every s∈S” to “for some s∈S”. With S={e1,e2} in R2, the weakened set is {v:⟨v,e1⟩=0 or ⟨v,e2⟩=0}, the union of the two axes. Closure under scalars still holds, and 0 still belongs; what fails is closure under addition, since (1,0)+(0,1)=(1,1) lies on neither axis. This is the union of Example (The Union of the Two Axes) again, in new clothing. The universal quantifier is doing real work.

Why this definition. One could try to define “the” complement of U by choosing a basis of U, extending it, and spanning the new vectors, which is what Theorem 1.7.6 does. That answer depends on every choice made along the way. The definition above depends only on U and on the inner product, and the next theorem shows that it really is a complement.

11.3.2. The orthogonal decomposition

Here is the theorem that makes U⊥ more than a definition. Note the hypothesis: U must be finite-dimensional, but V need not be. The reason is that the proof needs an orthonormal basis of U, and Gram–Schmidt supplies one only for a finite list.

Theorem 11.3.2 (Orthogonal Decomposition Theorem)

Let V be an inner product space over F and let U be a finite-dimensional subspace of V. Then:

  • (a) V=U⊕U⊥;
  • (b) (U⊥)⊥=U;
  • (c) if in addition V is finite-dimensional, then dim⁡U⊥=dim⁡V−dim⁡U.

Idea. For (a) we must produce, from an arbitrary v, a piece inside U and a piece perpendicular to U. Fix an orthonormal basis of U. Theorem 11.2.1 says that a vector of U is the sum of its coordinates against that basis; so for a v that is not in U, the same sum is the natural guess for the U-piece. Then we subtract and check. That is the move of Gram–Schmidt — project, then subtract — used once instead of repeatedly. Uniqueness of the splitting is the “pair with itself” move. For (b), one inclusion is free and the other is (a) applied twice.

Proof.

  • (a) Since U is finite-dimensional, it has an orthonormal basis (e1,…,ek) by Theorem 11.2.2. Let v∈V and put u=∑i=1k⟨v,ei⟩ei∈U,w=v−u. For each j, ⟨w,ej⟩=⟨v,ej⟩−∑i=1k⟨v,ei⟩⟨ei,ej⟩=⟨v,ej⟩−⟨v,ej⟩=0, where the middle step uses ⟨ei,ej⟩=δij. So w is orthogonal to each ej, hence to span(e1,…,ek)=U by Proposition 11.3.1. Therefore v=u+w∈U+U⊥.

    The sum is direct: if x∈U∩U⊥, then ⟨x,x⟩=0 because x∈U⊥ and x∈U, so x=0 by positive definiteness. By Theorem 1.7.4, V=U⊕U⊥.

  • (b) (⊆) Let u∈U. For every w∈U⊥ we have ⟨w,u⟩=0, hence ⟨u,w⟩=⟨w,u⟩―=0. So u∈(U⊥)⊥.

    (⊇) Let v∈(U⊥)⊥. By (a), write v=u+w with u∈U and w∈U⊥. By the inclusion just proved, u∈(U⊥)⊥, so w=v−u∈(U⊥)⊥ as well. Thus w lies in both U⊥ and (U⊥)⊥, giving ⟨w,w⟩=0 and w=0. Hence v=u∈U.

  • (c) By (a), U⊥ is a complement of U in V, so dim⁡U⊥=dim⁡V−dim⁡U by Theorem 1.7.6.

Part (b) is worth pausing on. For a general subspace of a general vector space there is no operation “⊥” to apply twice, and even for the annihilator of Chapter 5 the analogous statement needed the double dual. Here it is a two-line consequence of (a). Part (c) says that ⊥ exchanges dimension k with dimension n−k, just as the annihilator does (Theorem 5.2.2); Section 5 explains why the two facts are the same fact.

Quick check. Positive definiteness was used twice in the proof of Theorem 11.3.2, in the same way each time. Where? To see that it cannot be dropped, take R2 with the indefinite form β(x,y)=x1y1−x2y2, let U=span((1,1)), and write U⊥ for the set of v with β(v,u)=0 for all u∈U. Compute U∩U⊥.

Solution. It was used to show U∩U⊥={0} in (a), and again for w=0 in (b); both times through “⟨x,x⟩=0 forces x=0”.

With β, the vector u=(1,1) satisfies β(u,u)=1−1=0, so u is “orthogonal to itself” and u∈U⊥. Hence U∩U⊥=U≠{0}, and the sum U+U⊥ is not direct. Indeed U⊥={(x1,x2):x1−x2=0}=U here, so U+U⊥=U is not all of R2. Both conclusions of the theorem fail.

11.3.3. Orthogonal projection

Once V=U⊕U⊥, Chapter 2 hands us an operator: the projection onto U along U⊥ (Theorem 4.5.1). It deserves its own name and symbol, because the complement is no longer a choice.

Definition 11.3.2 (Orthogonal projection)

Let U be a finite-dimensional subspace of an inner product space V. By Theorem 11.3.2 (a), every v∈V has a unique splitting v=u+w with u∈U and w∈U⊥. The orthogonal projection onto U is the operator PU∈L(V) defined by PUv=u.

The definition makes sense because the splitting exists and is unique, and PU is linear by Theorem 4.5.1 (b), which also gives PU2=PU, imPU=U, and kerPU=U⊥. Nothing so far tells us how to compute PUv. The proof of Theorem 11.3.2 does, and that is the next theorem.

Theorem 11.3.3 (Projection formula)

Let U be a finite-dimensional subspace of an inner product space V, with orthonormal basis (e1,…,ek). Then for every v∈V:

  • (a) PUv=∑i=1k⟨v,ei⟩ei;
  • (b) ⟨PUu,v⟩=⟨u,PUv⟩ for all u,v∈V;
  • (c) ‖PUv‖≤‖v‖, with equality if and only if v∈U.

Idea. Part (a) is not a new computation: the vector u built in the proof of Theorem 11.3.2 (a) was exactly this sum, and by uniqueness of the splitting it must be PUv. For (b), split both u and v, and watch the cross terms die. For (c), split v and use Pythagoras.

Proof.

  • (a) Put u=∑i⟨v,ei⟩ei and w=v−u. The proof of Theorem 11.3.2 (a) showed u∈U and w∈U⊥. Since the splitting of v in U⊕U⊥ is unique (Definition 1.7.2), PUv=u.

  • (b) Write u=u1+u2 and v=v1+v2 with u1,v1∈U and u2,v2∈U⊥. Then ⟨u1,v2⟩=0 because v2∈U⊥ and u1∈U, and ⟨u2,v1⟩=0 for the same reason with the roles swapped. Hence ⟨PUu,v⟩=⟨u1,v1+v2⟩=⟨u1,v1⟩=⟨u1+u2,v1⟩=⟨u,PUv⟩.

  • (c) With v=v1+v2 as above, v1 and v2 are orthogonal, so ‖v‖2=‖v1‖2+‖v2‖2 by Theorem 11.1.3. Since ‖v2‖2≥0, this gives ‖PUv‖2=‖v1‖2≤‖v‖2. Equality holds if and only if ‖v2‖=0, that is v2=0, that is v=v1∈U.

Two comments. First, the right-hand side of (a) visibly depends on the orthonormal basis chosen, while the left-hand side does not; so the sum ∑i⟨v,ei⟩ei is the same for every orthonormal basis of U. That is a genuine piece of information, obtained for free. Second, property (b) says that PU can be moved from one slot of the inner product to the other at no cost. Section 6 will call such an operator self-adjoint and write the property as PU∗=PU; we proved the property here so that nothing later depends on the order of the sections.

Orthonormal bases are convenient but not obligatory, and by hand it is usually faster to skip the square roots.

Corollary 11.3.4 (Projecting with an orthogonal basis)

Let U be a finite-dimensional subspace of an inner product space V, and let (u1,…,uk) be an orthogonal basis of U, so that ⟨ui,uj⟩=0 for i≠j and every ui≠0. Then PUv=∑i=1k⟨v,ui⟩⟨ui,ui⟩uifor every v∈V.

Proof. Each ui is nonzero, so ‖ui‖>0 and ei=ui/‖ui‖ is defined. Each ei is a nonzero multiple of ui, so (e1,…,ek) is again a basis of U, and it is orthonormal: ⟨ei,ej⟩=⟨ui,uj⟩/(‖ui‖‖uj‖)=δij. By Theorem 11.3.3 (a), PUv=∑i=1k⟨v,ei⟩ei=∑i=1k⟨v,ui⟩‖ui‖2ui, where the two factors 1/‖ui‖ come out unchanged, the one in the second slot because ‖ui‖ is real. Finally ‖ui‖2=⟨ui,ui⟩ by Definition 11.1.3.

Each summand ⟨v,ui⟩ui/⟨ui,ui⟩ is the projection of v onto the line span(ui): the case k=1 of the corollary.

11.3.4. Best approximation and distance

Now the payoff. Of all the vectors of U, which is nearest to a given v? In R3, dropping a perpendicular from a point to a plane is the familiar recipe, and the recipe is correct in every inner product space.

Theorem 11.3.5 (Best Approximation Theorem)

Let U be a finite-dimensional subspace of an inner product space V, and let v∈V. Then ‖v−PUv‖≤‖v−u‖for every u∈U, and equality holds only for u=PUv.

Idea. Insert PUv into the difference: v−u=(v−PUv)+(PUv−u). The first bracket is perpendicular to U and the second lies in U, so the two are orthogonal, and Pythagoras turns the comparison into “a sum of two squares is at least one of them”. The picture is a right triangle with hypotenuse v−u.

Diagram. Labels: cvec 0, cvec v, P_Ucvec v, cvec u, U, cvec v - P_Ucvec v, cvec v - cvec u

Proof. Let u∈U and write v−u=(v−PUv)+(PUv−u). The first bracket lies in U⊥, since v−PUv is the U⊥-part of v in Theorem 11.3.2 (a). The second lies in U, since PUv∈U and u∈U. Hence the two brackets are orthogonal, and Theorem 11.1.3 gives ‖v−u‖2=‖v−PUv‖2+‖PUv−u‖2≥‖v−PUv‖2. Taking square roots proves the inequality, since the norm is nonnegative. Equality forces ‖PUv−u‖2=0, hence PUv−u=0 by positive definiteness, that is u=PUv. This proves the theorem.

So the minimum is attained, and attained at exactly one point. That lets us define a distance.

Definition 11.3.3 (Distance to a subspace)

Let U be a finite-dimensional subspace of an inner product space V and let v∈V. The distance from v to U is d(v,U)=minu∈U‖v−u‖=‖v−PUv‖.

The word minimum is justified, not sloppy: Theorem 11.3.5 says the values ‖v−u‖ really do have a smallest one. Note also that d(v,U)=0 if and only if v∈U, and that, when V is finite-dimensional, d(v,U)=‖PU⊥v‖, since v−PUv is the U⊥-component of v. (The hypothesis is needed for PU⊥ to be defined at all: Definition 11.3.2 asks the subspace projected onto to be finite-dimensional, and U⊥ is not, in the infinite-dimensional setting this section is careful to allow.) When U⊥ is the smaller of the two, computing that component is the faster route.

Example (Distance from a point to a plane)

In R3 with the dot product, let U={(x,y,z):x+y+z=0} and v=(1,2,3). Find PUv and d(v,U), twice: once through U⊥, and once through an orthonormal basis of U.

Solution. Through U⊥. Put n=(1,1,1). Every (x,y,z)∈U satisfies ⟨(x,y,z),n⟩=x+y+z=0, so n∈U⊥. Since U is the solution set of one nontrivial equation, dim⁡U=2, so dim⁡U⊥=3−2=1 by Theorem 11.3.2 (c), and therefore U⊥=span(n). By Corollary 11.3.4 with the one-element basis (n), PU⊥v=⟨v,n⟩⟨n,n⟩n=1+2+33(1,1,1)=(2,2,2), so PUv=v−(2,2,2)=(−1,0,1) and d(v,U)=‖(2,2,2)‖=23.

Through an orthonormal basis of U. The vectors (1,−1,0) and (1,1,−2) lie in U and are orthogonal to each other, so e1=12(1,−1,0),e2=16(1,1,−2) is an orthonormal basis of U. Then ⟨v,e1⟩=(1−2)/2=−1/2 and ⟨v,e2⟩=(1+2−6)/6=−3/6, so Theorem 11.3.3 (a) gives PUv=−12e1−36e2=−12(1,−1,0)−12(1,1,−2)=(−1,0,1), the same answer. Check: (−1)+0+1=0, so PUv∈U; and v−PUv=(2,2,2) is a multiple of n, so it lies in U⊥. The two conditions together identify the splitting, by uniqueness.

The next example is the same theorem in a space of functions, where “closest” is no longer something one can see.

Example (The best quadratic approximation to a cubic)

On V=R[x]≤3 with ⟨p,q⟩=∫−11p(t)q(t)dt, let U=R[x]≤2. Find the polynomial of U closest to x3, and the distance.

Solution. The list (1,x,x2−13) is a basis of U, being three independent polynomials of degrees 0,1,2 (Theorem 1.4.4) in a space of dimension 3. It is orthogonal: ⟨1,x⟩=0 and ⟨x,x2−13⟩=0 because the integrands are odd, and ⟨1,x2−13⟩=∫−11(t2−13)dt=23−23=0. Now apply Corollary 11.3.4 to v=x3. Two of the three coefficients vanish because t3 is odd: ⟨x3,1⟩=0 and ⟨x3,x2−13⟩=0. The remaining one is ⟨x3,x⟩⟨x,x⟩=∫−11t4dt∫−11t2dt=2/52/3=35. Hence PU(x3)=35x. The error is x3−35x, with ‖x3−35x‖2=∫−11(t6−65t4+925t2)dt=27−65⋅25+925⋅23=27−625=8175, so d(x3,U)=8/175=23514≈0.214.

Check. The error should be orthogonal to U. Against 1 and x2−13 this holds because t3−35t is odd; against x it reads ∫−11(t4−35t2)dt=25−35⋅23=0. Notice that the answer is not the Taylor polynomial of x3 at 0, which is 0: Taylor approximates near one point, while PU spreads the error over the whole interval.

11.3.5. Three traps

Warning. U⊥ is not the annihilator U0. Both objects consist of things that “kill” U, but they live in different places: U⊥⊆V is made of vectors (Definition 11.3.1), while U0⊆V∗ is made of functionals (Definition 5.2.1). The annihilator exists over every field and needs no extra structure; the orthogonal complement needs an inner product, so it needs F=R or F=C. They do have the same dimension, dim⁡V−dim⁡U (Theorem 5.2.2, Theorem 11.3.2 (c)), and that is not a coincidence: Section 5 produces an explicit bijection U⊥→U0. Until then, keep them apart.

Warning. “Orthogonal projection” is a special case of Chapter 2’s projections, not a synonym. An operator with P2=P is a projection onto imP along kerP (Definition 4.5.1, Theorem 4.5.1), and Chapter 4, §05 stressed that the direction matters: on R2, both (1000) and (1−100) are projections onto the x-axis. Only the first is orthogonal, because only for the first is the kernel the perpendicular line; the second projects along span((1,1)) and is called oblique. So PU carries more information than “P2=P and imP=U”: it also says which complement is used. Theorem 11.3.3 (b) is the extra property, and Exercise C3 below shows that it singles out the orthogonal projections among all projections.

Warning. U⊥ depends on the inner product, not only on U. In R2 let U=span((1,1)). With the dot product, U⊥=span((1,−1)). With the weighted inner product ⟨x,y⟩=2x1y1+x2y2, a vector (a,b) is orthogonal to (1,1) when 2a+b=0, so U⊥=span((1,−2)). Same subspace, different perpendicular. The symbol ⊥ always hides a choice of ⟨⋅,⋅⟩, and when two inner products are in play the notation must say which.

11.3.6. Exercises

A. Check your understanding

Exercise (A1)
  • (a) Define the orthogonal complement S⊥ of a subset S of an inner product space.
  • (b) True or false: S⊥ is a subspace only when S is a subspace. Justify your answer.
  • (c) State the Orthogonal Decomposition Theorem, including every hypothesis.
  • (d) Let U be a 3-dimensional subspace of R7. What is dim⁡U⊥, and what is dim⁡(U⊥)⊥?
  • (e) What quantity does PUv minimize, and over what set?
  • (f) Name two differences between U⊥ and the annihilator U0.

Solution.

  • (a) S⊥={v∈V:⟨v,s⟩=0 for every s∈S} (Definition 11.3.1).

  • (b) False. S⊥ is a subspace for every subset S, by Proposition 11.3.1, and it equals span(S)⊥. For instance {(1,0,0),(1,1,0)}⊥=span((0,0,1)) in R3.

  • (c) If V is an inner product space over R or C and U is a finite-dimensional subspace, then V=U⊕U⊥ and (U⊥)⊥=U; if V is also finite-dimensional, then dim⁡U⊥=dim⁡V−dim⁡U (Theorem 11.3.2). V itself need not be finite-dimensional.

  • (d) dim⁡U⊥=7−3=4 and dim⁡(U⊥)⊥=dim⁡U=3, by Theorem 11.3.2 (c) and (b).

  • (e) It minimizes ‖v−u‖ over u∈U, and it is the only minimizer (Theorem 11.3.5).

  • (f) U⊥ consists of vectors of V, U0 of functionals in V∗; and U⊥ needs an inner product (so F=R or C), while U0 is defined over any field. A third difference: U⊥ is a complement of U inside V, whereas U0 is not a subspace of V at all.

B. Practice

Exercise (B1: A complement and a projection in R4)

In R4 with the dot product, let U=span((1,1,0,0), (0,0,1,1)).

  • (a) Find a basis of U⊥ and verify the dimension count.
  • (b) Compute PUv and d(v,U) for v=(1,2,3,4).
  • (c) Verify directly that v−PUv∈U⊥.

Solution.

  • (a) By Proposition 11.3.1 it is enough to be orthogonal to the two spanning vectors, so (a,b,c,d)∈U⊥ means a+b=0 and c+d=0. Hence U⊥=span((1,−1,0,0), (0,0,1,−1)), these two being independent (look at the first and third entries). So dim⁡U⊥=2=4−2, as Theorem 11.3.2 (c) requires.

  • (b) The spanning list of U is orthogonal, so Corollary 11.3.4 applies with u1=(1,1,0,0), u2=(0,0,1,1), both of squared norm 2: PUv=1+22u1+3+42u2=(32,32,72,72). Then v−PUv=(−12,12,−12,12) and d(v,U)=4⋅14=1.

  • (c) The vector (−12,12,−12,12) satisfies a+b=0 and c+d=0, so it lies in U⊥ by (a).

Exercise (B2: Distance from a point to a plane)

In R3 with the dot product, let U={(x,y,z):2x−y+2z=0} and v=(1,2,3). Compute d(v,U) and PUv, and check that PUv lies in U. Hence write down the general formula for the distance from v to the plane {x:⟨x,n⟩=0}, n≠0.

Solution. The plane is {n}⊥ for n=(2,−1,2), and n∈U⊥ with dim⁡U⊥=3−2=1 (Theorem 11.3.2 (c)), so U⊥=span(n). Here ⟨v,n⟩=2−2+6=6 and ⟨n,n⟩=4+1+4=9, so PU⊥v=69n=(43,−23,43),PUv=v−PU⊥v=(−13,83,53). Check: 2(−13)−83+2⋅53=−2−8+103=0, so PUv∈U. The distance is d(v,U)=‖69n‖=69⋅3=2.

In general d(v,U)=‖PU⊥v‖=|⟨v,n⟩|‖n‖/‖n‖2=|⟨v,n⟩|/‖n‖, which for n=(2,−1,2) and v=(1,2,3) gives 6/3=2.

Exercise (B3: The best quadratic approximation to a quartic)

On R[x]≤4 with ⟨p,q⟩=∫−11p(t)q(t)dt, let U=R[x]≤2. Find PU(x4) and d(x4,U). Hint: the orthogonal basis of Example (The best quadratic approximation to a cubic) still works.

Solution. Use the orthogonal basis (1,x,x2−13) of U from Example (The best quadratic approximation to a cubic), with ⟨1,1⟩=2 and ⟨x2−13,x2−13⟩=∫−11(t4−23t2+19)dt=25−49+29=845. The coefficients against x4 are ⟨x4,1⟩=25, ⟨x4,x⟩=0 (odd integrand) and ⟨x4,x2−13⟩=∫−11(t6−13t4)dt=27−13⋅25=16105. By Corollary 11.3.4, PU(x4)=2/52⋅1+16/1058/45(x2−13)=15+67(x2−13)=67x2−335. For the distance, Theorem 11.1.3 applied to x4=PU(x4)+(x4−PU(x4)) gives d2=‖x4‖2−‖PU(x4)‖2. Here ‖x4‖2=∫−11t8dt=29 and, the basis being orthogonal, ‖PU(x4)‖2=(15)2⋅2+(67)2⋅845=225+32245=2581225. Hence d2=29−2581225=2450−232211025=12811025 and d(x4,U)=82105≈0.108.

C. Going deeper

Exercise (C1: Perp turns sums into intersections)

Let U and W be subspaces of an inner product space V.

  • (a) Prove that (U+W)⊥=U⊥∩W⊥. (No finiteness is needed.)
  • (b) Assume now that V is finite-dimensional. Deduce that (U∩W)⊥=U⊥+W⊥.

Solution.

  • (a) (⊆) Let v∈(U+W)⊥. Since U⊆U+W (Theorem 1.7.1), v is orthogonal to every element of U, so v∈U⊥; likewise v∈W⊥.

    (⊇) Let v∈U⊥∩W⊥ and let u+w∈U+W with u∈U, w∈W. Then ⟨v,u+w⟩=⟨v,u⟩+⟨v,w⟩=0, using additivity in the second slot. Hence v∈(U+W)⊥.

  • (b) Apply (a) to the subspaces U⊥ and W⊥: (U⊥+W⊥)⊥=(U⊥)⊥∩(W⊥)⊥=U∩W, where the second equality is Theorem 11.3.2 (b), available because V is finite-dimensional, so all subspaces are (Theorem 1.6.7). Now take ⊥ of both ends and use Theorem 11.3.2 (b) once more, this time on the subspace U⊥+W⊥: U⊥+W⊥=((U⊥+W⊥)⊥)⊥=(U∩W)⊥. This proves the second identity.
Exercise (C2: A subspace with no orthogonal complement)

Let V=R[x], with the coefficient inner product ⟨p,q⟩=∑k≥0akbkfor p=∑kakxk, q=∑kbkxk, a finite sum, since a polynomial has only finitely many nonzero coefficients. Let U={p∈V:p(1)=0}.

  • (a) Verify that ⟨⋅,⋅⟩ is an inner product on V and that U is a subspace with U≠V.
  • (b) Prove that U⊥={0}. Conclude that U⊕U⊥≠V, so Theorem 11.3.2 fails without the hypothesis that U is finite-dimensional.
  • (c) Explain what goes wrong geometrically by exhibiting, for each m≥1, an element pm∈U with ‖pm−1‖=1/m.

Solution.

  • (a) The form is symmetric and bilinear over R because each term akbk is, and ⟨p,p⟩=∑kak2>0 whenever some ak≠0, that is whenever p≠0. So it is an inner product. The map ε:p↦p(1) is linear (Theorem 0.8.5), so U=kerε is a subspace (Theorem 2.2.1). It is proper, since the constant polynomial 1 has ε(1)=1≠0.

  • (b) Note first that xi−xj∈U for all i,j≥0, since 1−1=0. Let q=∑kbkxk∈U⊥. Pairing with xi−xj gives bi−bj=0, so all the coefficients of q are equal, say to c. But only finitely many of them are nonzero, and there are infinitely many indices, so c=0 and q=0. Hence U⊥={0} and U+U⊥=U≠V.

  • (c) Take pm=1−1m(x+x2+⋯+xm). Then pm(1)=1−m⋅1m=0, so pm∈U, while ‖pm−1‖2=‖1m(x+⋯+xm)‖2=m⋅1m2=1m. So the polynomial 1∉U has elements of U arbitrarily close to it: U leaves no room outside itself for a perpendicular direction, and the best approximation to 1 from U does not exist (the distances ‖1−p‖ get arbitrarily close to 0 without reaching it). The obstruction is not the dimension of V as such but the fact that U is not closed: filling in the missing limits is exactly what the theory of Hilbert spaces does, and there Theorem 11.3.2 is recovered for closed subspaces. That is analysis, not linear algebra, and we do not pursue it.

Exercise (C3: Which projections are orthogonal)

Let V be a finite-dimensional inner product space and let P∈L(V) satisfy P2=P. Prove that the following are equivalent:

  • (a) P=PU for some subspace U;
  • (b) ⟨Pu,v⟩=⟨u,Pv⟩ for all u,v∈V;
  • (c) kerP=(imP)⊥.

Hint: for (b) ⇒ (c), pair a vector of kerP with Pv.

Solution.

  • (a) ⇒ (b) is Theorem 11.3.3 (b).

  • (b) ⇒ (c). (⊆) Let x∈kerP and let Pv∈imP be arbitrary. Then ⟨x,Pv⟩=⟨Pv,x⟩―=⟨v,Px⟩―=⟨v,0⟩―=0, using (b) in the second equality. So x∈(imP)⊥. (⊇) Let x∈(imP)⊥. Then ⟨Px,Px⟩=⟨x,P(Px)⟩=⟨x,Px⟩=0, the first equality by (b), the second by P2=P, and the third because Px∈imP while x∈(imP)⊥. Positive definiteness gives Px=0, so x∈kerP.

  • (c) ⇒ (a). Put U=imP. By Theorem 4.5.1 (a), V=imP⊕kerP=U⊕U⊥, and P is the identity on U and zero on kerP=U⊥. By the uniqueness clause of Theorem 4.5.1 (b), P is the projection onto U along U⊥, which is PU by Definition 11.3.2.

Found a typo or a mistake? Report it, or read this page’s source

The text of this book is licensed under CC BY-NC-SA 4.0.