Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Open In Colab Binder

Prerequisites: §9.1.2 (orthonormal bases), §9.1.3 (Gram-Schmidt orthogonalization)

This experiment shows the step-by-step geometry of Gram-Schmidt orthogonalization:

  • Input vectors are drawn as dashed arrows, and orthonormal basis vectors as solid arrows

  • The step slider controls how many vectors have been processed (each step shows the projection arrows and the residual)

  • The orthogonality panel shows the Gram matrix Gij=⟨ei,ej⟩G_{ij} = \langle \mathbf{e}_i, \mathbf{e}_j \rangle in real time, verifying orthonormality

Key experiment: click “⚠ Nearly dependent” and observe the degenerate behavior ∥w1∥→0\|\mathbf{w}_1\| \to 0.

Loading...

Guided Key Observations

Q1 (orthogonality) Push the step slider all the way to the right. What are the values of the off-diagonal entries of the Gram matrix? What does this show?

Q2 (degeneracy) Click “⚠ Nearly dependent,” then push the step to v₁ and observe the value of ∥w1∥\|\mathbf{w}_1\|.
Change v₁ to be exactly equal to v₀. What does ∥w1∥\|\mathbf{w}_1\| become? Why does the algorithm mark the step “skipped”?

Q3 (already orthogonal input) Click “Orthogonal set” and observe whether any projection arrows appear at each step.
Which conclusion does this verify: ⟨ej,vk⟩=0⇒projej(vk)=0\langle \mathbf{e}_j, \mathbf{v}_k \rangle = 0 \Rightarrow \text{proj}_{\mathbf{e}_j}(\mathbf{v}_k) = \mathbf{0}?

Q4 (orthogonality in R³) Switch to ℝ³ mode. After all the steps are complete, what are the diagonal and off-diagonal entries of the 3×33 \times 3 Gram matrix?