Prove/Disprove: Let $A$ be a square matrix of order $n $ then rank of $A$ is atleast number of non zero eigenvalues of $A.$
My approach: For any matrix $A$, $A^TA$, and $AA^T$ are both symmetric and hence diagonalizable so the rank of $A^TA$ and $AA^T$ are the same and are equal to the number of non-zero eigenvalues.
Also, we know one result that for any real matrix $A$, $$\operatorname{rank}(A^TA)=\operatorname{rank}(AA^T)=\operatorname{rank}(A)=\operatorname{rank}(A^T).$$
Using the two above facts can we say that the statement is proven?
and to justify "atmost" take \begin{equation}A= \begin{bmatrix} 1 & 0 & 0 &0\\ 0 & 1 & 0 &0\\ 0 & 0 & 0 & 1\\ 0 & 0 & 0 &0 \end{bmatrix} \end{equation} here rank of $A$ is $3$ which is greater than the number of non zero eigenvalues of $A$ that is $2$.
Is my approach okay or is there any nice explanation to justify the statement?
Thanks in advance.