The arrow from the origin to (3,2) has standard coordinates (3,2). Measured with the basis vectors (1,0) and (1,1) instead, the same arrow has coordinates (1,2), because one copy of the first plus two copies of the second lands exactly at (3,2). Here and below, a tuple stands for a column vector. The two lists are different, yet the arrow has not moved. This lesson shows how to compute coordinates in any ordered basis of Rn, how one matrix converts coordinates from one basis to another, and how to keep a change of description apart from a motion of the vector.
Key terms
Basis matrix
Definition Let B=(b1,…,bn) be an ordered basis of Rn. Its basis matrix is the n×n matrix
B=[b1b2⋯bn],whose columns are the basis vectors written in standard coordinates. The coordinate vector [v]B=(c1,…,cn) of a vector v lists the weights with v=c1b1+⋯+cnbn, so
v=B[v]B.The weights exist because the basis spans Rn, and they are unique because the basis is independent. If Bc=Bd, then B(c−d)=0, and independent columns force c=d. In particular B is invertible. The order of the basis vectors matters, because the jth coordinate always multiplies bj.
In plain words A coordinate list is a recipe, and the basis matrix carries it out. Multiplying B by the list adds up the right multiples of the basis vectors and returns the actual vector.
Example Take B=(b1,b2) with b1=(1,0) and b2=(1,1). Then
B=[1011],B[12]=[32],so the vector v=(3,2) has [v]B=(1,2). Listing the same two vectors in the order (b2,b1) gives the coordinates (2,1) instead. By contrast, the pair (1,1) and (2,2) is not a basis of R2. Both vectors lie on one line, so a vector off that line such as (1,0) has no coefficient list at all, and the vector (2,2) has several, for example (2,0) and (0,1).
Solving for basis coordinates
Definition To find [v]B, solve the square linear system Bc=v for the unknown column c. Since B is invertible, the system has exactly one solution,
[v]B=B−1v.The inverse records the solution of this system for every right side at once, but elimination or substitution on the system itself gives the same answer. A computed coordinate list is checked by rebuilding v as B[v]B.
In plain words Finding coordinates means asking which combination of the basis vectors produces the given vector, and that question is a linear system.
Example With B as above and a general v=(x,y), write [v]B=(α,β). Then αb1+βb2=(α+β,β) must equal (x,y), so β=y and α=x−y. Hence
B−1=[10−11].For w=(−1,3) this gives [w]B=(−1−3,3)=(−4,3). Rebuilding confirms it, since −4(1,0)+3(1,1)=(−1,3). A negative coordinate is not an error. It means a step against the direction of that basis vector.
Change-of-basis matrix
Definition Let B and C be two ordered bases of Rn with basis matrices B and C. The change-of-basis matrix from B to C is the n×n matrix
PC←B=C−1B.It satisfies [v]C=PC←B[v]B for every v in Rn. The reason is a two-step route. Multiplying by B rebuilds v from its B-coordinates, and multiplying by C−1 then reads off its C-coordinates. The jth column of PC←B is [bj]C, the old basis vector bj described in the new basis. The subscript is read as ”C from B”. The output basis stands on the left, just as the output column stands on the left of the equation.
In plain words To translate a coordinate list from one basis to another, rebuild the vector and then describe it again. The product C−1B does both steps, read from right to left.
Example Keep B from above and let C=(c1,c2) with c1=(1,1) and c2=(1,−1). Then
C−1=21[111−1],PC←B=C−1B=[212110].Applied to [v]B=(1,2), this matrix gives (21+2,21)=(25,21). A direct check agrees, since 25(1,1)+21(1,−1)=(3,2). The columns tell the same story. The first says b1=21c1+21c2, and the second says b2=c1.
Inverse change-of-basis matrix
Definition Every change-of-basis matrix is invertible, and its inverse converts in the opposite direction,
(PC←B)−1=(C−1B)−1=B−1C=PB←C.Conversions chain in the same way. For a third ordered basis D with basis matrix D,
PD←CPC←B=D−1CC−1B=D−1B=PD←B.The order of the factors matters. The product BC−1, with the factors of C−1B swapped, is in general neither conversion.
In plain words Converting from B to C and then back again changes nothing, so the two conversion matrices undo each other. Reversing a conversion swaps the roles of the two bases.
Example For the bases above,
PB←C=B−1C=[012−1].It sends [v]C=(25,21) to (0+1,25−21)=(1,2), which is [v]B again. The product of the two conversions is the identity,
[012−1][212110]=[1001].Coordinate change versus moving a vector
Definition A change of coordinates is passive. The vector v stays where it is, and only its description changes, from [v]B to [v]C=PC←B[v]B. Applying a linear transformation is active. It replaces v by the vector Av, described in the same coordinates as before, so the arrow itself can move. The same invertible matrix can play either role, so the role has to be stated, and a coordinate list means something only together with the name of its basis.
In plain words Changing coordinates changes the grid you measure with, not the arrow you measure. Moving the vector changes the arrow and keeps the grid.
Example Read the matrix B−1 found above in both ways, with v=(3,2). As a coordinate change, B−1v=(1,2) is the list [v]B, and it still describes the arrow ending at (3,2), because 1b1+2b2=(3,2). As a linear transformation of the plane, the map x↦B−1x moves that arrow to a different arrow, the one ending at the standard point (1,2). The numbers are the same, but the first statement is about one fixed vector and the second is about two different vectors.
Check yourself
- Find the coordinates of v=(1,5) in the ordered basis B=((2,1),(−1,1)), and check the answer by rebuilding the vector.
Show the answer
Write [v]B=(α,β). Then 2α−β=1 and α+β=5. Adding the equations gives 3α=6, so α=2 and β=3. The coordinates are (2,3), and indeed 2(2,1)+3(−1,1)=(4−3,2+3)=(1,5).
- Let B=((1,0),(1,1)) and C=((1,2),(0,1)). Find PC←B, then find [v]C for the vector with [v]B=(3,−1).
Show the answer
The basis matrices and the conversion are
B=[1011],C=[1201],C−1B=[1−201][1011]=[1−21−1].
So PC←B sends (3,−1) to (3−1,−6+1)=(2,−5). To check, rebuild from B to get v=3(1,0)−(1,1)=(2,−1), and rebuild from C to get 2(1,2)−5(0,1)=(2,−1), the same vector.
- With the bases and the vector v of question 2, a classmate converts [v]B to C-coordinates by multiplying by B−1C. What does that matrix actually do, and how does rebuilding v expose the mistake?
Show the answer
The product B−1C is PB←C, which takes C-coordinates to B-coordinates. It is the inverse of the matrix from question 2,
B−1C=[−12−11].
Applied to (3,−1) it gives (−2,5). Rebuilding that list in C gives −2(1,2)+5(0,1)=(−2,1), which is not v=(2,−1), so the answer cannot be the C-coordinates of v. The correct conversion is C−1B.