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 TT from an nn-dimensional space VV to an mm-dimensional space WW, and given ordered bases of each, how do we produce an m×nm \times n array of numbers that captures TT completely? Why does this array deserve to be called "the matrix of TT"? 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 VV become coordinate columns in FnF^n via a chosen basis of VV. Vectors in WW become coordinate columns in FmF^m via a chosen basis of WW. And the linear map TT itself becomes an m×nm\times n matrix M(T)\mathcal{M}(T). This works so that applying TT and taking coordinates corresponds exactly to multiplying by M(T)\mathcal{M}(T). 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.

Key takeaways
  • Fixing an ordered basis of VV and of WW turns each vector into a coordinate column, and each linear map T:V→WT:V\to W into a matrix.
  • Column jj of the matrix is the coordinate vector, relative to the basis of WW, of TT applied to the jj-th basis vector of VV.
  • The construction depends on the bases chosen — the same TT has different matrices in different bases.
  • The map "linear map ↦\mapsto its matrix" is a linear bijection from L(V,W)\mathcal{L}(V,W) to the space of m×nm\times n matrices.
  • This bijection is what lets computations (row reduction, rank, determinants) answer abstract questions about TT.
  • 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 R3\mathbb{R}^3 or R4\mathbb{R}^4 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 F2\mathbb{F}_2 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 TT change if I replace the basis β\beta of VV with a new basis β′\beta', keeping γ\gamma fixed?

DefinitionThe matrix of a linear map relative to bases

Let VV and WW be finite-dimensional vector spaces over a field FF, with dim⁡V=n\dim V = n and dim⁡W=m\dim W = m. Fix an ordered basis

β=(v1,…,vn)\beta = (v_1,\dots,v_n)

of VV and an ordered basis

γ=(w1,…,wm)\gamma = (w_1,\dots,w_m)

of WW. Let T:V→WT : V \to W be a linear map. For each j=1,…,nj = 1,\dots,n, since γ\gamma is a basis of WW there is a unique tuple of scalars a1j,a2j,…,amj∈Fa_{1j}, a_{2j},\dots, a_{mj} \in F such that

T(vj)=∑i=1maij wi.T(v_j) = \sum_{i=1}^{m} a_{ij}\, w_i .

The matrix of TT relative to β\beta and γ\gamma, written M(T)=M(T,β,γ)\mathcal{M}(T) = \mathcal{M}(T,\beta,\gamma), is the m×nm \times n array of scalars

M(T)=(aij)1≤i≤m, 1≤j≤n,\mathcal{M}(T) = \big(a_{ij}\big)_{1\le i \le m,\, 1\le j \le n},

whose jj-th column is exactly the coordinate vector of T(vj)T(v_j) relative to γ\gamma:

column j of M(T)  =  [T(vj)]γ  =  (a1ja2j⋮amj).\text{column } j \text{ of } \mathcal{M}(T) \;=\; [T(v_j)]_\gamma \;=\; \begin{pmatrix} a_{1j}\\ a_{2j}\\ \vdots \\ a_{mj}\end{pmatrix}.

When V=WV = W and β=γ\beta = \gamma, one writes simply M(T,β)\mathcal{M}(T,\beta) or M(T)\mathcal{M}(T) if the basis is understood, and calls it the matrix of TT with respect to β\beta.

Intuition

Think of a linear map TT 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 VV and the output space WW, 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 jj-th input basis vector as the jj-th column. This is not arbitrary: it is exactly what makes matrix-vector multiplication (a topic developed right after this one) recover TT automatically. If you write a general vector v∈Vv \in V in coordinates as x=(x1,…,xn)x = (x_1,\dots,x_n) relative to β\beta, meaning v=x1v1+⋯+xnvnv = x_1v_1 + \cdots + x_nv_n, then linearity gives

T(v)=∑j=1nxjT(vj)=∑j=1nxj∑i=1maijwi=∑i=1m(∑j=1naijxj)wi.T(v) = \sum_{j=1}^n x_j T(v_j) = \sum_{j=1}^n x_j \sum_{i=1}^m a_{ij} w_i = \sum_{i=1}^m \Big(\sum_{j=1}^n a_{ij}x_j\Big) w_i.

