Linear Algebra for Engineers lecture 17: Change of Basis
Overview
Alex Townsend explains how a basis supplies a coordinate system and how matrices represent transformations in that system. Using a two-cup tea model, he shows that an eigenvector basis turns the transition matrix into diag(1, 0.4), making repeated applications and long-term behavior easy to analyze; he then develops change-of-basis matrices and applies them to straighten an angled whiteboard image.
Key takeaways
- A basis gives every vector a unique coordinate representation because its vectors span the space and are linearly independent.
- In the tea-transfer example, an eigenvector basis represents the transition as diag(1, 0.4), so after k steps the non-steady component is multiplied by 0.4^k and vanishes in the long run.
- If the columns of P_B are the basis vectors of B in standard coordinates, P_B maps B coordinates to standard coordinates and P_B^-1 performs the reverse conversion.
- A basis matrix for a basis of R^n is square with linearly independent columns, making it invertible and ensuring coordinate conversions can be undone.
- An angled whiteboard can be approximated as front-facing by using its boundary directions to define a new coordinate system and applying the inverse basis matrix to image points.
Chapters
- A basis for a vector space must both span the space and be linearly independent.
- Each vector has a unique expression as a linear combination of the basis vectors, and the coefficients are its coordinates in that basis.
- The standard basis of R^n uses unit vectors, while any other basis provides an alternative coordinate system.
- The tea-transfer process maps the proportions in two cups at one time step to proportions at the next.
- Starting with all tea in cup one produces proportions (0.6, 0.4), the first column of the standard matrix.
- Starting with all tea in cup two produces proportions (0.2, 0.8), the second column of the standard matrix.
- The vector (1/3, 2/3) is unchanged by the tea transition, so it is an eigenvector with eigenvalue 1.
- Townsend uses a second eigenvector whose transition scales it by 0.4, yielding the diagonal matrix diag(1, 0.4) in that basis.
- After k time steps, the diagonal entries become 1^k and 0.4^k; as k grows, the second component tends to zero and the state approaches the first eigenvector's direction.
- For a basis B of R^2, the matrix P_B is formed by placing the basis vectors in its columns.
- Multiplying B-coordinate coefficients by P_B reconstructs the vector in standard coordinates.
- The inverse P_B^-1 converts a vector from standard coordinates into its B coordinates.
- For x = (4,5), Townsend writes x = a(2,1) + b(-1,1), producing the system 2a - b = 4 and a + b = 5.
- The basis matrix is [[2,-1],[1,1]], and solving its linear system gives the coordinates (a,b) of x in basis B.
- The matrix convention matters: the basis matrix maps B coordinates to standard coordinates, while its inverse maps standard coordinates to B coordinates.
- Because the columns of a basis matrix are linearly independent, every column has a pivot when the square matrix is row-reduced.
- For a basis of R^n, the basis matrix is n by n and invertible, so coordinate conversion can be reversed.
- Townsend relates invertibility to the requirement that a genuine coordinate system must let each vector be represented uniquely.
- Townsend demonstrates a whiteboard photograph taken at an angle and describes choosing coordinates aligned with the board rather than the camera image.
- He presents new basis directions, including a vector written as (1, -1/4) and another as (0, 4), to define the alternate coordinate system.
- The basis matrix maps coordinates in the board-aligned system to the original image coordinates; its inverse maps the original image into the new coordinates.
- The columns of the change-of-basis matrix are the new basis vectors, with their order determining which coordinate corresponds to each direction.
- Applying the inverse matrix to a point in the original image expresses that point in the board-aligned coordinates.
- Townsend notes that the linear transform improves the board's alignment but can distort the rest of the image.
- Scanning apps estimate a page or board boundary, then use its edges to calculate a transformation that makes the surface appear front-facing.
- Townsend describes detecting edges by finding sharp pixel-value changes between neighboring pixels and notes Canny edge detection as a standard method.
- A point such as (1/2, 1/2) in the new basis specifies movement along each basis vector; the basis matrix converts that location to standard image coordinates.
Transcript excerpt
0:00 lecture 17 uh corresponding to section 4.4 and 4.5 of the textbook. So we have this this annoying concept of changing basis which when you get used to it is going to be a really powerful way because it's going to allow you to look at problems in different coordinate systems which can make easy hard problems easy. So okay just some notation again. So if I give you a basis for a vector space V, here's the basis. That means this set of vectors are linearly independent as well as spanning for V. Which means every X in V can be written as a linear combination of this set. That's why it's spanning.
0:50 But it's also linearly independent which means that there is a unique way to start at the origin, walk through the directions V1 up to VP and to arrive at the location X. So there's a unique way to express it as a linear combination of these V's. So we could think of these V's as giving us another coordinate system to work in where the coordinates for this vector X are C1 up to CP the coefficients that come in front of the vectors. And this is the notation from the book which we can argue if it's good or not but I'm going with it. It's this notation right? Give me the vector X in the B coordinate system. the coordinate system given by
1:39 the basis. The coordinates of X in the basis B are the coefficients that come out the front. So you're already used to this notation. I mean this thinking when you have the standard basis the standard basis for like Rn is the one made up of the unit vectors, right? All the unit vectors. And then the first entry is how
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.