Matrices as Transformations

AP Precalculus · Parameters, Vectors, and Matrices

A matrix is a machine that moves the plane

A $2\times2$ matrix $A=\begin{pmatrix}a&b\\c&d\end{pmatrix}$ acts on a vector by $A\begin{pmatrix}x\\y\end{pmatrix}=\begin{pmatrix}ax+by\\cx+dy\end{pmatrix}$. The whole transformation is determined by two facts: the first column is the image of $\langle1,0\rangle$, the second column is the image of $\langle0,1\rangle$.

Composition is multiplication — applying $A$ then $B$ is the single matrix $BA$ (rightmost acts first), and in general $AB\neq BA$: order matters.

The determinant measures area: $\det A=ad-bc$, and any region of area $S$ maps to a region of area $|\det A|\cdot S$. If $\det A=0$ the plane collapses onto a line and the transformation cannot be undone — no inverse matrix exists.

Named transformations: rotation by $\theta$ is $\begin{pmatrix}\cos\theta&-\sin\theta\\\sin\theta&\cos\theta\end{pmatrix}$ (determinant $1$: areas preserved); dilation by $k$ is $kI$ (determinant $k^2$).

Transition-state models: when a matrix's columns are probability distributions, repeated multiplication $\vec s_{n+1}=T\vec s_n$ pushes a population between states; many systems settle into a steady state $\vec s$ with $T\vec s=\vec s$.

S = 1⟨1,0⟩⟨0,1⟩multiply by AS = |det A|column 1 of Acolumn 2 of A
The determinant is the area scale factor, read straight from the picture. The unit square (sides $\langle1,0\rangle$ and $\langle0,1\rangle$, area $1$) becomes a parallelogram whose two sides are the two columns of $A$, with area exactly $|\det A|$. Since every region can be approximated by a grid of small squares, this factor applies to every region: area $S$ becomes $|\det A|\cdot S$. A negative determinant means the figure is also flipped (orientation reversed); a determinant of $0$ means the parallelogram is flattened into a segment.

Worked example: composing two transformations: the order determines the result

Let $A=\begin{pmatrix}1&2\\0&1\end{pmatrix}$ (a horizontal shear) and $R=\begin{pmatrix}0&-1\\1&0\end{pmatrix}$ (a $90°$ counterclockwise rotation). Find the matrix of the transformation "rotate first, then shear" and the image of the point $(1,1)$ under it.

Solution

Rotate first, shear second ⇒ $R$ acts first ⇒ the composite matrix is $AR$ (write the transformation applied later on the left):

$$AR=\begin{pmatrix}1&2\\0&1\end{pmatrix}\begin{pmatrix}0&-1\\1&0\end{pmatrix}=\begin{pmatrix}0\cdot1+2\cdot1 & -1+0\\ 0+1 & 0\end{pmatrix}=\begin{pmatrix}2&-1\\1&0\end{pmatrix}$$

The image of $(1,1)$: $\begin{pmatrix}2&-1\\1&0\end{pmatrix}\begin{pmatrix}1\\1\end{pmatrix}=\begin{pmatrix}1\\1\end{pmatrix}$, and this point happens to stay fixed.

Comparison: $RA=\begin{pmatrix}0&-1\\1&2\end{pmatrix}\neq AR$. The same two transformations in reversed order give a different machine. Verify with the same point $(1,1)$: $RA\begin{pmatrix}1\\1\end{pmatrix}=\begin{pmatrix}-1\\3\end{pmatrix}$.

Common mistake

"Do $A$ first, then $B$" is the matrix $BA$, not $AB$: the written order is opposite to the order of action, because the vector is multiplied from the right. A second trap: with a negative determinant, carrying the sign over into the area; the area takes $|\det A|$, and the negative sign only signals a flip. A third trap in state-transition models: the columns must sum to $1$, and anyone who builds the matrix by rows has a model that runs wrong from the first multiplication.

Key takeaway

Two columns = the images of the two unit vectors. Composing transformations = matrix multiplication, with the transformation done first on the right. $|\det|$ = area factor, $\det=0$ = flattened with no way back. Steady state = the vector $\vec s$ satisfying $T\vec s=\vec s$.

← Vectors in the Plane · All AP Precalculus lessons · Practice AP Precalculus questions (free, instant scoring)