Thinking About Functions Geometrically
A **linear transformation** is a function that takes vectors as input and outputs vectors. But here's the key insight: instead of thinking about transforming individual vectors, think about **transforming the entire space**.
Imagine the 2D plane as an infinite grid. A linear transformation moves every point in this grid to a new location. The magic is that **grid lines remain parallel and evenly spaced**, and the origin never moves.
Interactive Transformation Playground
Click on different transformations below to see how they transform the grid and basis vectors. The red lines show where the original \(\hat{i}\) and \(\hat{j}\) vectors land.
[ 0 1 ]
Does nothing
[ 1 0 ]
Rotate counterclockwise
[ 0 1 ]
Slant to the right
[ 0 2 ]
Expand uniformly
[ 0 1 ]
Mirror flip
[ 0 0 ]
Squash to line
Matrices: Where Do Basis Vectors Land?
Here's the beautiful insight: **a matrix is just a compact way to describe where \(\hat{i}\) and \(\hat{j}\) land after the transformation**.
This means:
- \(\hat{i} = \begin{bmatrix} 1 \\ 0 \end{bmatrix}\) lands at \(\begin{bmatrix} a \\ c \end{bmatrix}\)
- \(\hat{j} = \begin{bmatrix} 0 \\ 1 \end{bmatrix}\) lands at \(\begin{bmatrix} b \\ d \end{bmatrix}\)
- Sends \(\hat{i}\) to \(\begin{bmatrix} 2 \\ 0 \end{bmatrix}\) → stretches x-axis by 2
- Sends \(\hat{j}\) to \(\begin{bmatrix} 0 \\ 3 \end{bmatrix}\) → stretches y-axis by 3
Gallery of Common Transformations
Rotation by θ
Rotates the entire plane counterclockwise by angle θ. Preserves distances and angles.
Shear
Keeps \(\hat{i}\) fixed, but slides \(\hat{j}\) to the right by \(k\hat{i}\). Creates a slanting effect.
Scaling
Stretches space by \(s_x\) in x-direction and \(s_y\) in y-direction.
Projection onto x-axis
Collapses the y-dimension. Every point lands on the x-axis. **Not invertible.**
The Determinant: How Much Does Area Change?
The **determinant** of a matrix tells you how much the transformation scales areas. A unit square (area = 1) becomes a parallelogram with area = |det(A)|.
- det(A) = 1: Transformation preserves area (e.g., rotation)
- det(A) = 0: Transformation squashes space to a lower dimension (not invertible)
- det(A) < 0: Transformation flips orientation (like a mirror)
- det(A) = 2: Every area doubles
Composition: Doing Multiple Transformations
What if we want to rotate **then** shear? We compose transformations by **multiplying matrices**. But there's a twist: **order matters**.
If you apply transformation \(M_1\) followed by \(M_2\), the combined effect is:
The Inverse: Undoing a Transformation
If a transformation is invertible (det ≠ 0), you can "undo" it. The **inverse matrix** \(A^{-1}\) reverses the transformation.
Why This View Matters
Thinking of matrices as **transformations of space** rather than grids of numbers changes everything:
- Matrix multiplication becomes "do one transformation, then another"
- Determinant becomes "how much does this stretch/shrink area?"
- Eigenvalues become "which vectors just get scaled, not rotated?"
- Column space becomes "where does the space get squashed into?"
This geometric intuition is the foundation for understanding **all of linear algebra**.