Skip to content

Matrices as Linear Maps

A matrix is a coordinate representation of a linear map after bases have been chosen. The linear map is the object; the matrix is how that object acts on coordinate columns.

This page is the bridge between abstract linear maps and the matrices used in finite-dimensional quantum mechanics, spin systems, numerical diagonalization, and operator representations.

Let

T:V→WT:V\to W

be a linear map. Choose a basis

B=(e1,…,en)\mathcal B=(e_1,\ldots,e_n)

for VV and a basis

C=(f1,…,fm)\mathcal C=(f_1,\ldots,f_m)

for WW.

The matrix of TT in these bases is written

[T]C←B.[T]_{\mathcal C\leftarrow\mathcal B}.

Its jjth column is the coordinate column of T(ej)T(e_j) in the basis C\mathcal C:

T(ej)=∑i=1mTijfi.T(e_j) = \sum_{i=1}^m T^i{}_j f_i.

Thus the matrix entries TijT^i{}_j record what the map does to each basis vector.

For the index conventions behind expressions such as TijT^i{}_j, see Index Notation and Summation Conventions.

If

v=∑jcjej,v=\sum_j c^j e_j,

then linearity gives

T(v)=∑jcjT(ej)=∑i,jTijcjfi.T(v) = \sum_j c^jT(e_j) = \sum_{i,j}T^i{}_j c^j f_i.

In coordinate-column notation,

[T(v)]C=[T]C←B[v]B.[T(v)]_{\mathcal C} = [T]_{\mathcal C\leftarrow\mathcal B} [v]_{\mathcal B}.

This is the precise meaning of multiplying a matrix by a column vector: it computes the coordinates of the output vector in the chosen output basis.

Let

T:U→V,S:V→W.T:U\to V, \qquad S:V\to W.

Choose bases A\mathcal A for UU, B\mathcal B for VV, and C\mathcal C for WW. Then

[S∘T]C←A=[S]C←B[T]B←A.[S\circ T]_{\mathcal C\leftarrow\mathcal A} = [S]_{\mathcal C\leftarrow\mathcal B} [T]_{\mathcal B\leftarrow\mathcal A}.

Matrix multiplication appears because composition appears. The rightmost matrix acts first on coordinate columns.

This is also why matrix multiplication is generally not commutative. The maps S∘TS\circ T and T∘ST\circ S may have different meanings, different domains, or different results.

When T:V→VT:V\to V maps a vector space to itself, it is represented by a square matrix after one basis of VV is chosen:

[T]B←B.[T]_{\mathcal B\leftarrow\mathcal B}.

Finite-dimensional quantum operators are often introduced this way. For example, a two-level Hamiltonian, a spin component, or a quantum gate can be represented by a 2×22\times2 matrix after a basis is chosen.

The matrix is basis-dependent. The operator is not.

Let A:V→VA:V\to V be a linear operator. Suppose B\mathcal B is an old basis and F=(f1,…,fn)\mathcal F=(f_1,\ldots,f_n) is a new basis.

Use the convention that PP has as its columns the B\mathcal B-coordinates of the new basis vectors:

P=([f1]B⋯[fn]B).P = \begin{pmatrix} [f_1]_{\mathcal B} & \cdots & [f_n]_{\mathcal B} \end{pmatrix}.

Then coordinate columns satisfy

[v]B=P[v]F.[v]_{\mathcal B} = P[v]_{\mathcal F}.

If ABA_{\mathcal B} is the old matrix and AFA_{\mathcal F} is the new matrix, consistency requires

AF=P−1ABP.A_{\mathcal F} = P^{-1}A_{\mathcal B}P.

This is a similarity transformation. It changes the matrix representation but not basis-independent information such as eigenvalues, trace, determinant, and the abstract operator itself.

The canonical mathematical convention for this transformation is developed in Change of Basis. Quantum pages often use unitary overlap matrices for orthonormal bases; the physics-facing passive convention is explained in Change of Basis.

