Lemma. The determinant of a rank-one update [fdip-012Q]

Let \(x\) be a column and \(y^{\top }\) a row, with entries in a commutative unital ring. Then \[\det ({\mathbb {I}}-xy^{\top })=1-y^{\top }x.\] If \(A\) is an invertible square matrix of the same size, and \(p\) and \(c\) are columns, \[\det (A-pc^{\top })=\det (A)\bigl (1-c^{\top }A^{-1}p\bigr ).\]