Lecture 30 - Practice with Gram-Schmidt

As an example, consider V=P2(R) equipped with:

⟨f,g⟩=∫02f(x)g(x)dx

Here ‖f‖2=∫02f2(x)dx. Let v1=1,v2=x,v3=x2 are our standard basis. Our goal is to find an orthonormal basis for P2(R).

Actually, the process is pretty much exact to Chapter 6 - Inner Product Spaces#An Example, so check that out if you want a better example. It's very similar to this one.

6.C: Orthogonal Complements

Note

This section is just good to know for the final. We'll cover it again in Linear III.

Consider the plane:

Each plane has a unique n→ associated with it, and vice versa. In linear algebra, we want to abstract this idea even further:

orthogonal complement, U⊥

If U is a subset (maybe not a subspace) of V, then the orthogonal complement of U, denoted U⊥, is the set of all vectors in V that are orthogonal to every vector in U:

U⊥={v∈V:⟨v,u⟩=0∀u∈U}

So U⊥ is all the vectors that are orthogonal to the plane, or are on the n→ line:

Some properties include:

We'll show that it's a subspace (property 1) below:

Proof

Clearly 0→∈U⊥.

Let's show that U⊥ is closed under addition. Let v1,v2∈U⊥ be arbitrary. So then ⟨v1,u⟩=0 and ⟨v2,0⟩ for all u∈U. Let u∈U be arbitrary. Notice that:

⟨v1+v2,u⟩=⟨v1,u⟩+⟨v2,u⟩=0+0=0

Thus since u was arbitrary, then it's clear that v1+v2 is perpendicular to all u, so then v1+v2∈U⊥, showing closure under addition.

Closure under scalar multiplication is similar.
☐

For the proof of property 5 above:

Proof
Suppose U⊆W. Let v∈W⊥. Thus then ⟨v,w⟩=0 for all w∈W, implying that ⟨v,u⟩=0 for every u∈U since U⊆W. Hence, v∈U⊥, so then W⊥⊆U⊥.
☐

Some Facts

Lemma

Suppose U is a finite-dimensional subspace of V. Then:

V=U⊕U⊥

as well as:

(U⊥)⊥=U

Proof
To prove the direct sum, clearly U∩U⊥={0→} since the zero vector is in both now (U is a subspace specifically). Therefore, the sum is direct. We now need to show that V=U+U⊥.

Clearly U∩U⊥⊆V by U being a subspace. Consider the other direction. If v∈V, then let e1,...,ek be an orthonormal basis for U. Then:

v=⟨v,e1⟩e1+⋯+⟨v,ek⟩ek⏟∈U+(v−(⟨v,e1⟩e1+⋯+⟨v,ek⟩ek))⏟∈U⊥

☐
The nice thing here is that the vector on the left-hand side is the "closest" approximation for v in vectors in terms of V.