I am interested to know if there is a spectral relationship between a matrix $A = \begin{bmatrix}a & b \\ b & a\end{bmatrix} \in \mathbb{R}^{2\times 2}$ and the block constant matrix
$$ A' = \left[ \begin{matrix} a & \cdots & a & b & \cdots & b \\ \vdots & \ddots & \vdots & \vdots & \ddots & \vdots \\ a & \cdots & a & b & \cdots & b \\ b & \cdots & b & a & \cdots & a \\ \vdots & \ddots & \vdots & \vdots & \ddots & \vdots \\ b & \cdots & b & a & \cdots & a \\ \end{matrix} \right] \in \mathbb{R}^{(p+q) \times (p+q)} $$
where the top left block is $p\times p$ and the bottom right block is $q\times q$.
We can also explicitly calculate the eigenvalues of $A$ to be $\lambda_1 = a+b, \lambda_2 = a - b$ and then eigenvectors to be $v_1 = \frac{1}{\sqrt{2}} \begin{bmatrix} 1 \\ 1 \end{bmatrix}, v_2 = \frac{1}{\sqrt{2}} \begin{bmatrix} -1 \\ 1 \end{bmatrix}$.
Clearly $A'$ is rank 2 so will have at most 2 non-zero eigenvectors. Is there any theorem which describes the eigenvalues and vectors in terms of $p$ and $q$?
Thank you Omnomnomnom for the eigenvalues. I've calculated the eigenvectors.
Let $v = (\underbrace{v_1,\dots v_1}_{p},\underbrace{v_2,\dots,v_2}_{q})$ be an eigenvalue then it must satisfy $A'v= \lambda v$ so
- $pav_1+qbv_2 = \lambda v_1$
- $pbv_1 + qav_2 = \lambda v_2$
Thus letting $v_2 = 1$ we have $v_1 = \frac{qb}{\lambda -pa}$. This is easily normalised by dividing by $\sqrt{p\left(\frac{qb}{\lambda - p}\right)^2 + q}$.