Jump to content

Linear algebra (Osnabrück 2024-2025)/Part II/Lecture 32



Orthogonality

When an inner product is given, then we can express the property of two vectors to be orthogonal to each other.


Let V denote a vector space over 𝕂, endowed with an inner product ⟨−,−⟩. We say that two vectors v,w∈V are orthogonal (or perpendicular) to each other if

⟨v,w⟩=0
holds.

The following reasoning shows that the orthogonality, defined via the inner product, corresponds to the intuitively given orthogonality .[1] For orthogonal vectors u,v∈V, we get that v has the same distance to the points u and −u. This holds because of

‖v−u‖2=⟨v−u,v−u⟩=⟨v,v⟩+⟨u,u⟩=⟨v+u,v+u⟩=‖v+u‖2.

The reverse statement holds as well; see Exercise 32.1 .

Pythagoras of Samos lived in the sixth century a.D. However, "his“ theorem was already known a thousand years earlier in Babylon.


Let us recall the Theorem of Pythagoras.

The following theorem is the Theorem of Pythagoras; more precisely, it is the version in the context of an inner product, and it is trivial. However, the relation to the classical, elementary-geometric Theorem of Pythagoras is difficult, because it is not clear at all whether our concept of orthogonality and our concept of a length, both introduced via the inner product, coincide with the corresponding intuitive concepts. That our concept of a norm is the true length concept rests itself on the Theorem of Pythagoras in a Cartesian coordinate system, which presupposes the classical theorem.


Theorem

Let V be a 𝕂-vector space, endowed with an inner product ⟨−,−⟩. Let u,v∈V be vectors that are orthogonal to each other. Then

‖u+v‖2=‖u‖2+‖v‖2
holds.

Proof  

We have

‖u+v‖2=⟨u+v,u+v⟩=⟨u,u⟩+⟨u,v⟩+⟨v,u⟩+⟨v,v⟩=‖u‖2+‖v‖2.
◻



Let V be a 𝕂-vector space, endowed with an inner product, and let U⊆V denote a linear subspace. Then

U⊥={v∈V∣⟨v,u⟩=0 for all u∈U}
is called the orthogonal complement of U.

The orthogonal complement of a linear subspace is again a linear subspace; see Exercise 32.8 . If a generating system of U is given, then a vector v∈V belongs to the orthogonal complement of U if it is orthogonal to all the vectors of the generating system; see Exercise 32.9 .


Let V=ℝn, endowed with the standard inner product. For the one-dimensional linear subspace ℝei, generated by the standard vector ei, the orthogonal complement consists of all vectors (x1⋮xi−10xi+1⋮xn), where the i-th entry is 0. For a one-dimensional linear subspace ℝv, generated by a vector

v=(a1a2⋮an)≠0,

the orthogonal complement can be found by determining the solution space of the linear equation

a1x1+⋯+anxn=0.

The orthogonal space

U=(ℝv)⊥={(x1⋮xn)∣a1x1+⋯+anxn=0}

has dimension n−1; this is a so-called hyperplane. The vector v is called a normal vector for the hyperplane U.

For a linear subspace U⊆ℝn that is given by a basis (or a generating system) vi=(ai1⋮ain), i=1,…,k, the orthogonal complement is the solution space of the system of linear equations

A(x1⋮xn)=0,

where A=(aij) is the matrix formed by the vectors vi as rows.



Orthonormal bases

Let V be a 𝕂-vector space, endowed with an inner product. A basis vi, i∈I, of V is called an orthogonal basis if

⟨vi,vj⟩=0 for i≠j
holds.

Let V be a 𝕂-vector space, endowed with an inner product ⟨−,−⟩. A basis vi, i∈I, of V is called an orthonormal basis if

⟨vi,vi⟩=1 for all i∈I and ⟨vi,vj⟩=0 for i≠j
holds.

The elements in an orthonormal basis have norm 1, and they are orthogonal to each other. Hence, an orthonormal basis is a orthogonal basis, that also satisfies the norm condition

‖vi‖=⟨vi,vi⟩=1.

It is easy to transform an orthogonal basis to an orthonormal basis, by replacing every vi by its normalization vi‖vi‖ (as vi is part of a basis, its norm is not 0). A family of vectors, all of the norm 1, and orthogonal to each other, but not necessarily a basis, is called an orthonormal system.


Lemma

Let V be a 𝕂-vector space, endowed with an inner product, and let ui, i∈I, be an orthonormal basis of V. Then the coefficients of a vector v, with respect to this basis, are given by

v=∑i∈I⟨v,ui⟩ui.

Proof  

Since we have a basis, there exists a unique representation

v=∑j∈Iajuj

(where all aj are 0 up to finitely many). Therefore, the claim follows from

⟨v,ui⟩=⟨∑j∈Iajuj,ui⟩=∑j∈Iaj⟨uj,ui⟩=ai.
◻


We will mainly consider orthonormal bases in the finite-dimensional case. In ℝn, the standard basis is an orthonormal basis. In the plane ℝ2, any orthonormal basis is of the form (ab),(−ba) or of the form (ab),(b−a), where a2+b2=1 holds. For example, (3545),(−4535) is an orthonormal basis. The following Gram–Schmidt orthonormalization describes a method to construct, starting with any basis of a finite-dimensional vector space, an orthonormal basis that generates the same flag of linear subspaces.


Theorem

Let V be a finite-dimensional 𝕂-vector space, endowed with an inner product, and let v1,v2,…,vn be a basis of V. Then there exists an orthonormal basis u1,u2,…,un of V with[2]

