We take our notation from
ExampleΒ 3.1.4. Let
\({T:\rr^2 \to \rr^2}\) be the linear transformation which reflects a vector in the Cartesian plane across the
\(x\)-axis, and let
\(S:\rr^2\to\rr^2\) be the linear transformation which rotates a vector counter-clockwise around the origin by
\(\frac{\pi}{2}\) radians. In this example we will find the
\(2\times 2\) matrices
\(A\) and
\(B\) such that
\(T(\bfv)=A\bfv\) and
\(S(\bfv)=B\bfv\) for all
\(\bfv \in \rr^2\text{.}\)
In the proof of
TheoremΒ 3.2.2, we saw that the way to form the matrix of a linear transformation is to calculate the image of the vectors
\(\mathbf{e}_1, \ldots, \mathbf{e}_n\text{.}\) In this context, we need to calculate the image of
\(\mathbf{e}_1\) and
\(\mathbf{e}_2\) under
\(T\) and
\(S\text{.}\)
The calculations we seek are below:
\begin{equation*}
T(\mathbf{e}_1) = \begin{bmatrix}
1 \\ 0
\end{bmatrix}, \hspace{6pt}
T(\mathbf{e}_2) = \begin{bmatrix}
0 \\ -1
\end{bmatrix}, \hspace{6pt}
S(\mathbf{e}_1) = \begin{bmatrix}
0 \\ 1
\end{bmatrix}, \hspace{6pt}
S(\mathbf{e}_2) = \begin{bmatrix}
-1 \\ 0
\end{bmatrix}\text{.}
\end{equation*}
This tells us that the matrices \(A\) and \(B\) are as follows:
\begin{equation*}
A = \begin{bmatrix}
1 \amp 0 \\ 0 \amp -1
\end{bmatrix}, \hspace{12pt}
B = \begin{bmatrix}
0 \amp -1 \\ 1 \amp 0
\end{bmatrix}\text{.}
\end{equation*}
Any curious reader can check that these matrices are correct by choosing a vector in \(\rr^2\) and multiplying by \(A\) and by \(B\) separately. The results should align with the actions of \(T\) and \(S\text{,}\) respectively.