Matrices ↔ Linear Maps
Every linear map is "secretly" multiplication by a single matrix , built by seeing what does to the standard basis vectors. This lesson shows how to build that matrix, use it to apply the map, and why composing maps means multiplying matrices.
Before you start — give these a try
Attempting first primes your brain for the lesson — even if you miss. Nothing is graded or saved; it's just a warm-up.
Let be the standard matrix of a linear map . Compute for . Enter the resulting vector.
True or False: For a linear map , the -th column of its standard matrix equals , and consequently the matrix has rows and columns.
What you’ll be able to do
- State the definition of a linear map and recognize when a given formula is linear.
- Construct the standard matrix of a linear map by evaluating on the standard basis vectors .
- Compute as the matrix–vector product , and read off a single entry of as a component of some .
- Explain and use the correspondence between composition of linear maps and matrix multiplication.
- Determine the size (rows columns) of a standard matrix from the domain and codomain of the map.
In your course
· MATH2015 · Linear Algebra & Probability- Theorem 4.2Every linear map is for a unique matrixFor every linear there is exactly one with ; the columns of are the images of the standard basis vectors.
- Remark 4.3A map ℝⁿ→ℝᵐ needs an matrix
The big idea: a linear map is decided by the basis
A linear map (or linear transformation) is a function that respects addition and scaling. Here is the set of vectors (lists) with real entries — the domain — and is the codomain. "Respects addition and scaling" means for all vectors and every scalar (real number) :
These two rules combine into one: for all scalars .
Here is the key consequence. The standard basis vectors of are where has a in position and everywhere else. Any vector can be written as . Applying and using linearity: So once you know the output vectors , you know on every input. A linear map is completely determined by what it does to the basis. That is exactly the information a matrix stores.
The standard matrix: columns are $T(\mathbf{e}_j)$
Collect those output vectors as the columns of a matrix. The standard matrix of a linear map is
Each lives in , so it contributes numbers (one column); there are of them. Therefore has rows and columns — it is an matrix. A handy slogan: rows = codomain dimension, columns = domain dimension.
Recipe to build :
- Plug into the formula for . The result is column .
- Plug into . The result is column .
- Continue through .
Reading one entry. The entry of in row , column — written or — is the -th component of the vector . So you can find a single entry without building the whole matrix: evaluate and look at coordinate .
Applying the map is the matrix–vector product $A\mathbf{v}$
The matrix isn't just a storage box — multiplying by it is the map. For every ,
Why? Writing with columns , the matrix–vector product is defined as the linear combination of the columns weighted by the entries of : That last equality is exactly the linearity identity from the first section.
In practice you compute row by row: the -th entry of is the dot product of row of with . For example, For the product to be defined, the number of columns of must equal the number of entries of — which is exactly , the domain dimension. The output has entries, landing in the codomain .
Composition of maps = product of matrices
Suppose you do one linear map and then another. Let have standard matrix (size ), and have standard matrix (size ). The composition means "apply first, then ": .
Its standard matrix is the matrix product :
Note the order carefully: acts first, but its matrix sits on the right, because it touches the vector first. The sizes must chain correctly: is and is , so is — the inner dimensions () match and cancel. This is the deep reason matrix multiplication is defined the way it is: it is engineered so that multiplying matrices mirrors composing the maps they represent. Matrix multiplication is generally not commutative ( in general), which matches the fact that doing then usually differs from doing then .
For every linear map there is a unique matrix such that for all . Its columns are the images of the standard basis vectors: , and the entry equals the -th component of .
If has standard matrix and has standard matrix , then the composition has standard matrix (an matrix). That is, for all .
Worked examples
Let be the linear map . (a) Find the standard matrix of . (b) Use to compute .
- 1
Set up part (a). The standard matrix has columns and , where and . So we just feed each standard basis vector into the formula for .
- 2
Compute the first column. Plug in : . This is column : .
- 3
Compute the second column. Plug in : . This is column : .
- 4
Assemble . Place the columns side by side: . It is , matching (2 rows for the codomain, 2 columns for the domain).
- 5
Part (b): compute with . Take the dot product of each row of with . Row 1: . Row 2: . So .
- 6
Sanity check against the formula. Directly, . It matches , confirming .
Let be . Find its standard matrix , and compute .
Let be rotation by counterclockwise, with matrix , and let be the scaling with matrix . Find the standard matrix of the composition (rotate first, then scale).