Maths WorkshopMaths problems with full solutions
Exercise 150Linear algebra › Linear mapsL1Added 3 Nov 2026

Change of basis for a linear map

#change of basis#matrix representation#similarity

Statement

Let f:R2→R2f:\mathbb{R}^2\to\mathbb{R}^2 have matrix A=(2112)A=\begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix} in the canonical basis. Compute the matrix of ff in the basis B=((1,1),(1,−1))\mathcal{B}=\big((1,1),(1,-1)\big).

Hint

Let PP be the matrix whose columns are the vectors of B\mathcal{B} written in the canonical basis. If X′X' are the coordinates of a vector in B\mathcal{B}, its canonical coordinates are X=PX′X=PX'. The matrix of ff in B\mathcal{B} is P−1APP^{-1}AP.

Show solutionHide solution

Solution

Why P−1APP^{-1}AP. Let xx have coordinates X′X' in B\mathcal{B} and X=PX′X=PX' in the canonical basis. Then f(x)f(x) has canonical coordinates AX=APX′AX=APX', hence coordinates P−1APX′P^{-1}APX' in B\mathcal{B}.

Matrix PP.
P=(111−1),det⁡P=−2,P−1=12(111−1).P = \begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix}, \qquad \det P=-2, \qquad P^{-1} = \frac12\begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix}.

New matrix.
AP=(2112)(111−1)=(313−1),AP=\begin{pmatrix} 2 & 1 \\ 1 & 2 \end{pmatrix}\begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix} = \begin{pmatrix} 3 & 1 \\ 3 & -1 \end{pmatrix},
P−1AP=12(111−1)(313−1)=12(6002)=(3001).P^{-1}AP=\frac12\begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix}\begin{pmatrix} 3 & 1 \\ 3 & -1 \end{pmatrix} = \frac12\begin{pmatrix} 6 & 0 \\ 0 & 2 \end{pmatrix} = \begin{pmatrix} 3 & 0 \\ 0 & 1 \end{pmatrix}.

Conclusion. In B\mathcal{B} the matrix of ff is diag⁡(3,1)\operatorname{diag}(3,1). This is expected: f(1,1)=3(1,1)f(1,1)=3(1,1) and f(1,−1)=(1,−1)f(1,-1)=(1,-1), so the vectors of B\mathcal{B} are eigenvectors for the eigenvalues 33 and 11.