Linear-Algebra-Done-Right Β· Unit 15 Β· Video 2 Β· Interactive Practice

Gram-Schmidt, Orthonormal Bases and Schur's Theorem

IKey Formulas

FormulaNameHypotheses
f1=v1f_1 = v_1, Β fk=vkβˆ’βŸ¨vk,f1⟩βˆ₯f1βˆ₯2f1βˆ’β‹―βˆ’βŸ¨vk,fkβˆ’1⟩βˆ₯fkβˆ’1βˆ₯2fkβˆ’1\ f_k = v_k - \dfrac{\langle v_k, f_1 \rangle}{\|f_1\|^2} f_1 - \cdots - \dfrac{\langle v_k, f_{k-1} \rangle}{\|f_{k-1}\|^2} f_{k-1}Gram–Schmidt stepv1,…,vmv_1, \dots, v_m linearly independent in VV, k=2,…,mk = 2, \dots, m
ek=fkβˆ₯fkβˆ₯e_k = \dfrac{f_k}{\|f_k\|}, Β span⁑(v1,…,vk)=span⁑(e1,…,ek)\ \operatorname{span}(v_1, \dots, v_k) = \operatorname{span}(e_1, \dots, e_k)Normalize; initial spans preservedfkβ‰ 0f_k \neq 0 because the vv's are independent; k=1,…,mk = 1, \dots, m
Every orthonormal list e1,…,eme_1, \dots, e_m extends to an orthonormal basis of VVExistence and extensionVV a finite-dimensional inner product space
M(T,(e1,…,en))\mathcal{M}\big(T, (e_1, \dots, e_n)\big) is upper triangular for some orthonormal basisSchur's theoremVV a finite-dimensional complex inner product space, T∈L(V)T \in \mathcal{L}(V)

Key Insight: Gram–Schmidt keeps every initial span span⁑(v1,…,vk)\operatorname{span}(v_1, \dots, v_k), so anything defined by those subspaces β€” such as their invariance under TT β€” passes from a basis to an orthonormal basis.

IIOne Gram–Schmidt Step in R2\mathbf{R}^2

Subtracting the component of v2v_2 along f1f_1 leaves a vector f2f_2 orthogonal to f1f_1 β€” unless v2∈span⁑(v1)v_2 \in \operatorname{span}(v_1).

IIIGram–Schmidt on 1,x,x21, x, x^2 in P2(R)\mathcal{P}_2(\mathbf{R})

With ⟨p,q⟩=βˆ«βˆ’11pq\langle p, q \rangle = \int_{-1}^{1} pq, every inner product in the procedure is a signed area.

Step 1 β€” f1f_1 and its norm

f1=1,βˆ₯f1βˆ₯2=βˆ«βˆ’111 dt=2f_1 = 1, \qquad \|f_1\|^2 = \int_{-1}^{1} 1\,dt = 2

IVWhy Gram–Schmidt Proves Schur's Theorem

On a two-dimensional space, M(T,(v1,v2))\mathcal{M}\big(T, (v_1, v_2)\big) is upper triangular exactly when span⁑(v1)\operatorname{span}(v_1) is invariant, and Gram–Schmidt gives span⁑(e1)=span⁑(v1)\operatorname{span}(e_1) = \operatorname{span}(v_1).

πŸ’‘ Over C2\mathbf{C}^2 the rotation has eigenvalues ii and βˆ’i-i, so its minimal polynomial z2+1=(zβˆ’i)(z+i)z^2 + 1 = (z - i)(z + i) splits and Schur's theorem applies.

VQuiz Questions

Problem 1 Β· One Gram–Schmidt Step

Given: In R3\mathbf{R}^3 with the Euclidean inner product, v1=(1,1,0)v_1 = (1, 1, 0) and v2=(1,0,1)v_2 = (1, 0, 1). Find f2f_2 from the Gram–Schmidt procedure.

