4.5.20Linear Algebra (Full)

Change of basis matrix

1,819 words8 min readdifficulty · medium6 backlinks

1. Setup — What are we even translating?

WHAT is a change of basis matrix? Given two bases BB (old) and CC (new), it's the matrix PCBP_{C\leftarrow B} such that [v]C=PCB[v]B.[v]_C = P_{C\leftarrow B}\,[v]_B. It takes BB-coordinates in and spits CC-coordinates out.


2. Derivation from first principles

We want a matrix that, fed [v]B[v]_B, returns [v]C[v]_C. Let's build it.

Step 1 — Write vv in the old basis. By definition, v=c1b1++cnbn.v = c_1 b_1 + \cdots + c_n b_n. Why this step? This is the only thing we know: [v]B=(c1,,cn)[v]_B = (c_1,\dots,c_n).

Step 2 — Express each old basis vector in the new basis. Each bjb_j is itself a vector, so it has CC-coordinates: [bj]C=[p1jpnj],i.e. bj=ipijci.[b_j]_C = \begin{bmatrix} p_{1j} \\ \vdots \\ p_{nj}\end{bmatrix}, \quad\text{i.e. } b_j = \sum_i p_{ij}\, c_i. Why this step? Translation is "term by term": if I know how to say each building block bjb_j in the new language, I can say any combination.

Step 3 — Take CC-coordinates of the whole sum. Coordinates are linear, so [v]C=[jcjbj]C=jcj[bj]C.[v]_C = \Big[\sum_j c_j b_j\Big]_C = \sum_j c_j\,[b_j]_C. Why this step? The coordinate map v[v]Cv \mapsto [v]_C is a linear map (uniqueness of expansion guarantees this), so it distributes over sums and scalars.

Step 4 — Recognize the matrix–vector product. Stack [bj]C[b_j]_C as columns: [v]C=[[b1]C    [b2]C        [bn]C]PCB[c1cn]=PCB[v]B.[v]_C = \underbrace{\Big[\,[b_1]_C \;\big|\; [b_2]_C \;\big|\; \cdots \;\big|\; [b_n]_C\,\Big]}_{P_{C\leftarrow B}} \begin{bmatrix} c_1 \\ \vdots \\ c_n\end{bmatrix} = P_{C\leftarrow B}\,[v]_B. \qquad\blacksquare


3. The Standard-Basis Shortcut

In Rn\mathbb{R}^n with standard basis E={e1,,en}E=\{e_1,\dots,e_n\}:

  • PEB=[b1b2bn]P_{E\leftarrow B} = \big[\,b_1 \mid b_2 \mid \cdots \mid b_n\,\big]just put the basis vectors as columns! (Because [bj]E=bj[b_j]_E = b_j literally.) Call this BB (abuse of notation: the matrix of basis vectors).
  • Going the other way: PBE=B1P_{B\leftarrow E} = B^{-1}, since translating then translating back is the identity: PBEPEB=I.P_{B\leftarrow E}\,P_{E\leftarrow B} = I.
Figure — Change of basis matrix

4. Worked Examples


5. Common Mistakes (Steel-manned)


6. Active Recall

Recall What is the

jj-th column of PCBP_{C\leftarrow B}? The old basis vector bjb_j written in CC-coordinates: [bj]C[b_j]_C.

Recall If

B,CB,C are matrices of basis vectors (standard coords), what is PCBP_{C\leftarrow B}? PCB=C1BP_{C\leftarrow B}=C^{-1}B.

Recall How do you reverse a change of basis?

Take the inverse: PBC=(PCB)1P_{B\leftarrow C}=(P_{C\leftarrow B})^{-1}.

Recall (Feynman, explain to a 12-year-old)

