Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Matric Representation of Linear Transformation






Encoding a Transformation as a Matrix

Every linear transformation between finite-dimensional spaces can be represented by a matrix, and every matrix defines a linear transformation. The columns of the matrix are the images of the basis vectors — this single recipe converts an abstract function into a concrete array of numbers from which every property of the transformation can be extracted.



Every Linear Map from Rⁿ to Rᵐ Is Matrix Multiplication

If T:RnRmT: \mathbb{R}^n \to \mathbb{R}^m is linear, there exists a unique m×nm \times n matrix AA such that

Linear Map as Matrix Multiplication
T(x)=Axfor every xRnT(\mathbf{x}) = A\mathbf{x} \quad \text{for every } \mathbf{x} \in \mathbb{R}^n
Learn more about this formula: Linear Map as Matrix Multiplication →


This is not an optional representation — it is forced by linearity. Any vector x=x1e1++xnen\mathbf{x} = x_1\mathbf{e}_1 + \cdots + x_n\mathbf{e}_n maps to T(x)=x1T(e1)++xnT(en)T(\mathbf{x}) = x_1T(\mathbf{e}_1) + \cdots + x_nT(\mathbf{e}_n), and this is exactly the matrix-vector product AxA\mathbf{x} with A=[T(e1)  T(e2)    T(en)]A = [T(\mathbf{e}_1) \; T(\mathbf{e}_2) \; \cdots \; T(\mathbf{e}_n)].

The converse is equally immediate: every m×nm \times n matrix AA defines a linear transformation xAx\mathbf{x} \mapsto A\mathbf{x}. The correspondence is one-to-one — different matrices define different transformations, and different transformations produce different matrices. Linear maps RnRm\mathbb{R}^n \to \mathbb{R}^m and m×nm \times n matrices are the same objects viewed from two perspectives.

Matrix Representation Notation

Notation

Matrix Representation Notation

The same square brackets that turn a vector into a column turn a map into a matrix — and once a map is inside them, the subscripts have to say which bases were used, because the array changes when they do. All of these marks are catalogued among the linear algebra symbols.
The brackets themselves, the script-vs-roman basis letters and the backward-arrow subscript come from basis notation, where they wrap a vector; T:VWT: V \to W and the map letters come from image and kernel notation; AxA\mathbf{x} juxtaposition and the m×nm \times n shape from matrix operation notation.
[T]CB[T]_{\mathcal{C} \leftarrow \mathcal{B}}
the matrix of T, from the B basis to the C basis
The bracket device of coordinate notation with a map inside instead of a vector: the result is the array that does what TT does, once both ends have been given coordinates. The subscript is not decoration — Matrices for Abstract Vector Spaces below shows the same TT producing different arrays under different bases.
CasesWhen both spaces carry the standard basis the subscript is dropped and the bare [T][T] or AA is the standard matrix of Constructing the Standard Matrix below — the only case where a map has one uncontested array. An operator mapping a space to itself uses one basis twice, written [T]B[T]_{\mathcal{B}} rather than [T]BB[T]_{\mathcal{B} \leftarrow \mathcal{B}}.
Also writtenATA_T, M(T)M(T) and M(T)\mathcal{M}(T) all appear for the same object; some texts drop the brackets entirely once a basis is fixed and simply reuse TT for both the map and its matrix — convenient, and the source of the confusion below.
Do not confuseThe map itself. TT is basis-free; [T]CB[T]_{\mathcal{C} \leftarrow \mathcal{B}} is one of infinitely many arrays representing it. Texts that write TT for both are relying on a fixed basis the reader is expected to remember, and the distinction reappears the moment a change of basis does.
[T(v)]C=[T]CB[v]B[T(\mathbf{v})]_{\mathcal{C}} = [T]_{\mathcal{C} \leftarrow \mathcal{B}}\,[\mathbf{v}]_{\mathcal{B}}
coordinates of the image equal the matrix times the coordinates
The equation the subscripts were designed for: adjacent basis letters touch and cancel, CB\mathcal{C} \leftarrow \mathcal{B} against B\mathcal{B}, leaving C\mathcal{C} on both sides. It is the same domino reading change-of-basis notation uses for PCBP_{\mathcal{C} \leftarrow \mathcal{B}}, which is why both marks point their arrows the same way.
CasesChaining is the payoff: [ST]DB=[S]DC[T]CB[S \circ T]_{\mathcal{D} \leftarrow \mathcal{B}} = [S]_{\mathcal{D} \leftarrow \mathcal{C}}[T]_{\mathcal{C} \leftarrow \mathcal{B}}Composition Corresponds to Matrix Multiplication below — where the inner labels cancel in sequence and the surviving outer pair names the composite.
Do not confuseA left-to-right reading. The rightmost factor acts first, so the arrow chain runs backwards relative to the page: B\mathcal{B} enters on the right and D\mathcal{D} leaves on the left, matching function composition rather than reading order.
[T]=[  [T(b1)]C    [T(bn)]C  ][T] = \big[\;[T(\mathbf{b}_1)]_{\mathcal{C}} \;\cdots\; [T(\mathbf{b}_n)]_{\mathcal{C}}\;\big]
column j is the image of the j-th basis vector, in coordinates
The construction rule written as a mark: each column is one basis vector's image, expressed in the target basis — Constructing the Standard Matrix below builds it this way. The outer brackets here are matrix-assembly, not coordinates; the inner ones are coordinates.
CasesWith the standard basis the inner brackets collapse, since [v]E=v[\mathbf{v}]_{\mathcal{E}} = \mathbf{v}, and the rule shortens to "columns are T(ej)T(\mathbf{e}_j)" — the form most first courses state, and a special case rather than the definition.
Do not confuseRows. Reading the images across rows instead of down columns transposes the matrix and breaks T(x)=AxT(\mathbf{x}) = A\mathbf{x}; the column convention is fixed by the fact that the matrix multiplies a column vector on its right.

