# Linear Algebra/Changing Representations of Vectors

Linear Algebra
 ← Change of Basis Changing Representations of Vectors Changing Map Representations →

In converting ${\displaystyle {\rm {Rep}}_{B}({\vec {v}})}$ to ${\displaystyle {\rm {Rep}}_{D}({\vec {v}})}$ the underlying vector ${\displaystyle {\vec {v}}}$ doesn't change. Thus, this translation is accomplished by the identity map on the space, described so that the domain space vectors are represented with respect to ${\displaystyle B}$ and the codomain space vectors are represented with respect to ${\displaystyle D}$.

(The diagram is vertical to fit with the ones in the next subsection.)

Definition 1.1

The change of basis matrixfor bases ${\displaystyle B,D\subset V}$ is the representation of the identity map ${\displaystyle {\mbox{id}}:V\to V}$ with respect to those bases.

${\displaystyle {\rm {Rep}}_{B,D}({\mbox{id}})=\left({\begin{array}{c|c|c}\vdots &&\vdots \\{\rm {Rep}}_{D}({\vec {\beta }}_{1})&\;\cdots \;&{\rm {Rep}}_{D}({\vec {\beta }}_{n})\\\vdots &&\vdots \end{array}}\right)}$
Lemma 1.2

Left-multiplication by the change of basis matrix for ${\displaystyle B,D}$ converts a representation with respect to ${\displaystyle B}$ to one with respect to ${\displaystyle D}$. Conversly, if left-multiplication by a matrix changes bases ${\displaystyle M\cdot {\rm {Rep}}_{B}({\vec {v}})={\rm {Rep}}_{D}({\vec {v}})}$ then ${\displaystyle M}$ is a change of basis matrix.

Proof

For the first sentence, for each ${\displaystyle {\vec {v}}}$, as matrix-vector multiplication represents a map application, ${\displaystyle {\rm {Rep}}_{B,D}({\mbox{id}})\cdot {\rm {Rep}}_{B}({\vec {v}})={\rm {Rep}}_{D}(\,{\mbox{id}}({\vec {v}})\,)={\rm {Rep}}_{D}({\vec {v}})}$. For the second sentence, with respect to ${\displaystyle B,D}$ the matrix ${\displaystyle M}$ represents some linear map, whose action is ${\displaystyle {\vec {v}}\mapsto {\vec {v}}}$, and is therefore the identity map.

Example 1.3

With these bases for ${\displaystyle \mathbb {R} ^{2}}$,

${\displaystyle B=\langle {\begin{pmatrix}2\\1\end{pmatrix}},{\begin{pmatrix}1\\0\end{pmatrix}}\rangle \qquad D=\langle {\begin{pmatrix}-1\\1\end{pmatrix}},{\begin{pmatrix}1\\1\end{pmatrix}}\rangle }$

because

${\displaystyle {\rm {Rep}}_{D}(\,{\mbox{id}}({\begin{pmatrix}2\\1\end{pmatrix}}))={\begin{pmatrix}-1/2\\3/2\end{pmatrix}}_{D}\qquad {\rm {Rep}}_{D}(\,{\mbox{id}}({\begin{pmatrix}1\\0\end{pmatrix}}))={\begin{pmatrix}-1/2\\1/2\end{pmatrix}}_{D}}$

the change of basis matrix is this.

${\displaystyle {\rm {Rep}}_{B,D}({\rm {id)={\begin{pmatrix}-1/2&-1/2\\3/2&1/2\end{pmatrix}}}}}$

We can see this matrix at work by finding the two representations of ${\displaystyle {\vec {e}}_{2}}$

${\displaystyle {\rm {Rep}}_{B}({\begin{pmatrix}0\\1\end{pmatrix}})={\begin{pmatrix}1\\-2\end{pmatrix}}\qquad {\rm {Rep}}_{D}({\begin{pmatrix}0\\1\end{pmatrix}})={\begin{pmatrix}1/2\\1/2\end{pmatrix}}}$

and checking that the conversion goes as expected.

${\displaystyle {\begin{pmatrix}-1/2&-1/2\\3/2&1/2\end{pmatrix}}{\begin{pmatrix}1\\-2\end{pmatrix}}={\begin{pmatrix}1/2\\1/2\end{pmatrix}}}$

We finish this subsection by recognizing that the change of basis matrices are familiar.

Lemma 1.4

A matrix changes bases if and only if it is nonsingular.

Proof

For one direction, if left-multiplication by a matrix changes bases then the matrix represents an invertible function, simply because the function is inverted by changing the bases back. Such a matrix is itself invertible, and so nonsingular.

