\[A = Q\begin{pmatrix}\lambda_1 && \ &&\ \\ \ && \ddots&&\ \\\ &&\ &&\lambda_n\end{pmatrix}Q^*\] where $\lambda_1,\dots,\lambda_n$ are the eigenvalues of $A$ and the columns of $Q$ are eigenvectors of $A$.