Coordinates and change of basis
Write a vector in coordinates relative to a basis, convert between standard and skewed coordinates with the change of basis matrix, and see why a well-chosen basis makes coordinates easy.
It opens on
The vector (4, 5) says go 4 along x and 5 along y. If the axes were skewed, along (2, 1) and (1, 2), the same arrow would have different numbers: which ones?
Why it matters
Images, signals and data points are only lists of numbers once a basis is chosen, and the best analyses (rotations, eigenbases, PCA) change the basis to one where the problem is simple.
Good to know first
- Basis: an independent spanning list, so every vector is a combination of it in exactly one way
- the matrix with the basis vectors as columns
- the inverse of a 2 × 2 matrix
Step by step
Coordinates relative to a basis
Define the coordinate vector [w]_B as the weights of w on a basis and find it by solving a small system, drawing the trip on the skewed grid.
On the standard basis e₁, e₂ the vector w = (4, 5) = 4e₁ + 5e₂ has [w] = (4, 5): its coordinates are its own entries.
A common mix-up
The coordinates of a vector are the vector.
In fact: They depend on the basis; the vector (4, 5) and its address (1, 2) in B are the same arrow in two languages.
The change of basis matrix
Use the matrix B with the basis vectors as columns to turn B-coordinates into standard ones, x = B[x]_B, and its inverse to go back.
Check with [w]_B = (1, 2): B(1, 2) = (2 + 2, 1 + 4) = (4, 5) = w.
A common mix-up
Multiply by B to get the B-coordinates.
In fact: B turns B-coordinates into standard ones; to get the B-coordinates multiply by B⁻¹.
A basis that makes coordinates easy
Use a perpendicular basis to get coordinates from dot products and relate the three addresses of w by change of basis matrices.
p₁ = (1, 1) and p₂ = (−1, 1) have p₁ · p₂ = −1 + 1 = 0; for w = (4, 5): c₁ = (4 + 5) / 2 = 4.5 and c₂ = (−4 + 5) / 2 = 0.5.
A common mix-up
A change of basis moves the vectors.
In fact: It relabels them; the arrow stays where it is and only its coordinates change.
Try it
Find [v]_B for v = (5, 4) with the same basis b₁ = (2, 1), b₂ = (1, 2).Answer
(2, 1), since 2(2, 1) + (1, 2) = (5, 4)
Hint: 2c₁ + c₂ = 5 and c₁ + 2c₂ = 4
A vector has B-coordinates (3, −1) for this B. Find its standard coordinates.Answer
(5, 1), since B(3, −1) = (6 − 1, 3 − 2)
Hint: x = B[x]_B
Find [v]_P for v = (3, 1) with p₁ = (1, 1), p₂ = (−1, 1).Answer
(2, −1), since (3 + 1)/2 = 2 and (−3 + 1)/2 = −1
Hint: Dot with each pᵢ and divide by 2
So what is [w]_B, and which trip along the skewed axes does it describe?Answer
(1, 2): one step along b₁, then two steps along b₂.
Use B⁻¹ to find [w]_B for w = (4, 5).Answer
(1/3)(8 − 5, −4 + 10) = (1, 2).
