I wonder whether there is a way how to transform symmetric matrix to diagonal matrix using symetretric transformation. I could not find any function that performs symmetric transformation in Mathematica.
E.g. I have matrix {{1,a},{a,2}} and I want to do TransformToDiagonal[{{1,a},{a,2}}]. The result should be {{1,0},{0,2-a^2}}.
Definitions: Symmetric transformation is a finite sequence of elementary symmetric operations. By elementary symmetric operation we mean applying elementary row operation and then the corresponding column operation.


{{1,0},{0,2-a^2}}? – L.K. Feb 13 '17 at 13:24{{1,0},{0,2-a^2}}as a result? – L.K. Feb 13 '17 at 13:37{{1,0},{a,2}}. I add -a1st row to 2nd row so I have{{1,a},{a-a=0,2-a^2}}. Then I add -a1st row to column to 2nd column so I get{{1,0},{0,2-a^2}}. I am sorry if it is not clear, I dont learn mathematics in English. – velblúd Feb 13 '17 at 13:43