In the book is the following formula:
Let $c$ and $d$ be $n \times 1$ nonzero columns such that $1+d^Tc \neq 0$, then $$(I + cd^T)^{-1} = I - \frac{cd^T}{1 + d^Tc}.$$
If $1+d^Tc \neq 0$, then $\big(I + cd^T\big)\big(I - \frac{cd^T}{1 + d^Tc}\big) = I$ so the equation is correct. But I am trying to derive the formula. I tried the solve the following equation $(I + cd^T)= (I + X)$, but without success.
How can I derive such formula? Thank you.