5.5E: Similarity and Diagonalization Exercises

Linear Algebra with Applications · LibreTexts

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

    From LibreTexts, under CC BY-NC-SA 4.0, as the source states it; its equations are written in TeX, which the PDF shows typeset. This page at LibreTexts.

    5.5E: Similarity and Diagonalization Exercises
    Exercise \(\PageIndex{1}\)

    By computing the trace, determinant, and rank, show that \(A\) and \(B\) are not similar in each case.

    1. \(A = \left[ \begin{array}{rr} 1 & 2 \\ 2 & 1 \end{array} \right]\), \(B = \left[ \begin{array}{rr} 1 & 1\\ -1 & 1 \end{array} \right]\)
    2. \(A = \left[ \begin{array}{rr} 3 & 1 \\ 2 & -1 \end{array} \right]\), \(B = \left[ \begin{array}{rr} 1 & 1 \\ 2 & 1 \end{array} \right]\)
    3. \(A = \left[ \begin{array}{rr} 2 & 1 \\ 1 & -1 \end{array} \right]\), \(B = \left[ \begin{array}{rr} 3 & 0 \\ 1 & -1 \end{array} \right]\)
    4. \(A = \left[ \begin{array}{rr} 3 & 1 \\ -1 & 2 \end{array} \right]\), \(B = \left[ \begin{array}{rr} 2 & -1 \\ 3 & 2 \end{array} \right]\)
    5. \(A = \left[ \begin{array}{rrr} 2 & 1 & 1 \\ 1 & 0 & 1 \\ 1 & 1 & 0 \end{array} \right]\), \(B = \left[ \begin{array}{rrr} 1 & -2 & 1 \\ -2 & 4 & -2 \\ -3 & 6 & -3 \end{array} \right]\)
    6. \(A = \left[ \begin{array}{rrr} 1 & 2 & -3 \\ 1 & -1 & 2 \\ 0 & 3 & -5 \end{array} \right]\), \(B = \left[ \begin{array}{rrr} -2 & 1 & 3 \\ 6 & -3 & -9 \\ 0 & 0 & 0 \end{array} \right]\)
    Answer
    1. traces \(= 2\), ranks \(= 2\), but \(\det A = -5\), \(\det B = -1\)
    2. ranks \(= 2\), determinants \(= 7\), but \(\text{tr} A = 5\), \(\text{tr} B = 4\)
    3. traces \(= -5\), determinants \(= 0\), but \(rank \; A = 2\), \(rank \; B = 1\)
    Exercise \(\PageIndex{2}\)

    Show that \(\left[ \begin{array}{rrrr} 1 & 2 & -1 & 0 \\ 2 & 0 & 1 & 1 \\ 1 & 1 & 0 & -1 \\ 4 & 3 & 0 & 0 \end{array} \right]\) and \(\left[ \begin{array}{rrrr} 1 & -1 & 3 & 0 \\ -1 & 0 & 1 & 1 \\ 0 & -1 & 4 & 1 \\ 5 & -1 & -1 & -4 \end{array} \right]\) are not similar.

    Exercise \(\PageIndex{3}\)

    If \(A \sim B\), show that:

    1. \(A^{T} \sim B^{T}\)
    2. \(A^{-1} \sim B^{-1}\)
    3. \(rA \sim rB\) for \(r\) in \(\mathbb{R}\)
    4. \(A^{n} \sim B^{n}\) for \(n \geq 1\)
    Answer
    1. If \(B = P^{-1}AP\), then \(B^{-1} = P^{-1}A^{-1}(P^{-1})^{-1} = P^{-1}A^{-1}P\).
    Exercise \(\PageIndex{4}\)

    In each case, decide whether the matrix \(A\) is diagonalizable. If so, find \(P\) such that \(P^{-1}AP\) is diagonal.

    1. \(\left[ \begin{array}{rrr} 1 & 0 & 0 \\ 1 & 2 & 1 \\ 0 & 0 & 1 \end{array} \right]\)
    2. \(\left[ \begin{array}{rrr} 3 & 0 & 6 \\ 0 & -3 & 0 \\ 5 & 0 & 2 \end{array} \right]\)
    3. \(\left[ \begin{array}{rrr} 3 & 1 & 6 \\ 2 & 1 & 0 \\ -1 & 0 & -3 \end{array} \right]\)
    4. \(\left[ \begin{array}{rrr} 4 & 0 & 0 \\ 0 & 2 & 2 \\ 2 & 3 & 1 \end{array} \right]\)
    Answer
    1. Yes, \(P = \left[ \begin{array}{rrr} -1 & 0 & 6 \\ 0 & 1 & 0 \\ 1 & 0 & 5 \end{array} \right]\), \(P^{-1}AP = \left[ \begin{array}{rrr} -3 & 0 & 0 \\ 0 & -3 & 0 \\ 0 & 0 & 8 \end{array} \right]\)
    2. No, \(c_{A}(x) = (x + 1)(x - 4)^{2}\) so \(\lambda = 4\) has multiplicity 2. But \(dim \;(E_{4}) = 1\) so Theorem 5.5.6 applies.
    Exercise \(\PageIndex{5}\)

    If \(A\) is invertible, show that \(AB\) is similar to \(BA\) for all \(B\).

    Exercise \(\PageIndex{6}\)

    Show that the only matrix similar to a scalar matrix \(A = rI\), \(r\) in \(\mathbb{R}\), is \(A\) itself.

    Exercise \(\PageIndex{7}\)

    Let \(\lambda\) be an eigenvalue of \(A\) with corresponding eigenvector \(\mathbf{x}\). If \(B = P^{-1}AP\) is similar to \(A\), show that \(P^{-1}\mathbf{x}\) is an eigenvector of \(B\) corresponding to \(\lambda\).

    Exercise \(\PageIndex{8}\)

    If \(A \sim B\) and \(A\) has any of the following properties, show that \(B\) has the same property.

    1. Idempotent, that is \(A^{2} = A\).
    2. Nilpotent, that is \(A^{k} = 0\) for some \(k \geq 1\).
    3. Invertible.
    Answer
    1. If \(B = P^{-1}AP\) and \(A^{k} = 0\), then \(B^{k} = (P^{-1}AP)^{k} = P^{-1}A^{k}P = P^{-1}0P = 0\).
    Exercise \(\PageIndex{9}\)

    Let \(A\) denote an \(n \times n\) upper triangular matrix.

    1. If all the main diagonal entries of \(A\) are distinct, show that \(A\) is diagonalizable.
    2. If all the main diagonal entries of \(A\) are equal, show that \(A\) is diagonalizable only if it is already diagonal.
    3. Show that \(\left[ \begin{array}{rrr} 1 & 0 & 1 \\ 0 & 1 & 0 \\ 0 & 0 & 2 \end{array} \right]\) is diagonalizable but that \(\left[ \begin{array}{rrr} 1 & 1 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 2 \end{array} \right]\) is not diagonalizable.
    Answer
    1. The eigenvalues of \(A\) are all equal (they are the diagonal elements), so if \(P^{-1}AP = D\) is diagonal, then \(D = \lambda I\). Hence \(A = P^{-1}(\lambda I)P = \lambda I\).
    Exercise \(\PageIndex{10}\)

    Let \(A\) be a diagonalizable \(n \times n\) matrix with eigenvalues \(\lambda_{1}, \lambda_{2}, \dots, \lambda_{n}\) (including multiplicities). Show that:

    1. \(\det A = \lambda_{1}\lambda_{2}\cdots \lambda_{n}\)
    2. \(\text{tr} A = \lambda_{1} + \lambda_{2} + \cdots + \lambda_{n}\)
    Answer
    1. \(A\) is similar to \(D = \text{diag}(\lambda_{1}, \lambda_{2}, \dots, \lambda_{n})\) so (Theorem 5.5.1) \(\text{tr} A = \text{tr} D = \lambda_{1} + \lambda_{2} + \dots + \lambda_{n}\).
    Exercise \(\PageIndex{11}\)

    Given a polynomial \(p(x) = r_{0} + r_{1}x + \dots + r_{n}x^{n}\) and a square matrix \(A\), the matrix \(p(A) = r_{0}I + r_{1}A + \dots + r_{n}A^{n}\) is called the evaluation of \(p(x)\) at \(A\). Let \(B = P^{-1}AP\). Show that \(p(B) = P^{-1}p(A)P\) for all polynomials \(p(x)\).

    Exercise \(\PageIndex{12}\)

    Let \(P\) be an invertible \(n \times n\) matrix. If \(A\) is any \(n \times n\) matrix, write \(T_{P}(A) = P^{-1}AP\). Verify that:

    1. \(T_{P}(I) = I\)
    2. \(T_{P}(AB) = T_{P}(A)T_{P}(B)\)
    3. \(T_{P}(A + B) = T_{P}(A) + T_{P}(B)\)
    4. \(T_{P}(rA) = rT_{P}(A)\)
    5. \(T_{P}(A^{k}) = [T_{P}(A)]^{k}\) for \(k \geq 1\)
    6. If \(A\) is invertible, \(T_{P}(A^{-1}) = [T_{P}(A)]^{-1}\).
    7. If \(Q\) is invertible, \(T_{Q}[T_{P}(A)] = T_{PQ}(A)\).
    Answer
    1. \(T_{P}(A)T_{P}(B) = (P^{-1}AP)(P^{-1}BP) = P^{-1}(AB)P = T_{P}(AB)\).
    Exercise \(\PageIndex{13}\)
    1. Show that two diagonalizable matrices are similar if and only if they have the same eigenvalues with the same multiplicities.
    2. If \(A\) is diagonalizable, show that \(A \sim A^{T}\).
    3. Show that \(A \sim A^{T}\) if \(A = \left[ \begin{array}{rr} 1 & 1 \\ 0 & 1 \end{array} \right]\)
    Answer
    1. If \(A\) is diagonalizable, so is \(A^{T}\), and they have the same eigenvalues. Use (a).
    Exercise \(\PageIndex{14}\)

    If \(A\) is \(2 \times 2\) and diagonalizable, show that \(C(A) = \{X \mid XA = AX\}\) has dimension \(2\) or \(4\). [Hint: If \(P^{-1}AP = D\), show that \(X\) is in \(C(A)\) if and only if \(P^{-1}XP\) is in \(C(D)\).]

    Exercise \(\PageIndex{15}\)

    If \(A\) is diagonalizable and \(p(x)\) is a polynomial such that \(p(\lambda) = 0\) for all eigenvalues \(\lambda\) of \(A\), show that \(p(A) = 0\) (see Example 3.4.2). In particular, show \(c_{A}(A) = 0\). [Remark: \(c_{A}(A) = 0\) for all square matrices \(A\)—this is the Cayley-Hamilton theorem, see Theorem 11.1.2.]

    Exercise \(\PageIndex{16}\)

    Let \(A\) be \(n \times n\) with \(n\) distinct real eigenvalues. If \(AC = CA\), show that \(C\) is diagonalizable.

    Exercise \(\PageIndex{17}\)

    Let \(A = \left[ \begin{array}{rrr} 0 & a & b \\ a & 0 & c \\ b & c & 0 \end{array} \right]\) and \(B = \left[ \begin{array}{rrr} c & a & b \\ a & b & c \\ b & c & a \end{array} \right]\).

    1. Show that \(x^{3} - (a^{2} + b^{2} + c^{2})x - 2abc\) has real roots by considering \(A\).
    2. Show that \(a^{2} + b^{2} + c^{2} \geq ab + ac + bc\) by considering \(B\).
    Answer
    1. \(c_{B}(x) = [x - (a + b + c)][x^{2} - k]\) where \(k = a^{2} + b^{2} + c^{2} - [ab + ac + bc]\). Use Theorem 5.5.7.
    Exercise \(\PageIndex{18}\)

    Assume the \(2 \times 2\) matrix \(A\) is similar to an upper triangular matrix. If \(\text{tr} A = 0 = \text{tr} A^{2}\), show that \(A^{2} = 0\).

    Exercise \(\PageIndex{19}\)

    Show that \(A\) is similar to \(A^{T}\) for all \(2 \times 2\) matrices \(A\). [Hint: Let \(A = \left[ \begin{array}{rr} a & b \\ c & d \end{array} \right]\). If \(c = 0\) treat the cases \(b = 0\) and \(b \neq 0\) separately. If \(c \neq 0\), reduce to the case \(c = 1\) using Exercise 5.5.12(d).]

    Exercise \(\PageIndex{20}\)

    Refer to Section 3.4 on linear recurrences. Assume that the sequence \(x_{0}, x_{1}, x_{2}, \dots\) satisfies

    \[x_{n+k} = r_0x_n + r_1x_{n+1} + \dotsb + r_{k-1}x_{n+k-1} \nonumber \]

    for all \(n \geq 0\). Define

    \[A = \scriptsize \left[ \begin{array}{ccccc} 0 & 1 & 0 & \cdots & 0 \\ 0 & 0 & 1 & \cdots & 0 \\ \vdots & \vdots & \vdots & & \vdots \\ 0 & 0 & 0 & \cdots & 1 \\ r_0 & r_1 & r_2 & \cdots & r_{k-1} \end{array} \right], V_n = \left[ \begin{array}{cccc} x_n \\ x_{n+1} \\ \vdots \\ x_{n+k-1} \end{array} \right]. \nonumber \]

    Then show that:

    1. \(V_{n} = A^{n}V_{0}\) for all \(n\).
    2. \(c_{A}(x) = x^{k} - r_{k-1}x^{k-1} - \dots - r_{1}x - r_{0}\)
    3. If \(\lambda\) is an eigenvalue of \(A\), the eigenspace \(E_{\lambda}\) has dimension 1, and \(\mathbf{x} = (1, \lambda, \lambda^{2}, \dots, \lambda^{k-1})^{T}\) is an eigenvector. [Hint: Use \(c_{A}(\lambda) = 0\) to show that \(E_{\lambda} = \mathbb{R}\mathbf{x}\).]
    4. \(A\) is diagonalizable if and only if the eigenvalues of \(A\) are distinct. [Hint: See part (c) and Theorem 5.5.4.]
    5. If \(\lambda_{1}, \lambda_{2}, \dots, \lambda_{k}\) are distinct real eigenvalues, there exist constants \(t_{1}, t_{2}, \dots, t_{k}\) such that \(x_n = t_1\lambda_1^n + \dots + t_k\lambda_k^n\) holds for all \(n\). [Hint: If \(D\) is diagonal with \(\lambda_{1}, \lambda_{2}, \dots, \lambda_{k}\) as the main diagonal entries, show that \(A^{n}\) = \(PD^{n}P^{-1}\) has entries that are linear combinations of \(\lambda_1^n, \lambda_2^n, \dots, \lambda_k^n\).]

    This page titled 5.5E: Similarity and Diagonalization Exercises was last modified on Sat, 17 Jan 2026 00:22:35 GMT and is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by W. Keith Nicholson.