Linear Algebra · Undergraduate
Coordinates and Change of Basis
Quick answer
A basis gives every vector a unique list of coordinates: the weights that build it from the basis vectors. In the basis B = {b₁, b₂}, the vector (5, 1) = 3b₁ + 2b₂ has coordinates [x]_B = (3, 2). The matrix P_B with the basis vectors as columns converts B-coordinates to standard ones, and its inverse converts back. Changing between two bases multiplies by one matrix, and a transformation A becomes P⁻¹AP in the new basis, often a much simpler matrix.
What you'll learn
- Find the coordinates of a vector relative to a basis
- Convert coordinates with P_B and its inverse
- Build the change-of-coordinates matrix between two bases
- Rewrite a linear transformation in a new basis as P⁻¹AP
The same vector, different coordinates
The standard coordinates of say ” steps along , step along ”. Any other basis gives another way to reach the same point. With
we have , so the coordinates of relative to are
A basis guarantees these weights exist (the vectors span) and are unique (the vectors are independent), so every basis is a complete, unambiguous coordinate system.
The conversion matrix
Put the basis vectors into the columns of . Then :
is invertible because its columns are independent, as in the inverse of a matrix.
Why a transformation becomes P⁻¹AP
Let be a transformation’s matrix in standard coordinates. To apply it to a vector given in -coordinates and get the answer in -coordinates, go around three sides of a square: convert to standard coordinates with , apply , convert back with . So the same transformation, described in the basis , has the matrix . Two matrices related this way are similar: they are one transformation seen in two coordinate systems, so they share a determinant, a trace and eigenvalues.
The payoff is choosing well. For and the basis above,
In these coordinates stretches the first axis by and leaves the second alone. That is the idea behind diagonalization, and the basis that does it is made of eigenvectors.
Worked examples
Common mistakes
Practice problems
-
Find the coordinates of in the basis .
Answer
Full solution
gives and , so .
-
With , which vector has ?
Answer
Full solution
.
-
Find for the bases of Example 2.
Answer
Full solution
It is the inverse of , whose determinant is . Equivalently, its columns are the -coordinates of and .
-
Find the matrix of the shear in the basis .
Answer
Full solution
and . Multiplying gives the result. Not every basis makes a matrix simpler.
-
Two matrices are similar. One has determinant and trace . What are the determinant and trace of the other?
Answer
and
Full solution
, and the trace is also unchanged. Similar matrices describe the same transformation.
-
Find the coordinates of in the basis .
Answer
Full solution
, gives , and gives .
-
Explain why the reflection in Example 3 is diagonal in the basis .
Answer
Both basis vectors are eigenvectors: one lies on the mirror, eigenvalue , and one is perpendicular to it, eigenvalue .
Full solution
A transformation’s matrix in a basis of eigenvectors is diagonal, with the eigenvalues on the diagonal.
-
A student computes for as . What went wrong?
Answer
converts the other way. The coordinates are .
Full solution
Check: , not .
Frequently asked questions
What are the coordinates of a vector in a basis?
The unique weights c₁, …, cₙ with x = c₁b₁ + … + cₙbₙ. They are written as the coordinate vector [x]_B.
How do you find coordinates in a new basis?
Put the basis vectors in the columns of P_B. Then x = P_B[x]_B, so [x]_B = P_B⁻¹x, or solve the system P_B c = x by row reduction.
What is the change-of-coordinates matrix from B to C?
P_{C←B} = P_C⁻¹P_B. Its columns are the C-coordinates of the vectors of B, and it turns [x]_B into [x]_C.
How does a linear transformation look in a new basis?
If A is its matrix in standard coordinates and P = P_B, its matrix in B-coordinates is P⁻¹AP. Matrices related this way are called similar.
Why change basis at all?
A well-chosen basis can make a transformation diagonal, or line up with the geometry of a problem, so that its action is simple to read and compute with.