LINEAR-ALGEBRA

The Right Basis Changes Everything

IKey Formulas

Formula Name Description
T(vj)=a1jv1+a2jv2+โ‹ฏ+anjvnT(v_j) = a_{1j}v_1 + a_{2j}v_2 + \cdots + a_{nj}v_n Column recipe Column jj of AA tells how T(vj)T(v_j) decomposes in the basis
B=Mโˆ’1AMB = M^{-1} A M Change of basis Relates two matrix representations of the same TT
T(vi)=ฮปiviT(v_i) = \lambda_i v_i Eigenvector condition If basis is eigenvectors, A=diag(ฮป1,โ€ฆ,ฮปn)A = \text{diag}(\lambda_1, \dots, \lambda_n)
Dn=diag(ฮป1n,โ€ฆ,ฮปnn)D^n = \text{diag}(\lambda_1^n, \dots, \lambda_n^n) Power of diagonal Eigenbasis makes iteration trivial

IIVisualization 1 โ€” Same Transformation, Two Matrices

One transformation TT wears a tangled matrix in the standard basis and a clean diagonal one in its eigenbasis.

๐Ÿ’ก Challenge: set ฮธ=0ยฐ\theta = 0\degree or ฮป1=ฮป2\lambda_1 = \lambda_2 and watch AA's off-diagonal entries vanish โ€” both matrices coincide.

IIIVisualization 2 โ€” Iterating T: Why Diagonal Wins

Applying TT nn times means AnA^n in the standard basis, but only Dn=diagโก(ฮป1n,ฮป2n)D^n=\operatorname{diag}(\lambda_1^n,\lambda_2^n) in the eigenbasis.

๐Ÿ’ก The eigenbasis is the dream, but finding it costs about O(n3)O(n^3) โ€” which is why large-scale work leans on the cheaper, nearly-diagonalizing Fourier and wavelet bases.

IVVisualization 3 โ€” Columns Are Where Basis Vectors Land

Each column of a transformation's matrix is simply the coordinates of where a basis vector lands.

VQuiz Questions

Question 1

Let T:R2โ†’R2T: \mathbb{R}^2 \to \mathbb{R}^2 be a linear transformation. Using the standard basis (e1,e2)(e_1, e_2), suppose

T(e1)=3e1+5e2,T(e2)=โˆ’2e1+4e2.T(e_1) = 3e_1 + 5e_2, \quad T(e_2) = -2e_1 + 4e_2.

What is the matrix of TT in the standard basis?

โœ… Correct! Each T(ej)T(e_j) becomes column jj, not row jj.

โŒ Not quite. You wrote the coefficients as rows instead of columns. The vector T(e1)=(3,5)T(e_1) = (3, 5) goes down column 1, not across row 1.

โŒ Not quite. Remember: column jj of AA is exactly the coefficient vector of T(ej)T(e_j) in the chosen basis.

Show solution

Solution:

Column jj of the matrix is the coefficients of T(ej)T(e_j) in the basis.

  • T(e1)=3e1+5e2T(e_1) = 3e_1 + 5e_2 โ†’ column 1 is (3,5)(3, 5)
  • T(e2)=โˆ’2e1+4e2T(e_2) = -2e_1 + 4e_2 โ†’ column 2 is (โˆ’2,4)(-2, 4)

Stacking these as columns: A=[3โˆ’254]A = \begin{bmatrix} 3 & -2 \\ 5 & 4 \end{bmatrix}

The answer is [[3, -2], [5, 4]].

Question 2

Suppose AA and BB are similar matrices related by B=Mโˆ’1AMB = M^{-1} A M for some invertible MM.

True or False: AA and BB represent different linear transformations.

โœ… Correct! Similar matrices describe the same TT in different bases โ€” the matrix is just a costume.

โŒ Not quite. Similar matrices describe the same transformation. The formula B=Mโˆ’1AMB = M^{-1}AM is exactly how the same TT looks under a change of basis.

โŒ Not quite. Try again โ€” the hints above can help.

Show solution

Solution:

The statement is False.

Similar matrices represent the same linear transformation TT, just expressed in different bases. The matrix MM is the change-of-basis matrix that translates coordinates from one basis to the other:

