Skip to content
The book

Linear transformations, matrix representation, change of basis

Why this is asked: Similar matrices are the same operator in different bases: they share rank, trace, determinant, characteristic and minimal polynomials — but sharing those is not enough to be similar.

In one sentence

A matrix is a linear map plus a choice of basis, similarity is what changing that choice does, and the invariants of similarity are exactly the things a question can legitimately ask about a map.

Why the exam asks it

Because "same characteristic polynomial" feels like it ought to mean "same matrix up to basis", and it does not — not even with the minimal polynomial added, once the size reaches 44. The gap between the invariants you can compute and the invariants that actually classify is where this topic lives, and it is the doorway to canonical forms.

The idea

Given bases BB of VV and CC of WW, a linear T:V→WT : V \to W becomes a matrix [T]BC[T]_{B}^{C}: its jj-th column is the coordinate vector of T(bj)T(b_j) in the basis CC. Composition becomes matrix multiplication, which is the reason matrix multiplication is defined the way it is.

Change of basis

For T:V→VT : V \to V with two bases BB and B′B', and PP the change-of-basis matrix whose columns are the new basis vectors written in the old basis,

[T]B′=P−1 [T]B P.[T]_{B'} = P^{-1}\,[T]_{B}\,P .

Two matrices related this way are similar. Getting PP and P−1P^{-1} the right way round is a standing source of lost marks; the reliable check is that PP takes new coordinates to old, so it must be undone on the far side.

Similar against equivalent

similar: B = P⁻¹AP one map, two bases preserves rank, trace, det, char poly, min poly, eigenvalues, Jordan form but these do NOT determine it: char + min poly agree and the matrices still differ, from 4×4 up equivalent: B = PAQ two maps, unrelated bases preserves rank and nothing else — not trace, not determinant, not eigenvalues any two matrices of the same size and rank are equivalent Similar ⇒ equivalent. The converse fails badly: rank alone is a very coarse invariant.
Similarity is one map seen in two bases and preserves almost everything; equivalence allows unrelated bases at each end and preserves only rank.

Similar (B=P−1APB = P^{-1}AP) is one map in two bases. It preserves rank, trace, determinant, characteristic polynomial, minimal polynomial, eigenvalues with multiplicities, and Jordan form.

Equivalent (B=PAQB = PAQ, with P,QP, Q invertible and unrelated) allows a different basis at each end. It preserves rank and nothing else. Any two matrices of the same size and rank are equivalent — which makes equivalence far too coarse to be interesting, and is exactly why the canonical form under equivalence is the trivial one with an identity block and zeros.

Similar implies equivalent. The converse is wildly false.

What the invariants fail to determine

A=(1101),I=(1001).A = \begin{pmatrix}1 & 1\\ 0 & 1\end{pmatrix}, \qquad I = \begin{pmatrix}1 & 0\\ 0 & 1\end{pmatrix}.

Both have characteristic polynomial (x−1)2(x-1)^2. They are not similar: P−1IP=IP^{-1}IP = I for every PP, so the identity is similar only to itself, and A≠IA \ne I. Concretely A−IA - I has rank 11, so AA has a one-dimensional eigenspace where II has a two-dimensional one.

Adding the minimal polynomial helps but does not finish the job. Here it does distinguish them — AA has minimal polynomial (x−1)2(x-1)^2 and II has (x−1)(x-1) — but from size 44 upwards it stops being enough:

J2⊕J2andJ2⊕J1⊕J1J_2 \oplus J_2 \quad\text{and}\quad J_2 \oplus J_1 \oplus J_1

both have characteristic polynomial (x−1)4(x-1)^4 and minimal polynomial (x−1)2(x-1)^2, and they are not similar, having different numbers of Jordan blocks. What does classify is the full Jordan structure, which is the next chapter's business.

Trace and determinant

tr⁡(AB)=tr⁡(BA)\operatorname{tr}(AB) = \operatorname{tr}(BA) always, even when AB≠BAAB \ne BA. This is the reason trace is a similarity invariant: tr⁡(P−1AP)=tr⁡(APP−1)=tr⁡(A)\operatorname{tr}(P^{-1}AP) = \operatorname{tr}(APP^{-1}) = \operatorname{tr}(A).

Two warnings. tr⁡(AB)≠tr⁡(A)tr⁡(B)\operatorname{tr}(AB) \ne \operatorname{tr}(A)\operatorname{tr}(B) — trace is linear, not multiplicative. And the cyclic property is genuinely cyclic: tr⁡(ABC)=tr⁡(BCA)\operatorname{tr}(ABC) = \operatorname{tr}(BCA), but not tr⁡(ACB)\operatorname{tr}(ACB).

det⁡(AB)=det⁡(A)det⁡(B)\det(AB) = \det(A)\det(B), which gives det⁡(P−1AP)=det⁡A\det(P^{-1}AP) = \det A the same way. Note the contrast: determinant is multiplicative and trace is additive, and options swap them.

AB and BA

For square A,BA, B of the same size, ABAB and BABA have the same characteristic polynomial, hence the same eigenvalues with multiplicities, the same trace and the same determinant. They need not be similar — the standard pair above has AB≠0AB \ne 0 and BA=0BA = 0, and a nonzero matrix is never similar to the zero matrix.

For non-square AA (m×nm\times n) and BB (n×mn \times m), the nonzero eigenvalues of ABAB and BABA still agree, with multiplicities; only the count of zero eigenvalues differs, because the sizes do.

Where intuition breaks

"Same characteristic polynomial, so similar." (1101)\begin{pmatrix}1&1\\0&1\end{pmatrix} and II. The most frequently set false option in this topic.

"Same characteristic and minimal polynomial, so similar." True for n≤3n \le 3, false from 44 up: J2⊕J2J_2\oplus J_2 against J2⊕J1⊕J1J_2\oplus J_1\oplus J_1. The size restriction is what makes this a good question — the small cases encourage the wrong general belief.

"tr⁡(AB)=tr⁡(A)tr⁡(B)\operatorname{tr}(AB) = \operatorname{tr}(A)\operatorname{tr}(B)." Take A=B=I2A = B = I_2: the left side is 22, the right is 44. Determinant is the multiplicative one.

"tr⁡(ABC)=tr⁡(ACB)\operatorname{tr}(ABC) = \operatorname{tr}(ACB)." Cyclic permutations only. Swapping two of three is not a cyclic permutation.

"ABAB and BABA are similar." Same characteristic polynomial, not similar in general. AB≠0=BAAB \ne 0 = BA for the standard pair, and nothing nonzero is similar to zero.

"Equivalent matrices have the same eigenvalues." Equivalence preserves only rank. Every rank-11 matrix of a given size is equivalent to every other, and their eigenvalues are all over the place.

"AA and ATA^T have different eigenvalues." They have the same characteristic polynomial, since det⁡(AT−xI)=det⁡((A−xI)T)\det(A^T - xI) = \det((A - xI)^T). In fact AA and ATA^T are always similar, though the similarity is not obvious.

"A change of basis is PAP−1PAP^{-1}, not P−1APP^{-1}AP." Both forms appear, and which is correct depends on how PP is defined. Fix the convention — PP's columns are the new basis in old coordinates — and derive the rest rather than memorising.

The exam's angle

  1. Decide which relation the question is about. Similar, equivalent, or congruent — they have different invariants, and options mix them deliberately.
  2. To disprove similarity, find an invariant that differs. Rank, trace, determinant, eigenvalues, rank of A−λIA - \lambda I, minimal polynomial. Rank of A−λIA - \lambda I is the most under-used and often the quickest.
  3. To prove similarity, invariants are not enough beyond small sizes. Compare Jordan structures.
  4. Use tr⁡(AB)=tr⁡(BA)\operatorname{tr}(AB) = \operatorname{tr}(BA) freely — it needs no commutativity and it settles a surprising number of options in one line.
  5. Compute A−IA - I or A−λIA - \lambda I early. Its rank gives the geometric multiplicity, which is what separates the diagonalisable case from everything else.

The night before

  • [T]B′=P−1[T]BP[T]_{B'} = P^{-1}[T]_B P, with PP's columns the new basis in old coordinates.
  • Similar preserves rank, trace, det, char poly, min poly, eigenvalues, Jordan form.
  • Equivalent (PAQPAQ) preserves rank and nothing else. Same size and rank ⇒\Rightarrow equivalent.
  • (1101)\begin{pmatrix}1&1\\0&1\end{pmatrix} and II: same char poly, not similar. The identity is similar only to itself.
  • Char poly and min poly still fail to classify from 4×44\times4 upwards: J2⊕J2J_2\oplus J_2 against J2⊕J1⊕J1J_2 \oplus J_1 \oplus J_1.
  • tr⁡(AB)=tr⁡(BA)\operatorname{tr}(AB) = \operatorname{tr}(BA) always; tr⁡\operatorname{tr} is not multiplicative; only cyclic permutations are free.
  • det⁡(AB)=det⁡Adet⁡B\det(AB) = \det A \det B.
  • ABAB and BABA: same char poly, not necessarily similar. Non-square: same nonzero eigenvalues.
  • AA and ATA^T are similar.

See it move

Change of basis without sign errorsinteractive

This visual is part of Trap Analysis

Which direction the change-of-basis matrix goes, and the similarity relation that follows.

Unlock interactive visuals

The trap here

“Equivalent matrices are similar” — false

A=I2A = I_{2} and B=2I2B = 2I_{2}

Both are invertible, so each is P·(the other)·Q for suitable invertible P, Q — every invertible n×n matrix is equivalent to every other, because equivalence sees nothing finer than rank. But A has eigenvalue 1 and B has eigenvalue 2, and similarity preserves eigenvalues. Equivalence allows an independent change of basis in the domain and the codomain; similarity forces the same basis on both sides.

More on this →

Check yourself

Let A be an n × n matrix with complex entries. If n ≥ 4, which one of the following statements is true?

More in Vector Spaces and Linear Maps

Take it further

Last revised . Found a mistake? Tell us — corrections are the fastest thing we act on.

Next: Eigenvalues, characteristic & minimal polynomials, Cayley–Hamilton

Create a free account to keep your place and have this feed your study plan.

ShareWhatsAppTelegram

Open this in the full syllabus view · Unit 1