βœ… Correct! ⟨v2,f1⟩=1\langle v_2, f_1 \rangle = 1 and βˆ₯f1βˆ₯2=2\|f_1\|^2 = 2, so f2=v2βˆ’12f1f_2 = v_2 - \tfrac{1}{2} f_1, and indeed ⟨f2,f1⟩=12βˆ’12+0=0\langle f_2, f_1 \rangle = \tfrac12 - \tfrac12 + 0 = 0.
❌ Not quite. You subtracted ⟨v2,f1⟩f1\langle v_2, f_1 \rangle f_1 without dividing by βˆ₯f1βˆ₯2=2\|f_1\|^2 = 2; that formula is only right when f1f_1 is a unit vector. Check: ⟨(0,βˆ’1,1),(1,1,0)⟩=βˆ’1β‰ 0\langle (0, -1, 1), (1, 1, 0) \rangle = -1 \neq 0.
❌ Not quite. Nothing is subtracted only when ⟨v2,f1⟩=0\langle v_2, f_1 \rangle = 0, but here ⟨v2,f1⟩=1\langle v_2, f_1 \rangle = 1.
❌ Close, but… the coefficient divides by βˆ₯f1βˆ₯2\|f_1\|^2, not βˆ₯f1βˆ₯\|f_1\|. The component of v2v_2 along f1f_1 is ⟨v2,f1⟩βˆ₯f1βˆ₯2f1\dfrac{\langle v_2, f_1 \rangle}{\|f_1\|^2} f_1.
❌ Not quite. Use f2=v2βˆ’βŸ¨v2,f1⟩βˆ₯f1βˆ₯2f1f_2 = v_2 - \dfrac{\langle v_2, f_1 \rangle}{\|f_1\|^2} f_1 with f1=v1f_1 = v_1.
Show solution

Set f1=v1=(1,1,0)f_1 = v_1 = (1, 1, 0), so βˆ₯f1βˆ₯2=1+1+0=2\|f_1\|^2 = 1 + 1 + 0 = 2. Next ⟨v2,f1⟩=1β‹…1+0β‹…1+1β‹…0=1\langle v_2, f_1 \rangle = 1\cdot 1 + 0 \cdot 1 + 1 \cdot 0 = 1. Therefore

f2=v2βˆ’βŸ¨v2,f1⟩βˆ₯f1βˆ₯2f1=(1,0,1)βˆ’12(1,1,0)=(12,βˆ’12,1).f_2 = v_2 - \frac{\langle v_2, f_1 \rangle}{\|f_1\|^2} f_1 = (1, 0, 1) - \tfrac{1}{2}(1, 1, 0) = \big(\tfrac{1}{2}, -\tfrac{1}{2}, 1\big).

Check: ⟨f2,f1⟩=12βˆ’12+0=0\langle f_2, f_1 \rangle = \tfrac{1}{2} - \tfrac{1}{2} + 0 = 0. Normalizing, βˆ₯f2βˆ₯2=14+14+1=32\|f_2\|^2 = \tfrac14 + \tfrac14 + 1 = \tfrac32, so e1=12(1,1,0)e_1 = \tfrac{1}{\sqrt{2}}(1, 1, 0) and e2=16(1,βˆ’1,2)e_2 = \tfrac{1}{\sqrt{6}}(1, -1, 2).

Problem 2 Β· Where Linear Independence Is Used

Given: In R3\mathbf{R}^3 with the Euclidean inner product, run the Gram–Schmidt formulas on v1=(1,0,1)v_1 = (1, 0, 1), v2=(2,1,2)v_2 = (2, 1, 2), v3=(0,1,0)v_3 = (0, 1, 0). What happens at k=3k = 3?

βœ… Correct! v3=v2βˆ’2v1v_3 = v_2 - 2v_1 lies in span⁑(v1,v2)=span⁑(f1,f2)\operatorname{span}(v_1, v_2) = \operatorname{span}(f_1, f_2), so subtracting its components along f1f_1 and f2f_2 leaves 00.
❌ Not quite. You subtracted only the component along f1f_1. The formula also subtracts the component along f2=(0,1,0)f_2 = (0, 1, 0), and ⟨v3,f2⟩=1\langle v_3, f_2 \rangle = 1.
❌ Close, but… f3=0f_3 = 0 is right, but e3=f3/βˆ₯f3βˆ₯e_3 = f_3 / \|f_3\| divides by βˆ₯f3βˆ₯=0\|f_3\| = 0, so it is undefined, not 00. And a list containing 00 cannot be orthonormal: every vector in it must have norm 11.
❌ Not quite. 12(1,0,βˆ’1)\tfrac{1}{\sqrt 2}(1, 0, -1) would extend e1,e2e_1, e_2 to an orthonormal basis of R3\mathbf{R}^3, but it is not what the formula produces from v3v_3: compute f3f_3 first.
❌ Not quite. Compute f2f_2 first, then f3=v3βˆ’βŸ¨v3,f1⟩βˆ₯f1βˆ₯2f1βˆ’βŸ¨v3,f2⟩βˆ₯f2βˆ₯2f2f_3 = v_3 - \frac{\langle v_3, f_1 \rangle}{\|f_1\|^2} f_1 - \frac{\langle v_3, f_2 \rangle}{\|f_2\|^2} f_2.
Show solution

