I learned now about how to diagonalize a symmetric matrices using congruence
for example I saw that there exists an invertible matrix $P$ so that
$P\begin{pmatrix} 3 & 0 & 6\\ 0 & 0 & 1\\ 6 & 1 & 1\\ \end{pmatrix}P^{t}=\begin{pmatrix} 3 & 0 & 0\\ 0 & -11 & 0\\ 0 & 0 & (1/11) \\ \end{pmatrix}$
But how can I diagonalize this symmetric matrix using congruence
$\begin{pmatrix} 0 & 1\\ 1 & 0\\ \end{pmatrix}$
How can I find this $P$ according to the algorithm.
I would have link the algorithm if I would find it in the Net but I am sure you know what I am talking about.
Thanks in advanced !!