Find eigenvalues and rank of the matrix $A=I+xy^T$, where $x,y\in\mathbb R^n$ and $x^Ty=0$.
I have found a property that $\sum_{i=0}^n\lambda_i = \text{Tr}(A) = \text{Tr}(I+xy^T) = \text{Tr}(I) + \text{Tr}(xy^T) = n + \sum_{i=1}^nx_iy_i = n + x^Ty = n + 0 = n.$
But I am unsure of where to proceed from here.