The question is this-
Show that the rank of a symmetric matrix is the maximum order of a principal sub-matrix which is invertible.
I can show that there cannot exist a sub-matrix with rank more than the actual rank of the matrix. But I cannot show the other way around, i.e when the rank of the actual matrix is $r$, then there exist a principal sub-matrix of the same rank (though I can prove that there exist a sub-matrix with rank $r$).
I was thinking like this: if the rank of the matrix is $r$, we can find r linearly independent rows of the matrix, say $a_1, a_2, ..., a_r$ -th rows are linearly independent. Then the corresposding columns $a_1^t, a_2^t, ..., a_r^t$ are also linearly independent. But how to show that the submatrix that they produce is of rank r?
I hope my question is clear. Any hints or help would be highly appreciated.