f1=(1,0,1)f_1 = (1, 0, 1), βˆ₯f1βˆ₯2=2\|f_1\|^2 = 2, ⟨v2,f1⟩=4\langle v_2, f_1 \rangle = 4, so f2=(2,1,2)βˆ’42(1,0,1)=(0,1,0)f_2 = (2, 1, 2) - \tfrac{4}{2}(1, 0, 1) = (0, 1, 0) with βˆ₯f2βˆ₯2=1\|f_2\|^2 = 1.

Then ⟨v3,f1⟩=0\langle v_3, f_1 \rangle = 0 and ⟨v3,f2⟩=1\langle v_3, f_2 \rangle = 1, so

f3=(0,1,0)βˆ’02(1,0,1)βˆ’11(0,1,0)=(0,0,0).f_3 = (0, 1, 0) - \tfrac{0}{2}(1, 0, 1) - \tfrac{1}{1}(0, 1, 0) = (0, 0, 0).

Dividing by βˆ₯f3βˆ₯=0\|f_3\| = 0 is impossible. This is exactly the case the proof rules out: v3=v2βˆ’2v1∈span⁑(v1,v2)v_3 = v_2 - 2v_1 \in \operatorname{span}(v_1, v_2), so the list is linearly dependent, and the first vector in the span of the earlier ones gives fk=0f_k = 0.

Problem 3 Β· The Example Moved to [0,1][0, 1]

Given: P2(R)\mathcal{P}_2(\mathbf{R}) with ⟨p,q⟩=∫01pq\langle p, q \rangle = \int_{0}^{1} pq, and the basis 1,x,x21, x, x^2. Find f2f_2, e2e_2 and f3f_3 from the Gram–Schmidt procedure.

What is f2f_2?

What is e2e_2?

What is f3f_3?

βœ… Correct! On [0,1][0, 1] nothing is odd, so every coefficient has to be computed: f2=xβˆ’12f_2 = x - \tfrac12, βˆ₯f2βˆ₯2=112\|f_2\|^2 = \tfrac{1}{12}, and f3=x2βˆ’x+16f_3 = x^2 - x + \tfrac16.
❌ Close, but… ⟨x,1⟩=0\langle x, 1 \rangle = 0 came from odd symmetry on [βˆ’1,1][-1, 1]. On [0,1][0, 1], ⟨x,1⟩=∫01t dt=12\langle x, 1 \rangle = \int_0^1 t\,dt = \tfrac12 and βˆ₯1βˆ₯2=1\|1\|^2 = 1.
❌ Check f2f_2. f2=xβˆ’βŸ¨x,1⟩βˆ₯1βˆ₯2β‹…1f_2 = x - \dfrac{\langle x, 1 \rangle}{\|1\|^2}\cdot 1 with ⟨x,1⟩=∫01t dt\langle x, 1 \rangle = \int_0^1 t\,dt and βˆ₯1βˆ₯2=∫011 dt\|1\|^2 = \int_0^1 1\,dt.
❌ Not quite. 3/2\sqrt{3/2} normalizes xx on [βˆ’1,1][-1, 1]. Here βˆ₯f2βˆ₯2=∫01(tβˆ’12)2dt=112\|f_2\|^2 = \int_0^1 \big(t - \tfrac12\big)^2 dt = \tfrac{1}{12}.
❌ Check e2e_2. Divide f2f_2 by βˆ₯f2βˆ₯=1/12\|f_2\| = \sqrt{1/12} β€” by the norm, not the norm squared β€” which multiplies by 12=23\sqrt{12} = 2\sqrt{3}.
❌ Not quite. x2βˆ’13x^2 - \tfrac13 is the answer on [βˆ’1,1][-1, 1]. On [0,1][0, 1], ⟨x2,f2⟩=112β‰ 0\langle x^2, f_2 \rangle = \tfrac{1}{12} \neq 0, so a multiple of f2f_2 must also be subtracted.
❌ Close, but… you subtracted ⟨x2,f2⟩f2\langle x^2, f_2 \rangle f_2 without dividing by βˆ₯f2βˆ₯2=112\|f_2\|^2 = \tfrac{1}{12}. The coefficient is 1/121/12=1\tfrac{1/12}{1/12} = 1.
❌ Check f3f_3. f3=x2βˆ’βŸ¨x2,1⟩βˆ₯f1βˆ₯2β‹…1βˆ’βŸ¨x2,f2⟩βˆ₯f2βˆ₯2f2f_3 = x^2 - \dfrac{\langle x^2, 1 \rangle}{\|f_1\|^2}\cdot 1 - \dfrac{\langle x^2, f_2 \rangle}{\|f_2\|^2} f_2; verify your answer integrates to 00 against 11 and against xx.
Show solution

