Linear Transformations and Matrices
A linear transformation moves every point of the plane by a rule built only from multiplying and adding the coordinates. Every such rule is multiplication by a 2 × 2 matrix. This guide translates between rules and matrices and transforms many points at once.
A linear transformation \(L\) takes an input vector \(\langle x, y\rangle\) to an output vector whose components are sums of constant multiples of \(x\) and \(y\), like \(\langle 2x + y, x - 3y\rangle\). It always sends the zero vector to the zero vector. Writing vectors as \(2 \times 1\) columns, every linear transformation of the plane is \(L(\vec v) = A\vec v\) for one and only one \(2 \times 2\) matrix \(A\), and every \(2 \times 2\) matrix gives one. To transform \(n\) vectors at once, put them as the columns of a \(2 \times n\) matrix and multiply.
1What makes a transformation linear
Are \(T(\langle x, y\rangle) = \langle x + 1, y\rangle\) and \(U(\langle x, y\rangle) = \langle x^2, y\rangle\) linear transformations?
- 1A linear transformation sends \(\langle 0, 0\rangle\) to \(\langle 0, 0\rangle\). \(T(\langle 0, 0\rangle) = \langle 1, 0\rangle\), so \(T\) is not linear (it is a shift).
- 2\(U(\langle 0, 0\rangle) = \langle 0, 0\rangle\), but \(x^2\) is not a constant multiple of \(x\). \(U\) is not linear either.
“Move every point 1 unit right” is a perfectly good transformation, but it moves the origin, so it is not linear and no \(2 \times 2\) matrix does it.
2The matrix of a transformation
The coefficients of \(x\) and \(y\) in the first output component form the first row; those in the second form the second row. Write a coefficient of 0 for any missing variable.
\(L(\langle x, y\rangle) = \langle 2x + y,\ x - 3y\rangle\). Find its matrix and \(L(\langle 3, -1\rangle)\).
- 1Each output component is a sum of constant multiples of \(x\) and \(y\), so \(L\) is linear. The coefficients form the rows: \(A = \begin{bmatrix} 2 & 1 \\ 1 & -3 \end{bmatrix}\).
- 2\(A\begin{bmatrix} 3 \\ -1 \end{bmatrix} = \begin{bmatrix} 6 - 1 \\ 3 + 3 \end{bmatrix} = \begin{bmatrix} 5 \\ 6 \end{bmatrix}\).
Find the matrix of \(L(\langle x, y\rangle) = \langle 3y, -x\rangle\) and use it on \(\langle 2, 5\rangle\).
- 1Write every component with both variables: \(\langle 0x + 3y,\ -1x + 0y\rangle\). Matrix: \(\begin{bmatrix} 0 & 3 \\ -1 & 0 \end{bmatrix}\).
- 2\(\begin{bmatrix} 0 & 3 \\ -1 & 0 \end{bmatrix}\begin{bmatrix} 2 \\ 5 \end{bmatrix} = \begin{bmatrix} 15 \\ -2 \end{bmatrix}\).
“\(L(\langle x, y\rangle) = \langle 2x + y, x - 3y\rangle\) is the linear transformation \(L(\vec v) = A\vec v\) with \(A = \begin{bmatrix} 2 & 1 \\ 1 & -3 \end{bmatrix}\).”
For \(\langle 3y, -x\rangle\), the first row holds the coefficients of the first output: 0, 3. Putting them in a column instead gives \(\begin{bmatrix} 0 & -1 \\ 3 & 0 \end{bmatrix}\), which sends \(\langle 2, 5\rangle\) to \(\langle -5, 6\rangle\) instead of \(\langle 15, -2\rangle\).
3Transforming several vectors
Apply \(A = \begin{bmatrix} 2 & 1 \\ 0 & 1 \end{bmatrix}\) to the corners of the unit square.
- 1Put the corners \((0, 0), (1, 0), (1, 1), (0, 1)\) as the columns of a \(2 \times 4\) matrix.
- 2\(\begin{bmatrix} 2 & 1 \\ 0 & 1 \end{bmatrix}\begin{bmatrix} 0 & 1 & 1 & 0 \\ 0 & 0 & 1 & 1 \end{bmatrix} = \begin{bmatrix} 0 & 2 & 3 & 1 \\ 0 & 0 & 1 & 1 \end{bmatrix}\).
- 3Each column of the product is the image of the matching corner.
Quick reference
| Idea | In symbols |
|---|---|
| Linear | Output components are sums of constant multiples of \(x\) and \(y\) |
| Zero vector | \(L(\vec 0) = \vec 0\) always |
| Matrix | \(\langle ax + by,\ cx + dy\rangle \leftrightarrow \begin{bmatrix} a & b \\ c & d \end{bmatrix}\) |
| Apply | \(L(\vec v) = A\vec v\) |
| n vectors | \(A\) times a \(2 \times n\) matrix of columns |