Constructing the Standard Matrix

The recipe is direct: apply TT to each standard basis vector e1,e2,,en\mathbf{e}_1, \mathbf{e}_2, \dots, \mathbf{e}_n and arrange the results as columns:

Standard Matrix
A=[T(e1)    T(e2)        T(en)]A = \bigl[\,T(\mathbf{e}_1) \;\; T(\mathbf{e}_2) \;\; \cdots \;\; T(\mathbf{e}_n)\,\bigr]
Learn more about this formula: Standard Matrix →


Worked Example


Let T:R3R2T: \mathbb{R}^3 \to \mathbb{R}^2 be defined by T(x,y,z)=(2xy+3z,  4x+5z)T(x, y, z) = (2x - y + 3z, \; 4x + 5z).

T(e1)=T(1,0,0)=(2,4)T(\mathbf{e}_1) = T(1, 0, 0) = (2, 4)

T(e2)=T(0,1,0)=(1,0)T(\mathbf{e}_2) = T(0, 1, 0) = (-1, 0)

T(e3)=T(0,0,1)=(3,5)T(\mathbf{e}_3) = T(0, 0, 1) = (3, 5)

A=(213405)A = \begin{pmatrix} 2 & -1 & 3 \\ 4 & 0 & 5 \end{pmatrix}


Verification: A(xyz)=(2xy+3z4x+5z)=T(x,y,z)A\begin{pmatrix} x \\ y \\ z \end{pmatrix} = \begin{pmatrix} 2x - y + 3z \\ 4x + 5z \end{pmatrix} = T(x, y, z).
îĵ
The basis vectors, and where they land

The images of the two basis vectors are the two columns of the matrix — that is the entire construction. Because a linear map is determined by what it does to a basis, knowing those two arrows is knowing the map, and everything else on the grid follows from them. Move the basis images and watch the matrix update on the linear transformation explorer.

This is why the standard matrix is built by feeding the basis vectors through the map rather than by solving anything.

Reading the Matrix

Every piece of information about a linear transformation is encoded in its matrix.

Column jj tells you where ej\mathbf{e}_j goes. If the first column of a 2×22 \times 2 matrix is (3,1)T(3, -1)^T, then (1,0)(1, 0) maps to (3,1)(3, -1). The matrix is a complete lookup table: the image of any vector is computed by multiplication.

