Historical Context & Motivation
Imagine you have a machine that takes in a point on a grid and spits out a new point somewhere else. That machine might rotate every point, stretch them, flip them, or squish them together. Mathematicians call such a machine a linear transformation. For centuries, people described these transformations with words and pictures. The breakthrough came when mathematicians realized they could encode every linear transformation as a neat grid of numbers — a matrix. This idea turned geometry into arithmetic and opened the door to modern computing, graphics, and data science.
The central question this lesson answers is: How do we translate a geometric action — like rotating or stretching — into a compact grid of numbers that a computer (or you!) can work with?
Core Principles & Definitions
Before we build the matrix, let's nail down the key ideas. A linear transformation is a special kind of function that maps vectors to vectors while obeying two rules: it preserves vector addition and scalar multiplication. In everyday terms, straight lines stay straight and the origin stays fixed. The magic is that we can describe any such transformation completely by knowing what it does to just the basis vectors — the simplest building blocks of our coordinate system.
Linear Transformation
Standard Basis Vectors
Matrix of a Transformation
Matrix–Vector Multiplication
Visual Explanation
The diagram below shows how a linear transformation acts on the two standard basis vectors in 2D. On the left you see the original grid with e₁ (the red arrow) and e₂ (the blue arrow). On the right you see where the transformation sends them. The columns of the matrix are exactly the landing spots of e₁ and e₂.
Notice the pattern: the first column of the matrix is the output of T applied to e₁, and the second column is the output of T applied to e₂. This works in any dimension — in 3D you would have three basis vectors and three columns. Once you have the matrix, you can compute T of any vector just by multiplying.
Mathematical Framework
Let's put the recipe into precise math. Suppose T is a linear transformation from ℝn to ℝm. The standard matrix A of T is built by placing the images of the standard basis vectors as columns.
Let's see why this works. Any vector x in ℝn can be written as x = x₁e₁ + x₂e₂ + ··· + xₙeₙ. Because T is linear, we can distribute T across each piece:
Common Linear Transformations & Their Matrices
Different geometric actions produce different matrices. The diagram below shows four of the most common 2D linear transformations — rotation, reflection, scaling, and shear — along with their standard matrices. Study each one by looking at where e₁ and e₂ land.
| Transformation | What It Does | Matrix (2D) |
|---|---|---|
| 90° Rotation | Spins every vector 90° counterclockwise around the origin | [0 −1; 1 0] |
| Reflection (x-axis) | Flips every vector over the horizontal axis | [1 0; 0 −1] |
| Scaling | Stretches or compresses along each axis independently | [sₓ 0; 0 sᵧ] |
| Shear | Tilts one axis while keeping the other fixed, like leaning a stack of books | [1 k; 0 1] |
Worked Example
Let's walk through a complete example. Suppose a linear transformation T maps 2D vectors to 2D vectors, and we know that T(e₁) = (3, 1) and T(e₂) = (−2, 4). We want to find the matrix A and then use it to compute T(5, 2).
Strengths & Limitations
Matrix representation is one of the most powerful tools in linear algebra, but like any tool, it has strengths and limitations worth understanding.
| Strengths | Limitations |
|---|---|
| Turns geometric intuition into concrete calculations that a computer can handle instantly. | The matrix depends on the choice of basis. Different bases give different matrices for the same transformation. |
| You can compose transformations simply by multiplying their matrices together. | Only works for linear transformations. Non-linear functions (like squaring each coordinate) cannot be captured by a single matrix. |
| Provides a universal format: any linear transformation, no matter how complicated, fits into the same matrix framework. | For very large dimensions, matrices can become huge and expensive to store and compute with. |
| Opens the door to powerful tools like determinants, eigenvalues, and inverses. | The matrix entries can sometimes hide the geometric meaning — you lose some visual intuition. |
Connection to Advanced Theory
The idea of representing a transformation as a matrix is the starting point for many deeper topics in linear algebra and beyond. Here is a preview of where these ideas lead.
| This Lesson | Advanced Extension |
|---|---|
| Matrix of T using the standard basis | Change of basis: Using a different basis can simplify the matrix (e.g., diagonalization). |
| Multiplying A · x to get T(x) | Eigenvalues & eigenvectors: Special vectors that T merely stretches without changing direction. |
| 2D and 3D transformations | Infinite dimensions: Functional analysis extends these ideas to spaces of functions, crucial in physics and engineering. |
| Single transformations | Composition via multiplication: Doing two transformations in a row corresponds to multiplying their matrices, the foundation of computer graphics pipelines. |
If you continue studying linear algebra, you'll see that almost every question about linear transformations — finding inverses, measuring how much a transformation stretches area, or decomposing a transformation into simpler pieces — can be answered by working with the matrix. Mastering the matrix representation is like learning to read sheet music: once you can read the notation, an entire world of theory and applications opens up.
Practice Problems
Lesson Summary
A linear transformation is a function between vector spaces that preserves addition and scalar multiplication. To represent it as a matrix, apply the transformation to each standard basis vector and write the results as columns. The resulting matrix A satisfies T(x) = A · x for every input vector x. Common examples include rotation, reflection, scaling, and shear matrices.
This representation turns geometric actions into arithmetic, making it possible to compute transformations quickly, compose multiple transformations by matrix multiplication, and unlock advanced tools like eigenvalues and change of basis. Remember: the matrix depends on which basis you choose, and it only works for linear transformations.