I would like to know the proof for:
The determinant of the block matrix
$$\begin{pmatrix} A & B\\ C& D\end{pmatrix}$$
equals
$$(D-1) \det(A) + \det(A-BC) = (D+1) \det(A) - \det(A+BC)$$
when $A$ is a square matrix, $D$ is a scalar, $C$ is a row vector and $B$ is a column vector.
I appreciate your help.
We add an extra column and row to this matrix:
$$\left(\begin{array}{cc} A & B & 0 \\ C & D & 0 \\ 0 & 0& 1\end{array}\right).$$
This new matrix has the same determinant as the original.
Now we perform some row and column operations that don't change the determinant. First add $D-1$ times the last row to the second-to-last, and then subtract the last column from the second-to-last column. The result is
$$ \left(\begin{array}{ccc} A & B & 0 \\ C & 1 & D-1\\ 0 & -1 & 1\end{array}\right).$$
By linearity of the determinant in each row and column, we can write the determinant of the above as
$$ \begin{align} &\det\left(\begin{array}{ccc} A & B & 0 \\ C & 1 & 0\\ 0 & -1 & 1\end{array}\right) + \det\left(\begin{array}{ccc} A & B & 0 \\ C & 1 & D-1\\ 0 & -1 & 0\end{array}\right) \\ &=\det \left(\begin{array}{cc} A & B \\ C & 1\end{array}\right) + (-1)(D-1)\det(\left(\begin{array}{cc} A & B \\ 0 & -1\end{array}\right) \\ &= \det(A-BC) + (D-1) \det(A).\end{align}$$
The other formula can be derived by replacing $D-1$ with $D+1$ in the second step and proceeding in a similar way.