Euler Hall — free maths guides

Show that similar matrices have the same characteristic polynomial, trace and determinant

Prove that similar matrices share their characteristic polynomial. The idea in plain words, a worked example, and a check with the answers shown — part of the free Linear Algebra guides.

Invariants of similarity

IfB=P−1APB = P^{-1}AP then

  • -det(B−λI)=det(A−λI)det(B - \lambda I) = det(A - \lambda I), so the characteristic polynomials are identical;
  • -tr⁡⁡B=tr⁡⁡A\operatorname{\operatorname{tr}} B = \operatorname{\operatorname{tr}} A;
  • -det⁡B=det⁡A\det B = \det A;
  • - the eigenvalues, with their algebraic multiplicities, are the same.

What is not preserved: individual entries, the entry sum, the rank of a power of the matrix, or the eigenvectors themselves.

Everything cancels

Write the characteristic polynomial ofBB:

det(B−λI)=det(P−1AP−λI)det(B - \lambda I) = det(P^{-1}AP - \lambda I).

The key observation is thatλI=P−1(λI)P\lambda I = P^{-1}(\lambda I)P, so

P−1AP−λI=P−1AP−P−1(λI)P=P−1(A−λI)PP^{-1}AP - \lambda I = P^{-1}AP - P^{-1}(\lambda I)P = P^{-1}(A - \lambda I)P.

Now use thatdet(XY)=det⁡X⋅det⁡Ydet(XY) = \det X \cdot \det Y:

det(P−1(A−λI)P)=det(P−1)⋅det(A−λI)⋅det(P)=det(A−λI)det(P^{-1}(A - \lambda I)P) = det(P^{-1})\cdot det(A - \lambda I)\cdot det(P) = det(A - \lambda I),

becausedet(P−1)=1/det(P)det(P^{-1}) = 1/det(P) and the two factors cancel. The polynomials are identical, coefficient by coefficient.

Matching coefficients gives the trace (theλ\lambda coefficient) and the determinant (the constant term) at once. And identical polynomials have identical roots, so the eigenvalues agree.

Nothing about the entries was used, which is why the result is so much stronger than it looks.

Worked example: read the invariants off the easier matrix

A=[2103]A = \begin{bmatrix}2&1\\0&3\end{bmatrix} andP=[1401]P = \begin{bmatrix}1&4\\0&1\end{bmatrix}, withB=P−1APB = P^{-1}AP.

ComputeBB:P−1=[1−401]P^{-1} = \begin{bmatrix}1&-4\\0&1\end{bmatrix}, so

P−1A=[1−401]⋅[2103]=[2−1103]P^{-1}A = \begin{bmatrix}1&-4\\0&1\end{bmatrix}\cdot \begin{bmatrix}2&1\\0&3\end{bmatrix} = \begin{bmatrix}2&-11\\0&3\end{bmatrix}

and

B=[2−1103]⋅[1401]=[2−303]=[28−1103]B = \begin{bmatrix}2&-11\\0&3\end{bmatrix}\cdot \begin{bmatrix}1&4\\0&1\end{bmatrix} = \begin{bmatrix}2&-3\\0&3\end{bmatrix} = \begin{bmatrix}2&8-11\\0&3\end{bmatrix}.

Now compare.

| quantity |AA |BB | |---|---|---| | trace |55 |55 | | determinant |66 |66 | | char. poly |λ2−5λ+6\lambda^2 - 5\lambda + 6 |λ2−5λ+6\lambda^2 - 5\lambda + 6 | | top-right entry |11 |−3-3 | | entry sum |66 |22 |

The first three columns agree, the last two do not. The invariants are the ones computed from the characteristic polynomial.

Note the practical lesson: to finddet⁡B\det B you never need to formBB. Compute it fromAA.

By the end you can
  • Prove that similar matrices share their characteristic polynomial
  • Compute an invariant of B from A without inverting anything
  • Explain why an individual entry is not an invariant
  • Use the trace and determinant to rule similarity out
Check yourself

1.A=[0300]A = \begin{bmatrix}0&3\\0&0\end{bmatrix}. What are the trace and determinant ofP−1APP^{-1}AP? 2. Is[1234]\begin{bmatrix}1&2\\3&4\end{bmatrix} similar to[2003]\begin{bmatrix}2&0\\0&3\end{bmatrix}? 3. Two2×22\times 2 matrices both have trace55 and determinant66. Must they be similar? 4.AA has rank22. What is the rank ofP−1APP^{-1}AP?

Check yourself

1.tr⁡⁡=5\operatorname{\operatorname{tr}} = 5,det⁡=4−6=−2\det = 4 - 6 = -2. Both are invariants, so they are the same forP−1APP^{-1}AP. 2. Yes. Both are diagonal with the same two eigenvalues, so both are similar todiag(3,2)diag(3,2) and hence to each other. 3. No, not necessarily. The characteristic polynomials match, which is necessary. But if the eigenvalues are repeated, or if one matrix is2I2I-like and the other is a Jordan block, they are not similar. With two distinct eigenvalues22 and33, both are diagonalisable and both are similar todiag(2,3)diag(2,3), so in that case yes. 4. *22.** Multiplying by invertible matrices does not change the rank.

Work out where to start — free, no accountAnswer six real questions — free, no account