Back to Linear Algebra

Gram-Schmidt Orthogonalization

Subtracting away projections turns any basis into a mutually orthogonal one, then dividing by lengths makes that basis orthonormal.

Linear Algebra, Gram-Schmidt Orthogonalization

Status
FlagsLoading your progress…

18 exercises

Exercise 1

Normalize the lengths of these vectors.

  • (a)  (12)\begin{pmatrix}1\\ 2\end{pmatrix}     (b)  (−130)\begin{pmatrix}-1\\ 3\\ 0\end{pmatrix}     (c)  (1−1)\begin{pmatrix}1\\ -1\end{pmatrix}

3.0

Exercise 2

Perform Gram-Schmidt on this basis for R2\mathbb{R}^{2}.

Check that the resulting vectors are orthogonal.

3.0

Exercise 3

Perform the Gram-Schmidt process on this basis for R3\mathbb{R}^{3}.

3.0

Exercise 4

Perform Gram-Schmidt on each of these bases for R2\mathbb{R}^{2}.

  • (a)  ⟨(11),(21)⟩\langle\begin{pmatrix}1\\ 1\end{pmatrix},\begin{pmatrix}2\\ 1\end{pmatrix}\rangle     (b)  ⟨(01),(−13)⟩\langle\begin{pmatrix}0\\ 1\end{pmatrix},\begin{pmatrix}-1\\ 3\end{pmatrix}\rangle     (c)  ⟨(01),(−10)⟩\langle\begin{pmatrix}0\\ 1\end{pmatrix},\begin{pmatrix}-1\\ 0\end{pmatrix}\rangle

Then turn those orthogonal bases into orthonormal bases.

3.0

Exercise 5

Perform the Gram-Schmidt process on each of these bases for R3\mathbb{R}^{3}.

  • (a)  ⟨(222),(10−1),(031)⟩\langle\begin{pmatrix}2\\ 2\\ 2\end{pmatrix},\begin{pmatrix}1\\ 0\\ -1\end{pmatrix},\begin{pmatrix}0\\ 3\\ 1\end{pmatrix}\rangle     (b)  ⟨(1−10),(010),(231)⟩\langle\begin{pmatrix}1\\ -1\\ 0\end{pmatrix},\begin{pmatrix}0\\ 1\\ 0\end{pmatrix},\begin{pmatrix}2\\ 3\\ 1\end{pmatrix}\rangle

Then turn those orthogonal bases into orthonormal bases.

3.0

Exercise 6

Find an orthonormal basis for this subspace of R3\mathbb{R}^{3}: the plane x−y+z=0x-y+z=0.

3.0

Exercise 7

Find an orthonormal basis for this subspace of R4\mathbb{R}^{4}.

{(xyzw)∣x−y−z+w=0 and x+z=0}\{\hskip 1.00006pt\begin{pmatrix}x\\ y\\ z\\ w\end{pmatrix}\mid x-y-z+w=0\text{\ and\ }x+z=0\hskip 1.00006pt\}
3.0

Exercise 8

Show that any linearly independent subset of Rn\mathbb{R}^{n} can be orthogonalized without changing its span.

3.0

Exercise 9

What happens if we try to apply the Gram-Schmidt process to a finite set that is not a basis?

3.0

Exercise 10

What happens if we apply the Gram-Schmidt process to a basis that is already orthogonal?

3.0

Exercise 12

Find a nonzero vector in R3\mathbb{R}^{3} that is orthogonal to both of these.

3.0

Exercise 13

One advantage of orthogonal bases is that they simplify finding the representation of a vector with respect to that basis.

  • For this vector and this non-orthogonal basis for R2\mathbb{R}^{2}

    first represent the vector with respect to the basis. Then project the vector into the span of each basis vector [β⃗1][\smash{\vec{\beta}_{1}}] and [β⃗2][\smash{\vec{\beta}_{2}}].

  • With this orthogonal basis for R2\mathbb{R}^{2}

    represent the same vector v⃗\vec{v} with respect to the basis. Then proj…

3.0

Exercise 14

Bessel’s Inequality. Consider these orthonormal sets

along with the vector v⃗∈R4\vec{v}\in\mathbb{R}^{4} whose components are 44, 33, 22, and 11.

  • Find the coefficient c1c_{1} for the projection of v⃗\vec{v} into the span of the vector in B1B_{1}. Check that ∣v⃗ ∣2≥∣c1∣2\lvert\vec{v}\,\rvert^{2}\geq\lvert c_{1}\rvert^{2}.

  • Find the coefficients c1c_{1} and c2c_{2} for the projection of v⃗\vec{v} into the spans of the two vectors in B2B_{2}. Check that ∣v⃗ ∣2≥∣c1∣2+∣c2∣2\lvert\vec{v}\,\rvert^{2}\geq\lvert c_{1}\rvert^{2}+\lvert c_{2}\rvert^{2}.

  • Find c1c_{1}, c2c_{2}, and c3c_{3} associated with the vectors in B3B_{3}, and c1c_{1}, c2c_{2}, c3c_{3}, and c4c_{4} for th…

3.0

Exercise 15

Prove or disprove: every vector in Rn\mathbb{R}^{n} is in some orthogonal basis.

3.0

Exercise 16

Show that the columns of an n ⁣× ⁣nn\!\times\!n matrix form an orthonormal set if and only if the inverse of the matrix is its transpose. Produce such a matrix.

3.0

Exercise 17

Does the proof of Theorem 2.2 fail to consider the possibility that the set of vectors is empty (i.e., that k=0k=0)?

3.0

Exercise 18

Theorem 2.7 describes a change of basis from any basis B=⟨β⃗1,…,β⃗k⟩B=\langle\vec{\beta}_{1},\ldots,\vec{\beta}_{k}\rangle to one that is orthogonal K=⟨κ⃗1,…,κ⃗k⟩K=\langle\vec{\kappa}_{1},\ldots,\vec{\kappa}_{k}\rangle. Consider the change of basis matrix RepB,K(id⁡){\rm Rep}_{B,K}(\operatorname{id}).

  • Prove that the matrix RepK,B(id⁡){\rm Rep}_{K,B}(\operatorname{id}) changing bases in the direction opposite to that of the theorem has an upper triangular shape — all of its entries below the main diagonal are zeros.

  • Prove that the inverse of an upper triangular matrix is also upper triangular (if the matrix is i…

3.0

Exercise 19

Complete the induction argument in the proof of Theorem 2.7.

3.0

Adapted from Linear Algebra © 2016 Jim Hefferon. Licensed under CC BY-SA 3.0 US. Source: Linear Algebra. Imported at revision df2262e.