I have a symmetric 4$\times$4 matrix, A. I need to find it's eigenvalues. The elements are not purely numerical: some elements are exponential functions and so it's extremely difficult to find the eigenvalues using the typical characteristic equation approach.
(Will Jagy): Here is a 4 by 4 matrix. Edit in the actual entries (Thank you, Will!)
The 4 by 4 matrix I'm trying to block diagonalise looks like this: $$ A = \begin{bmatrix}e^{2x+y} & 1 & 1 & e^{-2x+y} \\ 1 & e^{2x-y} & e^{-2x-y} & 1 \\ 1 & e^{-2x-y} & e^{2x-y} & 1 \\ e^{-2x+y} & 1 & 1 & e^{2x+y} \\ \end{bmatrix} $$ It's quite nasty to deal with: directly calculating the eigenvalues through computer algebra software gives a very nasty answer which doesn't lend well to any analytic uses.
I also have a unitary matrix S, which looks like the following: $$ S = \begin{bmatrix}0 & 0 & 0 & 1 \\ 0 & 0 & 1 & 0 \\ 0 & 1 & 0 & 0 \\ 1 & 0 & 0 & 0 \\ \end{bmatrix} $$
Clearly, SA = AS. I know that somehow, I need to block diagonalise A in order to proceed.
How is this kind of block diagonalization typically performed?
Thanks for reading!
Edit: matrices added!
Take $p = e^{2x}$ and $q = e^y.$ Your matrix now has some fractions, so we multiply through by $pq,$ getting $$ pqA = \left( \begin{array}{cccc} p^2 q^2 & pq & pq & q^2 \\ pq & p^2 & 1 & pq \\ pq & 1 & p^2 & pq \\ q^2 & pq & pq & p^2 q^2 \\ \end{array} \right) $$
The characteristic polynomial of this matrix, variable called $t,$ is $$ \left( t - (p^2 -1) \right) \left(t - q^2 (p^2 -1)\right) \left( t^2 - (p^2 + 1)(q^2 + 1) t + q^2 (p^2 - 1)^2 \right) $$ We need the quadratic formula to get two of the eigenvalues.
One quick way is to notice that adding $(1 - p^2)I$ to the matrix makes the two middle rows equal, same as subtracting $(p^2 - 1)I,$ so $p^2 - 1$ is an eigenvalue. Analogous, adding $(q^2 - p^2 q^2)I$ to the matrix makes the first and fourth rows identical, so $p^2 q^2 - q^2= q^2(p^2-1)$ is an eigenvalue.