Why similar matrices share their trace, determinant and characteristic polynomial, proved from the cyclic property of the trace and the product rule, and the real volume factor of a complex matrix.
In the basis (1,0), (1,1) the operator on R2 with standard matrix diag(2,3) has the matrix with rows (2,−1) and (0,3). An entry changed, yet the trace is still 5 and the determinant is still 6. Is that a coincidence, and if two matrices share these numbers, must they describe the same operator? This lesson proves that the trace, the determinant and the characteristic polynomial are unchanged by similarity, shows that two matrices can share all three and still not be similar, and finds the factor by which a complex matrix scales real volume. Throughout, F is R or C and a tuple such as (1,2) stands for a column vector.
Key terms
Trace
Definition The trace of a square matrix A=[aij]∈Fn×n is the sum of its diagonal entries,
trA=i=1∑naii.
The trace is linear, with tr(A+B)=trA+trB and tr(cA)=ctrA, and trAT=trA. For columns u,v∈Fn the ith diagonal entry of uvT is uivi, so tr(uvT)=vTu. Over C the matrix uv∗ has trace v∗u, which is a different number in general.
In plain words The trace adds up the diagonal. That recipe plainly depends on the basis, so the fact that the answer does not is something to prove.
Example For u=(2,−1,1) and v=(1,3,4),
uvT=2−116−338−44,
with trace 2−3+4=3, which equals vTu=2−3+4. Over C take u=(1,i) and v=(i,1). Then tr(uvT)=vTu=2i, but tr(uv∗)=v∗u=−i+i=0, so the transpose and the conjugate transpose cannot be swapped.
Cyclic property of the trace
Definition Let A∈Fm×n and B∈Fn×m. Then
tr(AB)=tr(BA),
even though AB is m×m and BA is n×n. The proof is a finite double sum whose order can be reversed, using that scalars commute,
For three factors A∈Fm×n, B∈Fn×p and C∈Fp×m, grouping two of them gives tr(ABC)=tr(BCA)=tr(CAB). Only these cyclic rotations are guaranteed to keep the trace. The identity is about traces and says nothing about AB and BA being equal.
In plain words You may move the last factor to the front, as often as you like, without changing the trace. Any other reordering can change it.
Example For the row A=[123] and the column B=(4,5,6), the product AB is the 1×1 matrix [32], while BA is 3×3 with diagonal entries 4, 10 and 18, whose sum is 32. A reordering that is not cyclic can change the trace. Let E12 have a single 1 in position (1,2), let E21 have a single 1 in position (2,1), and let C=diag(1,2). Then E12E21C=diag(1,0) has trace 1, while E12CE21=diag(2,0) has trace 2.
Similar matrices
Definition Matrices A,B∈Fn×n are similar over F if
B=S−1AS
for some invertible S∈Fn×n. Similarity is an equivalence relation, and similar matrices are exactly the matrices of one operator in two bases. If T:V→V is linear on a finite-dimensional space V with ordered bases B and C, and S=PB←C is the matrix whose columns are the C vectors written in B coordinates, then PC←B=S−1 and
[T]C←C=S−1[T]B←BS.
Conversely, every invertible S arises this way, from the basis whose B coordinate columns are the columns of S.
In plain words Read the formula from right to left. Convert new coordinates to old ones with S, apply the operator in old coordinates, and convert the result back with S−1. The operator stays fixed and only its description changes.
Example Let D=diag(2,3) act on R2 and take the new basis c1=(1,0), c2=(1,1), so that
S=[1011],S−1=[10−11].
Then
S−1DS=[20−13].
The second column can be checked directly. The operator sends c2 to (2,3), and (2,3)=−c1+3c2.
Similarity invariant
Definition A function f on Fn×n is a similarity invariant if f(S−1AS)=f(A) for every A∈Fn×n and every invertible S∈Fn×n. The trace and the determinant are similarity invariants. For the trace, apply the cyclic property to the two factors S−1A and S,
tr((S−1A)S)=tr(S(S−1A))=trA.
For the determinant, the product rule gives det(S−1AS)=detS−1detAdetS=detA, because detS−1detS=detI=1. Neither proof needs S to be orthogonal. The rank and the dimension of each eigenspace are similarity invariants too, since ker(λI−S−1AS)=S−1ker(λI−A). So the trace and the determinant of an operator T on a finite-dimensional space are well defined as those of [T]B←B for any basis B. Equal trace, determinant and characteristic polynomial are necessary for similarity, but for n≥2 they are not sufficient.
In plain words An invariant belongs to the operator rather than to the coordinates. If two matrices differ in one invariant, they are not similar. If they agree in a few invariants such as the trace and the determinant, they still need not be similar. Watch for this. These statements are about matrices of operators. A matrix that records a two-input form follows a different rule, and its determinant can change. Writing x2+4y2 in the coordinates x=2u, y=v gives 4u2+4v2, and the determinant of the diagonal coefficient matrix goes from 4 to 16.
Example The identity I2 and the matrix
J=[1011]
both have trace 2, determinant 1 and characteristic polynomial (t−1)2. They are not similar, because S−1I2S=I2 for every invertible S. The eigenspaces tell them apart as well. For the eigenvalue 1 the identity has the whole plane, while J has only the line spanned by e1.
Characteristic polynomial
Definition The characteristic polynomial of A∈Fn×n is
χA(t)=det(tI−A),
where t is a scalar variable and I is the n×n identity. In the permutation formula only the identity permutation contributes powers of t above tn−2, so χA is monic of degree n, the coefficient of tn−1 is −trA, and the constant term is χA(0)=(−1)ndetA. For n=2 this reads χA(t)=t2−(trA)t+detA. A scalar λ∈F is an eigenvalue of A, meaning Av=λv for some nonzero v∈Fn, exactly when λI−A has a nonzero kernel, that is, exactly when χA(λ)=0. If B=S−1AS, then
tI−B=S−1(tI−A)S
for every scalar t, so χB(t)=χA(t) at every t. Two polynomials over R or C that agree at every scalar are equal, so χB=χA. Evaluating the finished polynomial χA at the matrix A itself is a different question, settled later by the Cayley-Hamilton theorem.
In plain words The characteristic polynomial collects the eigenvalues into one similarity invariant, and up to sign its coefficients include the trace and the determinant.
Example For D=diag(2,3) and its similar matrix B with rows (2,−1) and (0,3), both characteristic polynomials equal (t−2)(t−3)=t2−5t+6. For A=diag(1,4) and S with rows (1,2) and (0,1),
S−1AS=[10−64],
with trace 5, determinant 4 and characteristic polynomial (t−1)(t−4)=t2−5t+4, again matching A. A real matrix need not have real eigenvalues. The quarter turn with rows (0,−1) and (1,0) has χ(t)=t2+1, with roots ±i in C and none in R.
Real volume factor of a complex matrix
Definition Let A∈Cn×n and write A=X+iY with X,Y∈Rn×n. Identify Cn with R2n by sending z=x+iy, with x,y∈Rn, to the real column (x,y). Since Az=(Xx−Yy)+i(Yx+Xy), multiplication by A becomes the real linear map with matrix
R(A)=[XY−YX]∈R2n×2n,
and its determinant is
detR(A)=∣detA∣2.
So multiplication by A scales 2n-dimensional real volume by ∣detA∣2, and when A is invertible it preserves the orientation of R2n. To prove it, work over C with the new variables z=x+iy and w=x−iy. This change of variables is invertible, with x=(z+w)/2 and y=(z−w)/(2i). In the variables (z,w) the map sends z to Az and w to Aw, so R(A) is similar over C to the block diagonal matrix with blocks A and A. A block diagonal determinant is the product of the block determinants, and conjugation passes through the permutation formula, so
detR(A)=detA⋅detA=∣detA∣2.
The permutation formula gives the same value for the real matrix R(A) whether it is read over R or over C, so this is also the real determinant. The case of singular A is included, with factor 0.
In plain words A complex determinant is not a volume. To talk about volume, view Cn as R2n, and then the volume factor is the squared modulus of the complex determinant.
Example For n=1 and A=a+bi the real matrix is
R(A)=[ab−ba],
with determinant a2+b2=∣a+bi∣2. Multiplication by i has complex determinant i, while its real matrix, with rows (0,−1) and (1,0), is a quarter turn with area factor 1=∣i∣2. Multiplication by 2+i scales areas by ∣2+i∣2=5.
Check yourself
Can the matrix with rows (1,2) and (3,4) be similar to the matrix with rows (2,0) and (1,3)?
Show the answer
No. Both have trace 5, but the determinants are 4−6=−2 and 6−0=6. The determinant is a similarity invariant, so the matrices are not similar. Their characteristic polynomials, t2−5t−2 and t2−5t+6, differ for the same reason.
Show that there are no matrices A,B∈Fn×n with n≥1 and AB−BA=I.
Show the answer
Take traces of both sides. By linearity and the cyclic property,
tr(AB−BA)=tr(AB)−tr(BA)=0,
while trI=n. Over R or C the number n≥1 is not 0, so the equation is impossible.
Multiplication by the matrix below is a complex linear map of C2, which can also be viewed as a real linear map of R4. By what factor does it scale 4-dimensional volume, and does it preserve orientation?
A=[21i1+i]Show the answer
The complex determinant is
detA=2(1+i)−i⋅1=2+i.
The real volume factor is ∣2+i∣2=4+1=5. It is positive, so orientation is preserved. Neither ∣detA∣=5 nor the complex number 2+i is the answer. The squared modulus is what the real 4×4 matrix R(A) has as its determinant.
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