I have a square matrix that has zero and nonzero eigenvalues. I need to find the rank of this matrix. Can I say that the rank is: the dimension of the matrix - the number of nonzero eigenvalues counting each once (ignoring their algebraic multiplicity)?
If so, how can I support this expression with theorems?
I ask this question because I don't want to deal with the nullity theorem.
Thanks for the help.
Not true. Take, for instance,$$A=\begin{bmatrix}0&0&0\\0&1&0\\0&0&-1\end{bmatrix}.$$Then the rank of $A$ is $2$, not $1$.