Mathematics · Glossary

What is change of basis?

Definition 21.8 University Mathematics — Year 1 · Chapter 21 — Matrices

Let B,B\mathcal{B}, \mathcal{B}' be bases of EE. The change of basis matrix P=PBBP = P_{\mathcal{B}\to\mathcal{B}'} has for columns the coordinates of the new basis vectors in the old basis. It is invertible, P1=PBBP^{-1} = P_{\mathcal{B}'\to\mathcal{B}}, and coordinates transform by X=PXX = PX' (old == PP\,\cdot new).

Examples

Example 21.9 (Reading the change-of-basis matrix)

In R2\R^2, from the canonical B\mathcal B to B=((1,1),(1,1))\mathcal B' = \bigl((1,1), (1,-1)\bigr):

P=PBB=(1111)P = P_{\mathcal B\to\mathcal B'} = \begin{pmatrix} 1 & 1\\ 1 & -1 \end{pmatrix}

(new vectors written in old coordinates, column by column). The vector of old coordinates X=(3,1)TX = (3, 1)^{\mathsf T} has new coordinates X=P1X=12(3+1, 31)T=(2,1)TX' = P^{-1}X = \frac12(3 + 1,\ 3 - 1)^{\mathsf T} = (2, 1)^{\mathsf T}: indeed 2(1,1)+1(1,1)=(3,1)2(1,1) + 1(1,-1) = (3,1). Mind the direction — the matrix PP is built from the new basis but converts new to old coordinates (X=PXX = PX'); passing from old to new costs the inverse. Writing the sanity check 2(1,1)+(1,1)=(3,1)2(1,1) + (1,-1) = (3,1) after every conversion catches the inverted-PP 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)u(x, y) = (y, x) (swap), with matrix A=(0110)A = \begin{pmatrix} 0 & 1\\ 1 & 0\end{pmatrix} in the canonical basis. In the basis B=((1,1),(1,1))\mathcal B' = \bigl((1,1), (1,-1)\bigr):

P=(1111),P1=12(1111),P1AP=(1001).P = \begin{pmatrix} 1 & 1\\ 1 & -1 \end{pmatrix}, \qquad P^{-1} = \frac12\begin{pmatrix} 1 & 1\\ 1 & -1 \end{pmatrix}, \qquad P^{-1} A P = \begin{pmatrix} 1 & 0\\ 0 & -1 \end{pmatrix}.

No matrix product was really needed: uu fixes (1,1)(1,1) and reverses (1,1)(1,-1), so in B\mathcal B' its matrix must be diag(1,1)\operatorname{diag}(1, -1) — the swap is the reflection across the line y=xy = 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)F = \operatorname{Vect}(1,1) along G=Vect(1,1)G = \operatorname{Vect}(1,-1) has, in the adapted basis B=((1,1),(1,1))\mathcal B' = \bigl((1,1),(1,-1)\bigr), the transparent matrix A=diag(1,0)A' = \operatorname{diag}(1, 0). To get its canonical-basis matrix, run Theorem 21.10 backwards, A=PAP1A = P A' P^{-1}:

P=(1111),P1=12(1111),A=P(1000)P1=12(1111).P = \begin{pmatrix} 1 & 1\\ 1 & -1\end{pmatrix}, \quad P^{-1} = \frac12\begin{pmatrix} 1 & 1\\ 1 & -1\end{pmatrix}, \quad A = P\begin{pmatrix} 1 & 0\\ 0 & 0\end{pmatrix}P^{-1} = \frac12\begin{pmatrix} 1 & 1\\ 1 & 1\end{pmatrix}.

Check: A2=AA^2 = A (idempotent), trA=1=rkA\operatorname{tr} A = 1 = \operatorname{rk} A, and A(11)=(11)A\binom{1}{1} = \binom11, A(11)=0A\binom{1}{-1} = 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.

Read in context →