Linear Algebra for Engineers lecture 20: Change of Basis and Applications
Overview
Alex Townsend connects the four fundamental subspaces of an m-by-n matrix to orthogonality, then derives how to convert coordinates directly between any two bases using P_C^{-1}P_B. A color-processing example shows why the formula matters: RGB, a luminance/chrominance representation used for image compression, and Adobe's XYZ color space encode the same three-dimensional color data in different coordinate systems.
Key takeaways
- For an m-by-n matrix of rank r, the four fundamental subspaces have dimensions r, n-r, r, and m-r for Col(A), Null(A), Col(A^T), and Null(A^T), respectively.
- The orthogonality of Col(A) and Null(A^T) follows directly from b=Ax and A^T y=0, since b^T y=x^T A^T y=0.
- A rank-one 2-by-2 matrix A=CR^T has column-space basis C, row-space basis R, and null-space bases formed by perpendicular vectors (-c2,c1)^T and (-r2,r1)^T.
- For bases B and C, P_C^{-1}P_B converts B-coordinate vectors into C-coordinate vectors; its columns are the B basis vectors represented in C-coordinates.
- RGB, luminance/chrominance, and XYZ are alternative three-coordinate representations of color, and direct basis conversion lets image software move between them without using RGB as an intermediate.
Chapters
- For an m-by-n matrix A of rank r, Col(A) and Null(A) lie in R^m and R^n respectively, with dimensions r and n-r.
- Col(A^T) has dimension r, while Null(A^T) has dimension m-r; these dimensions follow from pivot and free-variable counts.
- The four subspaces occupy two different ambient spaces, but their dimensions and orthogonality connect them.
- A dot product is the matrix product x^T y, a 1-by-1 result that equals zero when the vectors are perpendicular.
- If b is in Col(A), write b=Ax; if y is in Null(A^T), then A^T y=0.
- The identity b^T y=(Ax)^T y=x^T A^T y=0 proves every vector in Col(A) is orthogonal to every vector in Null(A^T).
- Applying the same reasoning to A^T establishes the corresponding orthogonality between Col(A^T) and Null(A).
- A rank-one matrix factors as A=CR^T, where C is m-by-1 and R^T is 1-by-n.
- For a 2-by-2 example, A has entries c1r1, c1r2, c2r1, and c2r2.
- Every column is a multiple of C=(c1,c2)^T, so C is a basis for Col(A); the rows are multiples of R=(r1,r2)^T, giving a basis for Col(A^T).
- With m=n=2 and rank 1, both Null(A) and Null(A^T) have dimension 1.
- The vector (-c2,c1)^T is perpendicular to C, so it spans Null(A^T).
- The vector (-r2,r1)^T is perpendicular to R, so it spans Null(A).
- In two dimensions, negating and swapping entries gives a perpendicular vector; Townsend notes this shortcut does not generalize directly to higher dimensions.
- For a basis B, the matrix P_B places the basis vectors in its columns.
- Multiplying P_B by B-coordinates reconstructs the same vector in standard coordinates.
- The standard basis acts as an intermediate coordinate system, but practical applications may require converting directly between two nonstandard bases.
- An image stores each pixel as three values, commonly interpreted as red, green, and blue intensities.
- Image compression can use a different three-coordinate representation: luminance plus chromatic blue and chromatic red.
- The example also introduces Adobe's XYZ color space, showing why image software needs conversions between color-coordinate systems.
- Because human vision is more sensitive to luminance changes than chromatic changes, compression can reduce chromatic detail more aggressively.
- To convert B-coordinates to C-coordinates, Townsend composes the route from B to the standard basis and then from the standard basis to C.
- P_B converts B-coordinates to standard coordinates, and P_C^{-1} converts standard coordinates to C-coordinates.
- The direct conversion is therefore P_C^{-1}P_B, with the rightmost matrix applied first.
- This composition proves a change-of-basis matrix exists for any two bases of the same space.
- Each column of P_C^{-1}P_B is a basis vector from B expressed in C-coordinates.
- For three-dimensional color spaces, the conversion matrix is 3-by-3 and maps each of the three B basis colors into XYZ coordinates.
- An image application can apply this stored matrix to convert directly from a luminance/chrominance format to XYZ without routing each color through RGB.
- If C is the standard basis, P_C is the identity, so P_C^{-1}P_B reduces to P_B.
- This special case recovers the familiar conversion from B-coordinates to standard coordinates.
- The same column-by-column rule supports conversions among the many color spaces used for different applications.
Transcript excerpt
0:00 and 2940 have exactly the same setup. Not every professor agreed with us. We were trying to we were trying a movement to get every class to be run exactly the same way in engineering but we didn't win. Some people wanted to do different things. Makes sense. Okay. Um shall we get started? So okay. Okay, so lecture 20, this is section 4.6. This is the change of basis, the general change of basis section. Um, which makes no sense to anybody the first time you read it. So hopefully today I will it will make some more sense uh after today. But you probably need to read it. You probably should
0:46 read it after this class. Then it will make more sense. Anyway, let's start uh where we were before. So I give you some matrix like n byn. Maybe it's a flag. Maybe it's the bear. And uh I want I'm looking at the four fundamental subspaces. So here are the four ones, right? The common space of A, the common space of A transpose, the null space of A, the null space of A transpose. Okay? And the surprise is that even though these are subspaces in different space in different they're subspaces, this one is a subspace of Rn. This one is a subspace of Rn. But then these two are subspace of Rn. So they don't have any right to have anything to do with each other because they're in different universes, right? different dimensional universes. One's in M, one's in F, but yet they do have stuff to do with each other because they're all connected
1:33 through A and it transpose. So that's the surprise. They're not connected in terms of what space they explore, only in the dimensions. So, uh, here is our picture, this very
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Alex Townsend.