B=Mโˆ’1AMB = M^{-1} A M

Read right to left: start with a vector in the BB-basis, apply MM to translate to the AA-basis, apply AA (the transformation), then apply Mโˆ’1M^{-1} to translate back. Same transformation TT โ€” different coordinate language.

This is the central insight of the video: a transformation is one thing, but its matrix depends on the basis.

Question 3

A linear transformation T:R3โ†’R3T: \mathbb{R}^3 \to \mathbb{R}^3 has three eigenvectors v1,v2,v3v_1, v_2, v_3 forming a basis, with eigenvalues ฮป1=4\lambda_1 = 4, ฮป2=โˆ’1\lambda_2 = -1, ฮป3=2\lambda_3 = 2.

What is the matrix of TT in the eigenvector basis (v1,v2,v3)(v_1, v_2, v_3)?

โœ… Correct! In the eigenvector basis, TT is diagonal with the eigenvalues on the diagonal.

โŒ Not quite. Those would be eigenvalues of Tโˆ’1T^{-1}, not TT. Since T(vi)=ฮปiviT(v_i) = \lambda_i v_i, column ii has ฮปi\lambda_i (not 1/ฮปi1/\lambda_i) on the diagonal.

โŒ Not quite. Using the column recipe with the eigenvector condition T(vi)=ฮปiviT(v_i) = \lambda_i v_i produces a diagonal matrix.

Show solution

Solution:

Apply the column recipe in the eigenvector basis:

  • T(v1)=ฮป1v1=4v1=4v1+0v2+0v3T(v_1) = \lambda_1 v_1 = 4 v_1 = 4v_1 + 0 v_2 + 0 v_3 โ†’ column 1 is (4,0,0)(4, 0, 0)
  • T(v2)=ฮป2v2=โˆ’v2=0v1+(โˆ’1)v2+0v3T(v_2) = \lambda_2 v_2 = -v_2 = 0 v_1 + (-1) v_2 + 0 v_3 โ†’ column 2 is (0,โˆ’1,0)(0, -1, 0)
  • T(v3)=ฮป3v3=2v3=0v1+0v2+2v3T(v_3) = \lambda_3 v_3 = 2 v_3 = 0 v_1 + 0 v_2 + 2 v_3 โ†’ column 3 is (0,0,2)(0, 0, 2)

So the matrix is:

D=[4000โˆ’10002]=diag(4,โˆ’1,2)D = \begin{bmatrix} 4 & 0 & 0 \\ 0 & -1 & 0 \\ 0 & 0 & 2 \end{bmatrix} = \text{diag}(4, -1, 2)

This is the central magic of the eigenvector basis: TT becomes diagonal, and every direction is independent.

Question 4

For an image with about n=106n = 10^6 pixels, we'd love to diagonalize transformations like blurring or compression using the eigenvector basis. In practice, engineers use the Fourier basis or wavelet basis instead.

What is the main reason for this choice?

โœ… Correct! The eigenvector basis is the ideal but unreachable choice; Fourier and wavelet bases are the practical near-diagonal alternatives.

โŒ Not quite. The eigenvector basis diagonalizes TT exactly, but its cost (O(n3)O(n^3)) is prohibitive at scale. Fourier and wavelets diagonalize approximately โ€” that's the trade.

Show solution

Solution:

The eigenvector basis would be the ideal choice โ€” it diagonalizes TT perfectly. But finding eigenvectors of an nร—nn \times n matrix costs roughly O(n3)O(n^3) operations, and at n=106n = 10^6 this is around 101810^{18} operations โ€” completely impractical, and numerically unstable too.

The engineering compromise:

  • Fourier basis (O(nlogโกn)O(n \log n) via FFT) โ€” nearly diagonalizes shift-invariant operations. Used in JPEG, MP3.
  • Wavelet basis (O(n)O(n)) โ€” nearly diagonalizes localized operations. Used in JPEG 2000, MRI reconstruction.

These bases aren't the true eigenvectors, but they're close enough that the resulting matrix is approximately diagonal, while being cheap to compute. That trade โ€” perfect diagonalization for computational feasibility โ€” is the heart of modern signal processing.

Solved: 0 / 4