f1f_1. f1=1f_1 = 1, βˆ₯f1βˆ₯2=∫011 dt=1\|f_1\|^2 = \int_0^1 1\,dt = 1.

f2f_2. ⟨x,1⟩=∫01t dt=12\langle x, 1 \rangle = \int_0^1 t\,dt = \tfrac12, so f2=xβˆ’1/21β‹…1=xβˆ’12f_2 = x - \tfrac{1/2}{1}\cdot 1 = x - \tfrac12.

e2e_2.

βˆ₯f2βˆ₯2=∫01(tβˆ’12)2dt=13βˆ’12+14=112,e2=f2βˆ₯f2βˆ₯=12(xβˆ’12)=23(xβˆ’12).\|f_2\|^2 = \int_0^1 \Big(t - \tfrac12\Big)^2 dt = \tfrac13 - \tfrac12 + \tfrac14 = \tfrac{1}{12}, \qquad e_2 = \frac{f_2}{\|f_2\|} = \sqrt{12}\Big(x - \tfrac12\Big) = 2\sqrt{3}\Big(x - \tfrac12\Big).

f3f_3. ⟨x2,1⟩=13\langle x^2, 1 \rangle = \tfrac13, and ⟨x2,f2⟩=∫01(t3βˆ’12t2)dt=14βˆ’16=112\langle x^2, f_2 \rangle = \int_0^1 \big(t^3 - \tfrac12 t^2\big)dt = \tfrac14 - \tfrac16 = \tfrac{1}{12}, so

f3=x2βˆ’1/31β‹…1βˆ’1/121/12(xβˆ’12)=x2βˆ’x+16.f_3 = x^2 - \frac{1/3}{1}\cdot 1 - \frac{1/12}{1/12}\Big(x - \tfrac12\Big) = x^2 - x + \tfrac16.

Check: ∫01(t2βˆ’t+16)dt=13βˆ’12+16=0\int_0^1 \big(t^2 - t + \tfrac16\big)dt = \tfrac13 - \tfrac12 + \tfrac16 = 0 and ∫01t(t2βˆ’t+16)dt=14βˆ’13+112=0\int_0^1 t\big(t^2 - t + \tfrac16\big)dt = \tfrac14 - \tfrac13 + \tfrac{1}{12} = 0.

Problem 4 Β· Schur's Proof by Hand

Given: T∈L(R2)T \in \mathcal{L}(\mathbf{R}^2), T(x,y)=(3x,x+2y)T(x, y) = (3x, x + 2y), with the Euclidean inner product. Its matrix with respect to the standard basis is (3012)\begin{pmatrix} 3 & 0 \\ 1 & 2 \end{pmatrix}, which is not upper triangular. Find an orthonormal basis e1,e2e_1, e_2 that makes M(T)\mathcal{M}(T) upper triangular, and that matrix.

Which unit vector e1e_1 has span⁑(e1)\operatorname{span}(e_1) invariant under TT?