The coefficient of wiw_i here, ∑jaijxj\sum_j a_{ij}x_j, is exactly the ii-th entry of the matrix-vector product M(T)x\mathcal{M}(T)x. So the columns-of-images convention is engineered precisely so that "apply TT, then take γ\gamma-coordinates" equals "take β\beta-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.).

Figure
Building the matrix: images of basis vectors become columns
V (basis β = (v₁, v₂, v₃)) W (basis γ = (w₁, w₂)) v₁ v₂ v₃ T(v₁) = 2w₁ + 5w₂ T(v₂) = 0w₁ − 1w₂ T(v₃) = 3w₁ + 4w₂ M(T) = ⎡ 2 0 3 ⎤ ⎣ 5 −1 4 ⎦
TheoremThe coordinate isomorphism M:L(V,W)→Fm×n\mathcal{M}: \mathcal{L}(V,W) \to F^{m\times n}

Let V,WV, W be finite-dimensional vector spaces over a field FF with dim⁡V=n≥1\dim V = n \ge 1 and dim⁡W=m≥1\dim W = m \ge 1. Fix an ordered basis β=(v1,…,vn)\beta = (v_1,\dots,v_n) of VV and an ordered basis γ=(w1,…,wm)\gamma = (w_1,\dots,w_m) of WW. Let L(V,W)\mathcal{L}(V,W) denote the vector space of all linear maps from VV to WW, and let Fm×nF^{m\times n} denote the vector space of all m×nm\times n matrices with entries in FF (with entrywise addition and scalar multiplication). Define

M:L(V,W)→Fm×n,M(T)=the matrix of T relative to β,γ\mathcal{M} : \mathcal{L}(V,W) \to F^{m\times n}, \qquad \mathcal{M}(T) = \text{the matrix of } T \text{ relative to } \beta,\gamma

as in the Definition above. Then: 1. (Well-defined) For each TT, M(T)\mathcal{M}(T) is a well-defined single matrix (no ambiguity in the entries). 2. (Linear) M\mathcal{M} is a linear map: for all S,T∈L(V,W)S,T \in \mathcal{L}(V,W) and λ∈F\lambda \in F,

M(S+T)=M(S)+M(T),M(λT)=λ M(T).\mathcal{M}(S+T) = \mathcal{M}(S) + \mathcal{M}(T), \qquad \mathcal{M}(\lambda T) = \lambda\, \mathcal{M}(T).

3. (Injective) If M(T)=M(S)\mathcal{M}(T) = \mathcal{M}(S) then T=ST = S. 4. (Surjective) For every m×nm\times n matrix A=(aij)A = (a_{ij}), there exists a (unique, by part 3) linear map T∈L(V,W)T \in \mathcal{L}(V,W) with M(T)=A\mathcal{M}(T) = A. Consequently M\mathcal{M} is a linear isomorphism L(V,W)≅Fm×n\mathcal{L}(V,W) \cong F^{m\times n}, and in particular

dim⁡L(V,W)=mn.\dim \mathcal{L}(V,W) = mn.
Proof

We prove each part in turn. Throughout, β=(v1,…,vn)\beta = (v_1,\dots,v_n) and γ=(w1,…,wm)\gamma=(w_1,\dots,w_m) are the fixed ordered bases, and coordinates relative to γ\gamma are unique because γ\gamma is a basis: every vector in WW is a unique linear combination of w1,…,wmw_1,\dots,w_m (existence from spanning, uniqueness from linear independence).

1. Well-definedness. Given T∈L(V,W)T \in \mathcal{L}(V,W) and j∈{1,…,n}j \in \{1,\dots,n\}, the vector T(vj)T(v_j) lies in WW. Since γ\gamma spans WW, T(vj)T(v_j) can be written as ∑i=1maijwi\sum_{i=1}^m a_{ij} w_i for some scalars aija_{ij}. Since γ\gamma is linearly independent, this representation is unique: if ∑iaijwi=∑iaij′wi\sum_i a_{ij}w_i = \sum_i a'_{ij}w_i then ∑i(aij−aij′)wi=0\sum_i (a_{ij}-a'_{ij})w_i = 0, forcing aij=aij′a_{ij} = a'_{ij} for all ii by linear independence of γ\gamma. Hence the numbers aija_{ij}, and so the matrix M(T)\mathcal{M}(T), are uniquely determined by TT (and the fixed bases). This holds for every TT, so M\mathcal{M} is a well-defined function L(V,W)→Fm×n\mathcal{L}(V,W) \to F^{m\times n}.

