Consider the matrix:
$$\begin{pmatrix} \color{red}{-x+y} &-1&0&-1 \\ -1&\color{blue}{x+y}&-1&0 \\ 0&-1&\color{red}{-x+y}&-1 \\ -1&0&-1&\color{blue}{x+y} \end{pmatrix}$$
Is there any easy way to calculate the determinant of this matrix?
I have read up on circulant matrices and there is some nice theory on them, however this is not quite circulant, the only difference is that the main diagonal contains 2 different values.
So I was wondering if there is a 'short cut' to find the determinant of these kind of almost-circulant matrices.
There are (at least) a few options: