SECTION 1
Historical Context & Motivation
Long before computers could render 3-D video games or animate movie characters, mathematicians were searching for a clean, powerful way to describe shapes and their movements. The ancient Greeks studied geometry with rulers and compasses, but they lacked a system that could handle many points at once. Over centuries, new tools emerged — coordinates, vectors, and matrices — that turned geometry into something you could calculate step by step.
~300 BC • Euclid's Elements
1637 • Descartes Invents Coordinate Geometry
1843 • Hamilton's Quaternions
1850s • Cayley & Sylvester Formalize Matrices
1970s–Today • Computer Graphics Revolution
The central question this lesson addresses is: How can we use vectors and matrices to move, resize, and reshape geometric figures in a precise, repeatable way? Once you see the pattern, you'll realize that every animation frame and every GPS map on your phone relies on these same ideas.
SECTION 2
Core Principles & Definitions
Before we start transforming shapes, let's nail down the key ideas you'll use throughout the lesson. Each concept builds on the one before it, so take a moment with each card below.
Vectors as Points
Transformation
Matrix Multiplication
Linear vs. Affine
Composition
KEY TAKEAWAY
SECTION 3
Visual Explanation — Transformations on a Grid
The diagram below shows the four main geometric transformations applied to the same triangle. Study how each vertex moves; the grid lines help you count units.
Notice that in every case, the shape itself doesn't change its basic form — angles stay the same in translation, reflection, and rotation (these are called rigid transformations). Scaling changes the size but keeps the same proportions. The power of linear algebra is that each of these transformations can be expressed as a simple matrix multiplication.
SECTION 4
Mathematical Framework
Let's turn the visual ideas into algebra. Every point in 2-D can be written as a column vector. A 2 × 2 matrix multiplied by that vector produces the transformed point. Here are the key matrices.
SCALING MATRIX
sₓ scales in the x-direction; sᵧ scales in the y-direction. When sₓ = sᵧ, the shape grows or shrinks uniformly.
ROTATION MATRIX (θ COUNTERCLOCKWISE)
θ is the angle of rotation measured counterclockwise from the positive x-axis. For a 90° turn, cos 90° = 0 and sin 90° = 1.
REFLECTION OVER THE Y-AXIS
This flips the x-coordinate's sign while keeping y the same. To reflect over the x-axis instead, swap the −1 and 1 on the diagonal.
TRANSLATION (VECTOR ADDITION)
Translation is not a matrix multiplication in 2 × 2 form; it is vector addition. tₓ shifts horizontally, tᵧ shifts vertically. You can fold translation into matrix form using 3 × 3 homogeneous coordinates, which advanced courses cover.
How Matrix Multiplication Works (Quick Refresher)
SECTION 5
Detailed Breakdown — Composition of Transformations
In practice, you rarely apply just one transformation. A video game character might need to be rotated, scaled, and then translated — all in a single frame update. The beauty of matrices is that you can multiply several transformation matrices together into one combined matrix and apply it in a single step.
Order matters! Rotating first and then scaling can give a different result than scaling first and then rotating. In matrix terms, A × B is generally not the same as B × A. Always apply transformations from right to left when reading the product: the matrix closest to the vector acts first.
| Transformation | Matrix / Operation | Preserves Shape? |
|---|---|---|
| Translation | P' = P + t (vector addition) | Yes — rigid motion |
| Reflection | 2 × 2 matrix with −1 on one diagonal | Yes — rigid motion (flipped orientation) |
| Rotation | 2 × 2 matrix with cos θ, sin θ | Yes — rigid motion |
| Scaling | Diagonal matrix [sₓ, sᵧ] | Proportions yes, size no |
| Shear | Off-diagonal entry ≠ 0 | No — angles change |
Summary of 2-D transformations and their properties
SECTION 6
Worked Example — Rotating a Triangle
Let's apply what we've learned. Suppose triangle ABC has vertices A = (1, 0), B = (3, 0), and C = (2, 3). Rotate the triangle 90° counterclockwise about the origin.
Rotating Triangle ABC by 90° CCW
- 1
Step 1 — Write the Rotation Matrix
For θ = 90°, cos 90° = 0 and sin 90° = 1. The rotation matrix becomes R = [ 0 −1 ] / [ 1 0 ]. - 2
Step 2 — Transform Vertex A = (1, 0)
Multiply R by the vector (1, 0): new x = 0 × 1 + (−1) × 0 = 0; new y = 1 × 1 + 0 × 0 = 1.A' = (0, 1) - 3
Step 3 — Transform Vertex B = (3, 0)
New x = 0 × 3 + (−1) × 0 = 0; new y = 1 × 3 + 0 × 0 = 3.B' = (0, 3) - 4
Step 4 — Transform Vertex C = (2, 3)
New x = 0 × 2 + (−1) × 3 = −3; new y = 1 × 2 + 0 × 3 = 2.C' = (−3, 2) - 5
Step 5 — Verify with a Sketch
Plot the new vertices A'(0,1), B'(0,3), C'(−3,2). The triangle has the same side lengths and angles as the original — it has simply turned 90° counterclockwise around the origin.Triangle A'B'C' = (0,1), (0,3), (−3,2)
SECTION 7
Strengths & Limitations of Matrix Transformations
| Strengths | Limitations |
|---|---|
| One matrix encodes an entire transformation — efficient for computers to process millions of points. | 2 × 2 matrices cannot represent translation; you need 3 × 3 homogeneous coordinates. |
| Matrices can be composed (multiplied) so many steps become one step. | Matrix multiplication is not commutative (order matters), which can be confusing at first. |
| Works the same way in 2-D and 3-D (just use 3 × 3 or 4 × 4 matrices). | Non-linear transformations (like bending or warping) require more advanced techniques. |
| Inverse matrices let you undo a transformation easily. | Numerical rounding errors can accumulate when many matrices are multiplied together. |
Pros and cons of using matrices for geometric transformations
KEY TAKEAWAY
SECTION 8
Connection to Advanced Theory — 3-D & Beyond
Everything you've learned about 2 × 2 matrices extends naturally to three dimensions. In 3-D graphics, a 4 × 4 matrix (using homogeneous coordinates) can handle rotation, scaling, reflection, and translation all in one multiplication. This is the foundation behind every 3-D video game engine and animation studio pipeline.
| Concept | What You Learned (2-D) | Advanced Version (3-D+) |
|---|---|---|
| Rotation | 2 × 2 matrix with sin/cos | 3 × 3 matrix (rotate around x, y, or z axis) or quaternions |
| Translation | Vector addition | Embedded in 4 × 4 homogeneous matrix |
| Composition | Multiply two 2 × 2 matrices | Multiply chains of 4 × 4 matrices (model-view-projection pipeline) |
| Inverse | 2 × 2 inverse undoes transformation | Used for camera transforms & physics simulations |
From this lesson to advanced computer graphics
If you continue into courses on computer graphics, robotics, or physics simulations, you'll also encounter eigenvalues and eigenvectors. These tell you which directions a transformation stretches and by how much — a powerful concept that builds directly on the matrix ideas you practiced today.
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
Show answer
Question 2: BASIC CALCULATION
Show answer
Question 3: INTERMEDIATE
Show answer
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING
Show answer
SUMMARY
Lesson Summary
Summary
In this lesson you learned that vectors represent points on the coordinate plane and that matrices encode geometric transformations. The four core transformations are translation (sliding via vector addition), reflection (flipping across a line), rotation (turning by an angle using sin and cos), and scaling (resizing by a factor). Each can be applied by a single matrix multiplication, and multiple transformations can be composed into one combined matrix.
Remember that order matters when composing transformations — rotating then scaling is not the same as scaling then rotating. These 2-D ideas extend naturally to 3-D computer graphics using larger matrices. Whether you're programming a game, designing a building, or analyzing data, the geometric power of linear algebra gives you precise, repeatable control over shapes and space.