To finish, we will show that any nonsingular matrix ${\displaystyle M}$ performs a change of basis operation from any given starting basis ${\displaystyle B}$ to some ending basis. Because the matrix is nonsingular, it will Gauss-Jordan reduce to the identity, so there are elementatry reduction matrices such that ${\displaystyle R_{r}\cdots R_{1}\cdot M=I}$. Elementary matrices are invertible and their inverses are also elementary, so multiplying from the left first by ${\displaystyle {R_{r}}^{-1}}$, then by ${\displaystyle {R_{r-1}}^{-1}}$, etc., gives ${\displaystyle M}$ as a product of elementary matrices ${\displaystyle M={R_{1}}^{-1}\cdots {R_{r}}^{-1}}$. Thus, we will be done if we show that elementary matrices change a given basis to another basis, for then ${\displaystyle {R_{r}}^{-1}}$ changes ${\displaystyle B}$ to some other basis ${\displaystyle B_{r}}$, and ${\displaystyle {R_{r-1}}^{-1}}$ changes ${\displaystyle B_{r}}$ to some ${\displaystyle B_{r-1}}$, ..., and the net effect is that ${\displaystyle M}$ changes ${\displaystyle B}$ to ${\displaystyle B_{1}}$. We will prove this about elementary matrices by covering the three types as separate cases.

Applying a row-multiplication matrix

${\displaystyle M_{i}(k){\begin{pmatrix}c_{1}\\\vdots \\c_{i}\\\vdots \\c_{n}\end{pmatrix}}={\begin{pmatrix}c_{1}\\\vdots \\kc_{i}\\\vdots \\c_{n}\end{pmatrix}}}$

changes a representation with respect to ${\displaystyle \langle {\vec {\beta }}_{1},\dots ,{\vec {\beta }}_{i},\dots ,{\vec {\beta }}_{n}\rangle }$ to one with respect to ${\displaystyle \langle {\vec {\beta }}_{1},\dots ,(1/k){\vec {\beta }}_{i},\dots ,{\vec {\beta }}_{n}\rangle }$ in this way.

${\displaystyle {\vec {v}}=c_{1}\cdot {\vec {\beta }}_{1}+\dots +c_{i}\cdot {\vec {\beta }}_{i}+\dots +c_{n}\cdot {\vec {\beta }}_{n}}$
${\displaystyle \mapsto \;c_{1}\cdot {\vec {\beta }}_{1}+\dots +kc_{i}\cdot (1/k){\vec {\beta }}_{i}+\dots +c_{n}\cdot {\vec {\beta }}_{n}={\vec {v}}}$

Similarly, left-multiplication by a row-swap matrix ${\displaystyle P_{i,j}}$ changes a representation with respect to the basis ${\displaystyle \langle {\vec {\beta }}_{1},\dots ,{\vec {\beta }}_{i},\dots ,{\vec {\beta }}_{j},\dots ,{\vec {\beta }}_{n}\rangle }$ into one with respect to the basis ${\displaystyle \langle {\vec {\beta }}_{1},\dots ,{\vec {\beta }}_{j},\dots ,{\vec {\beta }}_{i},\dots ,{\vec {\beta }}_{n}\rangle }$ in this way.

${\displaystyle {\vec {v}}=c_{1}\cdot {\vec {\beta }}_{1}+\dots +c_{i}\cdot {\vec {\beta }}_{i}+\dots +c_{j}{\vec {\beta }}_{j}+\dots +c_{n}\cdot {\vec {\beta }}_{n}}$
${\displaystyle \mapsto \;c_{1}\cdot {\vec {\beta }}_{1}+\dots +c_{j}\cdot {\vec {\beta }}_{j}+\dots +c_{i}\cdot {\vec {\beta }}_{i}+\dots +c_{n}\cdot {\vec {\beta }}_{n}={\vec {v}}}$

And, a representation with respect to ${\displaystyle \langle {\vec {\beta }}_{1},\dots ,{\vec {\beta }}_{i},\dots ,{\vec {\beta }}_{j},\dots ,{\vec {\beta }}_{n}\rangle }$ changes via left-multiplication by a row-combination matrix ${\displaystyle C_{i,j}(k)}$ into a representation with respect to ${\displaystyle \langle {\vec {\beta }}_{1},\dots ,{\vec {\beta }}_{i}-k{\vec {\beta }}_{j},\dots ,{\vec {\beta }}_{j},\dots ,{\vec {\beta }}_{n}\rangle }$

