The problem is to determine the number of spanning trees in $K_{r,s}$. The Matrix tree theorem states that the answer is the determinant of the matrix $M_{ii}$, where $M_{ii}$ is the matrix obtained from deleting the first row and the first column of $X-A$, where $X$ is the diagonal matrix of degree of each vertex and $A$ is the adjacency matrix of $K_{r,s}$.
I have the desired matrix below, denoted as $M$, and its determinant is the answer of the graph theory question. However, I have difficulty in computing its determinant. The upper left corner is an $(r-1) \times (r-1)$ diagonal matrix with diagonal entry $s$, and the lower right corner is an $s \times s$ diagonal matrix with diagonal entry $r$. All the other entries are $-1$.
Though the matrix looks rather harmonic, I have no idea how to compute its determinant when $r$ and $s$ are arbitrary natural numbers. I appreciate any help from you guys.