For which values of $x \in \mathbb{R}$ does the determinant of the matrix $$ M = \begin{pmatrix} x & 0 & 1 & 2 \\ 2 & x & 0 & 1 \\ 1 & 2 & x & 0 \\ 0 & 1 & 2 & x \end{pmatrix}$$ vanish?
For clarification. I know you can just calculate the determinant but I'm looking for an elegant solution.
This is a circulant matrix and its eigenvalues are $$ \lambda_j=c_0+c_1w^{j}+c_2w^{2j}+c_3w^{3j}, \quad j=0,1,2,3 $$ where $w$ is the primitive fourth root of $1$, i.e., $w=i$, and $$ c_0=x,\quad c_1=0, \quad c_2=1, \quad c_3=2 $$ Thus $$ \lambda_j=x+i^{2j}+2i^{3j}=x+(-1)^j+2(-i)^j, \quad j=0,1,2,3. $$ Thus, the eigenvalues are $$ x+1+2, \quad x-1-2i, \quad x+1-2, \quad x-1+2i. $$ Hence the determinant vanishes iff $$ x=1, \quad x=-3 \quad\text{or}\quad x=1\pm 2i. $$