# Real symmetric $\;2\times 2$ congruent matrices

Theorem: Prove that any two regular symmetric $\;2\times 2\;$ real matrices are either simultaneously diagonalizable or else they are congruent to each other.

Now, my work: If $\;A,B\in Sym_2(\Bbb R\;$) are regular then each of them either has one single non-zero eigenvalue of (algebraic) multiplicity two, or else each has two different non-zero eigenvalues.

I also know that if two matrices are are diagonalizable, then they're simultaneously diagonalizable iff they commute.

But I also know two square matrices are congruent iff they have the same rank and the same signature, so I have this problem: say we have

$$A=\begin{pmatrix}1&1\\1&2\end{pmatrix}\;,\;\;\;B=\begin{pmatrix}1&\;\;1\\1&-2\end{pmatrix}$$

Both matrices above are regular and symmetric and thus diagonalizable, but

1) They're not simultaneously diagonalizable since $\;AB\neq BA\;$ , and also

2) They are not congruent since certainly $\;\text{rk}\, A= \text{rk}\, B =2\;$, yet their signature is different: $\;\sigma(A)=(2,0)\;,\;\;\sigma(B)=(1,1)\;$ (this I got after I calculated both matrices' eigenvalues: the first one has two positive ones whereas the second one has one positive and one negative)

So either the theorem above is wrong, or else I'm misunderstanding something badly. Any help will be appreciated.

-

I think by "simultaneously diagonalizable", it means "simultaneously diagonalizable by congruence", not "simultaneously diagonalizable by similarity transform". If $A$ and $B$ are not congruent to each other, they have different signatures. Since they are invertible $2\times2$ real symmetric matrices, it follows that one of them must be either positive definite or negative definite. Hence they are simultaneously diagonalizable by congruence.
Ah, this makes sense, but: how is it then possible to find the invertible $\;P\;$ s.t. $\;P^tAP\;,\;\;P^tBP\;$ are both diagonal? Say, in my example? This could really help me. Thanks a lot.+1 – Timbuc May 20 '14 at 9:17
@Timbuc Assume that $A$ is positive (or negative) definite. First, find an invertible $P$ such that $P^TAP=I$ (or $-I$). At this point, $P^TBP$ is not yet diagonal, but it is a real symmetric matrix. So ... – user1551 May 20 '14 at 10:06