Historical Context & Motivation
People have been moving, flipping, and stretching shapes for thousands of years. Ancient Greek mathematicians studied geometric transformations — ways of changing the position or shape of a figure — long before anyone wrote a matrix. Over time, mathematicians found a powerful shortcut: you can describe every rotation, reflection, projection, and shear using a simple grid of numbers called a matrix. This idea connects geometry (shapes you can see) with algebra (equations you can solve), and it is the backbone of modern computer graphics, robotics, and physics.
The central question this lesson answers is: How can we use matrices to describe every common way of transforming points in 2-D (R²) and 3-D (R³) space? By the end, you will be able to recognize and apply rotations, reflections, projections, and shears using matrix multiplication.
Core Principles & Definitions
A linear transformation is a rule that takes every point (or vector) in a space and sends it to a new point, while obeying two properties: straight lines stay straight, and the origin stays fixed. Every linear transformation in R² can be written as multiplication by a 2 × 2 matrix, and every linear transformation in R³ can be written as multiplication by a 3 × 3 matrix. The four most important families of transformations are rotations, reflections, projections, and shears.
Rotation
Reflection
Projection
Shear
Visual Explanation — Seeing the Four Transformations
The diagram below shows a unit square (with corners at the origin, (1, 0), (0, 1), and (1, 1)) and what happens to it under each of the four transformation types. Watch how the shape changes — and what stays the same — in each case.
Notice that rotation and reflection keep the square's area the same — they just move it. Projection crushes the 2-D square into a 1-D line segment, losing all height information. Shear changes the shape from a square to a parallelogram, but the area stays the same because the base and height haven't changed.
Mathematical Framework — The Matrices
Every linear transformation in R² can be performed by multiplying a point's coordinates by a 2 × 2 matrix. If a point is at position (x, y), the new position (x', y') after the transformation is found by the rule: x' = ax + by and y' = cx + dy, where the matrix has entries a, b, c, d. Below are the key matrices for each transformation type.
Rotation by Angle θ (counterclockwise about the origin)
Reflection Across the x-axis, y-axis, or y = x
Projection onto the x-axis or y-axis
Horizontal and Vertical Shear
Detailed Breakdown — What Each Transformation Preserves
One of the best ways to tell transformations apart is to ask: what does this transformation keep the same? Some preserve distances, some preserve areas, and some preserve neither. The table below summarizes these properties.
| Transformation | Preserves Length? | Preserves Area? | Preserves Angles? | Invertible? |
|---|---|---|---|---|
| Rotation | Yes | Yes | Yes | Yes (rotate back) |
| Reflection | Yes | Yes | Yes | Yes (reflect again) |
| Projection | No | No (area → 0) | No | No (info lost) |
| Shear | No | Yes | No | Yes (shear back) |
A key insight is the connection between the determinant and invertibility. If the determinant of a matrix is zero, the transformation squashes everything down to a lower dimension. Once that information is lost, you can never get it back — there is no "undo" matrix. Rotations, reflections, and shears all have nonzero determinants, so they are invertible.
Worked Example — Rotating a Point 90° in R²
Let's rotate the point (3, 1) counterclockwise by 90° about the origin. We'll build the rotation matrix, multiply, and check that the result makes geometric sense.
Comparing the Transformations — Strengths & Limitations
Each transformation type has strengths (things it's great at) and limitations (things it can't do). Understanding these helps you choose the right transformation for a given application. For instance, if you need to preserve the shape of an object while changing its orientation, you'd use a rotation or reflection. If you need to cast a 3-D model's shadow, you'd use a projection.
| Transformation | Best Used For | Key Limitation |
|---|---|---|
| Rotation | Changing direction without distortion — spinning a game character, pointing a satellite, or modeling planetary orbits. | Cannot change the size or shape of an object. Also, rotating around a point other than the origin requires extra steps (translate, rotate, translate back). |
| Reflection | Creating mirror images — symmetry detection, flipping textures, and physics simulations of bouncing light. | Reverses orientation (a clockwise shape becomes counterclockwise), which can cause issues in 3-D models where surface normals matter. |
| Projection | Displaying 3-D scenes on a 2-D screen, computing shadows, and reducing dimensions in data science. | Irreversible — once you project, the lost dimension cannot be recovered. Applying it twice gives the same result as applying it once (it's idempotent). |
| Shear | Simulating italic text, wind effects on structures, or creating oblique drawing projections. | Distorts angles and lengths, making shapes look "slanted." Not suitable when you need to preserve the exact shape. |
Connection to Advanced Theory
The four transformations you've learned are building blocks for much bigger ideas. In advanced linear algebra and beyond, mathematicians combine and generalize these transformations in powerful ways. Here's a peek at where these concepts lead.
| What You Learned | Where It Leads |
|---|---|
| Rotation matrices in R² and R³ | Rotation groups (SO(2), SO(3)) used in physics to describe symmetries of particles and galaxies. |
| Reflections preserving length | Orthogonal matrices and the full orthogonal group O(n), used in signal processing and quantum mechanics. |
| Projections onto lines/planes | Orthogonal projection and least-squares regression — the foundation of data fitting and machine learning. |
| Shear matrices with det = 1 | The special linear group SL(n) and volume-preserving flows in fluid dynamics. |
| Combining transformations (matrix products) | Eigenvalues and eigenvectors — directions that don't change during a transformation — central to all of advanced linear algebra. |
One exciting idea is composition: you can combine two transformations by multiplying their matrices together. For example, reflecting across the x-axis and then rotating by 90° is the same as multiplying R(90°) × Refx. This lets you build complex animations and simulations from simple pieces.
Practice Problems
Lesson Summary
Linear transformations in R² and R³ can be described by matrix multiplication. A rotation spins points around the origin by an angle θ using the matrix [cos θ, −sin θ; sin θ, cos θ], preserving both lengths and angles. A reflection flips points across a line (or plane in R³), preserving lengths and angles but reversing orientation — its determinant is −1. A projection collapses points onto a lower-dimensional subspace (like a shadow), losing information so the determinant is 0 and the transformation is not invertible. A shear slides layers of space past each other, preserving area (determinant = 1) but distorting angles.
The determinant of the transformation matrix tells you the area scale factor: |det| = 1 means area is preserved, det = 0 means the shape collapses. Transformations can be composed by multiplying their matrices, building complex motions from simple ones. These ideas extend to R³ using 3 × 3 matrices and are the foundation of computer graphics, robotics, data science, and physics.