The size m×nm \times n records the dimensions of codomain (mm rows) and domain (nn columns). A 3×23 \times 2 matrix represents a map from R2\mathbb{R}^2 to R3\mathbb{R}^3 — it embeds a plane into three-dimensional space. A 2×32 \times 3 matrix represents a map from R3\mathbb{R}^3 to R2\mathbb{R}^2 — it compresses three dimensions down to two.

A square matrix (m=nm = n) represents a transformation from a space to itself — a linear operator. Only operators can have eigenvalues, determinants, and traces.
Shape of A (m × n) Transformation type Geometric action
m > n (more rows than columns) T: ℝⁿ → ℝᵐ, embedding embeds a smaller-dimensional space into a larger one (e.g. 3 × 2 lifts ℝ² into ℝ³)
m = n (square) T: ℝⁿ → ℝⁿ, linear operator maps a space to itself — only operators carry determinant, eigenvalues, and trace
m < n (more columns than rows) T: ℝⁿ → ℝᵐ, compression compresses a larger-dimensional space into a smaller one (e.g. 2 × 3 flattens ℝ³ into ℝ²)

Matrices for Abstract Vector Spaces

For a linear transformation T:VWT: V \to W between abstract vector spaces, the matrix depends on a choice of basis for both VV and WW.

Fix a basis B={v1,,vn}\mathcal{B} = \{\mathbf{v}_1, \dots, \mathbf{v}_n\} for VV and a basis C={w1,,wm}\mathcal{C} = \{\mathbf{w}_1, \dots, \mathbf{w}_m\} for WW. Column jj of the matrix [T]CB[T]_{\mathcal{C} \leftarrow \mathcal{B}} is the C\mathcal{C}-coordinate vector of T(vj)T(\mathbf{v}_j) — the scalars needed to express T(vj)T(\mathbf{v}_j) as a linear combination of w1,,wm\mathbf{w}_1, \dots, \mathbf{w}_m. In compact form:

Matrix Representation Abstract Bases
[T]CB=[[T(v1)]C        [T(vn)]C][T]_{\mathcal{C} \leftarrow \mathcal{B}} = \bigl[\,[T(\mathbf{v}_1)]_{\mathcal{C}} \;\; \cdots \;\; [T(\mathbf{v}_n)]_{\mathcal{C}}\,\bigr]
Learn more about this formula: Matrix Representation Abstract Bases →


Different bases give different matrices for the same transformation. The standard matrix for maps between Rn\mathbb{R}^n and Rm\mathbb{R}^m is the special case where both bases are standard. For abstract spaces like polynomial or function spaces, there is no "standard" basis in the same sense — every basis choice produces a different but equally valid matrix representation.

Worked Example: Differentiation

Let T:P2P1T: \mathcal{P}_2 \to \mathcal{P}_1 be defined by T(p)=pT(p) = p' (differentiation). Choose the monomial basis {1,x,x2}\{1, x, x^2\} for P2\mathcal{P}_2 and {1,x}\{1, x\} for P1\mathcal{P}_1.

T(1)=0=01+0xT(1) = 0 = 0 \cdot 1 + 0 \cdot x, so column 11 is (0,0)T(0, 0)^T.

T(x)=1=11+0xT(x) = 1 = 1 \cdot 1 + 0 \cdot x, so column 22 is (1,0)T(1, 0)^T.

T(x2)=2x=01+2xT(x^2) = 2x = 0 \cdot 1 + 2 \cdot x, so column 33 is (0,2)T(0, 2)^T.

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


The 2×32 \times 3 shape reflects dim(P1)=2\dim(\mathcal{P}_1) = 2 rows and dim(P2)=3\dim(\mathcal{P}_2) = 3 columns. The rank is 22 — differentiation maps P2\mathcal{P}_2 onto all of P1\mathcal{P}_1. The null space is one-dimensional, spanned by the constant polynomial 11 — the only polynomials whose derivative is zero.

Composition Corresponds to Matrix Multiplication

