Linear Algebra 101

Labs & Demos

Interactive pages for this course. Every number on them is computed in your browser — nothing is a recorded animation, and nothing calls out to a server.

12 labs · 8 interactive demos
How to read these. Each page states which of its numbers are computed, which come from a published figure, and which are illustrative. Several were generated with AI assistance and say so on the page. They are teaching instruments, not measurements of real hardware.

Labs

Lab: Vector Playground

One number tells you: line or plane?

M1Lab4 steps
What you will do
  1. The determinant decides independence
  2. A zero determinant collapses the span
  3. The angle between two vectors
  4. Projection divides by the square

Lab: Linear System Solver

One check tells you: one, none, or infinitely many?

M3Lab4 steps
What you will do
  1. The determinant decides the unique case
  2. A rank gap means no solution
  3. A free variable means infinitely many
  4. The unique solution of a 3×3

Lab: Eigenvalue Explorer

Which directions does a matrix leave alone?

M4Lab5 steps
What you will do
  1. A symmetric matrix has real eigenvalues
  2. Its eigenvectors are orthogonal
  3. The trace is the sum of the eigenvalues
  4. The determinant is the product of the eigenvalues
  5. A rotation has no real eigen-direction

Lab: Orthogonality and Projections

How do you drop a vector straight down onto a subspace?

M5Lab6 steps
What you will do
  1. Gram-Schmidt returns perpendicular vectors
  2. Each basis vector has unit length
  3. Projection drops the target straight down
  4. The residual is orthogonal to the subspace
  5. Least squares fits collinear points exactly
  6. An exact fit has zero residual

Lab: Fourier Series Builder

How can a stack of pure sine waves rebuild a sharp square wave?

M6Lab6 steps
What you will do
  1. The fundamental amplitude is 4/π
  2. Even harmonics vanish
  3. Different harmonics are orthogonal
  4. Each harmonic's square-norm is T/2
  5. More terms means less error
  6. The Gibbs overshoot never goes away

Lab: Numerical Experiments

When does a matrix amplify the errors you feed it?

M9Lab6 steps
What you will do
  1. A perfectly-conditioned matrix has κ = 1
  2. A stretched matrix is ill-conditioned
  3. A diagonally-dominant system has small ρ
  4. ρ < 1 means the iteration converges
  5. Without dominance, ρ > 1 and it diverges
  6. A near-singular system amplifies error by κ

Lab: PCA Explorer

Keep the few directions your data actually uses

M10Lab3 steps
What you will do
  1. Variance concentrates in the top PCs
  2. How many PCs reach 95%
  3. The dimensionality-reduction ratio

Demos

Eigenvalue Explorer

Set a 2×2 matrix and watch its characteristic polynomial, eigenvalues and eigenvectors compute live; rotate a unit vector and see its image land parallel to itself only along an eigen-line, while a negative discriminant means a complex pair and no real eigen-direction.

M4 · L1AI-generated

Linear System Solver

Type a 2×2 or 3×3 system A x = b and watch Gaussian elimination with partial pivoting run to row echelon form, the determinant appear as the product of the pivots, and the system classified as one solution, none, or infinitely many — with the two lines drawn for the 2×2 case.

M3 · L1AI-generated

Fourier Series Builder

From lesson Inner Products

Rebuild a periodic waveform (square, sawtooth, triangle, pulse) from its Fourier harmonics, with each coefficient computed as an inner product of the function with a sine or cosine — the series as an orthogonal projection. Watch the RMS error fall as terms are added, the orthogonality table sit at zero off the diagonal, and the ~9% Gibbs overshoot at a jump narrow but never shrink.

M6 · L1AI-generated

Numerical Experiments

Set a 2×2 or 3×3 matrix and watch the numerics: the condition number κ = σmax/σmin computed by power and inverse-power iteration on AᵀA, the image ellipse whose axis ratio is κ, Jacobi and Gauss–Seidel with their convergence trace and the spectral radius that decides convergence, and how ill-conditioning amplifies a perturbation of b within the κ bound.

M9 · L1AI-generated