Define T:R2→R2T:\mathbb R^2\to\mathbb R^2 by

T(xy)=(x+y2y).T \begin{pmatrix} x\\ y \end{pmatrix} = \begin{pmatrix} x+y\\ 2y \end{pmatrix}.

In the standard basis e1=(1,0)Te_1=(1,0)^T, e2=(0,1)Te_2=(0,1)^T,

T(e1)=(10),T(e2)=(12).T(e_1) = \begin{pmatrix} 1\\ 0 \end{pmatrix}, \qquad T(e_2) = \begin{pmatrix} 1\\ 2 \end{pmatrix}.

These output coordinate columns become the matrix columns:

[T]=(1102).[T] = \begin{pmatrix} 1 & 1\\ 0 & 2 \end{pmatrix}.

Then

[T](xy)=(x+y2y),[T] \begin{pmatrix} x\\ y \end{pmatrix} = \begin{pmatrix} x+y\\ 2y \end{pmatrix},

as required.

Matrix mechanics represents states and operators in chosen bases. A Hamiltonian matrix is not merely an array of numbers; it is the coordinate representation of a linear operator. A gate matrix represents a unitary map in a computational basis. A change to an energy basis, spin basis, or position-momentum representation changes the concrete form while preserving the underlying linear map.

This is why the same operator can appear as a Pauli matrix, a diagonal matrix, a differential expression, or an integral kernel depending on the representation.

  • Treating matrices as primary and linear maps as optional interpretation.
  • Forgetting to specify the input and output bases for a matrix.
  • Multiplying matrices in the wrong order because composition order was ignored.
  • Changing a state-coordinate column without changing the operator matrix consistently.
  • Applying a function to matrix entries when the intended operation is a function of the linear operator.
  • Thinking similar matrices are different operators rather than different representations of the same operator.
  • S. Axler, Linear Algebra Done Right, 3rd ed., Springer, 2015.
  • G. Strang, Linear Algebra and Its Applications, 4th ed., Brooks/Cole, 2006.
  • P. R. Halmos, Finite-Dimensional Vector Spaces, 2nd ed., Springer, 1974.
  • R. Shankar, Principles of Quantum Mechanics, 2nd ed., Springer, 1994.
  1. Let T:R2→R2T:\mathbb R^2\to\mathbb R^2 be T(x,y)=(2x−y,x+y)T(x,y)=(2x-y,x+y). Find the matrix of TT in the standard basis.
Solution

Compute the images of the standard basis vectors:

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

These become the columns:

[T]=(2−111).[T] = \begin{pmatrix} 2 & -1\\ 1 & 1 \end{pmatrix}.
  1. If [v]B=P[v]F[v]_{\mathcal B}=P[v]_{\mathcal F}, why is AF=P−1ABPA_{\mathcal F}=P^{-1}A_{\mathcal B}P the consistent matrix for the same operator in the F\mathcal F basis?
Solution

Start with

[Av]B=AB[v]B=ABP[v]F.[Av]_{\mathcal B} = A_{\mathcal B}[v]_{\mathcal B} = A_{\mathcal B}P[v]_{\mathcal F}.

But also [Av]B=P[Av]F=PAF[v]F[Av]_{\mathcal B}=P[Av]_{\mathcal F}=P A_{\mathcal F}[v]_{\mathcal F}. Hence

PAF=ABP,P A_{\mathcal F} = A_{\mathcal B}P,

so

AF=P−1ABP.A_{\mathcal F} = P^{-1}A_{\mathcal B}P.
  1. Explain why matrix multiplication is not just a computational rule but a representation of composition.
Solution

If TT is applied first and SS second, then the output is S(T(u))S(T(u)). In coordinates, applying TT gives one matrix multiplication, and applying SS gives the next. The combined matrix is therefore the product representing S∘TS\circ T.