Change of Basis
Changing basis rewrites the same vector's coordinates in a new basis, and one matrix does all the work: , whose columns are the vectors written in -coordinates. Multiply by it to go from to , and by its inverse to come back.
What the symbols mean
- Change-of-basis matrix
Translates B-coordinates into C-coordinates. Its inverse goes the other way.
Explanation
A change of basis is simply translating a vector's coordinates from one basis into another, like converting an address from one map's grid to another's. The vector itself never moves; only its description changes. That's useful because some problems are easy in one basis and messy in another, and you want to be able to switch freely. All we're really saying in is: start with -coordinates (on the right), multiply by one matrix, and get -coordinates (on the left). The arrow in reads right to left (from , into ), and its columns are just the vectors written in -coordinates. It's a lot of subscripts for one simple idea; bear with it.
Why those columns? Think about it this way. If , then , because coordinates respect sums and multiples. That's a combination of the columns with weights , which is exactly a matrix times .
Into the standard basis it's just (the basis vectors as columns), the same matrix from the coordinate systems lesson.
Between two nonstandard bases, go through the standard one: .
A common mistake. It's tempting to write that product the other way around, , because comes first in the sentence "from to ." It isn't: read the product right to left, the way it acts on a vector. goes first, turning -coordinates into standard coordinates, and then turns those into -coordinates.
Matrices in a new basis. A transformation with matrix in standard coordinates has matrix in the basis given by 's columns. Read it right to left again: turns new coordinates into standard ones, does the transformation, and turns the answer back into new coordinates. Diagonalization (next unit) is choosing the basis that makes this diagonal.
There's an animation further down that shows two different recipes landing on the same point.
See it
Worked examples
With and , find in standard coordinates.
- 1
Going into the standard basis just takes , whose columns are the basis vectors: .
Practice
Type your answer and check it. Solve them all to complete the lesson.
With and , find .
With the same basis, find for .
How is related to ?
and . Give , row by row.
Using that matrix, convert to -coordinates.
Two delivery robots share a map. Robot 1 records positions in the basis and robot 2 in . Robot 1 reports an obstacle at . What are its coordinates for robot 2?
The hardest one here. Get it, and you've got this lesson.
In , let and . Find , row by row.
Where it's used
Animation rigs and robots chain changes of basis from one joint frame to the next; color spaces (RGB to YUV) are changes of basis too.