☰ Course contents
Mathematics 🎓 University Year 1 The Grid Warper: A Matrix is a Transformation of Space
🎓 University Year 1 · Lesson 8 of 15

The Grid Warper: A Matrix is a Transformation of Space

A 2×2 matrix takes the whole plane and warps it — and its two columns tell you exactly where the basis vectors land.

University Year 1Calculus II / Linear Algebra
The Grid Warper: A Matrix is a Transformation of Space — illustration
💡
The big idea: A matrix is not just a grid of numbers; it is a <strong>function that transforms space</strong>. A 2&times;2 matrix stretches, rotates, shears or flips the entire plane while keeping the origin fixed and grid lines straight and evenly spaced. The secret to reading any matrix is its <em>columns</em>: they are the images of the basis vectors, so once you know where the grid&rsquo;s two unit arrows go, you know where <em>everything</em> goes.
🎯 By the end, you'll be able to
  • Interpret a 2×2 matrix as a linear transformation of the plane
  • Read a matrix's columns as the images of the basis vectors e₁ and e₂
  • Apply a matrix to a vector via the matrix–vector product
  • Interpret the determinant as the area scaling factor and its sign as orientation
📎 You should already know
  • Vectors and the standard basis
  • Matrix–vector multiplication
  • Coordinates in the plane

A matrix does something

It is easy to see a matrix as a static table of numbers. The powerful view is dynamic: a matrix is a linear transformation — a machine that takes in a vector and outputs a new one, warping the whole plane in the process. Straight grid lines stay straight and parallel, evenly spaced lines stay evenly spaced, and the origin stays put. Only stretching, rotating, shearing and flipping are allowed.

🔑 The columns are where the basis lands
For a 2×2 matrix, the first column is the image of the basis vector e1 = (1, 0) and the second column is the image of e2 = (0, 1). Track those two arrows and you have completely described the transformation — every other vector follows along.
\[ A=\begin{bmatrix} a & b \\ c & d \end{bmatrix},\qquad A\mathbf e_1=\begin{bmatrix} a \\ c \end{bmatrix},\quad A\mathbf e_2=\begin{bmatrix} b \\ d \end{bmatrix} \]
The columns of A are the images of the basis vectors — the new positions of the grid's unit arrows.

Why the columns are enough

Any vector (x, y) is just x e1 + y e2 — x steps along the first basis arrow plus y steps along the second. Because the transformation is linear, it respects that recipe: the image of (x, y) is x (image of e1) + y (image of e2). So the two columns, scaled by x and y and added, give the output. That is exactly the matrix–vector product.

\[ \begin{bmatrix} a & b \\ c & d \end{bmatrix}\begin{bmatrix} x \\ y \end{bmatrix}=x\begin{bmatrix} a \\ c \end{bmatrix}+y\begin{bmatrix} b \\ d \end{bmatrix}=\begin{bmatrix} ax+by \\ cx+dy \end{bmatrix} \]
Applying a matrix to a vector: a weighted sum of the columns.
🎮 The Grid Warper LIVE
A 2x2 matrix warps the whole grid — see how columns become the new basis.
📝 Worked example: Apply the shear matrix A = [[2, 1], [0, 1]] to the vector (3, 2).
  1. First column (2, 0) is where e₁ lands; second column (1, 1) is where e₂ lands.
  2. Combine them: \( 3\begin{bmatrix}2\\0\end{bmatrix}+2\begin{bmatrix}1\\1\end{bmatrix}=\begin{bmatrix}6\\0\end{bmatrix}+\begin{bmatrix}2\\2\end{bmatrix} \).
  3. Or row by row: top = 2·3 + 1·2 = 8, bottom = 0·3 + 1·2 = 2.
✓ The vector maps to <strong>(8, 2)</strong>.

The determinant: how much area is scaled

The transformation takes the unit square (spanned by e1 and e2) to a parallelogram (spanned by the two columns). The determinant ad − bc is the area of that parallelogram — the factor by which the transformation scales every area. A determinant of 6 means areas grow six-fold; a determinant of 1 preserves area; a determinant of 0 collapses the plane onto a line.

\[ \det A=ad-bc \]
The determinant of a 2×2 matrix: the signed area scaling factor of the transformation.
✨ The sign of the determinant flips orientation
A negative determinant means the transformation turns the plane over — like a reflection — reversing orientation (a counterclockwise loop becomes clockwise). The magnitude still gives the area factor; the sign records whether the plane was flipped. A pure rotation has determinant +1: it preserves both area and orientation.
⚠️ Det = 0 means the transformation is not invertible
If ad − bc = 0, the two columns are parallel, so the whole plane is squashed onto a single line (or the origin). Area collapses to zero and information is lost — different input vectors can land on the same output — so the transformation has no inverse. A nonzero determinant is exactly the condition for a matrix to be invertible.

Check your understanding

1. What do the columns of a 2×2 matrix represent as a transformation?
The first column is where e₁ = (1,0) lands and the second is where e₂ = (0,1) lands; together they determine the whole transformation.
2. Apply A = [[2, 1], [0, 1]] to the vector (3, 2). The result is:
Top row: 2·3 + 1·2 = 8. Bottom row: 0·3 + 1·2 = 2. So the image is (8, 2).
3. The determinant of a 2×2 matrix tells you:
det A = ad − bc is the area of the image of the unit square — the factor every area is multiplied by.
4. A rotation matrix (a pure rotation of the plane) has determinant:
Rotations preserve area and orientation, so their determinant is exactly +1.
5. If det A = 0, the transformation…
A zero determinant means the columns are parallel, squashing the plane onto a line; area becomes 0 and the matrix is not invertible.
✅ Key takeaways
  • A 2×2 matrix is a linear transformation: it warps the plane while keeping grid lines straight and the origin fixed.
  • The columns of the matrix are the images of the basis vectors e₁ and e₂ — they encode the whole map.
  • Applying a matrix to (x, y) is a weighted sum of its columns: (ax + by, cx + dy).
  • The determinant ad − bc is the area scaling factor; its sign records whether orientation is flipped.
  • Det = 0 collapses the plane onto a line and makes the matrix non-invertible; nonzero det means invertible.