Linear transformations
See a matrix as a function that moves space: rotations, scalings, shears and reflections, built column by column, and composed by multiplication.
22 min
A linear transformation T takes vectors to vectors and respects the two basic operations: T(u + v) = T(u) + T(v) and T(cv) = cT(v). Visually: lines stay lines, the origin stays put, and a grid of evenly spaced lines stays evenly spaced.
Every linear transformation of the plane is multiplication by a 2 × 2 matrix: T(x) = Ax.
Let e₁ = (1, 0) and e₂ = (0, 1). Because x = x₁e₁ + x₂e₂, linearity gives T(x) = x₁T(e₁) + x₂T(e₂). So the first column of A is T(e₁) and the second column is T(e₂). To build a matrix, just ask where the two basis vectors go.
| Transformation | Matrix |
|---|---|
| Rotate counterclockwise by θ | [cos θ −sin θ; sin θ cos θ] |
| Scale x by a, y by b | [a 0; 0 b] |
| Reflect in the x-axis | [1 0; 0 −1] |
| Shear along x by k | [1 k; 0 1] |
| Project onto the x-axis | [1 0; 0 0] |
Doing S after T is T first, then S, written ST (read right to left): (ST)x = S(Tx). The matrix of the combined move is the product, which is why matrix multiplication is defined as it is, and why order matters: rotate then stretch is not stretch then rotate.
A transformation scales all areas by the same factor, |det A|. A determinant of 0 means the plane is flattened onto a line: information is lost.
Find the matrix of a 90° counterclockwise rotation, and the image of (2, 1).
- 1
e₁ = (1, 0) goes to (0, 1); e₂ = (0, 1) goes to (−1, 0)
Rotating counterclockwise by 90° sends right to up and up to left.
First rotate 90° counterclockwise (R), then stretch x by 2 (S = [2 0; 0 1]). Find the single matrix SR.
- 1
R = [0 −1; 1 0], S = [2 0; 0 1]
Write both.
The shear A = [1 2; 0 1] acts on (1, 1). What happens?
- 1
A(1, 1) = 1(1, 0) + 1(2, 1) = (3, 1)
Combination of columns.
At θ = 90° the point (2, 1) goes to x′ = −1, matching the worked example. Set θ = 180° and see (2, 1) land at x′ = −2. Set θ = 0 and nothing moves. Rotate a point at the origin: it never moves, because the origin is fixed by every linear map.
x-coordinate after rotating (x, y) by θ
—
- Every linear transformation of the plane is x → Ax for a 2 × 2 matrix A.
- Column 1 of A is where e₁ lands; column 2 is where e₂ lands.
- Doing T then S is multiplication by ST: order matters.
- A scales areas by |det A|.
- Rotations, scalings, reflections, shears and projections are all linear.
Practice.
The matrix [3 0; 0 3] does what to a vector?
- Arotates by 3 radians
- Btriples its length
- Creflects it
- Dprojects it onto a line
Apply the shear [1 3; 0 1] to (2, 1). What is the new x-coordinate?
Rotation by 90° counterclockwise sends (1, 0) to (0, 1). Where does (0, 2) go? Give its x-coordinate.
The columns of a transformation matrix are:
- Athe images of the basis vectors
- Bthe eigenvalues
- Cthe inputs
- Dalways unit vectors
Which transformation is NOT linear?
- Arotation about the origin
- Breflection in a line through the origin
- Ctranslation by (1, 0)
- Dscaling
Practise this lesson, not just read it
In BiliMind the questions above are marked when you answer, the flashcards come back on a schedule, and the rest of Linear Algebra is planned around your week. Free.