⟨v1,v2,…,vi⟩=⟨u1,u2,…,ui⟩

for all

i=1,…,n.

Proof  

We prove the statement by induction over i, that is, we construct successively a family of orthonormal vectors spanning the same linear subspaces. For i=1, we just have to normalize v1, that is, we replace it by u1=v1‖v1‖. Now suppose that the statement is already proven for i. Let a family of orthonormal vectors u1,…,ui fulfilling ⟨u1,…,ui⟩=⟨v1,…,vi⟩ be already constructed. We set

wi+1=vi+1−⟨vi+1,u1⟩u1−⋯−⟨vi+1,ui⟩ui.

Due to

⟨wi+1,uj⟩=⟨vi+1−⟨vi+1,u1⟩u1−⋯−⟨vi+1,ui⟩ui,uj⟩=⟨vi+1,uj⟩−∑k≤i,k≠j⟨vi+1,uk⟩⟨uk,uj⟩−⟨vi+1,uj⟩⟨uj,uj⟩=⟨vi+1,uj⟩−⟨vi+1,uj⟩=0,

this vector is orthogonal to all u1,…,ui, and also

⟨u1,…,ui,wi+1⟩=⟨v1,…,vi,vi+1⟩

holds. By normalizing wi+1, we obtain ui+1.

◻



Let V be the kernel of the linear mapping

ℝ3⟶ℝ,(x,y,z)⟼2x+3y−z.

As a linear subspace of ℝ3, V carries the induced inner product. We want to determine an orthonormal basis of V. For this, we consider the basis consisting of the vectors

v1=(102) and v2=(013).

We have ‖v1‖=5; therefore,

u1=v1‖v1‖=(15025)

is the corresponding normed vector. According to[3] orthonormalization process, we set

w2=v2−⟨v2,u1⟩u1=(013)−⟨(013),(15025)⟩(15025)=(013)−65(15025)=(013)−(650125)=(−65135).

We have

‖w2‖=‖(−65135)‖=3625+1+925=7025=145.

Therefore,

u2=514(−65135)=(−670514370)

is the second vector of the orthonormal basis.


Corollary

Let V be a finite-dimensional 𝕂-vector space, endowed with an inner product. Then there exists an orthonormal basis

of V.

Proof  

This follows directly from Theorem 32.9 .

◻


Therefore, in a finite-dimensional vector space with an inner product, one can always extend a given orthonormal system to an orthonormal basis; see exercise *****.


Corollary

Let V be a finite-dimensional 𝕂-vector space, endowed with an inner product, and let U⊆V denote a linear subspace. Then, we have

V=U⊕U⊥,

that is, V is the direct sum of U and its

orthogonal complement.

Proof  

From u∈U∩U⊥ we get directly

⟨u,u⟩=0,

thus u=0. This means that the sum direct. Let u1,…,uk be an orthonormal basis of U. We extend it to an orthonormal basis u1,…,un of V. Then we have

U⊥=⟨uk+1,…,un⟩;

Therefore, V is the sum of the linear subspaces.

◻


For the following statement, compare also Lemma 15.6 and exercise *****.


Corollary

Let V be a 𝕂-vector space, endowed with an inner product

⟨−,−⟩. Then the following statements hold.
  1. For a linear subspace U⊆U′⊆V, we have
    U⊥⊇U'⊥.
  2. We have 0⊥=V and V⊥=0.
  3. Let V be finite-dimensional. Then we have
    (U⊥)⊥=U.
  4. Let V be finite-dimensional. Then we have
    dimK(U⊥)=dimK(V)−dimK(U).

Proof

◻



Orthogonal projections

For a finite-dimensional 𝕂-vector space, endowed with an inner product, and a linear subspace U⊆V, there exists an orthogonal complement U⊥, and the space has, according to Corollary 32.12 , the direct sum decomposition

V=U⊕U⊥.

The projection

pU:V⟶U

along U⊥ is called the orthogonal projection onto U. This projection depends only on U, because the orthogonal complement is uniquely determined. Often, the composed mapping V→U→V is also called the orthogonal projection onto U. An orthogonal projection is also described as dropping a perpendicular onto U.


Lemma

Let V be a finite-dimensional 𝕂-vector space, endowed with an inner product, and let U⊆V denote a linear subspace with an orthonormal basis u1,…,um of U. Then the orthogonal projection onto U is given by

pU(v)=∑i=1m⟨v,ui⟩ui.

Proof  

We extend the basis to an orthonormal basis u1,…,un of V. The orthogonal complement of U is

U⊥=⟨um+1,…,un⟩.

Due to Lemma 32.8 , we have

v=∑i=1n⟨v,ui⟩ui=(∑i=1m⟨v,ui⟩ui)+(∑i=m+1n⟨v,ui⟩ui).

Therefore, ∑i=1m⟨v,ui⟩ui is the projection onto U along U⊥.

◻



Footnotes
  1. ↑ For this, one has to accept that the length defined via the inner product coincides with the intuitively defined length, which rests on the elementary-geometric Theorem of Pythagoras.
  2. ↑ Here, ⟨−⟩ denotes the linear subspace spanned by the vectors, not the inner product.
  3. ↑ Often, it is computationally easier, first to orthogonalize and then to normalize at the very end; see example *****.


<< | Linear algebra (Osnabrück 2024-2025)/Part II | >>
PDF-version of this lecture
Exercise sheet for this lecture (PDF)