I'm trying to calculate the eigenvalues of an $N\times N$ matrix $M$ whose matrix elements are $m_{ij} = \delta_{ij} + c$, where c is a real constant. Anybody knows if there is a closed formula for this?
Notice that the matrix can also be written as $M=I + v v^T$, where the vector $v$ has elements $v_i = \sqrt{c}$.
I have search through the stack.exchange questions with the words "diagonalization" and "low-rank" in the title, but they seem to concern more general cases than the simple one I'm interested in.
Thank you!
Note that if $\langle v, w \rangle = 0$ then $Mw = w$. This accounts for $N-1$ eigenvalues $1$. Finally $M v = (1+\lVert v \rVert^2) v$ so this gives the final eigenvalue.