${\displaystyle {\vec {v}}=c_{1}\cdot {\vec {\beta }}_{1}+\dots +c_{i}\cdot {\vec {\beta }}_{i}+c_{j}{\vec {\beta }}_{j}+\dots +c_{n}\cdot {\vec {\beta }}_{n}}$
${\displaystyle \mapsto \;c_{1}\cdot {\vec {\beta }}_{1}+\dots +c_{i}\cdot ({\vec {\beta }}_{i}-k{\vec {\beta }}_{j})+\dots +(kc_{i}+c_{j})\cdot {\vec {\beta }}_{j}+\dots +c_{n}\cdot {\vec {\beta }}_{n}={\vec {v}}}$

(the definition of reduction matrices specifies that ${\displaystyle i\neq k}$ and ${\displaystyle k\neq 0}$ and so this last one is a basis).

Corollary 1.5

A matrix is nonsingular if and only if it represents the identity map with respect to some pair of bases.

In the next subsection we will see how to translate among representations of maps, that is, how to change ${\displaystyle {\rm {Rep}}_{B,D}(h)}$ to ${\displaystyle {\rm {Rep}}_{{\hat {B}},{\hat {D}}}(h)}$. The above corollary is a special case of this, where the domain and range are the same space, and where the map is the identity map.

## ExercisesEdit

This exercise is recommended for all readers.
Problem 1

In ${\displaystyle \mathbb {R} ^{2}}$ , where

${\displaystyle D=\langle {\begin{pmatrix}2\\1\end{pmatrix}},{\begin{pmatrix}-2\\4\end{pmatrix}}\rangle }$

find the change of basis matrices from ${\displaystyle D}$  to ${\displaystyle {\mathcal {E}}_{2}}$  and from ${\displaystyle {\mathcal {E}}_{2}}$  to ${\displaystyle D}$ . Multiply the two.

This exercise is recommended for all readers.
Problem 2

Find the change of basis matrix for ${\displaystyle B,D\subseteq \mathbb {R} ^{2}}$ .

1. ${\displaystyle B={\mathcal {E}}_{2}}$ , ${\displaystyle D=\langle {\vec {e}}_{2},{\vec {e}}_{1}\rangle }$
2. ${\displaystyle B={\mathcal {E}}_{2}}$ , ${\displaystyle D=\langle {\begin{pmatrix}1\\2\end{pmatrix}},{\begin{pmatrix}1\\4\end{pmatrix}}\rangle }$
3. ${\displaystyle B=\langle {\begin{pmatrix}1\\2\end{pmatrix}},{\begin{pmatrix}1\\4\end{pmatrix}}\rangle }$ , ${\displaystyle D={\mathcal {E}}_{2}}$
4. ${\displaystyle B=\langle {\begin{pmatrix}-1\\1\end{pmatrix}},{\begin{pmatrix}2\\2\end{pmatrix}}\rangle }$ , ${\displaystyle D=\langle {\begin{pmatrix}0\\4\end{pmatrix}},{\begin{pmatrix}1\\3\end{pmatrix}}\rangle }$
Problem 3

For the bases in Problem 2, find the change of basis matrix in the other direction, from ${\displaystyle D}$  to ${\displaystyle B}$ .

This exercise is recommended for all readers.
Problem 4

Find the change of basis matrix for each ${\displaystyle B,D\subseteq {\mathcal {P}}_{2}}$ .

1. ${\displaystyle B=\langle 1,x,x^{2}\rangle ,D=\langle x^{2},1,x\rangle }$
2. ${\displaystyle B=\langle 1,x,x^{2}\rangle ,D=\langle 1,1+x,1+x+x^{2}\rangle }$
3. ${\displaystyle B=\langle 2,2x,x^{2}\rangle ,D=\langle 1+x^{2},1-x^{2},x+x^{2}\rangle }$
This exercise is recommended for all readers.
Problem 5

Decide if each changes bases on ${\displaystyle \mathbb {R} ^{2}}$ . To what basis is ${\displaystyle {\mathcal {E}}_{2}}$  changed?

1. ${\displaystyle {\begin{pmatrix}5&0\\0&4\end{pmatrix}}}$
2. ${\displaystyle {\begin{pmatrix}2&1\\3&1\end{pmatrix}}}$
3. ${\displaystyle {\begin{pmatrix}-1&4\\2&-8\end{pmatrix}}}$
4. ${\displaystyle {\begin{pmatrix}1&-1\\1&1\end{pmatrix}}}$
Problem 6

Find bases such that this matrix represents the identity map with respect to those bases.