Imagine a treasure sits in a park. One friend gives directions using "north/east steps," another using "toward-the-oak / toward-the-pond steps." The treasure never moves! The change of basis matrix is a little translator card: you tell it the steps in one friend's language, it tells you the same spot in the other friend's language. To swap which friend is talking, you flip the card over (that's the inverse).


7. Connections

  • Basis and Dimension — coordinates require a basis to exist.
  • Coordinate Vectors — the columns we manipulate.
  • Invertible Matrices — a change of basis matrix is always invertible (bases are independent).
  • Similar MatricesA=P1APA' = P^{-1}AP uses change of basis to rewrite a linear map in a new basis.
  • Eigenvectors and Diagonalization — diagonalizing = changing to the eigenbasis.
  • Linear Transformations — active (vectors move) vs passive (description changes) views.
What does PCBP_{C\leftarrow B} do to a coordinate vector?
Takes BB-coordinates as input and returns CC-coordinates: [v]C=PCB[v]B[v]_C = P_{C\leftarrow B}[v]_B.
What is column jj of the change of basis matrix PCBP_{C\leftarrow B}?
[bj]C[b_j]_C, the old basis vector bjb_j expressed in the new basis CC.
If B,CB,C hold basis vectors as columns (in standard coords), PCB=P_{C\leftarrow B}= ?
C1BC^{-1}B.
How to translate standard coords into basis BB coords?
Multiply by B1B^{-1}: [v]B=B1v[v]_B=B^{-1}v.
How to translate basis BB coords back to standard?
Multiply by BB: [v]E=B[v]B[v]_E=B[v]_B (columns of BB are basis vectors in standard coords).
How do you reverse PCBP_{C\leftarrow B}?
Use its inverse PBC=(PCB)1P_{B\leftarrow C}=(P_{C\leftarrow B})^{-1}.
Does a change of basis move the vector?
No — the vector is fixed; only its coordinate description changes (passive view).
Why is every change of basis matrix invertible?
Its columns are coordinates of a basis (independent, spanning), so it's square with full rank.

Concept Map

described via

described via

gives

gives

guarantees existence of

express b_j in C

stacked as

applied to give

translates

reversed by

confused with coords causes

Vector v exists independently

Basis B old

Basis C new

Coordinates v_B and v_C

Coordinate map is linear

Change of basis matrix P C from B

Columns = b_j in C-coordinates

v_C = P times v_B

Inverse gives reverse translation

Sign and inverse errors

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, ek vector ek fixed arrow hai — wo apni jagah pe baitha hai, hilta nahi. Lekin usko numbers me likhne ke liye humein ek basis (reference directions ka set) choose karna padta hai. Jab basis badalte ho, vector wahi rehta hai, sirf uske coordinates (numbers) badalte hain. Yahi cheez change of basis matrix handle karti hai — wo ek dictionary hai jo ek basis ki language se doosri basis ki language me coordinates translate karta hai.

Formula yaad rakho aise: PCBP_{C\leftarrow B} ka matlab hai "input BB-coords, output CC-coords." Iski har column kya hai? Old basis vector bjb_j ko new basis CC ke coordinates me likha hua. Standard basis ke saath shortcut: agar BB aur CC matrices hain jinke columns basis vectors hain, to PCB=C1BP_{C\leftarrow B}=C^{-1}B. Mnemonic "CBC" — C-inverse Bites B.

Sabse common galti: log sochte hain columns naye basis ke vectors hain — nahi! Columns purane bjb_j hote hain, lekin CC-coordinates me. Doosri galti: PP aur P1P^{-1} ka confusion. Arrow ko subscript ki tarah padho: CBC \leftarrow B matlab BB andar jaata hai, CC bahar aata hai. Ulta karna ho to inverse lo. Aur teesri galti — yeh maan lena ki vector "move" ho gaya; nahi yaar, vector fixed hai, sirf description badli (passive view).

Yeh topic isliye important hai kyunki aage diagonalization aur similar matrices (A=P1APA'=P^{-1}AP) sab change of basis pe khade hain. Eigenvectors me hum basically aise basis me jaate hain jahan matrix simple (diagonal) dikhe. To yeh foundation solid karlo!

Go deeper — visual, from zero

Test yourself — Linear Algebra (Full)

Connections