Let $A \in \Bbb R^{n \times n}$ be a symmetric matrix and let $\lambda \in \Bbb R$ be an eigenvalue of $A$. Prove that the geometric multiplicity $g(\lambda)$ of $A$ equals its algebraic multiplicity $a(\lambda)$.
We know that if $A$ is diagonalizable then $g(\lambda)=a(\lambda)$. So all we have to show is that $A$ is diagonalizable.
I found a proof by contradiction. Assuming $A$ is not diagonalizable we have
$$(A- \lambda_i I)^2 v=0, \ (A- \lambda_i I) v \neq 0,$$
where $\lambda_i$ is some repeated eigenvalue. Then
$$0=v^{\dagger}(A-\lambda_i I)^2v=v^{\dagger}(A-\lambda_i I)(A-\lambda_i I) \neq 0$$
which is a contradiction (where $\dagger$ stands for conjugate transpose).
OK but isn't there a better proof? I see it could be approached by the Spectral theorem or Gram Schmidt Prove that real symmetric matrix is diagonalizable. A hint for how to do so would be appreciated.