${\displaystyle {\begin{pmatrix}3&1&4\\2&-1&1\\0&0&4\end{pmatrix}}}$
Problem 7

Conside the vector space of real-valued functions with basis ${\displaystyle \langle \sin(x),\cos(x)\rangle }$ . Show that ${\displaystyle \langle 2\sin(x)+\cos(x),3\cos(x)\rangle }$  is also a basis for this space. Find the change of basis matrix in each direction.

Problem 8

Where does this matrix

${\displaystyle {\begin{pmatrix}\cos(2\theta )&\sin(2\theta )\\\sin(2\theta )&-\cos(2\theta )\end{pmatrix}}}$

send the standard basis for ${\displaystyle \mathbb {R} ^{2}}$ ? Any other bases? Hint. Consider the inverse.

This exercise is recommended for all readers.
Problem 9

What is the change of basis matrix with respect to ${\displaystyle B,B}$ ?

Problem 10

Prove that a matrix changes bases if and only if it is invertible.

Problem 11

Finish the proof of Lemma 1.4.

This exercise is recommended for all readers.
Problem 12

Let ${\displaystyle H}$  be a ${\displaystyle n\!\times \!n}$  nonsingular matrix. What basis of ${\displaystyle \mathbb {R} ^{n}}$  does ${\displaystyle H}$  change to the standard basis?

This exercise is recommended for all readers.
Problem 13
1. In ${\displaystyle {\mathcal {P}}_{3}}$  with basis ${\displaystyle B=\langle 1+x,1-x,x^{2}+x^{3},x^{2}-x^{3}\rangle }$  we have this represenatation.
${\displaystyle {\rm {Rep}}_{B}(1-x+3x^{2}-x^{3})={\begin{pmatrix}0\\1\\1\\2\end{pmatrix}}_{B}}$
Find a basis ${\displaystyle D}$  giving this different representation for the same polynomial.
${\displaystyle {\rm {Rep}}_{D}(1-x+3x^{2}-x^{3})={\begin{pmatrix}1\\0\\2\\0\end{pmatrix}}_{D}}$
2. State and prove that any nonzero vector representation can be changed to any other.

Hint. The proof of Lemma 1.4 is constructive— it not only says the bases change, it shows how they change.

Problem 14

Let ${\displaystyle V,W}$  be vector spaces, and let ${\displaystyle B,{\hat {B}}}$  be bases for ${\displaystyle V}$  and ${\displaystyle D,{\hat {D}}}$  be bases for ${\displaystyle W}$ . Where ${\displaystyle h:V\to W}$  is linear, find a formula relating ${\displaystyle {\rm {Rep}}_{B,D}(h)}$  to ${\displaystyle {\rm {Rep}}_{{\hat {B}},{\hat {D}}}(h)}$ .

This exercise is recommended for all readers.
Problem 15

Show that the columns of an ${\displaystyle n\!\times \!n}$  change of basis matrix form a basis for ${\displaystyle \mathbb {R} ^{n}}$ . Do all bases appear in that way: can the vectors from any ${\displaystyle \mathbb {R} ^{n}}$  basis make the columns of a change of basis matrix?

This exercise is recommended for all readers.
Problem 16

Find a matrix having this effect.

${\displaystyle {\begin{pmatrix}1\\3\end{pmatrix}}\;\mapsto \;{\begin{pmatrix}4\\-1\end{pmatrix}}}$

That is, find a ${\displaystyle M}$  that left-multiplies the starting vector to yield the ending vector. Is there a matrix having these two effects?

1. ${\displaystyle {\begin{pmatrix}1\\3\end{pmatrix}}\mapsto {\begin{pmatrix}1\\1\end{pmatrix}}\quad {\begin{pmatrix}2\\-1\end{pmatrix}}\mapsto {\begin{pmatrix}-1\\-1\end{pmatrix}}}$
2. ${\displaystyle {\begin{pmatrix}1\\3\end{pmatrix}}\mapsto {\begin{pmatrix}1\\1\end{pmatrix}}\quad {\begin{pmatrix}2\\6\end{pmatrix}}\mapsto {\begin{pmatrix}-1\\-1\end{pmatrix}}}$

Give a necessary and sufficient condition for there to be a matrix such that ${\displaystyle {\vec {v}}_{1}\mapsto {\vec {w}}_{1}}$  and ${\displaystyle {\vec {v}}_{2}\mapsto {\vec {w}}_{2}}$ .

Solutions

Linear Algebra
 ← Change of Basis Changing Representations of Vectors Changing Map Representations →