2. Linearity. Let S,T∈L(V,W)S, T \in \mathcal{L}(V,W) with matrices M(S)=(bij)\mathcal{M}(S) = (b_{ij}) and M(T)=(aij)\mathcal{M}(T) = (a_{ij}), so S(vj)=∑ibijwiS(v_j) = \sum_i b_{ij}w_i and T(vj)=∑iaijwiT(v_j) = \sum_i a_{ij}w_i for each jj. The map S+TS+T is linear (sum of linear maps is linear, a fact established when L(V,W)\mathcal{L}(V,W) is shown to be a vector space), and for each jj,

(S+T)(vj)=S(vj)+T(vj)=∑i=1mbijwi+∑i=1maijwi=∑i=1m(aij+bij)wi.(S+T)(v_j) = S(v_j) + T(v_j) = \sum_{i=1}^m b_{ij}w_i + \sum_{i=1}^m a_{ij}w_i = \sum_{i=1}^m (a_{ij}+b_{ij})w_i.

By uniqueness of coordinates (established in part 1), the (i,j)(i,j) entry of M(S+T)\mathcal{M}(S+T) is aij+bija_{ij}+b_{ij}, which is exactly the (i,j)(i,j) entry of M(S)+M(T)\mathcal{M}(S)+\mathcal{M}(T) under entrywise matrix addition. As this holds for every entry, M(S+T)=M(S)+M(T)\mathcal{M}(S+T) = \mathcal{M}(S)+\mathcal{M}(T). For scalars: for λ∈F\lambda \in F, (λT)(vj)=λ T(vj)=λ∑iaijwi=∑i(λaij)wi(\lambda T)(v_j) = \lambda\, T(v_j) = \lambda \sum_i a_{ij} w_i = \sum_i (\lambda a_{ij}) w_i, so by the same uniqueness argument the (i,j)(i,j) entry of M(λT)\mathcal{M}(\lambda T) is λaij\lambda a_{ij}, i.e. M(λT)=λM(T)\mathcal{M}(\lambda T) = \lambda \mathcal{M}(T). This proves M\mathcal{M} is linear.

3. Injectivity. Suppose M(T)=M(S)\mathcal{M}(T) = \mathcal{M}(S), say both equal (aij)(a_{ij}). Then for every jj,

T(vj)=∑i=1maijwi=S(vj).T(v_j) = \sum_{i=1}^m a_{ij} w_i = S(v_j).

So TT and SS agree on every vector of the basis β\beta. By Linear Maps Determined by Action on a Basis (uniqueness part: two linear maps that agree on a basis are equal — indeed for any v=∑jxjvj∈Vv = \sum_j x_j v_j \in V, linearity forces T(v)=∑jxjT(vj)=∑jxjS(vj)=S(v)T(v) = \sum_j x_j T(v_j) = \sum_j x_j S(v_j) = S(v)), we conclude T=ST = S as functions on VV, hence as linear maps.

4. Surjectivity. Let A=(aij)∈Fm×nA = (a_{ij}) \in F^{m\times n} be arbitrary. Define vectors u1,…,un∈Wu_1,\dots,u_n \in W by

uj:=∑i=1maijwi(j=1,…,n).u_j := \sum_{i=1}^m a_{ij} w_i \qquad (j=1,\dots,n).

