(a) Let $U$ be a $m \times n$ matrix and $V$ an $n \times m$ matrix, such that the $m \times m$ matrix $\mathrm{I}_m+U V$ is invertible. Prove that $\mathrm{I}_n+V U$ is also invertible, and is given by
$$
\left(\mathrm{I}_n+V U\right)^{-1}=\mathrm{I}_n-V\left(\mathrm{I}_m+U V\right)^{-1} U \text {. }
$$
(b) The Sherman-Morrison-Woodbury formula generalizes this identity to
$$
(A+V B U)^{-1}=A^{-1}-A^{-1} V\left(B^{-1}+U A^{-1} V\right)^{-1} U A^{-1} .
$$
Explain what assumptions must be made on the matrices $A, B, U, V$ for (1.42) to be valid.