Prove that the matrix
\[A=\begin{bmatrix}
0 & 1\\
-1& 0
\end{bmatrix}\]
is diagonalizable.
Prove, however, that $A$ cannot be diagonalized by a real nonsingular matrix.
That is, there is no real nonsingular matrix $S$ such that $S^{-1}AS$ is a diagonal matrix.

We first find the eigenvalues of $A$ by computing its characteristic polynomial $p(t)$.
We have
\begin{align*}
p(t)=\det(A-tI)=\begin{vmatrix}
-t & 1\\
-1& -t
\end{vmatrix}=t^2+1.
\end{align*}
Solving $p(t)=t^2+1=0$, we obtain two distinct eigenvalues $\pm i$ of $A$.
Hence the matrix $A$ is diagonalizable.

To prove the second statement, assume, on the contrary, that $A$ is diagonalizable by a real nonsingular matrix $S$.
Then we have
\[S^{-1}AS=\begin{bmatrix}
i & 0\\
0& -i
\end{bmatrix}\]
by diagonalization.
As the matrices $A, S$ are real, the left-hand side is a real matrix.
Taking the complex conjugate of both sides, we obtain
\[\begin{bmatrix}
-i & 0\\
0& i
\end{bmatrix}=\overline{\begin{bmatrix}
i & 0\\
0& -i
\end{bmatrix}}=\overline{S^{-1}AS}=S^{-1}AS=\begin{bmatrix}
i & 0\\
0& -i
\end{bmatrix}.\]
This equality is clearly impossible.
Hence the matrix $A$ cannot be diagonalized by a real nonsingular matrix.

Diagonalize the 3 by 3 Matrix if it is Diagonalizable
Determine whether the matrix
\[A=\begin{bmatrix}
0 & 1 & 0 \\
-1 &0 &0 \\
0 & 0 & 2
\end{bmatrix}\]
is diagonalizable.
If it is diagonalizable, then find the invertible matrix $S$ and a diagonal matrix $D$ such that $S^{-1}AS=D$.
How to […]

How to Diagonalize a Matrix. Step by Step Explanation.
In this post, we explain how to diagonalize a matrix if it is diagonalizable.
As an example, we solve the following problem.
Diagonalize the matrix
\[A=\begin{bmatrix}
4 & -3 & -3 \\
3 &-2 &-3 \\
-1 & 1 & 2
\end{bmatrix}\]
by finding a nonsingular […]

Diagonalize the Complex Symmetric 3 by 3 Matrix with $\sin x$ and $\cos x$
Consider the complex matrix
\[A=\begin{bmatrix}
\sqrt{2}\cos x & i \sin x & 0 \\
i \sin x &0 &-i \sin x \\
0 & -i \sin x & -\sqrt{2} \cos x
\end{bmatrix},\]
where $x$ is a real number between $0$ and $2\pi$.
Determine for which values of $x$ the […]

Diagonalize the $2\times 2$ Hermitian Matrix by a Unitary Matrix
Consider the Hermitian matrix
\[A=\begin{bmatrix}
1 & i\\
-i& 1
\end{bmatrix}.\]
(a) Find the eigenvalues of $A$.
(b) For each eigenvalue of $A$, find the eigenvectors.
(c) Diagonalize the Hermitian matrix $A$ by a unitary matrix. Namely, find a diagonal matrix […]

Use the Cayley-Hamilton Theorem to Compute the Power $A^{100}$
Let $A$ be a $3\times 3$ real orthogonal matrix with $\det(A)=1$.
(a) If $\frac{-1+\sqrt{3}i}{2}$ is one of the eigenvalues of $A$, then find the all the eigenvalues of $A$.
(b) Let
\[A^{100}=aA^2+bA+cI,\]
where $I$ is the $3\times 3$ identity matrix.
Using the […]

A Matrix Similar to a Diagonalizable Matrix is Also Diagonalizable
Let $A, B$ be matrices. Show that if $A$ is diagonalizable and if $B$ is similar to $A$, then $B$ is diagonalizable.
Definitions/Hint.
Recall the relevant definitions.
Two matrices $A$ and $B$ are similar if there exists a nonsingular (invertible) matrix $S$ such […]

Quiz 13 (Part 1) Diagonalize a Matrix
Let
\[A=\begin{bmatrix}
2 & -1 & -1 \\
-1 &2 &-1 \\
-1 & -1 & 2
\end{bmatrix}.\]
Determine whether the matrix $A$ is diagonalizable. If it is diagonalizable, then diagonalize $A$.
That is, find a nonsingular matrix $A$ and a diagonal matrix $D$ such that […]