By the existence part of Linear Maps Determined by Action on a Basis, since β=(v1,…,vn)\beta = (v_1,\dots,v_n) is a basis of VV, there exists a (unique) linear map T:V→WT: V \to W with T(vj)=ujT(v_j) = u_j for every j=1,…,nj = 1,\dots,n. (Concretely: define TT on a general vector v=∑jxjvjv = \sum_j x_j v_j by T(v):=∑jxjujT(v) := \sum_j x_j u_j; this is well-defined because the xjx_j are uniquely determined by vv since β\beta is a basis, and one checks directly that this TT is linear and satisfies T(vj)=ujT(v_j)=u_j.) By construction, T(vj)=∑iaijwiT(v_j) = \sum_i a_{ij} w_i for every jj, and since coordinates relative to γ\gamma are unique (part 1), this says precisely that the (i,j)(i,j) entry of M(T)\mathcal{M}(T) is aija_{ij}. Hence M(T)=A\mathcal{M}(T) = A. As AA was arbitrary, M\mathcal{M} is surjective.

Conclusion. Parts 2, 3, 4 show M\mathcal{M} is a linear map that is both injective and surjective, hence a linear isomorphism L(V,W)≅Fm×n\mathcal{L}(V,W) \cong F^{m\times n}. Since Fm×nF^{m\times n} is a vector space of dimension mnmn (a basis is given by the mnmn matrices with a single 11 entry and zeros elsewhere), and a linear isomorphism preserves dimension, dim⁡L(V,W)=mn\dim \mathcal{L}(V,W) = mn. ■\blacksquare

∎
CorollaryCoordinates transform via the matrix

With β,γ\beta,\gamma and TT as above, let [v]β∈Fn[v]_\beta \in F^n denote the coordinate column of v∈Vv \in V relative to β\beta, and let [w]γ∈Fm[w]_\gamma \in F^m denote the coordinate column of w∈Ww\in W relative to γ\gamma. Then for every v∈Vv \in V,

[T(v)]γ=M(T) [v]β,[T(v)]_\gamma = \mathcal{M}(T)\,[v]_\beta,

where the right side is ordinary matrix-vector multiplication.

Proof

Write v=∑j=1nxjvjv = \sum_{j=1}^n x_j v_j, so [v]β=(x1,…,xn)T[v]_\beta = (x_1,\dots,x_n)^{\mathsf T}. Let M(T)=(aij)\mathcal{M}(T) = (a_{ij}), so T(vj)=∑i=1maijwiT(v_j) = \sum_{i=1}^m a_{ij}w_i for each jj. By linearity of TT,

T(v)=∑j=1nxjT(vj)=∑j=1nxj∑i=1maijwi=∑i=1m(∑j=1naijxj)wi.T(v) = \sum_{j=1}^n x_j T(v_j) = \sum_{j=1}^n x_j \sum_{i=1}^m a_{ij}w_i = \sum_{i=1}^m\Big(\sum_{j=1}^n a_{ij}x_j\Big) w_i.

By uniqueness of γ\gamma-coordinates, the ii-th coordinate of T(v)T(v) relative to γ\gamma is ∑j=1naijxj\sum_{j=1}^n a_{ij}x_j, which is exactly the ii-th entry of the product M(T)[v]β\mathcal{M}(T)[v]_\beta by the definition of matrix-vector multiplication. Hence [T(v)]γ=M(T)[v]β[T(v)]_\gamma = \mathcal{M}(T)[v]_\beta. ■\blacksquare

∎

Worked examples

Example 1 — a map between spaces of different dimension and structure, with a non-standard basis. Let V=P2(R)V = P_2(\mathbb{R}), the polynomials of degree at most 22, and let W=R2W = \mathbb{R}^2. Define T:V→WT : V \to W by

