I'm learning linear algebra, specifically linear transformations, and need help with the following exercise:
Consider the endomorphism $f: \mathbb{R^{3}} \to \mathbb{R^{3}}$ defined by $$f(x,y,z) = (x+2y+3z,-x+4z,2y+2z)$$ for all $x, y, z \in \mathbb{R}$. Show that $f$ is invertible and find $f^{-1}$.
My work and thoughts:
We consider the standard basis $\mathscr{B}=\{(1,0,0), (0,1,0), (0,0,1)\}$ of $\mathbb{R^{3}}$. Given that $f$ is a linear transformation, it can be represented by a matrix $A$ whose columns are the images of the standard basis vectors. We have
$$f(1, 0, 0) = (1, -1, 0), \quad f(0, 1, 0) = (2, 0, 2), \quad f(0, 0, 1) = (3, 4, 2).$$
Hence, the matrix representation of $f$ with respect to the basis $\mathscr{B}$ is given by
$$A = \begin{pmatrix}1 & 2 & 3\\-1 & 0 & 4\\0 & 2 & 2\end{pmatrix}.$$
From here, I'm not sure what I should actually do. Do I need to show that the matrix $A$ is invertible? If $A$ is invertible, does this mean that $f$ is also invertible and, more importantly, why? If so, how do I explicitly write $f^{-1}$?
To save me some time, I have evaluate the inverse of $A$ in Mathematica and found
$$A^{-1} = \begin{pmatrix}\frac{4}{5} & -\frac{1}{5} & -\frac{4}{5}\\-\frac{1}{5} & -\frac{1}{5} & \frac{7}{10}\\\frac{1}{5} & \frac{1}{5} & -\frac{1}{5}\end{pmatrix}.$$