The determinant of a block Matrix of Order $2n$

Let us consider the $2n \times 2n$ block matrix $$\mathbf{X} = \pmatrix{\mathbf{P} & \mathbf{Q}\\ \mathbf{R} & \mathbf{S} }$$ where $\mathbf{P} , \mathbf{Q} , \mathbf{R} , \mathbf{S}$ are square matrices of order $n$ which commute pairwise. Show that $$\det \mathbf{X} = \det (\mathbf{PS} – \mathbf{QR}).$$

The problem in this case I am having is when none of the matrices $ \mathbf{P} , \mathbf{Q} , \mathbf{R} , \mathbf{S} $ are invertible. Any help will be greatly appreciated.

Solutions Collecting From Web of "The determinant of a block Matrix of Order $2n$"

It’s enough for $P$ and $R$ to commute. When $P$ is invertible,

$\det(X) = \det(PS – PRP^{-1}Q)$. If $P$ and $R$ commute and $P$ is not invertible, consider

$$f(t) = \det \pmatrix{P+tI & Q\cr R & S\cr}$$

For all but finitely many $t$, $P+tI$ is invertible, and it commutes with $R$, so
$$f(t) = \det((P+tI)S – (P+tI) R (P+tI)^{-1} Q) = \det((P+tI)S – RQ)$$
Now both $f(t)$ and $\det((P+tI)S – RQ)$ are polynomials in $t$, so if they are equal for all but finitely many $t$ they are equal for all $t$.