(a) Suppose \(\mathbf{A}\) is \(n \times m\) and \(\mathbf{B}\) is \(m \times n .\)
Prove that \(\left|\mathbf{I}_{n}+\mathbf{A
B}\right|=\left|\mathbf{I}_{m}+\mathbf{B} \mathbf{A}\right| .\) (Hint: Define
\(\mathbf{D}=\left(\begin{array}{cc}\mathbf{I}_{n} & \mathbf{A} \\ \mathbf{0}
& \mathbf{I}_{m}\end{array}\right),
\mathbf{E}=\left(\begin{array}{cc}\mathbf{I}_{n} & -\mathbf{A} \\ \mathbf{B}
& \mathbf{I}_{m}\end{array}\right) .\) Then \(\left|\mathbf{I}_{n}+\mathbf{A}
\mathbf{B}\right|=|\mathbf{D} \mathbf{E}|=|\mathbf{D}||\mathbf{E}|=\)
\(\left.|\mathbf{E}||\mathbf{D}|=|\mathbf{E D}|=\left|\mathbf{I}_{m}+\mathbf{B}
\mathbf{A}\right| .\right)\)
(b) Use the result in (a) to prove that if \(a_{1}, \ldots, a_{n}\) are all
different from 1 , then
$$
\left|\begin{array}{ccccc}
a_{1} & 1 & 1 & \ldots & 1 \\
1 & a_{2} & 1 & \ldots & 1 \\
1 & 1 & a_{3} & \ldots & 1 \\
\vdots & \vdots & \vdots & \ddots & \vdots \\
1 & 1 & 1 & \ldots & a_{n}
\end{array}\right|=\left(a_{1}-1\right)\left(a_{2}-1\right)
\cdots\left(a_{n}-1\right)\left[1+\sum_{i=1}^{n} \frac{1}{a_{i}-1}\right]
$$
(Hint: Let \(\mathbf{F}=\mathbf{I}_{n}+\mathbf{A}_{n \times 1} \mathbf{B}_{1
\times n}\) where \(\mathbf{A}_{n \times 1}=\left(\frac{1}{a_{1}-1},
\frac{1}{a_{2}-1}, \cdots, \frac{1}{a_{n}-1}\right)^{\prime}\) and
\(\left.\mathbf{B}_{1 \times n}=(1,1, \ldots, 1) .\right)\)