The standard basis is convenient, but it is often not the natural one. A crystal lattice, a rotated coordinate frame or a polynomial expanded around t=1 each comes with its own preferred basis. Once a basis is fixed, every vector gets a unique list of coordinates, and a change-of-basis matrix translates coordinates from one basis to another.
Coordinates relative to a basis
The key fact is that a basis gives each vector exactly one address.
Unique representation
If B={b1,…,bn} is a basis for V, then every x in V can be written in exactly one way as
x=c1b1+⋯+cnbn.
Such weights exist because B spans V. They are unique because if x also equals d1b1+⋯+dnbn, subtracting gives (c1−d1)b1+⋯+(cn−dn)bn=0, and independence forces every ci−di=0.
Definition
Coordinate vector
The weights c1,…,cn are the coordinates of x relative to B, and the vector
[x]B=c1⋮cn
in Rn is the B-coordinate vector of x.
In Rn, collect the basis vectors into the change-of-coordinates matrixPB=[b1⋯bn]. The vector equation above says exactly
x=PB[x]B.
Its columns are a basis, so PB is invertible and [x]B=PB−1x. In practice you usually solve the system rather than invert.
Worked example: Finding and using coordinates
Let B={(2,1),(−1,1)}, a basis for R2.
(a) Find [x]B for x=(1,5). Solve c1(2,1)+c2(−1,1)=(1,5):
2c1−c2=1,c1+c2=5.
Adding the equations gives 3c1=6, so c1=2 and c2=3. Thus [x]B=(2,3). Check: 2(2,1)+3(−1,1)=(1,5).
(b) If [y]B=(−1,4), then y=−1(2,1)+4(−1,1)=(−6,3).
Picture it this way: the basis vectors (2,1) and (−1,1) lay down a slanted grid over the plane, and [x]B=(2,3) says "walk 2 steps along b1 and 3 steps along b2."
Coordinates work in any vector space with a finite basis, and they turn abstract problems into problems in Rn. The map x↦[x]B is linear and one-to-one onto Rn (an isomorphism), so questions about spans and independence in V can be answered by the same questions about coordinate vectors.
Worked example: Coordinates of a polynomial
Let B={1,1+t,1+t+t2}, a basis for P2. Find [p]B for p(t)=4−t+2t2.
Write c1+c2(1+t)+c3(1+t+t2)=(c1+c2+c3)+(c2+c3)t+c3t2 and match coefficients:
c3=2,c2+c3=−1,c1+c2+c3=4.
So c3=2, c2=−3 and c1=5, giving [p]B=(5,−3,2).
Changing from one basis to another
Now suppose V has two bases, B={b1,…,bn} and C={c1,…,cn}. If you know [x]B=(x1,…,xn), then x=x1b1+⋯+xnbn. Taking C-coordinates, which is a linear operation,
[x]C=x1[b1]C+⋯+xn[bn]C.
That is a matrix-vector product.
The change-of-basis matrix
There is a unique n×n matrix C←BP with
[x]C=C←BP[x]Bfor every x in V.
Its columns are the C-coordinate vectors of the B basis vectors:
C←BP=[[b1]C⋯[bn]C].
It is invertible, and its inverse is B←CP.
In Rn you find all the columns at once. Finding [bj]C means solving [c1⋯cn]y=bj, and these systems share a coefficient matrix. So row reduce
[c1⋯cn∣b1⋯bn]∼[I∣C←BP].
Worked example: Building a change-of-basis matrix
In R2, let b1=(1,1), b2=(1,−1), c1=(1,0), c2=(1,1). Find C←BP, then find [x]C when [x]B=(3,1).
Row reduce [c1c2∣b1b2] with R1−R2:
[1011111−1]∼[1001012−1],C←BP=[012−1].
(Check a column: [b2]C=(2,−1) means 2(1,0)−(1,1)=(1,−1). Correct.)
Then
[x]C=[012−1][31]=[22].
Both answers describe the same vector: 3(1,1)+1(1,−1)=(4,2) and 2(1,0)+2(1,1)=(4,2).
Common mistake
The columns of C←BP are the B vectors written in C-coordinates, not the other way around. The notation reads right to left: it accepts B-coordinates on the right and produces C-coordinates on the left. In the augmented matrix, the target basis C goes on the left of the bar.
Tip
When C is the standard basis, [bj]C=bj, so C←BP is just PB. In general, C←BP=PC−1PB: convert from B to standard, then from standard to C.
Practice
Practice 1
Let B={(1,1),(1,−1)}. Find [x]B for x=(5,1). Enter it as (c1,c2).
Enter a point like (2, -3)
Practice 2
Let B={(2,0,1),(0,1,0),(1,0,1)} and [x]B=(1,−2,3). Find x.
Enter a point like (2, -3)
Practice 3
Let B={(1,0,0),(1,1,0),(1,1,1)}. Find [x]B for x=(3,−1,2).
Enter a point like (2, -3)
Practice 4
Let B={1,t−1,(t−1)2}, a basis for P2. Find [p]B for p(t)=t2.
Enter a point like (2, -3)
Practice 5
B and C are bases of a vector space V. What are the columns of C←BP?
Practice 6
Bases B={b1,b2} and C={c1,c2} of a vector space satisfy b1=2c1+c2 and b2=−c1+3c2. If [x]B=(1,2), find [x]C.
Enter a point like (2, -3)
Practice 7
In R2, let B={(1,2),(2,5)} and C={(1,1),(1,2)}. Find C←BP, and use it to find [x]C when [x]B=(2,−1).