How to construct change of basis matrix How do I construct a change of basis matrix?
For example in $\mathbb R^3$, how to construct matrix changing basis from $A$ to $B$?
$A=\begin{pmatrix} 1  \\ 0 \\5 \end{pmatrix}\begin{pmatrix} 4  \\ 5 \\5 \end{pmatrix}\begin{pmatrix} 1  \\ 1 \\4 \end{pmatrix}$
$B=\begin{pmatrix} 1  \\ 3 \\2 \end{pmatrix}\begin{pmatrix} -2  \\ -1 \\1 \end{pmatrix}\begin{pmatrix} 1  \\ 2 \\3 \end{pmatrix}$

Let $M_{u,v}$ be the base change matrix from base $u$ to base $v$. Then the following identity holds for bases $u$,$v$, and $w$: $$ M_{u,v}=M_{w,v}M_{u,w}$$ In this case $A$ can be the role of $u$ and $B$ is $v$. Use the standard basis $e$ as the intermediate basis $w$. Then the expression is: $$M_{A,B}=M_{e,B}M_{A,e} = M_{B,e}^{-1}M_{A,e}$$ The basis change matrix from any basis to the standard basis is easy, just write the vectors as the columns of the matrix. So here have to calculate $$\left( \begin{array}{ccc}
1 & -2 & 1 \\
3 & -1 & 2 \\
2 & 1 & 3 \end{array} \right)^{-1}\left( \begin{array}{ccc}
1 & 4 & 1 \\
0 & 5 & 1 \\
5 & 5 & 4 \end{array} \right)$$
