Take a look at the following problem:
Let $V = \{v_1, v_2, v_3\} $ with $v_1 = \begin{pmatrix} 0 \\ 0 \\ 1 \end{pmatrix}$. $v_2 = \begin{pmatrix} 1 \\ 0 \\ 0 \end{pmatrix}$, $v_3 = \begin{pmatrix} a \\ b \\ c \end{pmatrix}$ be a basis of $\mathbb R^3$.
Let $f: \mathbb R^3 \to \mathbb R^3$ be a homomorphism with $f(v_1) = \begin{pmatrix} 1 \\ 0 \\ 1 \end{pmatrix}$, $f(v_2) = \begin{pmatrix} a \\ b \\ c - 1 \end{pmatrix}$, $f(v_3) = \begin{pmatrix} -1 \\ 0 \\ 1 \end{pmatrix}$. Identify the transformation matrix $A$ of $f$ with respect to $V$.
Now the solution happens to be $$A = \begin{pmatrix} 1 & -1 & 1 \\ 1 & 0 &-1 \\ 0 & 1 & 0 \end{pmatrix}.$$ The problem I have is that $$Av_1 = \begin{pmatrix} 1 \\ -1 \\ 0 \end{pmatrix} \neq \begin{pmatrix} 1 \\ 0 \\ 1 \end{pmatrix} = f(v_1).$$ I know that this could arise from the fact that we're dealing with a different basis than the unit basis, but I would appreciate an explanation for this. What vector would I have to multiply $A$ with to get the result I want?