Let $A$ be a complex matrix of rank $1$. Show that $$\det (I+A) = 1 + \operatorname{Tr}(A)$$ where $\det(X)$ denotes the determinant of $X$ and $\operatorname{Tr}(X)$ denotes the trace of $X$.
Any hint, please. I do not get how to combine the ideas of rank, determinant and trace. Thank you.
The minimal polynomial of $A$ splits in $\Bbb C$. So, there is $P\in \text{GL}(n,\Bbb C)$ such that $PAP^{-1}$ is upper diagonal. Now, $\operatorname{rank}(A)=1$, so at most one diagonal entry of $P^{-1}AP$ is non-zero and all other diagonal entries of $P^{-1}AP$ are zero.
Hence, $\det(I+A)=\det\left(I+P^{-1}AP\right)=(1+\lambda)$, where $\lambda$ is the only non-zero diagonal entry of $P^{-1}AP$. Now, $\operatorname{tr}(A)=\operatorname{tr}(P^{-1}AP)=\lambda$. So, we are done.
Another case is also possible, all diagonal entries of $P^{-1}AP$ are zero, that is $A$ is nilpotent. In this case the equality $\det(I+A)=1+\operatorname{tr}(A)$, holds similarly.