The Matrix of a Linear Map
Every linear map between finite-dimensional vector spaces can be recorded as a rectangular array of scalars. This happens once bases are chosen. This is not a metaphor: the matrix is a genuinely faithful encoding. Every question about the map — its rank, its kernel, whether it is invertible — becomes a question about the array. That question can be answered by row reduction and arithmetic. The concrete question this article answers is precise: given a Linear Map from an -dimensional space to an -dimensional space , and given ordered bases of each, how do we produce an array of numbers that captures completely? Why does this array deserve to be called "the matrix of "? The idea matters because it is the bridge between two worlds. On one side is the abstract theory of vector spaces and linear maps, where proofs are clean but computation is invisible. On the other is the world of numerical linear algebra, where everything is arrays of numbers manipulated by algorithms. Linear Maps Determined by Action on a Basis already tells us that a linear map is completely determined by where it sends a basis. The matrix construction takes this one step further. It records those images not as abstract vectors but as columns of coordinates. The entire map becomes a grid of scalars sitting in front of you. The big picture is a dictionary with three interlocking translations. Vectors in become coordinate columns in via a chosen basis of . Vectors in become coordinate columns in via a chosen basis of . And the linear map itself becomes an matrix . This works so that applying and taking coordinates corresponds exactly to multiplying by . This dictionary is the single most load-bearing translation device in the entire subject. Nearly every later technique — matrix multiplication as composition, change of basis, eigenvalues, canonical forms — is a refinement of it. This article gives the formal definition of the matrix of a linear map relative to chosen bases. It builds the intuition for why columns are the natural unit of storage. It proves the fundamental theorem that this construction is a well-defined linear bijection between linear maps and matrices. It also works through two genuinely asymmetric examples by hand. It closes by locating this idea in the larger landscape. That landscape includes matrix-vector multiplication, matrix multiplication as composition of maps, and the change-of-basis formalism. That formalism tells you how the same map looks in different coordinates.
- Fixing an ordered basis of and of turns each vector into a coordinate column, and each linear map into a matrix.
- Column of the matrix is the coordinate vector, relative to the basis of , of applied to the -th basis vector of .
- The construction depends on the bases chosen — the same has different matrices in different bases.
- The map "linear map its matrix" is a linear bijection from to the space of matrices.
- This bijection is what lets computations (row reduction, rank, determinants) answer abstract questions about .
- Key idea: a matrix is nothing but a table of the coordinates of the images of basis vectors, one column per basis vector.
Where this lives today
The passage from linear map to matrix is the computational backbone of essentially all applied linear algebra. In numerical analysis, every algorithm — Gaussian elimination, QR decomposition, the singular value decomposition — operates on the matrix of a map relative to convenient bases, and choosing good bases (orthonormal ones, eigenbases) is often the entire strategy of the algorithm. In computer graphics, a 3D transformation (rotation, scaling, projection) is stored and applied to vertices as exactly the matrix constructed here, relative to the standard basis of or in homogeneous coordinates. In quantum mechanics, an observable is a linear (self-adjoint) operator on a Hilbert space, and physicists routinely write "the matrix of the operator in the energy basis" — a direct instance of this construction, with the choice of basis (energy eigenstates, position, momentum) chosen to make the matrix as simple as possible. In statistics and data science, a linear regression model or a principal component transformation is literally the matrix of a linear map between a feature space and a response space, computed relative to the standard coordinate basis of the data. In cryptography, linear codes and certain cipher components are described by matrices over finite fields, which are exactly matrices of linear maps between finite-dimensional vector spaces over or larger finite fields. Finally, in the theoretical development of linear algebra itself, this construction is the hinge on which Matrix Multiplication as Composition and Change of Basis and the Change-of-Basis Matrix turn: composition of maps becomes matrix multiplication, and re-expressing a map in new coordinates becomes a similarity or equivalence transformation of its matrix.
Ask the tutor: How does the matrix of change if I replace the basis of with a new basis , keeping fixed?
Let and be finite-dimensional vector spaces over a field , with and . Fix an ordered basis
of and an ordered basis
of . Let be a linear map. For each , since is a basis of there is a unique tuple of scalars such that
The matrix of relative to and , written , is the array of scalars
whose -th column is exactly the coordinate vector of relative to :
When and , one writes simply or if the basis is understood, and calls it the matrix of with respect to .
Intuition
Think of a linear map as a machine that transforms vectors, and think of a basis as a fixed set of measuring sticks used to read off coordinates. Once measuring sticks are chosen for both the input space and the output space , the only information you need to reconstruct the machine completely is: what happens to each measuring stick? This is precisely the content of Linear Maps Determined by Action on a Basis — a linear map is pinned down by its values on a basis, and those values, once expressed in coordinates via the output basis, are numbers you can write down. The key design choice is to store the image of the -th input basis vector as the -th column. This is not arbitrary: it is exactly what makes matrix-vector multiplication (a topic developed right after this one) recover automatically. If you write a general vector in coordinates as relative to , meaning , then linearity gives
The coefficient of here, , is exactly the -th entry of the matrix-vector product . So the columns-of-images convention is engineered precisely so that "apply , then take -coordinates" equals "take -coordinates, then multiply by the matrix." This identity, foreshadowed here, is the substance of the article on Matrix of Vector and Map-Vector Action. It is worth internalizing immediately that the matrix is a joint invariant of the map and the two bases — change either basis and, generically, every entry changes. This dependence is not a defect; it is the entire reason Change of Basis and the Change-of-Basis Matrix exists as a subsequent topic: understanding how the matrix changes under a change of basis is what lets you choose bases that make a given map look as simple as possible (diagonal, triangular, etc.).
Let be finite-dimensional vector spaces over a field with and . Fix an ordered basis of and an ordered basis of . Let denote the vector space of all linear maps from to , and let denote the vector space of all matrices with entries in (with entrywise addition and scalar multiplication). Define
as in the Definition above. Then: 1. (Well-defined) For each , is a well-defined single matrix (no ambiguity in the entries). 2. (Linear) is a linear map: for all and ,
3. (Injective) If then . 4. (Surjective) For every matrix , there exists a (unique, by part 3) linear map with . Consequently is a linear isomorphism , and in particular
We prove each part in turn. Throughout, and are the fixed ordered bases, and coordinates relative to are unique because is a basis: every vector in is a unique linear combination of (existence from spanning, uniqueness from linear independence).
1. Well-definedness. Given and , the vector lies in . Since spans , can be written as for some scalars . Since is linearly independent, this representation is unique: if then , forcing for all by linear independence of . Hence the numbers , and so the matrix , are uniquely determined by (and the fixed bases). This holds for every , so is a well-defined function .
2. Linearity. Let with matrices and , so and for each . The map is linear (sum of linear maps is linear, a fact established when is shown to be a vector space), and for each ,
By uniqueness of coordinates (established in part 1), the entry of is , which is exactly the entry of under entrywise matrix addition. As this holds for every entry, . For scalars: for , , so by the same uniqueness argument the entry of is , i.e. . This proves is linear.
3. Injectivity. Suppose , say both equal . Then for every ,
So and agree on every vector of the basis . By Linear Maps Determined by Action on a Basis (uniqueness part: two linear maps that agree on a basis are equal — indeed for any , linearity forces ), we conclude as functions on , hence as linear maps.
4. Surjectivity. Let be arbitrary. Define vectors by
By the existence part of Linear Maps Determined by Action on a Basis, since is a basis of , there exists a (unique) linear map with for every . (Concretely: define on a general vector by ; this is well-defined because the are uniquely determined by since is a basis, and one checks directly that this is linear and satisfies .) By construction, for every , and since coordinates relative to are unique (part 1), this says precisely that the entry of is . Hence . As was arbitrary, is surjective.
Conclusion. Parts 2, 3, 4 show is a linear map that is both injective and surjective, hence a linear isomorphism . Since is a vector space of dimension (a basis is given by the matrices with a single entry and zeros elsewhere), and a linear isomorphism preserves dimension, .
∎With and as above, let denote the coordinate column of relative to , and let denote the coordinate column of relative to . Then for every ,
where the right side is ordinary matrix-vector multiplication.
Write , so . Let , so for each . By linearity of ,
By uniqueness of -coordinates, the -th coordinate of relative to is , which is exactly the -th entry of the product by the definition of matrix-vector multiplication. Hence .
∎Worked examples
Example 1 — a map between spaces of different dimension and structure, with a non-standard basis. Let , the polynomials of degree at most , and let . Define by
This is linear: for and , , and similarly , using linearity of evaluation and differentiation. Choose the (non-monomial) ordered basis of
One checks is a basis: three polynomials in a -dimensional space are a basis iff independent, and if then comparing coefficients of gives , , , forcing . Choose the standard basis of : with , . Compute the images of the basis vectors.
- : , so . Thus .
- : , so . Thus .
- : , so . Thus .
Reading off coordinates as columns,
Sanity check via the Corollary. Take , so . Directly, and so ; hence . Using the matrix:
This matches exactly, confirming the matrix is correct.
Example 2 — an operator on , in the standard basis versus a different basis, showing the same map with genuinely different matrices. Let be the linear map defined on the standard basis by
(This determines completely on all of by linearity, per Linear Maps Determined by Action on a Basis: for general , .) Relative to (standard basis on both sides), the columns are just the images themselves:
Now use a different basis on the input side only:
keeping on the output side. ( is a basis: the determinant of the matrix with these columns is , so the vectors are independent, hence a basis of the -dimensional space.) Compute using the explicit formula :
- .
- .
- .
Since is the standard basis, coordinates relative to of a vector are simply itself, so the columns are exactly these triples:
Notice this is a genuinely different array from — same linear map , different matrix, because the input basis changed while the output basis stayed standard. This is exactly the phenomenon that Change of Basis and the Change-of-Basis Matrix quantifies precisely, by relating to via the change-of-basis matrix from to .
The theorem requires and to be finite-dimensional; drop this and the construction collapses, because the very existence of a finite matrix relies on there being finitely many basis vectors whose images can be tabulated as finitely many columns. Concretely, let , the space of all polynomials (no degree bound), an infinite-dimensional space with (Hamel) basis . Let be the differentiation operator, , a perfectly good linear map . Try to build "the matrix of " as in the Definition: we would need, for every basis vector (), to express as a finite linear combination of the basis — which is fine termwise (each single image is a finite combination) — but there is no way to assemble these into a matrix with finitely many columns, since there are infinitely many basis vectors to record images for. One is forced into an infinite array (a column for every power of ), which is not a matrix in the sense used here (finite table), and standard finite matrix algebra — multiplying two matrices, computing a determinant, row-reducing — does not apply to it. More importantly, the bijection in the Theorem also breaks numerically: the proof of surjectivity built from an arbitrary matrix by defining on a basis vector by vector and summing for ; this sum is finite precisely because guarantees is a finite linear combination of basis vectors. In infinite dimensions, an element of can still be a finite combination (Hamel bases have finite support by definition) but the target space of "matrices" needed to encode all linear maps genuinely requires infinite arrays, and the clean identification with (a finite number) simply has no analogue. This is exactly why the theorem's hypothesis " finite-dimensional" cannot be dropped.
Scope, edge cases & common traps
| Situation | What to watch for |
|---|---|
| , one basis used twice | Matrix is square; this is the setting for eigenvalues, trace, determinant of an operator. |
| Different bases for domain and codomain | Perfectly legal and often useful (e.g. diagonalizing rectangular maps); the two bases need not be related. |
| Changing only the input basis | Matrix changes by right-multiplication by a change-of-basis matrix (topic: Change of Basis and the Change-of-Basis Matrix). |
| Changing only the output basis | Matrix changes by left-multiplication by an (inverse) change-of-basis matrix. |
| Zero map / identity map | Zero map always gives the all-zeros matrix in any bases; identity map gives the identity matrix only when . |
| Infinite-dimensional or | The finite-matrix construction does not apply (see Counterexample); need infinite arrays or other tools. |
The mathematician behind it
Origins · 1 minArthur Cayley and how this was discovered
Arthur Cayley was a prolific 19th-century British mathematician who, alongside James Joseph Sylvester, developed the systematic algebra of matrices as objects in their own right rather than mere arrays of coefficients for linear substitutions. His 1858 memoir A Memoir on the Theory of Matrices introduced matrix addition, multiplication, and inversion as an abstract calculus, and proved the Cayley–Hamilton theorem in low dimensions. Cayley's insight — that a linear substitution of variables could be manipulated as a single algebraic object — is the direct ancestor of the modern convention that a linear map, once bases are fixed, is its matrix for all computational purposes.
Why must we fix an ordered basis, not just a basis (as a set)?
The matrix records data column by column, and each column corresponds to one specific basis vector. If the basis were an unordered set, there would be no way to say "column " unambiguously — you'd need to specify which basis vector is being tracked in which column every time. Ordering the basis, i.e. choosing a specific sequence , removes this ambiguity once and for all: column always means "the image of ," full stop. Reordering the same set of basis vectors permutes the columns (or rows, for the output basis) of the resulting matrix, so order genuinely matters for the numerical entries, even though it doesn't matter for which map or space is being described.
Does every matrix arise as the matrix of some linear map?
Yes, provided the ambient vector spaces and bases are fixed in advance and are finite-dimensional. This is exactly the surjectivity part of the Theorem: given any matrix and any chosen ordered bases of an -dimensional and of an -dimensional , one constructs a linear map by declaring to be the vector whose -coordinates are the -th column of , then extending by linearity. So the correspondence is not just an injection of maps into matrices; it is a full bijection, meaning matrices and linear maps (relative to fixed bases) carry exactly the same information.
If I change only the codomain basis , does the matrix change even though the domain basis stays fixed?
Yes, generally every entry can change. Recall the matrix entries are the coordinates of relative to ; if changes, the coordinates of the very same vector in the new basis are typically different numbers, even though itself as a vector in has not moved at all. Only the "ruler" used to read off its components changed. This is why matrix identities like (for a suitable change-of-basis matrix ) appear once you study change of basis carefully.
Is the matrix of the zero linear map always the zero matrix?
Yes, in every pair of bases. If for all , then in particular for every basis vector , so every entry in the defining equation is . This is one of very few properties of the matrix that is basis-independent: "being the zero map" is equivalent to "having the zero matrix in some (equivalently, every) pair of bases," because the zero vector's coordinates relative to any basis are all zero.
What happens to the matrix of the identity map when ?
When domain and codomain bases coincide, is the identity matrix . Indeed where is if and otherwise (since 's coordinates relative to the basis itself are simply the standard unit coordinate vector ). This is the basic sanity check that the whole apparatus should reduce to: "doing nothing," represented consistently, is the identity matrix.
How does this relate to matrix-vector multiplication and composition of linear maps?
The Corollary above shows : applying and taking coordinates is the same as multiplying by the matrix. This is the content developed further in Matrix of Vector and Map-Vector Action. Once you also know that composing two linear maps corresponds to the matrix product (taken with matching intermediate bases), as in Matrix Multiplication as Composition, the entire finite-dimensional theory of linear maps reduces to ordinary matrix algebra — which is precisely the point of fixing bases in the first place.
Can the same matrix represent two different linear maps?
Not if the bases are fixed and agreed upon: by the injectivity part of the Theorem, two linear maps with the same matrix relative to the same pair of bases must be equal as maps. However, the same numerical array can represent different maps if you (implicitly) use it with different bases — this is exactly the subtlety flagged in the Warning above, and it is why it is essential to always state which bases a matrix is "relative to" before doing anything with it.