T(p)=(p(1), p′(0)).T(p) = \big(p(1),\ p'(0)\big).

This is linear: for p,q∈Vp,q \in V and λ∈R\lambda \in \mathbb{R}, T(p+q)=((p+q)(1),(p+q)′(0))=(p(1)+q(1),p′(0)+q′(0))=T(p)+T(q)T(p+q) = ((p+q)(1),(p+q)'(0)) = (p(1)+q(1), p'(0)+q'(0)) = T(p)+T(q), and similarly T(λp)=λT(p)T(\lambda p) = \lambda T(p), using linearity of evaluation and differentiation. Choose the (non-monomial) ordered basis of VV

β=(v1,v2,v3),v1=1+x,v2=x−x2,v3=2x2.\beta = (v_1, v_2, v_3), \qquad v_1 = 1 + x,\quad v_2 = x - x^2,\quad v_3 = 2x^2.

One checks β\beta is a basis: three polynomials in a 33-dimensional space are a basis iff independent, and if a(1+x)+b(x−x2)+c(2x2)=0a(1+x)+b(x-x^2)+c(2x^2)=0 then comparing coefficients of 1,x,x21,x,x^2 gives a=0a=0, a+b=0a+b=0, −b+2c=0-b+2c=0, forcing a=b=c=0a=b=c=0. Choose the standard basis of W=R2W = \mathbb{R}^2: γ=(e1,e2)\gamma = (e_1,e_2) with e1=(1,0)e_1=(1,0), e2=(0,1)e_2=(0,1). Compute the images of the basis vectors.

  • v1=1+xv_1 = 1+x: v1(1)=2v_1(1) = 2, v1′(x)=1v_1'(x) = 1 so v1′(0)=1v_1'(0)=1. Thus T(v1)=(2,1)=2e1+1e2T(v_1) = (2,1) = 2e_1 + 1e_2.
  • v2=x−x2v_2 = x - x^2: v2(1)=1−1=0v_2(1) = 1-1=0, v2′(x)=1−2xv_2'(x) = 1-2x so v2′(0)=1v_2'(0)=1. Thus T(v2)=(0,1)=0e1+1e2T(v_2) = (0,1) = 0e_1+1e_2.
  • v3=2x2v_3 = 2x^2: v3(1)=2v_3(1) = 2, v3′(x)=4xv_3'(x)=4x so v3′(0)=0v_3'(0)=0. Thus T(v3)=(2,0)=2e1+0e2T(v_3) = (2,0) = 2e_1+0e_2.

Reading off coordinates as columns,

M(T,β,γ)=(202110).\mathcal{M}(T,\beta,\gamma) = \begin{pmatrix} 2 & 0 & 2 \\ 1 & 1 & 0 \end{pmatrix}.

Sanity check via the Corollary. Take p=v1+3v2−v3=(1+x)+3(x−x2)−2x2=1+4x−5x2p = v_1 + 3v_2 - v_3 = (1+x) + 3(x-x^2) - 2x^2 = 1 + 4x - 5x^2, so [p]β=(1,3,−1)T[p]_\beta = (1,3,-1)^{\mathsf T}. Directly, p(1)=1+4−5=0p(1) = 1+4-5=0 and p′(x)=4−10xp'(x) = 4-10x so p′(0)=4p'(0)=4; hence T(p)=(0,4)T(p) = (0,4). Using the matrix:

M(T)(13−1)=(202110)(13−1)=(2(1)+0(3)+2(−1)1(1)+1(3)+0(−1))=(04).\mathcal{M}(T)\begin{pmatrix}1\\3\\-1\end{pmatrix} = \begin{pmatrix}2&0&2\\1&1&0\end{pmatrix}\begin{pmatrix}1\\3\\-1\end{pmatrix} = \begin{pmatrix}2(1)+0(3)+2(-1)\\ 1(1)+1(3)+0(-1)\end{pmatrix} = \begin{pmatrix}0\\4\end{pmatrix}.

This matches T(p)=(0,4)T(p) = (0,4) exactly, confirming the matrix is correct.

Example 2 — an operator on R3\mathbb{R}^3, in the standard basis versus a different basis, showing the same map with genuinely different matrices. Let T:R3→R3T:\mathbb{R}^3 \to \mathbb{R}^3 be the linear map defined on the standard basis ε=(e1,e2,e3)\varepsilon = (e_1,e_2,e_3) by

T(e1)=(3,1,0),T(e2)=(0,2,−1),T(e3)=(1,0,4).T(e_1) = (3,1,0), \qquad T(e_2) = (0,2,-1), \qquad T(e_3)=(1,0,4).

(This determines TT completely on all of R3\mathbb{R}^3 by linearity, per Linear Maps Determined by Action on a Basis: for general (x,y,z)=xe1+ye2+ze3(x,y,z) = xe_1+ye_2+ze_3, T(x,y,z)=x(3,1,0)+y(0,2,−1)+z(1,0,4)=(3x+z, x+2y, −y+4z)T(x,y,z) = x(3,1,0)+y(0,2,-1)+z(1,0,4) = (3x+z,\ x+2y,\ -y+4z).) Relative to β=γ=ε\beta = \gamma = \varepsilon (standard basis on both sides), the columns are just the images themselves:

M(T,ε)=(3011200−14).\mathcal{M}(T,\varepsilon) = \begin{pmatrix} 3 & 0 & 1\\ 1 & 2 & 0 \\ 0 & -1 & 4\end{pmatrix}.

Now use a different basis on the input side only:

β′=(u1,u2,u3),u1=(1,1,0), u2=(0,1,1), u3=(1,0,1),\beta' = (u_1,u_2,u_3), \qquad u_1 = (1,1,0),\ u_2=(0,1,1),\ u_3=(1,0,1),

keeping γ=ε\gamma = \varepsilon on the output side. (β′\beta' is a basis: the determinant of the matrix with these columns is 1(1⋅1−1⋅0)−0+1(1⋅1−1⋅0)=1+1=2≠01(1\cdot1 - 1\cdot0) - 0 + 1(1\cdot1-1\cdot0) = 1+1=2 \ne 0, so the vectors are independent, hence a basis of the 33-dimensional space.) Compute T(uj)T(u_j) using the explicit formula T(x,y,z)=(3x+z, x+2y, −y+4z)T(x,y,z) = (3x+z,\,x+2y,\,-y+4z):

  • T(u1)=T(1,1,0)=(3(1)+0, 1+2(1), −1+0)=(3,3,−1)T(u_1) = T(1,1,0) = (3(1)+0,\ 1+2(1),\ -1+0) = (3,3,-1).
  • T(u2)=T(0,1,1)=(3(0)+1, 0+2(1), −1+4(1))=(1,2,3)T(u_2) = T(0,1,1) = (3(0)+1,\ 0+2(1),\ -1+4(1)) = (1,2,3).
  • T(u3)=T(1,0,1)=(3(1)+1, 1+2(0), −0+4(1))=(4,1,4)T(u_3) = T(1,0,1) = (3(1)+1,\ 1+2(0),\ -0+4(1)) = (4,1,4).

Since γ=ε\gamma = \varepsilon is the standard basis, coordinates relative to γ\gamma of a vector (a,b,c)(a,b,c) are simply (a,b,c)(a,b,c) itself, so the columns are exactly these triples:

M(T,β′,ε)=(314321−134).\mathcal{M}(T,\beta',\varepsilon) = \begin{pmatrix} 3 & 1 & 4 \\ 3 & 2 & 1 \\ -1 & 3 & 4 \end{pmatrix}.

Notice this is a genuinely different array from M(T,ε)\mathcal{M}(T,\varepsilon) — same linear map TT, 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 M(T,β′,ε)\mathcal{M}(T,\beta',\varepsilon) to M(T,ε,ε)\mathcal{M}(T,\varepsilon,\varepsilon) via the change-of-basis matrix from β′\beta' to ε\varepsilon.

Counterexamplewhy finite-dimensionality is needed

The theorem requires VV and WW 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 V=W=R[x]V = W = \mathbb{R}[x], the space of all polynomials (no degree bound), an infinite-dimensional space with (Hamel) basis β=(1,x,x2,x3,… )\beta = (1,x,x^2,x^3,\dots). Let T=DT = D be the differentiation operator, D(p)=p′D(p) = p', a perfectly good linear map V→VV \to V. Try to build "the matrix of DD" as in the Definition: we would need, for every basis vector xjx^j (j=0,1,2,…j=0,1,2,\dots), to express D(xj)=jxj−1D(x^j) = jx^{j-1} 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 1,x,x2,…1,x,x^2,\dots to record images for. One is forced into an infinite array (a column for every power of xx), which is not a matrix in the sense used here (finite m×nm\times n 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 TT from an arbitrary matrix AA by defining TT on a basis vector by vector and summing xjT(vj)x_jT(v_j) for v=∑xjvjv = \sum x_jv_j; this sum is finite precisely because dim⁡V<∞\dim V<\infty guarantees vv is a finite linear combination of basis vectors. In infinite dimensions, an element of VV 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 V→WV\to W genuinely requires infinite arrays, and the clean identification L(V,W)≅Fm×n\mathcal{L}(V,W)\cong F^{m\times n} with dim⁡=mn\dim = mn (a finite number) simply has no analogue. This is exactly why the theorem's hypothesis "V,WV,W finite-dimensional" cannot be dropped.

Scope, edge cases & common traps

SituationWhat to watch for
V=WV = W, one basis used twiceMatrix is square; this is the setting for eigenvalues, trace, determinant of an operator.
Different bases for domain and codomainPerfectly legal and often useful (e.g. diagonalizing rectangular maps); the two bases need not be related.
Changing only the input basis β\betaMatrix 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 γ\gammaMatrix changes by left-multiplication by an (inverse) change-of-basis matrix.
Zero map / identity mapZero map always gives the all-zeros matrix in any bases; identity map gives the identity matrix only when β=γ\beta=\gamma.
Infinite-dimensional VV or WWThe 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
AC
Arthur Cayley
1821–1895 · British algebraist, founder of matrix algebra

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.

History
- 1858 — Cayley publishes A Memoir on the Theory of Matrices, treating matrices as objects with their own algebra (addition, multiplication, inverses).
- 1844 — Grassmann's Ausdehnungslehre develops a coordinate-free theory of linear extension, an early precursor to the abstract vector-space viewpoint underlying "basis-free" linear maps.
- 1888 — Peano gives the first modern axiomatic definition of a vector space, separating the abstract map TT from any particular matrix representation of it.
- 1920s–1930s — Hilbert, von Neumann, and others formalize linear operators on general (including infinite-dimensional) spaces, clarifying exactly where the finite-matrix picture applies and where it does not.
- Mid 20th century — the coordinate/basis formalism (bases, coordinate maps, change of basis) becomes standard textbook material, crystallizing the M(T,β,γ)\mathcal{M}(T,\beta,\gamma) notation used today.
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 33" 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 (v1,…,vn)(v_1,\dots,v_n), removes this ambiguity once and for all: column jj always means "the image of vjv_j," 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 m×nm\times n matrix AA and any chosen ordered bases β\beta of an nn-dimensional VV and γ\gamma of an mm-dimensional WW, one constructs a linear map TT by declaring T(vj)T(v_j) to be the vector whose γ\gamma-coordinates are the jj-th column of AA, 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 γ\gamma, does the matrix change even though the domain basis β\beta stays fixed?

Yes, generally every entry can change. Recall the matrix entries are the coordinates of T(vj)T(v_j) relative to γ\gamma; if γ\gamma changes, the coordinates of the very same vector T(vj)T(v_j) in the new basis are typically different numbers, even though T(vj)T(v_j) itself as a vector in WW has not moved at all. Only the "ruler" used to read off its components changed. This is why matrix identities like M(T,β,γ′)=P−1M(T,β,γ)\mathcal M(T,\beta,\gamma') = P^{-1}\mathcal M(T,\beta,\gamma) (for a suitable change-of-basis matrix PP) 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 T(v)=0WT(v) = 0_W for all v∈Vv \in V, then in particular T(vj)=0W=∑i0⋅wiT(v_j) = 0_W = \sum_{i} 0\cdot w_i for every basis vector vjv_j, so every entry aija_{ij} in the defining equation is 00. 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 β=γ\beta = \gamma?

When domain and codomain bases coincide, M(idV,β,β)\mathcal{M}(\mathrm{id}_V, \beta, \beta) is the n×nn\times n identity matrix InI_n. Indeed idV(vj)=vj=∑iδijvi\mathrm{id}_V(v_j) = v_j = \sum_i \delta_{ij} v_i where δij\delta_{ij} is 11 if i=ji=j and 00 otherwise (since vjv_j's coordinates relative to the basis β\beta itself are simply the standard unit coordinate vector eje_j). 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 [T(v)]γ=M(T)[v]β[T(v)]_\gamma = \mathcal{M}(T)[v]_\beta: applying TT 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 S∘TS\circ T corresponds to the matrix product M(S)M(T)\mathcal{M}(S)\mathcal{M}(T) (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.

Before this

Where this leads