Skip to content

Change of basis, explained

5 min read

Short answer

If the columns of PP are the vectors of a basis BB, then a vector with coordinates [x]B[\mathbf x]_B in that basis has standard coordinates x=P[x]B\mathbf x=P[\mathbf x]_B. To go the other way, use [x]B=P−1x[\mathbf x]_B=P^{-1}\mathbf x. The vector does not change; only the description does.

x = P [x]_Bx = P [x]_BP columns are the new basis vectors[x]_B coordinates in the new basisx coordinates in the standard basis[x]_B = P⁻¹ x the reverse conversion
P converts new coordinates into standard ones; P⁻¹ undoes it. Keep track of which direction you need.

What the coordinates mean

Coordinates are instructions: [x]B=(c1,c2)[\mathbf x]_B=(c_1,c_2) means "take c1c_1 copies of the first basis vector plus c2c_2 copies of the second." Multiplying by PP carries out that instruction and returns the usual coordinates.

Matrices in a new basis

If AA acts on standard coordinates, the same map in basis BB is P−1APP^{-1}AP. This is exactly the diagonalization setup: choose a basis of eigenvectors and the map becomes diagonal.

Worked example

Let B={(1,1),(−1,1)}B=\{(1,1),(-1,1)\}. Find the standard coordinates of the vector with [x]B=(2,1)[\mathbf x]_B=(2,1), and the BB-coordinates of (2,3)(2,3).

P=(1−111)P=\begin{pmatrix}1&-1\\1&1\end{pmatrix}. First: x=P(2,1)=(2−1, 2+1)=(1,3)\mathbf x=P(2,1)=(2-1,\ 2+1)=(1,3).

Second: det⁡P=2\det P=2, so P−1=12(11−11)P^{-1}=\tfrac12\begin{pmatrix}1&1\\-1&1\end{pmatrix} and [x]B=12(11−11)(23)=(52,12).[\mathbf x]_B=\tfrac12\begin{pmatrix}1&1\\-1&1\end{pmatrix}\begin{pmatrix}2\\3\end{pmatrix}=\left(\tfrac52,\tfrac12\right). Check: 52(1,1)+12(−1,1)=(2,3)\tfrac52(1,1)+\tfrac12(-1,1)=(2,3). ✓

Try it yourself

With B={(1,1),(−1,1)}B=\{(1,1),(-1,1)\}, what are the BB-coordinates of (4,0)(4,0)?

Show the answer

[x]B=12(11−11)(40)=(2,−2)[\mathbf x]_B=\tfrac12\begin{pmatrix}1&1\\-1&1\end{pmatrix}\begin{pmatrix}4\\0\end{pmatrix}=(2,-2). Check: 2(1,1)−2(−1,1)=(4,0)2(1,1)-2(-1,1)=(4,0).

Keep going with practice

Coordinates and bases are practiced in Vidi's Linear Algebra & Probability course, with the span visualizer to see the same vector in different bases.