Mathematics · Linear Algebra & Transformations

Matrix Transformations & Linear Algebra

Basis vectors 2×2 matrices Determinant & area Rotation & shear Computer graphics

A matrix isn't just a spreadsheet grid of numbers. Geometrically, a $2\times 2$ matrix tells you where the two foundational unit arrows—i-hat and j-hat—land after you stretch, rotate, or bend 2D space. Every 3D video game engine, robotic arm, and CSS animation runs on this exact geometry.

Learning Targets

  • Trace where basis vectors $\hat{i} = [1, 0]^T$ and $\hat{j} = [0, 1]^T$ land to visualize any linear transformation.
  • Connect the four numbers in $\begin{bmatrix} a & b \\ c & d \end{bmatrix}$ directly to the coordinates of the transformed basis vectors.
  • Interpret the determinant $\det(A) = ad - bc$ as the factor by which area scales (and notice when orientation flips).
  • Recognize standard transformation matrices: identity, rotations, uniform scaling, reflections, and shears.

Prerequisites: The Unit Circle & Waves and Pythagoras & Triangles. Next: Algebra Tiles: Factoring and Computer Graphics.

Lab 1 · The Grid Transformer

The coordinate grid starts with standard axes. The blue vector is $\hat{i}$ (first column) and the orange vector is $\hat{j}$ (second column). Click and drag their arrow heads on the grid, or type values into the matrix brackets below.

Transformation Matrix A =
i-hat lands at(1.00, 0.00)
j-hat lands at(0.00, 1.00)
Determinant det(A)1.00
OrientationStandard

Lab 2 · Transforming Shapes in Computer Graphics

Every sprite in a 2D game or polygon in 3D CAD is simply a list of coordinate points $(x, y)$. When you transform a model, the GPU calculates $\begin{bmatrix} a & b \\ c & d \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} ax + by \\ cx + dy \end{bmatrix}$ for every single point.

Notice the Parallelogram: The unit square originally has area 1.0. When transformed, it becomes a parallelogram whose area is exactly equal to $|\det(A)|$! If the determinant is negative, the shape has been flipped through a mirror (chirality reversal).

Lab 3 · Inverses: Can You Rewind Time?

If $\det(A) \neq 0$, the transformation preserves 2D space without completely flattening it. That means an inverse matrix $A^{-1}$ exists that can undo the transformation exactly.

Inverse Matrix A⁻¹ =
1.00 0.00 0.00 1.00

Check Your Understanding

Compute the determinant of $\begin{bmatrix} 4 & 1 \\ 2 & 3 \end{bmatrix}$.

What is the determinant of a matrix that flattens all of 2D space into a single straight line?

If matrix $A = \begin{bmatrix} 3 & 0 \\ 0 & 2 \end{bmatrix}$ transforms a unit square of area 1, what is the new area?