How to find the matrix of a linear map in chosen input and output bases, why one linear operator in two bases gives similar matrices, and how a commutative diagram keeps the map separate from its matrix.
The map that doubles the first coordinate of every vector in the plane has the diagonal matrix with entries 2 and 1 in standard coordinates. Described in the basis (1,0), (1,1), where each tuple stands for a column vector, the same map has a matrix with a 1 above the diagonal, which looks like a shear. Nothing about the map has changed, only the coordinates used to write its inputs and outputs. This lesson shows how to compute the matrix of a linear map in any chosen input and output bases, why one operator described in two bases gives similar matrices, and how to tell which features belong to the map and which belong to its description.
Key terms
Matrix of a linear map in chosen bases
Definition Let T:Rn→Rm be linear, let B=(b1,…,bn) be an ordered basis of Rn, and let C be an ordered basis of Rm. The matrix of T relative to B and C is the m×n matrix
[T]C←B=[[T(b1)]C⋯[T(bn)]C],
whose jth column describes the image of the jth input basis vector in the output basis. It is the only matrix with
[T(x)]C=[T]C←B[x]B
for every x in Rn. This works because T sends c1b1+⋯+cnbn to c1T(b1)+⋯+cnT(bn), and taking C-coordinates respects sums and scalar multiples. When both bases are the standard ones, it is the standard matrix of T.
In plain words Map each input basis vector, then measure the result with the output basis. Those measurements, written as columns, make up the matrix.
Example Let T(x,y,z)=(x+z,y+z), with input basis B=((1,0,0),(0,1,0),(1,0,1)) and output basis C=(c1,c2), where c1=(1,0) and c2=(1,1). The input basis vectors map to (1,0), (0,1) and (2,1). In the output basis these are c1, then −c1+c2, then c1+c2, so
[T]C←B=[10−1111].
It is still a 2×3 matrix, with three input slots and two output slots.
Input and output bases
Definition For a linear map T:Rn→Rm with standard matrix A, the input basis B is an ordered basis of the domain Rn, with an invertible n×n basis matrix B, and the output basis C is an ordered basis of the codomain Rm, with an invertible m×m basis matrix C. The two choices are independent of each other. For an input with B-coordinates c, the vector itself is Bc, its image is ABc, and the C-coordinates of that image are C−1ABc. Hence
[T]C←B=C−1AB.
The sizes match, since C−1 is m×m, A is m×n and B is n×n, so the product is m×n like A. For the identity map of Rn the formula gives C−1B=PC←B, the change-of-basis matrix.
In plain words The input basis decides how inputs are written, and the output basis decides how outputs are measured. Read C−1AB from right to left as build, apply, describe.
Example For the map and bases of the previous card,
AB=[100111]100010101=[100121],
whose columns are the images of the input basis vectors. Then
C−1AB=[10−11][100121]=[10−1111],
the same matrix as before. As a test, the input with B-coordinates (1,2,1) is the vector (2,2,1), its image is (3,3), and (3,3)=0c1+3c2. The matrix gives the same list directly, (1−2+1,2+1)=(0,3).
Linear operator
Definition A linear operator is a linear map from a vector space to itself, such as T:Rn→Rn. For an operator one normally uses the same ordered basis B for inputs and outputs and writes [T]B for [T]B←B. With C=B the formula becomes
[T]B=B−1AB,
an n×n matrix whose jth column is [T(bj)]B.
In plain words An operator moves vectors around inside one space, so one grid describes both where a vector starts and where it lands.
Example Let T(x,y)=(2x,y) and B=((1,0),(1,1)), so
A=[2001],B=[1011].
Then
[T]B=B−1AB=[10−11][2021]=[2011].
The columns can be read off directly. The vector T(b1)=(2,0)=2b1 gives the first column (2,0), and T(b2)=(2,1)=b1+b2 gives the second column (1,1).
Similar matrices
Definition Two n×n matrices A and A′ are similar if there is an invertible n×n matrix P with
A′=P−1AP.
The matrices of one linear operator in two ordered bases are always similar. If [T]B=B−1AB and [T]D=D−1AD, then [T]D=P−1[T]BP with P=B−1D=PB←D. Conversely, if A is the standard matrix of T and P is any invertible n×n matrix, then P−1AP is the matrix of T in the ordered basis formed by the columns of P. Similarity uses the same change of basis on the input side and the output side, so it is a relation for operators. Passing from A to C−1AB, with two unrelated bases for input and output, is more general and should not be called similarity. Similar matrices have the same rank and nullity, and later they turn out to share the determinant and the eigenvalues as well.
In plain words Similar matrices are two descriptions of one operator, written in two different grids.
Example The matrices
[2001]and[2011]
are similar, with P=B from the previous card, since both describe the doubling map. On the other hand, the identity matrix is similar only to itself, because P−1IP=I for every invertible P. So the matrix
[1011]
has the same rank as I, but it is not similar to I.
Commutative diagram
Definition For an operator T on Rn with standard matrix A and an ordered basis B with basis matrix B, the four descriptions of an input and its output fit in a square,
[x]BB↓⏐x[T]BA[T(x)]B⏐↑B−1T(x)
The diagram commutes when the top route and the route down, across and up give the same result for every starting column. A matrix M on the top edge makes it commute exactly when M=B−1AB, or equivalently BM=AB, so the matrix [T]B is the one matrix that fits there. For a map between two spaces the same square works with C-coordinates in the top right corner, C−1 on the right edge and [T]C←B=C−1AB on the top edge. Checking one starting column is a useful test, but it proves agreement only for that column and its multiples. The matrix equation covers every input at once.
In plain words There are two ways to get from the coordinates of an input to the coordinates of its output. Use the new matrix directly, or rebuild the vector, apply the map in standard coordinates and translate back. A correct matrix makes both ways agree.
Example For the doubling map, start at [x]B=(1,2). The long route goes from (1,2) to B(1,2)=(3,2), then to A(3,2)=(6,2), then to B−1(6,2)=(4,2). The top route gives directly
[2011][12]=[42].
Both routes end at (4,2), the B-coordinates of (6,2), since 4(1,0)+2(1,1)=(6,2).
Operator versus its matrix
Definition A linear operator T is a rule on vectors and does not depend on any choice of basis. A matrix such as [T]B is one description of T, and it depends on the chosen basis. Changing the basis can change the entries, but it never changes the operator. In particular, the kernel and the image of T are the same sets of vectors in every description, even though the coordinate lists that describe them depend on the basis. For a map between two spaces the same holds for C−1AB. A column c lies in the null space of C−1AB exactly when Bc lies in NullA, and the column space of C−1AB is the set of all C−1y with y in ColA. Invertible matrices preserve dimension, so C−1AB has the same rank and the same nullity as A.
In plain words The operator is the action itself, and a matrix is one way of writing it down. A surprising entry in a matrix is a fact about the chosen grid, not a new action.
Example Let Q(x,y)=(x,0) project the plane onto the x-axis, and keep B=((1,0),(1,1)). Both basis vectors land on (1,0)=b1, so
[1000]becomes[Q]B=[1010].
The null space of [Q]B consists of the columns t(1,−1) with t real, which rebuild to tb1−tb2=(0,−t). That is the y-axis, exactly the kernel of the projection, and both matrices have rank 1. In the same way, the upper right entry 1 in the doubling example does not mean the doubling map shears anything. It only records that T(b2)=b1+b2.
Check yourself
Let T(x,y)=(x+2y,3y) and B=((1,0),(1,1)). Find [T]B.
Show the answer
Map the basis vectors. The first goes to T(1,0)=(1,0)=b1, and the second goes to T(1,1)=(3,3)=3b2. So
[T]B=[1003].
The formula agrees, since
B−1AB=[10−11][1033]=[1003].
In this basis the operator fixes b1 and stretches b2 by 3.
Let S(x,y)=(y,x) swap the coordinates. Find [S]B for the same basis B, and check both routes of the commutative diagram for [x]B=(2,−1).
Show the answer
The first basis vector goes to S(1,0)=(0,1)=−b1+b2, and the second goes to S(1,1)=(1,1)=b2. So
[S]B=[−1101].
The long route rebuilds B(2,−1)=(1,−1), swaps it to (−1,1), and describes the result as B−1(−1,1)=(−1−1,1)=(−2,1). The top route gives (−2,2−1)=(−2,1). The two routes agree.
Use the input basis B=((1,0),(1,1)) and the output basis C=((1,1),(1,−1)) for the identity map of R2. Find its matrix M. Does M=I mean the identity map moves vectors? Is M similar to I?
Show the answer
The matrix is
M=C−1IB=C−1B=[212110],
which is the change-of-basis matrix PC←B. The map moves nothing. For example, M sends [b1]B=(1,0) to (21,21), and 21(1,1)+21(1,−1)=(1,0)=b1, the same vector described in C. The entries differ from I only because inputs and outputs are measured in different bases. The matrix M is not similar to I, because P−1IP=I for every invertible P and M=I. With B used on both sides, the identity map has matrix B−1IB=I, as similarity requires.
May we count page visits to understand which courses and learning features are useful? Cloudflare collects visit and performance statistics, without your account details or answers. Your choice does not affect access. Details