How do you find the eigenpairs of this?
Given two matrices $A=\begin{bmatrix} a& b\\b&-a\end{bmatrix}$ and $B=\begin{bmatrix} a& -b\\b&a\end{bmatrix}$ where $b \neq 0$, find all eigenpairs of $A$ and $B$, and comment if the matrices are diagonalizable or not.
I plugged in the characteristic equation $\det(A-\lambda I)=0$ and is unable to solve for $\lambda $. I got $\lambda ^2-a^2-b^2=0$ and it won't let me factorize. Any idea?
If you have $\lambda^2 = a^2 + b^2$, then the eigenvalue is $$\lambda = \pm \sqrt{a^2+b^2}.$$
From there you can find the eigenvectors.
Edit:
If we want to find a particular $(x_1, x_2)$ such that $\begin{bmatrix} z_1 & z_2 \\ 0 & 0\end{bmatrix}\begin{bmatrix} x_1 \\ x_2\end{bmatrix}=0$, we can just pick $x_1=-z_2, x_2=z_1.$