How does one go about converting a linear map in functional form to a matrix; for instance:
For a fixed unit vector $\hat{n} \in \mathbb{R}^{3}$, define the map $f:\mathbb{R}^{3}\to\mathbb{R}^{3}$ by: $$f(\vec{v})=\vec{v}-2(\hat{n}\cdot\vec{v})\hat{n}$$ Work out the matrix $\mathbf{A}$ describing $f$ relative to the basis $\{\hat{\mathrm{i}},\hat{\mathrm{j}},\hat{\mathrm{k}}\}$ and show that $\mathbf{A}^{2}=\vec{1}$
The question then goes on to ask how to work out a matrix describing $f$ relative to a different basis set $\{\hat{u}_{1},\hat{u}_{2},\hat{n}\}$ and I'm not sure how to approach these problems.