Eigenvalues of Squared Matrix and Upper Triangular Matrix

Problem 184

Suppose that $A$ and $P$ are $3 \times 3$ matrices and $P$ is invertible matrix.
If
\[P^{-1}AP=\begin{bmatrix}
1 & 2 & 3 \\
0 &4 &5 \\
0 & 0 & 6
\end{bmatrix},\]
then find all the eigenvalues of the matrix $A^2$.

We give two proofs. The first version is a short proof and uses some facts without proving.
The second proof explains more details and give proofs of the facts which are not proved in the first proof.

Proof (short version).

Let $B=P^{-1}AP$. Since $B$ is an upper triangular matrix, its eigenvalues are diagonal entries $1, 4, 6$.

Since $A$ and $B=P^{-1}AP$ have the same eigenvalues, the eigenvalues of $A$ are $1, 4, 6$. Note that these are all the eigenvalues of $A$ since $A$ is a $3\times 3$ matrix.

It follows that all the eigenvalues of $A^2$ are $1, 4^2, 6^2$, that is, $1, 16, 36$.

Proof (long version.)

Let us put $B:=P^{-1}AP$.
The eigenvalues of $B$ are $1, 4, 6$ since $B$ is an upper triangular matrix and eigenvalues of an upper triangular matrix are diagonal entries.
We claim that the eigenvalues of $A$ and $B$ are the same.

To prove this claim, we show that their characteristic polynomials are equal.
Let $p_A(t), p_B(t)$ be the characteristic polynomials of $A, B$, respectively.
Then we have
\begin{align*}
p_B(t)&=\det(B-tI)=\det(P^{-1}AP-tI)\\
&= \det(P^{-1}(A-tI)P)\\
&=\det(P^{-1})\det(A-tI)\det(P)\\
&=\det(P)^{-1}p_A(t)\det(P)\\
&=p_A(t).
\end{align*}
Therefore, the characteristic polynomials of $A$ and $B$ are the same, and hence the matrices $A$ and $B$ have the same eigenvalues.
Thus $1, 4, 6$ are eigenvalues of the matrix $A$ and these are all the eigenvalues of $A$ since a $3\times 3$ matrix has at most three eigenvalues.
Now we claim that in general if $\lambda$ is an eigenvalue of $A$, then $\lambda^2$ is an eigenvalue of $A^2$. We prove this statement below. Assuming this claim for the moment, we finish the problem.
By the claim, the matrix $A^2$ has eigenvalues $1^2, 4^2, 6^2$. Thus all the eigenvalues of $A^2$ are
\[1, 16, 36.\]
To complete the solution, let us prove the last claim.
Since $\lambda$ is an eigenvalue of $A$, we have an eigenvector $\mathbf{x}$ such that
\[A\mathbf{x}=\lambda \mathbf{x}.\]

Multiplying by $A$ we obtain
\begin{align*}
A^2T\mathbf{x}&=\lambda (A\mathbf{x})\\
&=\lambda (\lambda \mathbf{x})\\
&=\lambda^2 \mathbf{x}
\end{align*}
and thus $\lambda^2$ is an eigenvalue of $A^2$.

Square Root of an Upper Triangular Matrix. How Many Square Roots Exist?
Find a square root of the matrix
\[A=\begin{bmatrix}
1 & 3 & -3 \\
0 &4 &5 \\
0 & 0 & 9
\end{bmatrix}.\]
How many square roots does this matrix have?
(University of California, Berkeley Qualifying Exam)
Proof.
We will find all matrices $B$ such that […]

The Inverse Matrix of an Upper Triangular Matrix with Variables
Let $A$ be the following $3\times 3$ upper triangular matrix.
\[A=\begin{bmatrix}
1 & x & y \\
0 &1 &z \\
0 & 0 & 1
\end{bmatrix},\]
where $x, y, z$ are some real numbers.
Determine whether the matrix $A$ is invertible or not. If it is invertible, then find […]

Diagonalize the Upper Triangular Matrix and Find the Power of the Matrix
Consider the $2\times 2$ complex matrix
\[A=\begin{bmatrix}
a & b-a\\
0& b
\end{bmatrix}.\]
(a) Find the eigenvalues of $A$.
(b) For each eigenvalue of $A$, determine the eigenvectors.
(c) Diagonalize the matrix $A$.
(d) Using the result of the […]

Determinant/Trace and Eigenvalues of a Matrix
Let $A$ be an $n\times n$ matrix and let $\lambda_1, \dots, \lambda_n$ be its eigenvalues.
Show that
(1) $$\det(A)=\prod_{i=1}^n \lambda_i$$
(2) $$\tr(A)=\sum_{i=1}^n \lambda_i$$
Here $\det(A)$ is the determinant of the matrix $A$ and $\tr(A)$ is the trace of the matrix […]

Find All the Eigenvalues of $A^k$ from Eigenvalues of $A$
Let $A$ be $n\times n$ matrix and let $\lambda_1, \lambda_2, \dots, \lambda_n$ be all the eigenvalues of $A$. (Some of them may be the same.)
For each positive integer $k$, prove that $\lambda_1^k, \lambda_2^k, \dots, \lambda_n^k$ are all the eigenvalues of […]

Two Matrices with the Same Characteristic Polynomial. Diagonalize if Possible.
Let
\[A=\begin{bmatrix}
1 & 3 & 3 \\
-3 &-5 &-3 \\
3 & 3 & 1
\end{bmatrix} \text{ and } B=\begin{bmatrix}
2 & 4 & 3 \\
-4 &-6 &-3 \\
3 & 3 & 1
\end{bmatrix}.\]
For this problem, you may use the fact that both matrices have the same characteristic […]