I have just learnt how to reduce a symmetric matrix to a diagonal one, using the equation below:

$\displaystyle D={P}^{T}AP$

Where A is the original symmetric matrix and D is the diagonal matrix.

P is an orthogonal matrix whose columns consist of the normalised eigenvectors of A.

My problem is how to write the above equation in terms of A.