If T:UVT: U \to V has matrix AA (relative to appropriate bases) and S:VWS: V \to W has matrix BB, then the composition ST:UWS \circ T: U \to W has matrix BABA.

The order matches the composition: SS acts after TT, and BB multiplies from the left. This is why matrix multiplication is defined as it is — the row-times-column rule encodes function composition.

Associativity of matrix multiplication (BC)A=B(CA)(BC)A = B(CA) mirrors associativity of composition (RS)T=R(ST)(R \circ S) \circ T = R \circ (S \circ T). Non-commutativity of multiplication ABBAAB \neq BA mirrors non-commutativity of composition STTSS \circ T \neq T \circ S.

The identity transformation I:VVI: V \to V has the identity matrix InI_n in any basis, and InA=AIn=AI_n A = AI_n = A — the identity matrix is the multiplicative identity precisely because the identity transformation is the compositional identity.
AvBAvv₀BvABvvAvBAvv₀BvABvv
Two maps applied in each order

Above, the order makes no difference. Below, it plainly does: the same two transformations applied the other way round leave the grid somewhere else. Matrix multiplication is non-commutative for this reason and no other — doing things in a different order genuinely ends up somewhere different. Swap the order yourself on the 2D composition explorer.

Composition of maps and multiplication of matrices are therefore the same operation described in two vocabularies.

The Identity and the Inverse

The identity transformation I:VVI: V \to V sends every vector to itself. In any basis, its matrix is InI_n.

If TT has matrix AA and TT is invertible, then T1T^{-1} has matrix A1A^{-1}. The transformation TT is invertible if and only if AA is invertible — the geometric and algebraic conditions coincide exactly. Composing TT with T1T^{-1} gives the identity, and multiplying AA by A1A^{-1} gives II. The determinant test (det(A)0\det(A) \neq 0) simultaneously answers whether the transformation is bijective and whether the matrix has an inverse.

The Matrix Encodes Everything

Once a linear transformation is represented by a matrix, every property of the transformation becomes a matrix computation.

The rank of AA equals the dimension of the image of TT. The nullity equals the dimension of the kernel. The determinant (for square matrices) tells whether TT is invertible and how it scales volumes. The eigenvalues reveal the scaling factors along invariant directions. The trace equals the sum of the eigenvalues. The singular values measure the maximum stretching in each orthogonal direction.

This is why matrices dominate computational linear algebra. Abstract transformations are conceptually powerful, but matrices are what computers operate on. The matrix representation converts every question about a linear map into a question about an array of numbers — and arrays of numbers are what algorithms are designed to handle.
Matrix invariant What it reveals about T Requires
rank(A) dim of the image of T (how many output directions T can reach) any A
nullity(A) dim of the kernel of T (how many input directions T collapses to zero) any A
det(A) invertibility (det ≠ 0); volume scaling factor |det(A)|; orientation by sign square A only
eigenvalues scaling factors along the invariant directions (eigenvectors) square A only
tr(A) sum of the eigenvalues square A only
singular values maximum stretching along each orthogonal input direction any A

Summary: The Transformation ↔ Matrix Dictionary

The recipe and examples above all serve a single end: each linear transformation between finite-dimensional spaces corresponds to a unique matrix, and every concept on the transformation side has a matching object on the matrix side. The table below collects the dictionary in one place — what to look at on the matrix when you want to know something about the transformation, and vice versa. It is a recap of the whole page and a reference for moving between the two languages.
Read the entries below in both directions. Each line is a fact about transformations and a fact about matrices at the same time, and which one is the definition depends only on where you started. The grouping separates the correspondence itself from what it does to operations and to subspaces — three kinds of translation rather than one long glossary.
Transformations · dictionary

Transformation ↔ matrix

Once a basis is fixed the two languages are interchangeable, and every statement about a map has a matrix statement beside it. The point of reading them in parallel is to notice that neither side is primary — the matrix is not an approximation to the transformation, it is the transformation written in coordinates.

