For a matrix $A$ we can use diagonalization using this formula: $$ A = X D X^{-1}$$ where $X$ is a matrix containing eigenvectors in the columns and $D$ is the diagonal matrix containing eigenvalues.
Now consider a symmetric matrix. In case of a symmetric matrix $X$ matrix is orthogonal. So, Now we have: $$ S = X D X^{T} $$
I am practicing maths on diagonalization. I have this symmetric matrix and they tell me to diagonalize this matrix: $$\begin{pmatrix} 1 & -1 & 1\\ -1 & 1 & -1\\ 1 & -1 & 1 \end{pmatrix}$$
To diagonalize this matrix, they find the eigenvector and then normalize the eigenvectors. So, now the eigenvector matrix $X$ is orthonormal. Then they use the diagonalization theorem.
My question is that from the diagonalization theorem we see that in the case of a symmetric matrix eigenvector matrix $X$ is orthogonal, it need not be orthonormal to perform diagonalization. Then why we take orthonormal eigenvector $X$, does not it violate the diagonalization theorem?