I have to find the characteristic polynomial equation of this matrix
$$ A= \begin{bmatrix}2 &1 &1&1 \\1&2&1&1\\1&1&2&1\\1&1&1&2 \end{bmatrix}$$
Is there another way than the rather long $\det(A-\lambda I)$ method ?
Maybe the fact that $A$ is symmetric ($A =A^t $) may be helpful ?
There's a formula for determinants of block matrices of the form $\begin{bmatrix} A&B\\B&A\end{bmatrix}$, where $A$ and $B$ are square matrices of the same size: $$\det\begin{bmatrix} A&B\\B&A\end{bmatrix}=\det(A-B)\det(A+B).$$ Applying this formula , we obtain \begin{align}\det(A-\lambda I)&=\begin{vmatrix}2-\lambda&1&1&1\\1&2-\lambda&1&1\\1&1&2-\lambda&1\\1&1&1&2-\lambda \end{vmatrix}=\begin{vmatrix}1-\lambda&0\\0&1-\lambda \end{vmatrix}\cdot\begin{vmatrix}3-\lambda&2\\2&3-\lambda \end{vmatrix}\\ &=(1-\lambda)^2\Bigl[(3-\lambda)^2-4\Bigr]=(\lambda-1)^3(\lambda-5).\end{align}