Separate a linear map from the matrices representing it.
§1.2Estimated reading time: 22 min
Before you start
Prerequisites: spaces, maps and dimension; basis extension and change of basis. You should be able to express a vector uniquely in a basis and multiply compatible matrices. Keep the vector distinct from its coordinate column; that distinction determines the direction of every change-of-basis matrix below.
Unless otherwise stated, F is a field and every space in a dimension formula is finite-dimensional.
Coordinates describe a vector relative to an ordered basis. They change when the basis changes, while the vector and the linear map do not.
Definition 1.2.1
(Matrix of a map)
For ordered bases B=(v1,…,vn) of V and C=(w1,…,wm) of W, the matrix [T]C←B has column j equal to [T(vj)]C. Thus [T(v)]C=[T]C←B[v]B. For S:W→X and an ordered basis D of X, [ST]D←B=[S]D←C[T]C←B.
A basis B=(b1,…,bn) identifies V with Fn through its coordinate isomorphism. For bases B,C, the matrix [T]C←B has columns [Tbj]C. For an endomorphism, changing basis by [v]B=P[v]B′ gives
[T]B′=P−1[T]BP.
This is similarity, with the same basis change in domain and codomain. Independent changes of domain and codomain for a general map produce Q−1AP, a different equivalence problem.
Proof
(Follow the coordinates)
Let T:V→W, write A=[T]C←B, and let P,Q be the change matrices defined by [v]B=P[v]B′ and [w]C=Q[w]C′. For every v, the old output coordinates are AP[v]B′. They also equal Q[T(v)]C′. Since the basis-change matrices are invertible, solving for the new output coordinates gives Q−1AP. In the endomorphism case Q=P.
Worked example 1.2.2
(A nonstandard polynomial basis)
On the real polynomials P1 of degree at most one, let T(p)=p′ and B′=(1+x,1). The derivative of 1+x is 1=0(1+x)+1(1), and the derivative of 1 is zero. Therefore [T]B′←B′=(0100). Relative to B=(1,x) the matrix is A=(0010); P=(1110) and indeed P−1AP is the stated matrix.
Worked example 1.2.3
(Coordinates in a triangular polynomial basis)
In P2 over R take B=(1,1+x,1+x+x2) and p=3−2x+5x2. To find [p]B=(a,b,c)T, write
p=a⋅1+b(1+x)+c(1+x+x2)=(a+b+c)+(b+c)x+cx2
and compare coefficients from the top degree down: c=5, then b+c=−2 gives b=−7, and a+b+c=3 gives a=5. Hence [p]B=(5,−7,5)T. Check: 5−7(1+x)+5(1+x+x2)=(5−7+5)+(−7+5)x+5x2=3−2x+5x2.
The same calculation in matrix form uses the change matrix P whose columns are the monomial coordinates of the vectors of B:
The direction is fixed by the coordinate equation [p]mon=P[p]B: P converts B-coordinates into monomial coordinates, so finding B-coordinates requires P−1. Back-substitution and multiplication by P−1 are the same computation, because P is upper triangular.
Similarity preserves characteristic polynomial, determinant, trace, rank and eigenvalues, since it represents the same endomorphism in another basis. Equal determinant and trace alone do not imply similarity. Row operations need not be similarity transformations; they generally change the represented endomorphism. To choose the direction of a change matrix, write the coordinate equation before multiplying.
Counterexample mode
Matching invariants do not make matrices similar
One might hope that matrices with the same characteristic polynomial are similar. Take I2 and J=(1011): both have characteristic polynomial (t−1)2, so their determinants and traces agree. Yet P−1I2P=I2 for every invertible P, so the only matrix similar to I2 is I2 itself. A finer invariant separates them: I2−I2 has rank 0, while J−I2 has rank 1. Shared invariants are necessary for similarity, not sufficient.
Three stages of a change-of-basis calculation
For the polynomial example, start with arbitrary new coordinates (a,b)T, rather than only basis vectors. They describe p=a(1+x)+b. The old coordinates, the action of differentiation and the new output coordinates are respectively
The product on the right acts first: P translates the input into the old basis; A differentiates; P−1 translates the output back. It is incorrect to reverse those jobs. The basis-change matrix contains coordinates of new basis vectors in the old basis, so it is invertible because those columns form a basis, not because every matrix of a linear map is invertible.
Now keep B′=(1+x,1) in the domain but choose C′=(2,1+x) in the codomain. Relative to the old basis (1,x), Q=(2011). The derivative output a has C′-coordinates (a/2,0), so
Q−1=(1/20−1/21),[T]C′←B′=Q−1AP=(1/2000).
The same map has acquired a matrix with trace 1/2, although its old endomorphism matrix had trace zero. There is no contradiction: input and output now use different bases, so this is equivalence of a map matrix, not similarity of an endomorphism matrix. Rank is preserved by independent invertible left and right factors; eigenvalues and trace need not be. Use the same basis in domain and codomain before discussing the spectrum of an operator.
Composition and invariants: proof bridges
The matrix composition rule is valid even when the three spaces have different dimensions. If A=[T]C←B is m×n and H=[S]D←C is r×m, then every input coordinate column z gives output coordinates H(Az)=(HA)z. Taking the standard coordinate columns shows that [ST]D←B=HA; the shared middle basis C is essential.
Worked example 1.2.4
(The matrix of a composite is a product)
On R2 with the standard basis, let T(x,y)=(2x+y,3x+4y) and S(x,y)=(x+2y,y). Their matrices are
[T]=(2314),[S]=(1021).
Composing the formulas, ST(x,y)=S(2x+y,3x+4y)=((2x+y)+2(3x+4y),3x+4y)=(8x+9y,3x+4y). The composition rule predicts the same matrix as a product, with the factor of the map applied first on the right:
Each entry of the product is one row of [S] paired with one column of [T]. The column j of [T] is the coordinate column of T(ej), and the row i of [S] reads off the i-th output coordinate of S; their pairing is the i-th coordinate of S(T(ej)). In the widget below, A=[S] and B=[T], so the product it displays is [ST].
Interactive · Explore
Read one entry of AB
Select an output cell. Its row in A has a solid outline; its column in B has a dashed outline. Edit either input matrix to recompute the same inner product.
Inspect output cell
A: row 1 — solid
1
2
0
1
B: column 1 — dashed
2
1
3
4
AB
8
9
3
4
Selected row
(1, 2)
Selected column
(2, 3)
c11
8 = 1×2 + 2×3
Holds: The selected entry equals its row–column inner product
8 = 1×2 + 2×3
NoticeMultiply matching positions, then add. Matrix multiplication is not entrywise multiplication. The outlines and row/column labels have the same meaning in every theme.
For independent basis changes, P is n×n and Q is m×m. Since P maps Fn onto itself,
im(Q−1AP)=Q−1(imA).
An invertible linear map sends a basis of a subspace to a basis of its image: applying its inverse proves independence, and applying the map to a spanning expansion proves spanning. Hence the displayed images have the same dimension, proving rank invariance over the stated field F, without assuming that A is square.
For square matrices over a field, finite sums give tr(XY)=i,j∑xijyji=tr(YX). Thus similarity gives tr(P−1AP)=tr(PP−1A)=trA. The characteristic-polynomial argument in solution 2 uses determinant multiplicativity over the commutative polynomial ring F[t]; its complete ring proof supplies that hypothesis. This does not extend trace or eigenvalues to a rectangular matrix.
A rectangular map with independent input and output bases
For this example take F=R and T:R2→R3, T(x,y)=(x+y,x−y,2y)T. In standard bases,
A=1101−12.
Choose B′=((1,1)T,(1,−1)T) in the domain and C′=((1,0,0)T,(1,1,0)T,(0,0,2)T) in the codomain. Their matrices and the inverse output change are
Both lists are bases: the determinants are −2 and 2, respectively. First multiply on the right to change input coordinates, then on the left to change output coordinates:
AP=20202−2,M=Q−1AP=201−22−1.
The direct basis-image check gives T(1,1)=(2,0,2)T=2c1+0c2+c3 and T(1,−1)=(0,2,−2)T=−2c1+2c2−c3. These are exactly the two columns of M.
For every (a,b)T of new input coordinates, the actual input is P(a,b)T=(a+b,a−b)T. Applying T gives (2a,2b,2a−2b)T. The coordinate route gives M(a,b)T=(2a−2b,2b,a−b)T, and multiplying by Q recovers the same actual output. This proves agreement for every input, including zero, rather than checking only one numerical vector.
The product sizes are (3×3)(3×2)(2×2), so the result is 3×2. The first two rows of M have determinant 4, proving rank two, in agreement with A. The expression P−1AP is undefined here because the left factors have incompatible sizes. There is no eigenvalue problem Mv=λv: its two sides would have three and two coordinates. Independent changes of input/output coordinates preserve this map and its rank; they do not turn it into an endomorphism.
Polynomial coordinates and the role of the field
This worked example extends the rectangular-coordinate calculation; the characteristic-three comparison illustrates the role of the field. Its current examination scope is unverified.
C2040-1 — A rectangular polynomial map with two nonstandard bases
Over R let
T:P3→P2,T(p)=p′−p(0).
Use domain basis
B′=(1+x,1,x+x2,x2+x3)
and output basis
C′=(1+x,x+x2,1).
Find the matrix, rank, kernel and all preimages of 2−x+3x2.
In monomial coordinates, p=a+bx+cx2+dx3 gives
T(p)=(b−a)+2cx+3dx2.
Thus the kernel is span(1+x), and every quadratic is reached by choosing b−a, c and d independently. Rank is three and nullity one.
The change matrices to monomial coordinates are
P=1100100001100011,Q=110011100.
Their determinants are −1 and 1, proving both lists are bases. If the actual output is r+sx+tx2, its C′-coordinates are
(s−t,t,r−s+t)T.
Apply this to the four basis images to obtain
M=[T]C′←B′=00000−120−1−131.
An arbitrary-input check is instructive. New coordinates (α,β,γ,δ)T describe coefficients a=α+β, b=α+γ, c=γ+δ, d=δ. The output in new coordinates is
(2γ−δ,3δ,−β−γ+δ)T,
exactly M times the input column. This verifies the formula for every polynomial.
For the specified target, the monomial equations give
p=a+(a+2)x−21x2+x3,a∈R.
Conversely substituting every such polynomial produces that target. The fibre is
(2x−21x2+x3)+span(1+x).
There is no eigenvalue problem for this 3 by 4 matrix: input and output coordinate spaces have different dimensions.
The field is part of the map calculation
The rank–nullity proof works over any field, but a derivative operator can change rank with characteristic. Formal differentiation multiplies a coefficient by its degree; those scalars may vanish.
C2040-2 — Revisit the first map in characteristic three
Take the same formula T(p)=p′−p(0) over a field of characteristic three. Then
T(a+bx+cx2+dx3)=(b−a)+2cx.
The cubic coefficient disappears. Hence
kerT=span(1+x,x3),imT=P1.
Rank is two and nullity two, again summing to four. No polynomial maps to x2, so surjectivity onto P2 fails.
The two nonstandard lists remain bases because their determinants are still nonzero. Reducing the earlier matrix entries in the field gives a zero second row and rank two, agreeing with the abstract calculation. What changed was the map's arithmetic, not the validity of coordinate change or rank–nullity.
Quick checks
Quick check
(For the maps S,T in the composite example, compute the standard matrix of TS and compare it with [ST].)
Solution · Answer
TS(x,y)=T(x+2y,y)=(2(x+2y)+y,3(x+2y)+4y)=(2x+5y,3x+10y), and correspondingly [T][S]=(2314)(1021)=(23510). This differs from [ST]=(8394), so ST=TS: the order of composition is recorded by the order of the factors.
Quick check
(In the basis B=(1,1+x,1+x+x2) of P2, find [x2]B and check it by multiplying by P.)
Solution · Answer
Write x2=a+b(1+x)+c(1+x+x2). The x2-coefficient gives c=1, the x-coefficient gives b+c=0, so b=−1, and the constant term gives a+b+c=0, so a=0. Thus [x2]B=(0,−1,1)T, which is the third column of P−1. Check: P(0,−1,1)T=(0−1+1,−1+1,1)T=(0,0,1)T, the monomial coordinates of x2; equivalently −(1+x)+(1+x+x2)=x2.
Quick check
(Are D1=(1002) and D2=(2001) similar? If so, give an invertible P with P−1D1P=D2 and say which change of basis it records.)
Solution · Answer
Yes. Take P=(0110), so P−1=P. Then D1P=(0210) and P−1D1P=(2001)=D2. The columns of P are e2,e1: the operator with matrix D1 in the basis (e1,e2) has matrix D2 in the reordered basis (e2,e1). Reordering a basis permutes the diagonal entries; it does not change the operator.
Exercises
Let T(x,y)=(x+2y,y) on R2 and B′=((1,0),(1,1)). Find [T]B′←B′.
Show similar matrices have the same characteristic polynomial, using χA(t)=det(tI−A).
Are I2 and (1011) similar? Justify.
Independent basis changes. For T(x,y)=(x+2y,3y) use domain basis B′=((1,1),(1,−1)) and codomain basis C′=((1,0),(1,1)). Compute the new matrix by both Q−1AP and the images of the domain basis vectors.
Rectangular coordinates. For T(x,y)=(x+y,x−y,2y)T and the bases B′,C′ in the rectangular example, explain why P−1AP is undefined. Find the input with output coordinates (0,2,0)T, giving both its B′-coordinates and its actual standard coordinates. Can output coordinates (0,2,−1)T occur?
Full solutions
T(1,0)=(1,0) has coordinates (1,0) in B′. T(1,1)=(3,1)=2(1,0)+(1,1) has coordinates (2,1). The matrix is (1021).
If B=P−1AP, then tI−B=P−1(tI−A)P. Multiplicativity of determinant gives det(tI−B)=det(P−1)det(tI−A)det(P)=det(tI−A).
No. For every invertible P, P−1I2P=I2, which is not the second matrix. Their equal characteristic polynomials do not suffice.
In standard coordinates A=(1023), P=(111−1), Q=(1011). Thus AP=(33−1−3) and Q−1AP=(032−3). Directly, T(1,1)=(3,3)=0(1,0)+3(1,1) and T(1,−1)=(−1,−3)=2(1,0)−3(1,1). These coordinate columns verify the product and its direction.
P−1 is 2×2, whereas A is 3×2, so their product is undefined. Solve M(a,b)T=(0,2,0)T: the second row gives b=1, the first gives a=b=1, and the third is then zero as required. Thus [v]B′=(1,1)T and v=P(1,1)T=(2,0)T. Directly T(2,0)=(2,2,0)T=Q(0,2,0)T. Every output coordinate column z satisfies z1=2z3, by the first and third rows of M. The column (0,2,−1)T violates this condition, so it has no preimage; the issue is image membership, not a failure of the chosen bases.
Connection
An eigenbasis is a basis in which an endomorphism has diagonal matrix. The next unit asks when such a basis exists.