Find the eigenvalues and eigenvectors of the following matrix and express the
matrix in the form of $P=Ee^{\lambda t}E^{-1}$ where $E$ are the eigenvectors and $\lambda$ are the eigenvalues
\begin{bmatrix}0 & 1 & 0 & 0\\ -a^2-b & 0 & b & 0\\ 0 & 0 & 0 & 1\\b & 0 & -a^2-b & 0\end{bmatrix} Find the matrix $P$
What i tried. First i tried finding the eigenvalues by taking the characteristic polynomials and then solving for for the characteristic polynomials to get the four eigenvalues. Then for each eigenvalues i tired finding the corresponding vector basis. Combining the vector basis gives $E$ the eigenvector. Then taking the inverse gives $E^{-1}$ following which we do a matrix multiplication to get the matrix $P$. While i know the steps behind solving this problem my diffculty lies in the inherent tediouness in solving each step to get the correct answer Is there a simpler way to solve this problem without having to go through all the difficult steps or at least is there a mathmatical software that could help me solve this problem? Could anyone hep me with finding the matrix $P$. Thanks
I worked out the four eigenvectors
$$\lambda_{1}=-ia$$ $$\lambda_{2}=ia$$
$$\lambda_{3}=-\sqrt{-a^2-2b}$$ $$\lambda_{4}=\sqrt{-a^2-2b}$$
Eigenvector $E$ is $$\begin{bmatrix}1 & 1 & 1 & 1\\ -ia & ia & -\sqrt{-a^2-2b}& \sqrt{-a^2-2b}\\ 1 & 1 & -1 & -1\\-ia & ib & \sqrt{-a^2-2b}& -\sqrt{-a^2-2b}\end{bmatrix}$$