7entries
The correspondence itself3
1
unique m×nm \times n matrix per linear TT
T(x)=AxT(\mathbf{x}) = A\mathbf{x}
Every linear map from Rn\mathbb{R}^n to Rm\mathbb{R}^m is matrix multiplication and nothing else — there is no more general kind of linear map hiding elsewhere. The uniqueness matters as much as the existence: two different matrices cannot represent the same map in the same basis.
2
T(ej)=jT(\mathbf{e}_j) = j-th column of AA
The whole construction in one line. Feed the map each basis vector in turn and record what comes back — the results are the columns. This is why knowing a linear map on a basis is knowing it everywhere.
3
domain Rn\mathbb{R}^n, codomain Rm\mathbb{R}^m
nn columns, mm rows
Columns count inputs, rows count outputs. A linear operator has V=WV = W, so its matrix is square — which is the only case where eigenvalues, determinants and inverses are even defined.
Operations translate2
4
note the order
STBAS \circ T \leftrightarrow BA
Applying TT then SS corresponds to the product BABA, not ABAB — the matrix acting first stands on the right, because it meets the vector first. This is the reason matrix multiplication is defined the way it is rather than entry by entry.
5
TT bijective     \iff AA invertible
IInI \leftrightarrow I_n, T1A1T^{-1} \leftrightarrow A^{-1}
The identity transformation is the identity matrix in every basis — the one matrix a change of basis cannot alter. Invertibility transfers exactly, which is what makes the invertibility equivalence a statement about transformations too.
Subspaces translate2
6
im(T)Col(A)\operatorname{im}(T) \leftrightarrow \operatorname{Col}(A), ker(T)Null(A)\ker(T) \leftrightarrow \operatorname{Null}(A)
The reachable outputs are the column space; the collapsed inputs are the null space. So rank-nullity is a statement about transformations that happens to be provable by row reduction.
7
dimV=dimW\dim V = \dim W, both finite
invertible square matrix
Two spaces of the same finite dimension are isomorphic, and the isomorphism is a change of coordinates. This is why P3\mathcal{P}_3 and R2×2\mathbb{R}^{2\times 2} are the same object twice — both four-dimensional, so both are R4\mathbb{R}^4 in disguise.
The dictionary is exact and it is one-to-one, but only once a basis is chosen. Change the basis and the same transformation gets a different matrix — which is what makes similarity the right notion of sameness for matrices, and why properties surviving a basis change are the ones worth naming.
Transformation ↔ matrix·/linear-algebra/transformations/matrix-representationLearn Math Class
The composition row is where the dictionary explains something rather than merely recording it. Applying TT and then SS corresponds to the product BABA — the matrix acting first written on the right, because it is the one the vector meets first. Matrix multiplication is defined as it is precisely so that this correspondence holds; the row-by-column rule is a consequence of wanting composition to translate, not an arbitrary convention.
The dictionary is exact, and it is also basis-dependent. Fix a basis and the correspondence is one-to-one; change the basis and the same transformation acquires a different matrix. That is the whole reason similarity exists as a notion — two matrices related by P1APP^{-1}AP are the same map seen from two places, which is why the properties worth naming are the ones that survive the change.

Matrix Representation FAQ

Is [T]CB[T]_{\mathcal{C} \leftarrow \mathcal{B}} the same thing as TT?

+
No. The map TT is basis-free, while the bracketed object is one of infinitely many arrays that represent it, each attached to a particular choice of basis at both ends. Texts that write TT for both are leaning on a fixed basis the reader is expected to remember, and the gap reappears the moment the basis changes.Read more →

Why do the images of the basis vectors go in columns rather than rows?

+
Because the matrix multiplies a column vector sitting on its right, so the arithmetic only works out if the images are stacked down columns. Reading them across rows instead produces the transpose and breaks T(x)=AxT(\mathbf{x}) = A\mathbf{x} entirely. The convention is fixed by the multiplication rule, not by preference.Read more →

When can you drop the basis subscripts and just write [T][T]?

+
Only when both spaces carry the standard basis, which makes it the standard matrix, the one case where a map has a single uncontested array. An operator mapping a space to itself uses one basis twice and is written [T]B[T]_{\mathcal{B}} rather than repeating the label on both sides of the arrow.Read more →