Let B,B′ be bases of E. The change of basis matrix P=PB→B′ has for columns the coordinates of the new basis vectors in the old basis. It is invertible, P−1=PB′→B, and coordinates transform by X=PX′ (old = P⋅ new).
Examples
Example 21.9 (Reading the change-of-basis matrix)
In R2, from the canonical B to B′=((1,1),(1,−1)):
P=PB→B′=(111−1)
(new vectors written in old coordinates, column by column). The vector of old coordinates X=(3,1)T has new coordinates X′=P−1X=21(3+1, 3−1)T=(2,1)T: indeed 2(1,1)+1(1,−1)=(3,1). Mind the direction — the matrix P is built from the new basis but converts new to old coordinates (X=PX′); passing from old to new costs the inverse. Writing the sanity check 2(1,1)+(1,−1)=(3,1) after every conversion catches the inverted-P error, which is the most common mistake of the chapter.
Example 21.11 (A good basis makes a map transparent)
Let u(x,y)=(y,x) (swap), with matrix A=(0110) in the canonical basis. In the basis B′=((1,1),(1,−1)):
P=(111−1),P−1=21(111−1),P−1AP=(100−1).
No matrix product was really needed: u fixes (1,1) and reverses (1,−1), so in B′ its matrix must be diag(1,−1) — the swap is the reflection across the line y=x. Finding, for a given endomorphism, a basis in which its matrix becomes diagonal is the central problem of the Year 2 volume (reduction theory); the weekend problem below shows how far polynomial identities alone already go.
Example 21.12 (Change of basis, run in reverse)
The projection onto F=Vect(1,1) along G=Vect(1,−1) has, in the adapted basis B′=((1,1),(1,−1)), the transparent matrix A′=diag(1,0). To get its canonical-basis matrix, run Theorem 21.10 backwards, A=PA′P−1:
P=(111−1),P−1=21(111−1),A=P(1000)P−1=21(1111).
Check: A2=A (idempotent), trA=1=rkA, and A(11)=(11), A(−11)=0, as prescribed. This reverse direction — design the matrix in the good basis, then conjugate back — is how rotation, reflection and projection matrices are actually produced in practice.