I am wondering why symmetric matrices are diagonalizable only by orthogonal matrices (and these orthogonal matrices by definition have orthonormal vectors). This is the proof but I don't really get the second part:
Why is this part true:
Finally, by Theorem 7.5, you can conclude that P^{-1}AP is diagonal. So, A is orthogonally diagonalizable.
How do we know it has n linearly independent eigenvectors?


In the proof of Thm 7.5, the columns vectors $p_i$ are the eigenvectors of $A$. (You may think about the matrix product on each side of $AP = PD$ in a column-wise manner.) Since $P^{-1}$ exists at the very beginning of the proof, $P$ is nonsingular. This forbids the column vectors $p_i$'s from being linearly dependent. (Otherwise, some column $p_j$ would be a linear combination of other columns, and this would give $\det(P) = 0$, contradicting the invertibility of $P$.)