With e2=12(1,βˆ’1)e_2 = \tfrac{1}{\sqrt{2}}(1, -1), what is M(T,(e1,e2))\mathcal{M}\big(T, (e_1, e_2)\big)?

βœ… Correct! e1e_1 is an eigenvector (Te1=3e1Te_1 = 3e_1), so span⁑(e1)\operatorname{span}(e_1) is invariant and the matrix is upper triangular, with the eigenvalues 3,23, 2 on the diagonal.
❌ Not quite. T(1,0)=(3,1)T(1, 0) = (3, 1) is not a multiple of (1,0)(1, 0), which is why the standard matrix has the entry 11 below the diagonal.
❌ Check e1e_1. span⁑(e1)\operatorname{span}(e_1) is invariant exactly when Te1Te_1 is a multiple of e1e_1; apply TT to each candidate.
❌ Not quite. That is the matrix with respect to the standard basis. The entries now are ⟨Tej,ei⟩\langle Te_j, e_i \rangle in the new basis.
❌ Close, but… the first diagonal entry is the eigenvalue of e1e_1: Te1=3e1Te_1 = 3e_1, so it is 33, not 22.
❌ Close, but… check the sign of ⟨Te2,e1⟩\langle Te_2, e_1 \rangle: Te2=12(3,βˆ’1)Te_2 = \tfrac{1}{\sqrt2}(3, -1) and e1=12(1,1)e_1 = \tfrac{1}{\sqrt2}(1, 1) give 3βˆ’12=1\tfrac{3 - 1}{2} = 1. The value βˆ’1-1 belongs to e2=12(βˆ’1,1)e_2 = \tfrac{1}{\sqrt2}(-1, 1).
❌ Check the matrix. Column jj holds the coordinates of TejTe_j; with an orthonormal basis, entry (i,j)(i, j) is ⟨Tej,ei⟩\langle Te_j, e_i \rangle.
Show solution

Choosing e1e_1. Apply TT to each candidate: T(1,0)=(3,1)T(1, 0) = (3, 1), T(1,βˆ’1)=(3,βˆ’1)T(1, -1) = (3, -1), T(1,2)=(3,5)T(1, 2) = (3, 5), none a multiple of the input; but T(1,1)=(3,3)=3(1,1)T(1, 1) = (3, 3) = 3(1, 1). So (1,1)(1, 1) is an eigenvector with eigenvalue 33 and e1=12(1,1)e_1 = \tfrac{1}{\sqrt2}(1, 1).

Following Schur's proof. The basis v1=(1,1)v_1 = (1, 1), v2=(1,0)v_2 = (1, 0) makes M(T)\mathcal{M}(T) upper triangular because span⁑(v1)\operatorname{span}(v_1) is invariant. Gram–Schmidt gives f2=(1,0)βˆ’12(1,1)=12(1,βˆ’1)f_2 = (1, 0) - \tfrac{1}{2}(1, 1) = \tfrac12(1, -1), so e1=12(1,1)e_1 = \tfrac{1}{\sqrt2}(1, 1), e2=12(1,βˆ’1)e_2 = \tfrac{1}{\sqrt2}(1, -1), and span⁑(e1)=span⁑(v1)\operatorname{span}(e_1) = \operatorname{span}(v_1) is still invariant.

The matrix. Te1=3e1Te_1 = 3e_1 and Te2=12(3,βˆ’1)Te_2 = \tfrac{1}{\sqrt2}(3, -1), so

⟨Te1,e1⟩=3,⟨Te1,e2⟩=0,⟨Te2,e1⟩=3βˆ’12=1,⟨Te2,e2⟩=3+12=2,\langle Te_1, e_1 \rangle = 3,\quad \langle Te_1, e_2 \rangle = 0,\quad \langle Te_2, e_1 \rangle = \tfrac{3 - 1}{2} = 1,\quad \langle Te_2, e_2 \rangle = \tfrac{3 + 1}{2} = 2, M(T,(e1,e2))=(3102).\mathcal{M}\big(T, (e_1, e_2)\big) = \begin{pmatrix} 3 & 1 \\ 0 & 2 \end{pmatrix}.

Indeed Te2=e1+2e2Te_2 = e_1 + 2e_2. The diagonal holds the eigenvalues 33 and 22.

Solved: 0 / 4