Orthogonal Diagonalization
Diagonal coordinates built from perpendicular eigenvectors
A real matrix A is orthogonally diagonalizable if and only if A is symmetric. For such a matrix, A=QDQᵀ with Q orthogonal and D diagonal.
For a symmetric A, eigenvectors belonging to distinct eigenvalues are automatically orthogonal. Within a repeated-eigenvalue eigenspace, choose an orthogonal basis before normalizing; arbitrary vectors from that same eigenspace need not already be perpendicular.
To construct the factorization, find the eigenspaces, assemble mutually orthogonal eigenvectors, normalize them to form the columns of Q, and place each matching eigenvalue in the corresponding diagonal position of D. The column order is flexible only if the identical permutation is applied to D.
A normalized eigenvector for eigenvalue λ is placed in the third column of Q. Where must λ appear in D for A=QDQᵀ to use that pairing?
Why is normalization of nonzero eigenvectors needed when constructing Q for an orthogonal diagonalization?